mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 09:30:17 +00:00
91077bcd2c
Moves the CSS rule that hides the #siteSub element by default into /resources/common/typography.less in order to prevent it from being feature flagged (and thereby overriding the specificity of on-wiki edits) during the Zebra update. Bug: T335625 Change-Id: If41fadc6a369ab371f6c1e75e9cf3022a01574a0
137 lines
2.9 KiB
Plaintext
137 lines
2.9 KiB
Plaintext
/**
|
|
* 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.
|
|
*/
|
|
|
|
@import '../../common/variables.less';
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
// Content container
|
|
|
|
// Note this uses variables defined in mediawiki.skin.variables so that VisualEditor can read them
|
|
// see T259331.
|
|
@padding-content: @padding-top-content 0 1.5em;
|
|
|
|
&html {
|
|
scroll-padding-top: @scroll-padding-top;
|
|
}
|
|
|
|
body {
|
|
background-color: @background-color-secondary--modern;
|
|
color: @color-base;
|
|
// Vertical scrollbar always visible.
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
.mw-body,
|
|
.parsoid-body {
|
|
direction: ltr;
|
|
}
|
|
|
|
.mw-body {
|
|
// T315261 Remove horizontal padding, rely on .mw-page-container padding instead
|
|
padding: @padding-content;
|
|
|
|
.firstHeading {
|
|
word-wrap: break-word;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.mw-header {
|
|
// allow z-index to apply so search results overlay article
|
|
position: relative;
|
|
z-index: @z-index-header;
|
|
}
|
|
|
|
#mw-content-text {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
/* Main column */
|
|
.mw-body,
|
|
#mw-data-after-content,
|
|
.mw-footer {
|
|
margin-left: 0;
|
|
}
|
|
|
|
/* Content */
|
|
.mw-indicators {
|
|
z-index: @z-index-indicators;
|
|
}
|
|
|
|
.vector-page-titlebar {
|
|
.mixin-clearfix();
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.mw-body .mw-portlet-lang {
|
|
float: right;
|
|
}
|
|
|
|
.vector-body {
|
|
position: relative;
|
|
z-index: @z-index-base;
|
|
}
|
|
|
|
#siteSub {
|
|
margin-top: 8px; // T311564
|
|
}
|
|
|
|
// Styles only applied to non-empty #contentSub to avoid extra margins when both #contentSub and #contentSub2
|
|
// are rendered.
|
|
#contentSub:not( :empty ),
|
|
#contentSub2 {
|
|
font-size: 84%;
|
|
line-height: 1.2em;
|
|
color: @color-subtle;
|
|
width: auto;
|
|
// Visually separate #contentSub and #contentSub2 (T315639)
|
|
margin: 8px 0 0;
|
|
}
|
|
|
|
.parsoid-body {
|
|
padding: @padding-content;
|
|
}
|
|
|
|
// Container logic.
|
|
.mw-page-container {
|
|
// Setting position and z-index is important as it allows overlays appended to the body tag
|
|
// to position themselves over the Vector interface. This forms another stacking context for
|
|
// elements placed inside this element
|
|
position: relative;
|
|
z-index: 0;
|
|
// Fill the viewport even if the content height is small. This also helps
|
|
// mitigate a long sidebar overflowing the page container (T257518).
|
|
min-height: 100%;
|
|
// 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;
|
|
.mixin-page-container();
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
|
|
&.vector-feature-limited-width-disabled .mw-page-container {
|
|
max-width: none;
|
|
}
|
|
|
|
.skin--responsive .mw-page-container {
|
|
min-width: auto;
|
|
}
|