Skip to content

Commit 3c764f8

Browse files
committed
scroll-margin-top for all headings
1 parent 074a66f commit 3c764f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/styles/markdown.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
h3 {
1717
counter-increment: h3;
1818
counter-reset: h4;
19-
color: black
19+
color: black;
20+
scroll-margin-top: 70px;
2021
}
2122
h3:before {
2223
content: counter(h2) "." counter(h3) " ";
@@ -25,6 +26,7 @@
2526
h4:before {
2627
content: counter(h2) "." counter(h3) "." counter(h4) " ";
2728
white-space: pre;
29+
scroll-margin-top: 70px;
2830
}
2931
p {
3032
line-height: 1.5;

0 commit comments

Comments
 (0)