mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-21 03:41:03 +00:00
Proposal to use scroll-margin-top
instead of introducing padding and negative margin (#38220)
This commit is contained in:
parent
5d4048350f
commit
a6d8aa827d
@ -4,11 +4,6 @@
|
|||||||
|
|
||||||
.bd-content {
|
.bd-content {
|
||||||
// Offset content from fixed navbar when jumping to headings
|
// Offset content from fixed navbar when jumping to headings
|
||||||
> :target {
|
|
||||||
padding-top: 5rem;
|
|
||||||
margin-top: -5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
> h2,
|
> h2,
|
||||||
> h3,
|
> h3,
|
||||||
> h4 {
|
> h4 {
|
||||||
|
@ -3,8 +3,11 @@
|
|||||||
main {
|
main {
|
||||||
a,
|
a,
|
||||||
button,
|
button,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
[tabindex="0"] {
|
[tabindex="0"] {
|
||||||
scroll-margin-top: 100px;
|
scroll-margin-top: 80px;
|
||||||
scroll-margin-bottom: 100px;
|
scroll-margin-bottom: 100px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user