mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Fix #33993 by removing scroll-padding-top for some :target trickery
This commit is contained in:
@@ -2,12 +2,13 @@
|
|||||||
// Bootstrap docs content theming
|
// Bootstrap docs content theming
|
||||||
//
|
//
|
||||||
|
|
||||||
// Offset for the sticky header
|
|
||||||
:root {
|
|
||||||
scroll-padding-top: 5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bd-content {
|
.bd-content {
|
||||||
|
// Offset content from fixed navbar when jumping to headings
|
||||||
|
> :target {
|
||||||
|
padding-top: 5rem;
|
||||||
|
margin-top: -5rem;
|
||||||
|
}
|
||||||
|
|
||||||
> h2:not(:first-child) {
|
> h2:not(:first-child) {
|
||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user