2023-05-02 04:02:25 +00:00
|
|
|
.citizen-page-container {
|
|
|
|
display: flex; // Should fix weird margin issues
|
2023-07-28 01:19:27 +00:00
|
|
|
flex-direction: column;
|
2023-05-02 04:02:25 +00:00
|
|
|
min-height: 100vh; // Ensure footer goes to the bottom of the page
|
|
|
|
min-height: stretch; // for iOS, excludes safe areas
|
|
|
|
}
|
|
|
|
|
2021-04-19 16:38:39 +00:00
|
|
|
.mw-body,
|
|
|
|
.parsoid-body {
|
2024-05-05 06:13:36 +00:00
|
|
|
min-height: 100vh; // avoid footer being in the middle of the page
|
2022-09-29 23:12:56 +00:00
|
|
|
}
|
|
|
|
|
2022-10-06 20:31:55 +00:00
|
|
|
.citizen-body-container {
|
2022-10-06 20:40:30 +00:00
|
|
|
display: grid;
|
2023-07-20 22:18:16 +00:00
|
|
|
grid-template-areas:
|
2024-10-17 10:41:17 +00:00
|
|
|
'content'
|
2022-10-06 20:40:30 +00:00
|
|
|
'footer';
|
2022-10-28 22:23:58 +00:00
|
|
|
// Using auto as min value will cause overflow
|
|
|
|
grid-template-columns: minmax( 0, var( --width-layout ) );
|
2024-07-02 23:26:50 +00:00
|
|
|
gap: 0 var( --space-xl );
|
2023-07-28 01:19:27 +00:00
|
|
|
justify-content: center;
|
|
|
|
padding: 0 var( --padding-page );
|
2024-10-17 10:41:17 +00:00
|
|
|
// Bottom margin is added because data-after-content cannot
|
|
|
|
margin-bottom: var( --space-xl );
|
2021-01-26 20:38:27 +00:00
|
|
|
}
|
|
|
|
|
2021-07-30 15:44:02 +00:00
|
|
|
.citizen-body {
|
2024-07-09 22:28:31 +00:00
|
|
|
z-index: @z-index-base; // Stop body content going over sticky header
|
2022-12-06 20:30:42 +00:00
|
|
|
grid-area: content;
|
2021-01-18 20:18:39 +00:00
|
|
|
}
|
|
|
|
|
2024-10-17 10:41:17 +00:00
|
|
|
#mw-data-after-content:not( :empty ) {
|
|
|
|
margin-top: var( --space-xl );
|
|
|
|
}
|
|
|
|
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-desktop ) {
|
2022-10-05 02:00:56 +00:00
|
|
|
.citizen-page-container {
|
2022-10-01 20:07:37 +00:00
|
|
|
// Reserve space for header
|
2022-10-01 19:06:57 +00:00
|
|
|
margin-left: var( --header-size );
|
2022-09-30 01:12:27 +00:00
|
|
|
}
|
2022-10-06 20:31:55 +00:00
|
|
|
|
|
|
|
.citizen-toc-enabled {
|
|
|
|
.citizen-body-container {
|
2023-07-20 22:18:16 +00:00
|
|
|
grid-template-areas:
|
2024-10-17 10:41:17 +00:00
|
|
|
'content sidebar'
|
2022-10-06 20:31:55 +00:00
|
|
|
'footer footer';
|
2022-11-23 23:50:08 +00:00
|
|
|
grid-template-columns: minmax( 0, var( --width-layout ) ) var( --width-toc );
|
2022-10-06 20:31:55 +00:00
|
|
|
}
|
|
|
|
}
|
2024-04-25 22:19:11 +00:00
|
|
|
|
|
|
|
.citizen-animations-ready {
|
|
|
|
.citizen-body-container {
|
|
|
|
transition: var( --transition-menu );
|
|
|
|
transition-property: grid;
|
|
|
|
}
|
|
|
|
}
|
2022-09-29 23:12:56 +00:00
|
|
|
}
|
|
|
|
|
2021-03-08 16:42:43 +00:00
|
|
|
/* Wider page width for certain namespaces */
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-desktop-wide ) {
|
2021-03-08 16:42:43 +00:00
|
|
|
// 1 - Special, 6 - File, 14 - Category
|
|
|
|
.ns {
|
|
|
|
&--1,
|
|
|
|
&-6,
|
|
|
|
&-14 {
|
2022-10-01 19:33:30 +00:00
|
|
|
--width-layout: var( --width-layout--extended );
|
2021-03-08 16:42:43 +00:00
|
|
|
}
|
2021-01-26 19:56:11 +00:00
|
|
|
}
|
|
|
|
}
|