mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-27 15:50:34 +00:00
fix(stickyHeader): 🐛 use margin and padding instead of grid gap for body spacing
That should address the flickering issue caused by the sticky header
This commit is contained in:
parent
7ec0ae5b8e
commit
2f7ae8fc1d
|
@ -3,6 +3,7 @@
|
|||
flex-direction: column;
|
||||
grid-area: footer;
|
||||
gap: var( --space-xl );
|
||||
padding-top: var( --space-md );
|
||||
margin-top: var( --space-md );
|
||||
line-height: var( --line-height-sm );
|
||||
}
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
.citizen-page-header--sticky {
|
||||
.citizen-page-header {
|
||||
flex-wrap: nowrap;
|
||||
padding-bottom: var( --space-md );
|
||||
white-space: nowrap;
|
||||
.citizen-sticky-header;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
'footer';
|
||||
// Using auto as min value will cause overflow
|
||||
grid-template-columns: minmax( 0, var( --width-layout ) );
|
||||
gap: var( --space-md ) var( --space-xl );
|
||||
gap: 0 var( --space-xl );
|
||||
justify-content: center;
|
||||
padding: 0 var( --padding-page );
|
||||
margin: var( --space-xl ) 0; // don't collide with other components (e.g. notice)
|
||||
|
@ -33,6 +33,7 @@
|
|||
gap: var( --space-md );
|
||||
align-items: center;
|
||||
padding-top: var( --space-md );
|
||||
padding-bottom: var( --space-md );
|
||||
}
|
||||
|
||||
.citizen-page-heading {
|
||||
|
|
Loading…
Reference in a new issue