Skip to content

Commit 89756c6

Browse files
committed
fix: use position fixed for body::before content shadow
Prevents the shadow column from cutting off at the fold when body has height: 100%. Fixed positioning makes the pseudo-element always cover the full viewport regardless of body sizing.
1 parent 77cc02b commit 89756c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/_grid-columns.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
min-width: 0;
2727
}
2828

29-
// Content shadow: absolutely-positioned pseudo spanning full body height.
29+
// Content shadow: fixed-position pseudo spanning the full viewport height.
3030
// Width = content column + shadow gap on each side, creating a visual
3131
// separation between the shadow edge and the content.
3232
// The clamp() formula handles visibility: shadow shows at full width when
3333
// there's at least 2*gap of space on each side between shadow edge and
3434
// viewport edge, otherwise snaps to 0. No breakpoint needed.
3535
body::before {
3636
content: '';
37-
position: absolute;
37+
position: fixed;
3838
top: 0;
3939
bottom: 0;
4040
left: 50%;

0 commit comments

Comments
 (0)