mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-09-23 10:19:43 +00:00
feat(core): ✨ do not hardcode scroll padding top
This commit is contained in:
parent
25697495e5
commit
8354f8e263
|
@ -3,8 +3,6 @@
|
|||
*/
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
// Not ideal but it works
|
||||
scroll-padding-top: 6rem;
|
||||
}
|
||||
|
||||
html,
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue