mediawiki-skins-Citizen/resources/skins.citizen.styles/layout.less

115 lines
2.1 KiB
Plaintext
Raw Normal View History

.citizen-page-container {
// Reserve space for header
margin-bottom: var( --header-size );
}
2021-04-19 16:38:39 +00:00
.mw-body,
.parsoid-body {
min-height: 80vh; // avoid footer being in the middle of the page
}
.citizen-body-container {
display: grid;
justify-content: center;
padding: var( --space-xl ) var( --padding-page );
gap: var( --space-md ) var( --space-xl );
grid-template-areas: 'header'
'content'
'footer';
// Using auto as min value will cause overflow
grid-template-columns: minmax( 0, var( --width-layout ) );
}
.mw-body-header {
position: sticky;
z-index: @z-index-page-header;
display: flex;
flex-wrap: wrap;
align-items: center;
2022-09-30 02:33:06 +00:00
padding-top: var( --space-md );
gap: var( --space-xl );
grid-area: header;
}
.page-heading {
flex-grow: 1;
}
2021-01-26 20:38:27 +00:00
.firstHeading-container {
display: flex;
align-items: center;
}
.citizen-body {
grid-area: content;
}
a.image {
> img {
2021-03-08 15:52:46 +00:00
max-width: inherit;
height: auto;
}
}
@media ( min-width: @width-breakpoint-tablet ) {
div.tleft,
2021-03-18 16:50:08 +00:00
figure.mw-halign-left,
div.floatleft,
table.floatleft {
2021-03-18 16:50:08 +00:00
/* @noflip */
margin-right: 1.4rem;
2021-03-18 16:50:08 +00:00
/* @noflip */
clear: left;
2021-03-18 16:50:08 +00:00
/* @noflip */
float: left;
}
div.tright,
2021-03-18 16:50:08 +00:00
figure.mw-halign-right,
figure.mw-default-size,
div.floatright,
table.floatright {
2021-03-18 16:50:08 +00:00
/* @noflip */
margin-left: 1.4rem;
2021-03-18 16:50:08 +00:00
/* @noflip */
clear: right;
2021-03-18 16:50:08 +00:00
/* @noflip */
float: right;
}
}
@media ( min-width: @width-breakpoint-desktop ) {
.citizen-page-container {
margin-bottom: 0;
// Reserve space for header
margin-left: var( --header-size );
}
.citizen-body-container {
padding-right: ~'calc( var( --padding-page ) * 2 )';
padding-left: ~'calc( var( --padding-page ) * 2 )';
}
.citizen-toc-enabled {
.citizen-body-container {
display: grid;
grid-template-areas: 'header header'
'content toc'
'footer footer';
grid-template-columns: minmax( auto, var( --width-layout ) ) var( --width-toc );
}
}
}
/* Wider page width for certain namespaces */
@media ( min-width: @width-breakpoint-desktop-wide ) {
// 1 - Special, 6 - File, 14 - Category
.ns {
&--1,
&-6,
&-14 {
--width-layout: var( --width-layout--extended );
}
}
}