Skip to content

Commit 1f7e7eb

Browse files
louismaximepitonmdo
authored andcommitted
Better use the CSS
1 parent a7e0114 commit 1f7e7eb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

site/assets/scss/_scrolling.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
// When navigating with the keyboard, prevent focus from landing behind the sticky header
22

3-
main *:focus {
4-
scroll-margin-top: 100px;
3+
main {
4+
a,
5+
button,
6+
[tabindex="0"] {
7+
scroll-margin-top: 100px;
8+
scroll-margin-bottom: 100px;
9+
}
510
}

0 commit comments

Comments
 (0)