mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-03 21:10:23 +00:00
Docs: add scroll-margin-top for keyboard navigation
This commit is contained in:
parent
30e8d139fe
commit
d0fece9320
2 changed files with 6 additions and 0 deletions
5
site/assets/scss/_scrolling.scss
Normal file
5
site/assets/scss/_scrolling.scss
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// When navigating with the keyboard, prevent focus from landing behind the sticky header
|
||||
|
||||
main *:focus {
|
||||
scroll-margin-top: 100px;
|
||||
}
|
||||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue