2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-21 13:24:08 +03:00

Fix #33993 by removing scroll-padding-top for some :target trickery

This commit is contained in:
Mark Otto
2022-02-23 08:08:52 -08:00
parent 73362bbdd8
commit 4d1d58c0ad
+6 -5
View File
@@ -2,12 +2,13 @@
// Bootstrap docs content theming
//
// Offset for the sticky header
:root {
scroll-padding-top: 5rem;
}
.bd-content {
// Offset content from fixed navbar when jumping to headings
> :target {
padding-top: 5rem;
margin-top: -5rem;
}
> h2:not(:first-child) {
margin-top: 3rem;
}