Skip to content

Commit 75e2cac

Browse files
committed
Fix #33993 by removing scroll-padding-top for some :target trickery
1 parent 33d624c commit 75e2cac

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

site/assets/scss/_content.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
// Bootstrap docs content theming
33
//
44

5-
// Offset for the sticky header
6-
:root {
7-
scroll-padding-top: 5rem;
8-
}
9-
105
.bd-content {
6+
// Offset content from fixed navbar when jumping to headings
7+
> :target {
8+
padding-top: 5rem;
9+
margin-top: -5rem;
10+
}
11+
1112
> h2:not(:first-child) {
1213
margin-top: 3rem;
1314
}

0 commit comments

Comments
 (0)