Skip to content

Commit

Permalink
Better use the CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton authored and mdo committed Mar 10, 2023
1 parent a7e0114 commit 1f7e7eb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions site/assets/scss/_scrolling.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// When navigating with the keyboard, prevent focus from landing behind the sticky header

main *:focus {
scroll-margin-top: 100px;
main {
a,
button,
[tabindex="0"] {
scroll-margin-top: 100px;
scroll-margin-bottom: 100px;
}
}

0 comments on commit 1f7e7eb

Please # to comment.