Skip to content

Commit 80b663e

Browse files
committed
Add scroll margin to account for fixed header
1 parent 205c5ce commit 80b663e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

www/src/css/bootstrap.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ h1, h2, h3, h4, h5 {
3737
color: inherit;
3838
}
3939
}
40+
41+
// https://twitter.com/hakimel/status/1257252729128435712?s=20
42+
// https://twitter.com/bramus/status/1257255545897132032?s=20
43+
:target {
44+
scroll-margin-top: 4rem;
45+
}

0 commit comments

Comments
 (0)