2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-20 20:00:36 +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
+5 -4
View File
@@ -2,12 +2,13 @@
// Bootstrap docs content theming // Bootstrap docs content theming
// //
// Offset for the sticky header .bd-content {
:root { // Offset content from fixed navbar when jumping to headings
scroll-padding-top: 5rem; > :target {
padding-top: 5rem;
margin-top: -5rem;
} }
.bd-content {
> h2:not(:first-child) { > h2:not(:first-child) {
margin-top: 3rem; margin-top: 3rem;
} }