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

87 lines
1.3 KiB
Plaintext
Raw Normal View History

@width-breakpoint-desktop-wider: @width-breakpoint-desktop + @width-toc * 2;
.mw-body-header,
.mw-body-content {
max-width: var( --width-layout );
margin-right: auto;
margin-left: auto;
}
.mw-body-header {
display: flex;
flex-wrap: wrap;
2021-03-07 18:11:15 +00:00
margin-bottom: @content-margin-top;
}
.page-heading {
flex-grow: 1;
2021-03-07 18:11:15 +00:00
margin-bottom: @content-margin-top;
}
2021-01-26 20:38:27 +00:00
.firstHeading-container {
display: flex;
align-items: center;
}
.mw-body-content {
.mixin-clearfix();
}
2021-03-18 16:50:08 +00:00
figure,
.thumb {
2021-03-07 18:11:15 +00:00
margin: @content-margin-top 0;
.thumbinner {
max-width: 100%;
margin: 0 auto;
}
}
a.image {
max-width: 100%;
> 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;
}
}
/* 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: @width-breakpoint-desktop-wide - @padding-page * 2;
}
}
}