2022-06-02 22:09:28 +00:00
|
|
|
//
|
|
|
|
// Grid layout
|
|
|
|
//
|
2022-06-30 22:37:08 +00:00
|
|
|
|
2023-10-19 07:10:22 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-desktop ) {
|
2022-08-04 20:05:36 +00:00
|
|
|
.mw-page-container-inner {
|
|
|
|
display: grid;
|
2023-01-09 18:20:21 +00:00
|
|
|
column-gap: @grid-column-gap;
|
2024-01-09 14:46:11 +00:00
|
|
|
grid-template: ~'min-content 1fr min-content / @{grid-template-column-desktop}';
|
2024-06-08 08:12:46 +00:00
|
|
|
// stylelint-disable-next-line @stylistic/declaration-colon-space-after
|
2023-08-23 17:46:49 +00:00
|
|
|
grid-template-areas:
|
|
|
|
'siteNotice siteNotice'
|
2024-01-09 14:46:11 +00:00
|
|
|
'columnStart pageContent'
|
2022-09-01 16:23:55 +00:00
|
|
|
'footer footer';
|
2022-08-04 20:05:36 +00:00
|
|
|
}
|
|
|
|
|
2022-08-22 20:23:14 +00:00
|
|
|
.vector-sitenotice-container {
|
2022-10-20 21:52:21 +00:00
|
|
|
grid-area: siteNotice;
|
2022-06-24 20:17:36 +00:00
|
|
|
}
|
|
|
|
|
2023-11-22 14:50:31 +00:00
|
|
|
.vector-column-start {
|
2024-01-09 14:46:11 +00:00
|
|
|
grid-area: columnStart;
|
2023-02-21 02:25:03 +00:00
|
|
|
overflow-anchor: none; // T330108
|
2022-06-02 22:09:28 +00:00
|
|
|
}
|
|
|
|
|
2022-08-04 20:05:36 +00:00
|
|
|
.mw-content-container {
|
2022-10-20 21:52:21 +00:00
|
|
|
grid-area: pageContent;
|
2022-08-04 20:05:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-footer-container {
|
|
|
|
grid-area: footer;
|
|
|
|
}
|
2024-01-09 14:46:11 +00:00
|
|
|
|
2024-02-08 16:49:49 +00:00
|
|
|
.vector-feature-page-tools-pinned-enabled .vector-column-end,
|
2024-04-12 03:27:34 +00:00
|
|
|
.vector-feature-appearance-pinned-clientpref-1 .vector-column-end {
|
2024-01-09 14:46:11 +00:00
|
|
|
width: @width-column-desktop;
|
|
|
|
}
|
|
|
|
|
2024-02-13 20:48:48 +00:00
|
|
|
// Align the pinnable header bottom border with the bottom-border of the
|
2024-01-09 14:46:11 +00:00
|
|
|
// toolbar (below the page title) by pushing down the sidebar content
|
|
|
|
.vector-column-start,
|
|
|
|
.vector-column-end {
|
2024-02-13 20:48:48 +00:00
|
|
|
margin-top: 2.8rem;
|
2024-01-09 14:46:11 +00:00
|
|
|
border-top: 1px solid transparent;
|
|
|
|
}
|
2022-08-04 20:05:36 +00:00
|
|
|
}
|
|
|
|
|
2023-10-19 07:10:22 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-desktop-wide ) {
|
2022-08-04 20:05:36 +00:00
|
|
|
.mw-page-container-inner {
|
2023-01-06 18:07:35 +00:00
|
|
|
grid-template-columns: @grid-template-column-desktop-wide;
|
|
|
|
}
|
|
|
|
|
2023-03-28 15:26:22 +00:00
|
|
|
.mw-header {
|
2023-01-06 18:07:35 +00:00
|
|
|
display: grid;
|
2023-01-09 18:20:21 +00:00
|
|
|
column-gap: @grid-column-gap;
|
2023-01-06 18:07:35 +00:00
|
|
|
grid-template: ~'auto / @{grid-template-column-desktop-wide}';
|
|
|
|
grid-template-areas: 'headerStart headerEnd';
|
|
|
|
|
|
|
|
.vector-header-start {
|
|
|
|
grid-area: headerStart;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vector-header-end {
|
|
|
|
grid-area: headerEnd;
|
|
|
|
}
|
2022-08-04 20:05:36 +00:00
|
|
|
}
|
2023-08-08 18:04:11 +00:00
|
|
|
|
2024-02-08 16:49:49 +00:00
|
|
|
.vector-feature-page-tools-pinned-enabled .vector-column-end,
|
2024-04-12 03:27:34 +00:00
|
|
|
.vector-feature-appearance-pinned-clientpref-1 .vector-column-end {
|
2024-01-09 14:46:11 +00:00
|
|
|
width: @width-column-desktop-wide;
|
|
|
|
}
|
2022-10-20 21:52:21 +00:00
|
|
|
}
|
|
|
|
|
2024-01-09 14:46:11 +00:00
|
|
|
// Single column grid when column start is empty (i.e. no pinned ToC or pinned main menu)
|
2024-02-08 16:49:49 +00:00
|
|
|
.vector-feature-main-menu-pinned-disabled.vector-toc-not-available .mw-page-container-inner,
|
|
|
|
.vector-feature-main-menu-pinned-disabled.vector-feature-toc-pinned-clientpref-0 .mw-page-container-inner {
|
2024-01-09 14:46:11 +00:00
|
|
|
grid-template-columns: @width-page-content;
|
2024-06-08 08:12:46 +00:00
|
|
|
// stylelint-disable-next-line @stylistic/declaration-colon-space-after
|
2024-01-09 14:46:11 +00:00
|
|
|
grid-template-areas:
|
|
|
|
'siteNotice'
|
|
|
|
'pageContent'
|
|
|
|
'columnStart'
|
|
|
|
'footer';
|
|
|
|
|
|
|
|
// Horizontally center content when single column
|
|
|
|
.mw-body {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2022-10-20 21:52:21 +00:00
|
|
|
}
|
|
|
|
|
2023-10-19 07:10:22 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-desktop ) {
|
2023-03-28 15:26:22 +00:00
|
|
|
.mw-body {
|
2022-10-20 21:52:21 +00:00
|
|
|
display: grid;
|
2023-01-25 00:36:24 +00:00
|
|
|
grid-template: ~'min-content min-content min-content 1fr / minmax(0, @{max-width-content-container}) min-content';
|
2023-01-23 22:26:53 +00:00
|
|
|
/**
|
|
|
|
* NOTE: T327715 - 'titlebar-cx' grid area is a temporary workaround to accommodate
|
|
|
|
* the Content Translation extension and should not be used beyond that.
|
|
|
|
* FIXME: This can be removed when T322740 is resolved.
|
|
|
|
*/
|
2024-06-08 08:12:46 +00:00
|
|
|
// stylelint-disable-next-line @stylistic/declaration-colon-space-after
|
2023-08-23 17:46:49 +00:00
|
|
|
grid-template-areas:
|
|
|
|
'titlebar-cx .'
|
2023-02-09 22:50:25 +00:00
|
|
|
'titlebar columnEnd'
|
2022-10-20 21:52:21 +00:00
|
|
|
'toolbar columnEnd'
|
|
|
|
'content columnEnd';
|
|
|
|
|
|
|
|
.vector-page-titlebar {
|
|
|
|
grid-area: titlebar;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vector-page-toolbar {
|
|
|
|
grid-area: toolbar;
|
|
|
|
}
|
|
|
|
|
|
|
|
#bodyContent {
|
|
|
|
grid-area: content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vector-column-end {
|
|
|
|
grid-area: columnEnd;
|
2023-03-28 15:26:22 +00:00
|
|
|
overflow-anchor: none;
|
2022-10-20 21:52:21 +00:00
|
|
|
}
|
2022-08-15 14:42:34 +00:00
|
|
|
}
|
2023-03-28 15:26:22 +00:00
|
|
|
|
2024-02-08 16:49:49 +00:00
|
|
|
.vector-feature-page-tools-pinned-enabled .mw-body,
|
2024-04-12 03:27:34 +00:00
|
|
|
.vector-feature-appearance-pinned-clientpref-1 .mw-body {
|
2023-03-28 15:26:22 +00:00
|
|
|
column-gap: @grid-column-gap;
|
|
|
|
}
|
|
|
|
|
2024-02-08 16:49:49 +00:00
|
|
|
.vector-feature-limited-width-clientpref-0 .mw-body,
|
|
|
|
.vector-feature-limited-width-content-disabled .mw-body {
|
2023-03-28 15:26:22 +00:00
|
|
|
grid-template-columns: ~'minmax(0, 1fr) min-content';
|
|
|
|
}
|
2022-08-15 14:42:34 +00:00
|
|
|
}
|