Avoid sticky mobile header overlapping internal link targets

This commit is contained in:
Ben Sturmfels 2025-07-24 14:39:56 +10:00
parent 9254befd7e
commit 9a789dcf59
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -179,6 +179,10 @@ HEADER & PRIMARY NAVIGATION BAR (Desktop First) (MT/2025)
/* Make header sticky on mobile */ /* Make header sticky on mobile */
@media screen and (max-width: 66.999em) { @media screen and (max-width: 66.999em) {
html {
/* Ensure sticky header doesn't overlap internal link targets. */
scroll-padding-top: 120px;
}
.header-container { .header-container {
position: sticky; position: sticky;
top: 0; top: 0;