2021-02-02 10:04:37 +00:00
|
|
|
/**
|
|
|
|
* Vector modern layout styles for screen
|
|
|
|
*
|
|
|
|
* Layout rules divide the page into sections and how VectorComponents should be arranged in the skin.
|
|
|
|
* The rules here should only define the layout, not color or typography.
|
|
|
|
*/
|
|
|
|
|
2024-02-08 16:49:49 +00:00
|
|
|
html {
|
2023-02-28 19:48:31 +00:00
|
|
|
scroll-padding-top: @scroll-padding-top;
|
|
|
|
}
|
|
|
|
|
2020-08-10 21:40:06 +00:00
|
|
|
body {
|
2020-10-30 16:57:38 +00:00
|
|
|
background-color: @background-color-secondary--modern;
|
2020-08-10 21:40:06 +00:00
|
|
|
color: @color-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-body,
|
|
|
|
.parsoid-body {
|
|
|
|
direction: ltr;
|
|
|
|
}
|
|
|
|
|
2024-01-09 14:46:11 +00:00
|
|
|
.mw-body .firstHeading {
|
|
|
|
word-wrap: break-word;
|
|
|
|
margin-bottom: 0;
|
2020-08-10 21:40:06 +00:00
|
|
|
}
|
|
|
|
|
2020-09-08 23:20:58 +00:00
|
|
|
.mw-header {
|
2020-11-19 17:12:53 +00:00
|
|
|
// allow z-index to apply so search results overlay article
|
|
|
|
position: relative;
|
2020-08-10 21:40:06 +00:00
|
|
|
z-index: @z-index-header;
|
|
|
|
}
|
|
|
|
|
2023-03-07 16:54:44 +00:00
|
|
|
#mw-content-text {
|
2022-07-25 20:13:58 +00:00
|
|
|
margin-top: 16px;
|
|
|
|
}
|
|
|
|
|
2020-08-10 21:40:06 +00:00
|
|
|
/* Content */
|
|
|
|
.mw-indicators {
|
|
|
|
z-index: @z-index-indicators;
|
|
|
|
}
|
|
|
|
|
2022-12-22 15:12:05 +00:00
|
|
|
.vector-page-titlebar {
|
2021-01-22 18:24:34 +00:00
|
|
|
.mixin-clearfix();
|
2024-01-09 14:46:11 +00:00
|
|
|
box-shadow: none;
|
|
|
|
// Faux bottom border that stretches to the edges
|
|
|
|
// of the *content*, not the full width of the box.
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 1px;
|
|
|
|
background-color: @border-color-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-blank::after {
|
|
|
|
content: none;
|
|
|
|
}
|
2021-01-22 18:24:34 +00:00
|
|
|
}
|
|
|
|
|
2022-12-22 15:12:05 +00:00
|
|
|
.vector-body-before-content {
|
|
|
|
// Contain the floating .mw-indicators, but don't use clearfix because of browser inconsistencies
|
|
|
|
// when combining 'clear' and 'margin-top' (T325391)
|
|
|
|
overflow: hidden;
|
2023-04-29 18:22:30 +00:00
|
|
|
|
|
|
|
// Margin is only applied to indicators inside `.vector-body-before-content` since they can
|
|
|
|
// also appear next to the page title, where margin is not needed.
|
|
|
|
.mw-indicators {
|
|
|
|
margin-top: @margin-top-pre-content;
|
|
|
|
}
|
2022-12-22 15:12:05 +00:00
|
|
|
}
|
|
|
|
|
2024-01-09 14:46:11 +00:00
|
|
|
// Language button at bottom of content.
|
2022-03-14 18:49:23 +00:00
|
|
|
.mw-body .mw-portlet-lang {
|
2021-05-03 13:48:46 +00:00
|
|
|
float: right;
|
|
|
|
}
|
2021-09-28 16:27:10 +00:00
|
|
|
|
2021-05-21 01:02:07 +00:00
|
|
|
.vector-body {
|
2020-08-10 21:40:06 +00:00
|
|
|
position: relative;
|
|
|
|
z-index: @z-index-base;
|
2022-09-23 16:57:02 +00:00
|
|
|
}
|
2022-08-03 20:52:07 +00:00
|
|
|
|
2022-09-23 16:57:02 +00:00
|
|
|
#siteSub {
|
2023-04-29 18:22:30 +00:00
|
|
|
margin-top: @margin-top-pre-content; // T311564
|
2022-09-23 16:57:02 +00:00
|
|
|
}
|
2022-08-03 20:52:07 +00:00
|
|
|
|
2022-09-23 16:57:02 +00:00
|
|
|
// Styles only applied to non-empty #contentSub to avoid extra margins when both #contentSub and #contentSub2
|
|
|
|
// are rendered.
|
|
|
|
#contentSub:not( :empty ),
|
|
|
|
#contentSub2 {
|
2024-09-23 19:34:28 +00:00
|
|
|
font-size: @font-size-small;
|
2023-04-23 13:48:55 +00:00
|
|
|
color: @color-subtle;
|
2022-09-23 16:57:02 +00:00
|
|
|
width: auto;
|
|
|
|
// Visually separate #contentSub and #contentSub2 (T315639)
|
2023-04-29 18:22:30 +00:00
|
|
|
margin: @margin-top-pre-content 0 0;
|
2020-08-10 21:40:06 +00:00
|
|
|
}
|
|
|
|
|
2023-03-28 17:45:48 +00:00
|
|
|
// Container logic.
|
|
|
|
.mw-page-container {
|
2024-01-09 14:46:11 +00:00
|
|
|
.mixin-vector-page-container-sizing();
|
|
|
|
// Setting position and z-index is important as it allows overlays appended to the body tag
|
2023-03-28 17:45:48 +00:00
|
|
|
// to position themselves over the Vector interface. This forms another stacking context for
|
|
|
|
// elements placed inside this element
|
|
|
|
position: relative;
|
2023-03-14 08:37:58 +00:00
|
|
|
z-index: @z-index-base;
|
2024-01-09 14:46:11 +00:00
|
|
|
margin: 0 auto;
|
2023-04-18 21:57:55 +00:00
|
|
|
// Use non-zero padding to disable margin collapse.
|
|
|
|
// Be careful not to use overflow-y: scroll here (see T270146 and T271868)
|
|
|
|
padding-top: 0.05px;
|
2024-01-09 14:46:11 +00:00
|
|
|
padding-left: @padding-horizontal-page-container;
|
|
|
|
padding-right: @padding-horizontal-page-container;
|
|
|
|
background-color: @background-color-page-container;
|
2021-01-29 01:53:27 +00:00
|
|
|
}
|
|
|
|
|
2024-01-09 14:46:11 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-desktop ) {
|
|
|
|
.mw-page-container,
|
|
|
|
.vector-header-container .mw-header,
|
|
|
|
.vector-header-container .vector-sticky-header {
|
|
|
|
padding-left: @padding-horizontal-page-container-desktop;
|
|
|
|
padding-right: @padding-horizontal-page-container-desktop;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ( min-width: @min-width-breakpoint-desktop-wide ) {
|
|
|
|
.mw-page-container,
|
|
|
|
.vector-header-container .mw-header,
|
|
|
|
.vector-header-container .vector-sticky-header {
|
|
|
|
padding-left: @padding-horizontal-page-container-desktop-wide;
|
|
|
|
padding-right: @padding-horizontal-page-container-desktop-wide;
|
2023-03-31 19:25:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-09 14:46:11 +00:00
|
|
|
.vector-header-container {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vector-header-container .mw-header,
|
|
|
|
.vector-header-container .vector-sticky-header {
|
|
|
|
width: 100%;
|
|
|
|
// A min-height is set to account for projects where no icon is set.
|
|
|
|
min-height: @height-header;
|
|
|
|
background-color: @background-color-page-container;
|
|
|
|
.mixin-vector-page-container-sizing();
|
|
|
|
}
|
|
|
|
|
2024-02-08 16:49:49 +00:00
|
|
|
.vector-feature-limited-width-clientpref-0 .mw-page-container,
|
|
|
|
.vector-feature-limited-width-clientpref-0 .vector-sticky-header,
|
|
|
|
.vector-feature-limited-width-clientpref-0 .mw-header {
|
2023-04-18 21:57:55 +00:00
|
|
|
max-width: none;
|
2023-03-31 19:25:09 +00:00
|
|
|
}
|
|
|
|
|
2023-04-18 21:57:55 +00:00
|
|
|
.skin--responsive .mw-page-container {
|
|
|
|
min-width: auto;
|
2023-03-31 19:25:09 +00:00
|
|
|
}
|
2024-03-07 16:12:09 +00:00
|
|
|
|
|
|
|
// Address issues with INP: T358380
|
|
|
|
// This can be removed if Vector 2022 ever becomes responsive.
|
|
|
|
// More information:
|
|
|
|
// https://developer.chrome.com/blog/300ms-tap-delay-gone-away?hl=en
|
|
|
|
html {
|
|
|
|
touch-action: manipulation;
|
|
|
|
}
|