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:
parent
30e8d139fe
commit
d0fece9320
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…
x
Reference in New Issue
Block a user