mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-27 15:50:34 +00:00
refactor(core): ♻️ refactor sticky header element styles
This commit is contained in:
parent
5975e51f58
commit
5431d1499a
|
@ -48,14 +48,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
.sticky-header-element {
|
||||
top: var( --height-sticky-header ) !important;
|
||||
}
|
||||
|
||||
.citizen-sticky-header(@bottomBorder: true, @zIndex: true) {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
transition-timing-function: var( --transition-timing-function-ease );
|
||||
transition-duration: var( --transition-duration-base );
|
||||
transition-property: transform;
|
||||
transform: translate3d( 0, var( --height-sticky-header ), 0 );
|
||||
.sticky-header-element;
|
||||
|
||||
& when (@bottomBorder ) {
|
||||
box-shadow: 0 1px 0 0 var( --border-color-base );
|
||||
|
|
|
@ -95,7 +95,7 @@ html {
|
|||
* to make their templates compatible with the Citizen sticky header.
|
||||
*/
|
||||
.mw-sticky-header-element {
|
||||
top: var( --height-sticky-header ) !important;
|
||||
.sticky-header-element;
|
||||
}
|
||||
|
||||
// Make sticky header more compact if there are less screen estate
|
||||
|
|
Loading…
Reference in a new issue