0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00

Docs: add scroll-margin-top for keyboard navigation

This commit is contained in:
Patrick H. Lauke 2023-01-21 22:55:38 +00:00 committed by Mark Otto
parent 30e8d139fe
commit d0fece9320
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,5 @@
// When navigating with the keyboard, prevent focus from landing behind the sticky header
main *:focus {
scroll-margin-top: 100px;
}

View File

@ -52,6 +52,7 @@ $enable-cssgrid: true; // stylelint-disable-line scss/dollar-variable-default
@import "colors";
@import "clipboard-js";
@import "placeholder-img";
@import "scrolling";
// Load docs dependencies
@import "syntax";