Skip to content

Commit 6544ad4

Browse files
authored
Merge pull request #668 from saurabhraghuvanshii/misaligned
fix: anchor links misaligned with header
2 parents d083699 + 34510f2 commit 6544ad4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

assets/scss/_styles_project.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,3 +777,12 @@ a:not([href]):not([class]):hover {
777777
letter-spacing: 0.03em;
778778
}
779779
}
780+
781+
html {
782+
scroll-padding-top: 5rem;
783+
scroll-behavior: smooth;
784+
}
785+
786+
h1, h2, h3, h4, h5, h6 {
787+
scroll-margin-top: 1rem;
788+
}

0 commit comments

Comments
 (0)