Skip to content

Commit 6077f48

Browse files
Bran Hclaude
andcommitted
Fix anchor link scrolling to account for sticky header
- Add scroll-padding-top to html element - Prevents header from covering anchor targets when scrolling Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 102b38f commit 6077f48

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

assets/css/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
html {
5050
font-size: 16px;
5151
scroll-behavior: smooth;
52+
scroll-padding-top: calc(var(--header-height) + 1rem);
5253
}
5354

5455
body {

0 commit comments

Comments
 (0)