Skip to content

Commit e208864

Browse files
committed
jumbotron: move chapel image onto the header so it scrolls
The .bg div was position: fixed to support the (now-removed) parallax effect. Without parallax, a fixed-position background bleeds through behind page content as the user scrolls, since the body has no opaque background of its own. Move the chapel image directly onto the .jumbotron element and drop the .bg div; the header and its background now scroll away together as expected. https://claude.ai/code/session_01S5QXfkxZBNSAf2Y1XAD8H7
1 parent df0c85b commit e208864

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

_includes/jumbotron.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<div class="bg"></div>
21
<div class="jumbotron">
32
<div class="container">
43
<br>

css/custom.css

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,15 @@ figcaption {
3232
}
3333

3434
/* Page header banner. .jumbotron isn't a Bootstrap 5 class (removed in
35-
the 4.x → 5.x cycle), but we keep the name as a custom selector. */
35+
the 4.x → 5.x cycle), but we keep the name as a custom selector.
36+
The chapel image lives on the jumbotron itself so it scrolls away
37+
with the header rather than staying fixed behind page content. */
3638
.jumbotron {
3739
height: 250px;
3840
color: white;
3941
text-shadow: #444 0 1px 1px;
40-
background: transparent;
41-
}
42-
43-
.bg {
4442
background: url('/images/chapel_gradient.jpg') no-repeat center center;
45-
position: fixed;
46-
width: 100%;
47-
height: 250px; /* matches .jumbotron height */
48-
top: 0;
49-
left: 0;
50-
z-index: -1;
43+
background-size: cover;
5144
}
5245

5346
.navbar {

0 commit comments

Comments
 (0)