Skip to content

Commit

Permalink
Fix h3 anchor scroll snap
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 committed Nov 9, 2021
1 parent 19a4b57 commit 5b38fd8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ h2 {

.anchor {
display: block;
padding-top: 100px;
margin-top: -100px;
}

h3 .anchor {
scroll-margin-top: 70px;
}

pre[class=highlight] {
Expand Down

0 comments on commit 5b38fd8

Please sign in to comment.