Skip to content

Commit

Permalink
fix: padding instead of margin for headers
Browse files Browse the repository at this point in the history
for scroll behavior (height) when click on toc item
  • Loading branch information
Candinya committed Sep 8, 2024
1 parent 41290ec commit 489774b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/scss/kr-core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -284,24 +284,24 @@ h6 {
&.kr-post,
&.kr-page {
h1 {
margin-top: 48px;
padding-top: 48px;
margin-left: 16px;
}

h2 {
margin-top: 36px;
padding-top: 36px;
margin-left: 14px;
}

h3 {
margin-top: 30px;
padding-top: 30px;
margin-left: 12px;
}

h4,
h5,
h6 {
margin-top: 20px;
padding-top: 20px;
margin-left: 12px;
}

Expand All @@ -320,6 +320,7 @@ h6 {
h5,
h6 {
transition: color 0.3s ease-in-out;
margin-top: 0;
}
}
}
Expand Down

0 comments on commit 489774b

Please sign in to comment.