Skip to content

Commit

Permalink
Fix #33993 by removing scroll-padding-top for some :target trickery
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Feb 23, 2022
1 parent 33d624c commit 75e2cac
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions site/assets/scss/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 75e2cac

Please sign in to comment.