diff --git a/site/assets/scss/_content.scss b/site/assets/scss/_content.scss index 9eca804645..3ca1dc3b2d 100644 --- a/site/assets/scss/_content.scss +++ b/site/assets/scss/_content.scss @@ -4,11 +4,6 @@ .bd-content { // Offset content from fixed navbar when jumping to headings - > :target { - padding-top: 5rem; - margin-top: -5rem; - } - > h2, > h3, > h4 { diff --git a/site/assets/scss/_scrolling.scss b/site/assets/scss/_scrolling.scss index 84db8809a7..201796003e 100644 --- a/site/assets/scss/_scrolling.scss +++ b/site/assets/scss/_scrolling.scss @@ -3,8 +3,11 @@ main { a, button, + h2, + h3, + h4, [tabindex="0"] { - scroll-margin-top: 100px; + scroll-margin-top: 80px; scroll-margin-bottom: 100px; } }