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.
|
|
|
|
*/
|
|
|
|
|
2023-10-02 19:57:23 +00:00
|
|
|
@import '../variables.less';
|
2021-02-02 10:04:37 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
|
2022-05-30 03:46:57 +00:00
|
|
|
// Content container
|
2021-02-02 10:04:37 +00:00
|
|
|
|
|
|
|
// Note this uses variables defined in mediawiki.skin.variables so that VisualEditor can read them
|
|
|
|
// see T259331.
|
2022-09-15 18:53:18 +00:00
|
|
|
@padding-content: @padding-top-content 0 1.5em;
|
2021-02-02 10:04:37 +00:00
|
|
|
|
2023-04-19 20:57:36 +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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-body {
|
2022-09-15 18:53:18 +00:00
|
|
|
// T315261 Remove horizontal padding, rely on .mw-page-container padding instead
|
2020-10-30 16:57:38 +00:00
|
|
|
padding: @padding-content;
|
2020-08-10 21:40:06 +00:00
|
|
|
|
|
|
|
.firstHeading {
|
2022-12-20 03:29:30 +00:00
|
|
|
word-wrap: break-word;
|
2022-06-06 21:39:57 +00:00
|
|
|
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
|
|
|
/* Main column */
|
|
|
|
.mw-body,
|
|
|
|
#mw-data-after-content,
|
|
|
|
.mw-footer {
|
2020-10-30 16:57:38 +00:00
|
|
|
margin-left: 0;
|
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();
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
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 {
|
2023-10-18 15:58:49 +00:00
|
|
|
font-size: unit( @font-size-small, rem );
|
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
|
|
|
}
|
|
|
|
|
2020-10-30 16:57:38 +00:00
|
|
|
.parsoid-body {
|
|
|
|
padding: @padding-content;
|
|
|
|
}
|
|
|
|
|
2023-03-28 17:45:48 +00:00
|
|
|
// Container logic.
|
|
|
|
.mw-page-container {
|
2023-03-14 08:37:58 +00:00
|
|
|
// Create stacking context.
|
|
|
|
// Setting position and z-index 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;
|
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;
|
|
|
|
padding-bottom: 0.05px;
|
2023-03-28 17:45:48 +00:00
|
|
|
.mixin-page-container();
|
2021-01-29 01:53:27 +00:00
|
|
|
}
|
|
|
|
|
2023-03-31 19:25:09 +00:00
|
|
|
.vector-header-container {
|
|
|
|
.mw-header,
|
|
|
|
.vector-sticky-header {
|
|
|
|
width: 100%;
|
|
|
|
// A min-height is set to account for projects where no icon is set.
|
|
|
|
min-height: @height-header;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-08 18:04:11 +00:00
|
|
|
&.vector-feature-limited-width-clientpref-0 .mw-page-container {
|
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
|
|
|
}
|