Skip to content

Commit ef1a17b

Browse files
authored
Merge pull request #385 from UW-Macrostrat/css-fix
CSS Fix
2 parents 4c22515 + 567b0d1 commit ef1a17b

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

pages/index/+Page.module.sass

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@
5858
top: 0
5959
left: 50%
6060
bottom: 0
61-
margin-left: -50vw
6261
width: 100vw
6362
height: 100%
63+
margin-left: calc(-50vw - 8px)
6464
z-index: -1
6565
object-fit: cover
66-
overflow: hidden
67-
background-position: 50% 50%
6866
background-size: cover
67+
background-position: center
68+
6969

7070
.hero-content
7171
text-align: center
Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
.sticky-header
22
position: sticky
33
top: -1em
4-
// Provide some overlap for intersection observer
54
z-index: 100
6-
margin: 0 0 0
7-
padding: 1em 0 0em
5+
margin: 0
6+
padding: 1em 0 0
87

8+
.backdrop
9+
height: 3em
10+
background-color: var(--background-color)
11+
width: 100vw
12+
position: fixed
13+
top: 0
14+
left: 0
15+
pointer-events: none
16+
z-index: -1
917

1018
&:global(.is-stuck)
1119
.backdrop
@@ -15,14 +23,3 @@
1523
.backdrop
1624
background: linear-gradient(var(--background-color) 90%, rgba(255, 255, 255, 0))
1725
border-bottom: none
18-
19-
.backdrop
20-
position: absolute
21-
top: 0
22-
left: 50%
23-
width: 100vw
24-
height: 100%
25-
background: var(--background-color)
26-
margin: 0 -50vw 0
27-
z-index: -1
28-

0 commit comments

Comments
 (0)