Skip to content

Commit 8b81d48

Browse files
committed
doc: Fix anchor link dead zone
1 parent ee47d20 commit 8b81d48

File tree

1 file changed

+2
-8
lines changed
  • doc/themes/the-things-stack/assets/css/common

1 file changed

+2
-8
lines changed

doc/themes/the-things-stack/assets/css/common/global.scss

+2-8
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,8 @@ table.fixed td { overflow: auto; }
127127

128128
// Fix for anchor link headbutting https://css-tricks.com/hash-tag-links-padding/
129129
.content {
130-
h2::before, h3::before, h4::before {
131-
display: block;
132-
content: " ";
133-
margin-top: -$navbar-height - 1rem;
134-
height: $navbar-height + 1rem;
135-
visibility: hidden;
136-
pointer-events: none;
137-
z-index: -1;
130+
h2, h3, h4 {
131+
scroll-margin-top: 0.25em;
138132
}
139133
}
140134

0 commit comments

Comments
 (0)