2021-04-19 16:38:39 +00:00
|
|
|
.mw-body,
|
|
|
|
.parsoid-body {
|
|
|
|
min-height: 80vh; // 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;
|
2022-10-06 20:31:55 +00:00
|
|
|
justify-content: center;
|
2023-04-14 17:29:15 +00:00
|
|
|
padding: 0 var( --padding-page );
|
2023-04-14 17:30:33 +00:00
|
|
|
margin: var( --space-xl ) 0; // don't collide with other components (e.g. notice)
|
2022-11-01 00:34:00 +00:00
|
|
|
gap: var( --space-md ) var( --space-xl );
|
2022-10-06 20:40:30 +00:00
|
|
|
grid-template-areas: 'header'
|
|
|
|
'content'
|
|
|
|
'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 ) );
|
2021-01-18 20:18:39 +00:00
|
|
|
}
|
|
|
|
|
2021-01-26 19:25:46 +00:00
|
|
|
.mw-body-header {
|
2022-10-19 17:49:29 +00:00
|
|
|
position: sticky;
|
2023-01-17 21:44:35 +00:00
|
|
|
// So that the modal are above custom sticky headers
|
|
|
|
z-index: @z-index-page-header + 1;
|
2021-01-26 19:25:46 +00:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2022-10-19 18:20:21 +00:00
|
|
|
align-items: center;
|
2022-09-30 02:33:06 +00:00
|
|
|
padding-top: var( --space-md );
|
2022-11-22 00:05:38 +00:00
|
|
|
gap: var( --space-md );
|
2022-10-06 20:31:55 +00:00
|
|
|
grid-area: header;
|
2021-01-26 19:25:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.page-heading {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
2021-01-26 20:38:27 +00:00
|
|
|
.firstHeading-container {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2021-07-30 15:44:02 +00:00
|
|
|
.citizen-body {
|
2022-12-06 20:30:42 +00:00
|
|
|
grid-area: content;
|
2021-01-18 20:18:39 +00:00
|
|
|
}
|
|
|
|
|
2022-09-29 23:12:56 +00:00
|
|
|
@media ( min-width: @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 {
|
|
|
|
display: grid;
|
|
|
|
grid-template-areas: 'header header'
|
|
|
|
'content toc'
|
|
|
|
'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
|
|
|
}
|
|
|
|
}
|
2022-09-29 23:12:56 +00:00
|
|
|
}
|
|
|
|
|
2021-03-08 16:42:43 +00:00
|
|
|
/* Wider page width for certain namespaces */
|
2021-01-26 19:56:11 +00:00
|
|
|
@media ( min-width: @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
|
|
|
}
|
|
|
|
}
|