Commit 4045e7c
committed
Fix anchor link visibility under sticky navbar
- Add scroll-padding-top to html to offset navbar height
- Add scroll-margin-top to article headings for smoother anchor scrolling
- Prevents headings from being hidden under sticky navbar when navigating via TOC or hash links1 parent c446a55 commit 4045e7c
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
1 | 6 | | |
2 | 7 | | |
3 | 8 | | |
| |||
116 | 121 | | |
117 | 122 | | |
118 | 123 | | |
119 | | - | |
| 124 | + | |
| 125 | + | |
120 | 126 | | |
121 | 127 | | |
122 | 128 | | |
| |||
0 commit comments