Skip to content

Commit 4daecd3

Browse files
weincw
authored andcommitted
docs: fix in-page anchor navigation positioning
1 parent 59c75ba commit 4daecd3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/static/css/custom.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ h3:hover .header-link,
4343
h4:hover .header-link,
4444
h5:hover .header-link,
4545
h6:hover .header-link {
46-
opacity: 1;
46+
opacity: 1;
47+
}
48+
h2, h3, h4, h5, h6 {
49+
padding-top: 55px;
50+
margin-top: -44px;
4751
}
4852

4953
/* Fix spacing between menu items */

0 commit comments

Comments
 (0)