diff options
Diffstat (limited to 'site/assets/scss/_scrolling.scss')
-rw-r--r-- | site/assets/scss/_scrolling.scss | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/site/assets/scss/_scrolling.scss b/site/assets/scss/_scrolling.scss new file mode 100644 index 0000000..2017960 --- /dev/null +++ b/site/assets/scss/_scrolling.scss @@ -0,0 +1,13 @@ +// When navigating with the keyboard, prevent focus from landing behind the sticky header + +main { + a, + button, + h2, + h3, + h4, + [tabindex="0"] { + scroll-margin-top: 80px; + scroll-margin-bottom: 100px; + } +} |