mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-26 23:32:25 +00:00
60999eb1d9
Codex tokens are a better implementation and this should ensure consistency across the MW ecosystem. We have to keep a copy for now as they are introduced in 1.41. Related: #735
83 lines
1.8 KiB
Plaintext
83 lines
1.8 KiB
Plaintext
.citizen-page-container {
|
|
display: flex; // Should fix weird margin issues
|
|
flex-direction: column;
|
|
min-height: 100vh; // Ensure footer goes to the bottom of the page
|
|
min-height: stretch; // for iOS, excludes safe areas
|
|
}
|
|
|
|
.mw-body,
|
|
.parsoid-body {
|
|
min-height: 80vh; // avoid footer being in the middle of the page
|
|
}
|
|
|
|
.citizen-body-container {
|
|
display: grid;
|
|
grid-template-areas:
|
|
'header'
|
|
'content'
|
|
'footer';
|
|
// Using auto as min value will cause overflow
|
|
grid-template-columns: minmax( 0, var( --width-layout ) );
|
|
gap: var( --space-md ) 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)
|
|
}
|
|
|
|
.mw-body-header {
|
|
position: -webkit-sticky;
|
|
position: sticky;
|
|
// So that the modal are above custom sticky headers
|
|
z-index: @z-index-page-header + 1;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
grid-area: header;
|
|
gap: var( --space-md );
|
|
align-items: center;
|
|
padding-top: var( --space-md );
|
|
}
|
|
|
|
.page-heading {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.firstHeading-container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.citizen-body {
|
|
grid-area: content;
|
|
}
|
|
|
|
@media ( min-width: @min-width-breakpoint-desktop ) {
|
|
.citizen-page-container {
|
|
// Reserve space for header
|
|
margin-left: var( --header-size );
|
|
}
|
|
|
|
.citizen-toc-enabled {
|
|
.citizen-body-container {
|
|
display: grid;
|
|
grid-template-areas:
|
|
'header header'
|
|
'content toc'
|
|
'footer footer';
|
|
grid-template-columns: minmax( 0, var( --width-layout ) ) var( --width-toc );
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Wider page width for certain namespaces */
|
|
@media ( min-width: @min-width-breakpoint-desktop-wide ) {
|
|
// 1 - Special, 6 - File, 14 - Category
|
|
.ns {
|
|
&--1,
|
|
&-6,
|
|
&-14 {
|
|
--width-layout: var( --width-layout--extended );
|
|
}
|
|
}
|
|
}
|