feat(core): do not hardcode scroll padding top

This commit is contained in:
alistair3149 2024-09-10 17:02:59 -04:00
parent 25697495e5
commit 8354f8e263
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -3,8 +3,6 @@
*/
html {
box-sizing: border-box;
// Not ideal but it works
scroll-padding-top: 6rem;
}
html,

View file

@ -85,6 +85,10 @@
}
}
html {
scroll-padding-top: ~'calc( var( --height-sticky-header ) + var( --space-xl ) )';
}
/*
* T289817 `.mw-sticky-header-element` provides an API for template developers
* to make their templates compatible with the Citizen sticky header.