look: fix scrolling to sections #34

Closed
q3k wants to merge 4 commits from q3k-fix-link-targeting into main
Showing only changes of commit 133c82790e - Show all commits

View file

@ -156,12 +156,7 @@
z-index: 10000;
}
/* Allow to scroll past the last section, needed for fragment-directed navigation. */
section#contact {
min-height: 100vh;
}
/* Fix scrolling to section by fragment, making sure it shows in the right spot and not behind the navbar. */
section {
scroll-margin-top: calc(var(--spacing) * 16 + var(--spacing) * 4);
}
}