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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
@import '../../common/variables.less';
|
|
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
|
2022-05-12 16:05:26 +00:00
|
|
|
@selector-workspace-container-sidebar-open: ~'.mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container';
|
|
|
|
@selector-workspace-container-sidebar-closed: ~'.mw-checkbox-hack-checkbox:not( :checked ) ~ .mw-workspace-container';
|
2022-06-13 21:07:36 +00:00
|
|
|
@selector-sidebar-container-sidebar-closed: ~'.mw-checkbox-hack-checkbox:not( :checked ) ~ .vector-sidebar-container';
|
|
|
|
@selector-sidebar-no-toc-sidebar-closed: ~'.mw-checkbox-hack-checkbox:not( :checked ) ~ .vector-sidebar-container-no-toc';
|
2022-05-12 16:05:26 +00:00
|
|
|
|
2021-09-09 21:03:15 +00:00
|
|
|
// Sidebar
|
2021-02-02 10:04:37 +00:00
|
|
|
@width-grid-column-one: 11em;
|
|
|
|
|
|
|
|
// Adjust the left position of the sidebar to align it with the sidebar menu button,
|
|
|
|
// in the header, while ensuring the background gradient still extends to the edge of the screen.
|
|
|
|
// note: the 1px comes from the transparent border of the sidebar button.
|
|
|
|
@padding-left-sidebar:
|
|
|
|
@margin-horizontal-sidebar-button-icon +
|
|
|
|
unit( @border-width-base / @font-size-browser, em );
|
|
|
|
|
|
|
|
// Layout containers
|
|
|
|
|
|
|
|
// Page container
|
|
|
|
|
|
|
|
@min-width-page-container--padded: @max-width-page-container + ( 2 * @padding-horizontal-page-container ); // 106.875em
|
|
|
|
|
2022-05-30 03:46:57 +00:00
|
|
|
// Content container
|
2021-02-02 10:04:37 +00:00
|
|
|
|
2022-04-08 22:33:59 +00:00
|
|
|
@max-width-workspace-container: unit( 1514px / @font-size-browser, em ); // 99.75em @ 16
|
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.
|
|
|
|
@padding-content: @padding-top-content @padding-horizontal-content 1.5em;
|
|
|
|
// We want ~60px of space between the end of the sidebar and the start of the
|
|
|
|
// content container for aesthetic reasons. The sidebar is already displaced
|
|
|
|
// -30px so we simply add 30px of space to the width of the sidebar.
|
|
|
|
@margin-start-content: @width-grid-column-one + unit( 8px / @font-size-browser, em ); // 11.5em @ 16
|
|
|
|
|
|
|
|
// Tabs
|
|
|
|
|
|
|
|
@height-tabs: 2.5em; // Keep in sync with .vector-menu-tabs height.
|
|
|
|
|
|
|
|
// Breakpoints
|
|
|
|
|
|
|
|
// This determines the maximum width breakpoint at which
|
|
|
|
// the content will have a fixed start margin applied to it when the sidebar
|
|
|
|
// is open. The content can shift its position when the sidebar is open/closed
|
|
|
|
// at or below this breakpoint and will maintain its position above this breakpoint.
|
|
|
|
@max-width-margin-start-content:
|
|
|
|
(2 * @margin-start-content ) +
|
|
|
|
( 2 * @padding-horizontal-page-container ) +
|
|
|
|
@max-width-content-container;
|
|
|
|
// 23em + 3.75em + 60em = 86.75em @ 16
|
|
|
|
|
|
|
|
// Defines the minimum viewport width, at which point the layout will not get any
|
|
|
|
// smaller and will start horizontal scrolling instead.
|
|
|
|
@min-width-supported:
|
|
|
|
unit( 500px / @font-size-browser, em ) -
|
2022-04-28 18:21:52 +00:00
|
|
|
( 2 * @padding-horizontal-page-container-wide );
|
2021-02-02 10:04:37 +00:00
|
|
|
// 31.25em - 3.75em = 27.5em @ 16
|
|
|
|
@border-color-sidebar: @background-color-secondary--modern;
|
|
|
|
@background-color-secondary--modern: #f8f9fa;
|
|
|
|
@background-color-page-container: @background-color-base;
|
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;
|
|
|
|
// Vertical scrollbar always visible.
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-body,
|
|
|
|
.parsoid-body {
|
|
|
|
direction: ltr;
|
2022-05-12 16:29:56 +00:00
|
|
|
|
|
|
|
.vector-layout-legacy & {
|
|
|
|
padding: @padding-content;
|
|
|
|
}
|
2020-08-10 21:40:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-body {
|
2022-04-28 21:31:59 +00:00
|
|
|
border-top: @border-width-base @border-style-base transparent;
|
2020-08-10 21:40:06 +00:00
|
|
|
/* Merge the border with tabs' one (in their background image) */
|
|
|
|
margin-top: -@border-width-base;
|
2020-10-30 16:57:38 +00:00
|
|
|
padding: @padding-content;
|
2020-08-10 21:40:06 +00:00
|
|
|
|
|
|
|
.firstHeading {
|
|
|
|
/* Change the default from mediawiki.skinning CSS to let indicators float into heading area */
|
|
|
|
overflow: visible;
|
2022-06-06 21:39:57 +00:00
|
|
|
margin-bottom: 0;
|
2020-08-10 21:40:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-06 21:39:57 +00:00
|
|
|
.mw-body-subheader {
|
2022-06-23 23:32:00 +00:00
|
|
|
// avoid margin collapsing by setting a height and margin-top as this will sometimes
|
|
|
|
// be empty if no indicators.
|
|
|
|
// The total of margin-top and height should be 16px. Since we're using relative units 1em=14px
|
|
|
|
// We need to set both height and margin so that the margin is not ignored.
|
2022-06-06 21:39:57 +00:00
|
|
|
margin-top: 1em;
|
2022-06-23 23:32:00 +00:00
|
|
|
height: 2px;
|
2022-06-06 21:39:57 +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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Main column */
|
|
|
|
.mw-body,
|
|
|
|
#mw-data-after-content,
|
|
|
|
#left-navigation,
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
2021-01-22 18:24:34 +00:00
|
|
|
.mw-body-header {
|
|
|
|
.mixin-clearfix();
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Navigation Containers */
|
2022-05-12 16:29:56 +00:00
|
|
|
.vector-layout-legacy .mw-article-toolbar-container {
|
2020-09-08 23:20:58 +00:00
|
|
|
// Clear the floats on #left-navigation and #right-navigation.
|
|
|
|
.mixin-clearfix();
|
2020-10-30 16:57:38 +00:00
|
|
|
// We want to keep the max-width of the article-toolbar-container the
|
|
|
|
// same max-width as the article page's content container in order to
|
|
|
|
// prevent it from moving when going from an article page to a
|
|
|
|
// history/special page.
|
|
|
|
max-width: @max-width-content-container;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2022-04-28 21:53:41 +00:00
|
|
|
|
|
|
|
.skin-vector-disable-max-width & {
|
|
|
|
max-width: none;
|
|
|
|
}
|
2020-09-08 23:20:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#left-navigation {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
2020-08-10 21:40:06 +00:00
|
|
|
#right-navigation {
|
|
|
|
float: right;
|
2021-03-24 14:01:04 +00:00
|
|
|
|
|
|
|
// Any dropdowns inside the right navigation in modern Vector (e.g. "more" menu).
|
|
|
|
// should be right-aligned to prevent horizontal scrolling.
|
|
|
|
.vector-menu-content {
|
|
|
|
left: auto;
|
|
|
|
right: -@border-width-base;
|
|
|
|
}
|
2020-08-10 21:40:06 +00:00
|
|
|
}
|
|
|
|
|
2022-05-12 16:29:56 +00:00
|
|
|
.vector-layout-legacy #mw-panel {
|
2020-09-08 23:20:58 +00:00
|
|
|
position: absolute;
|
2022-02-21 23:21:24 +00:00
|
|
|
top: 0;
|
2020-10-30 16:57:38 +00:00
|
|
|
// Sidebar is displaced from the workspace container so that the
|
|
|
|
// sidebar is flush with the edge of the screen at small widths.
|
|
|
|
left: -@padding-horizontal-page-container;
|
2020-08-10 21:40:06 +00:00
|
|
|
z-index: @z-index-sidebar;
|
2022-04-28 18:21:52 +00:00
|
|
|
|
|
|
|
@media ( min-width: @width-breakpoint-desktop-wide ) {
|
|
|
|
left: -@padding-horizontal-page-container-wide;
|
|
|
|
}
|
2020-10-30 16:57:38 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 23:21:24 +00:00
|
|
|
// Update positioning when TOC is enabled
|
2022-05-12 16:29:56 +00:00
|
|
|
.vector-toc-enabled .vector-layout-legacy #mw-panel {
|
2022-02-21 23:21:24 +00:00
|
|
|
position: static;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
2022-06-10 17:58:21 +00:00
|
|
|
// Remove float at lower resolutions
|
|
|
|
@media ( max-width: @width-breakpoint-tablet ) {
|
|
|
|
.vector-toc-enabled .vector-layout-legacy #mw-panel {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-21 23:21:24 +00:00
|
|
|
.mw-table-of-contents-container {
|
2022-05-16 13:04:28 +00:00
|
|
|
// stylelint-disable-next-line plugin/no-unsupported-browser-features
|
2022-02-21 23:21:24 +00:00
|
|
|
position: sticky;
|
2022-06-24 19:23:49 +00:00
|
|
|
float: left;
|
2022-05-05 20:54:20 +00:00
|
|
|
// Defaults to -2em to account for the TOC's top margin
|
|
|
|
// ensuring the TOC is 1.5em (24px) from the top of the viewport
|
|
|
|
// unless .mw-sticky-header-element overrides it.
|
2022-06-24 19:23:49 +00:00
|
|
|
top: ~'calc( 1.5em - @{top-margin-sidebar-toc_title_inline} )';
|
2022-05-12 16:29:56 +00:00
|
|
|
|
|
|
|
.vector-layout-legacy & {
|
|
|
|
clear: both;
|
|
|
|
}
|
2022-02-21 23:21:24 +00:00
|
|
|
}
|
|
|
|
|
2020-10-30 16:57:38 +00:00
|
|
|
.parsoid-body {
|
|
|
|
padding: @padding-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
#p-namespaces {
|
|
|
|
background-image: none;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-footer {
|
|
|
|
border-top: @border-base;
|
2021-02-02 10:04:37 +00:00
|
|
|
padding: 0.75em;
|
2020-10-30 16:57:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Container logic.
|
|
|
|
.mw-page-container {
|
2022-03-16 07:59:07 +00:00
|
|
|
// 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;
|
2020-10-30 16:57:38 +00:00
|
|
|
max-width: @max-width-page-container;
|
|
|
|
// 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%;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2021-01-05 18:01:45 +00:00
|
|
|
// Use non-zero padding to disable margin collapse.
|
|
|
|
// Be careful not to use overflow-y: scroll here (see T270146 and T271868)
|
|
|
|
padding: 0.05px ( @padding-horizontal-page-container / 2 );
|
2020-10-30 16:57:38 +00:00
|
|
|
background-color: @background-color-page-container;
|
2021-06-02 22:57:43 +00:00
|
|
|
// Set a min-width to make explicit we do not support anything below this threshold.
|
|
|
|
// For devices too small, they should be more useable with horizontal scrolling.
|
|
|
|
// e.g. Portrait on an iPad
|
|
|
|
min-width: @min-width-supported;
|
2022-04-28 18:21:52 +00:00
|
|
|
|
|
|
|
@media ( min-width: @width-breakpoint-desktop ) {
|
|
|
|
padding-left: @padding-horizontal-page-container;
|
|
|
|
padding-right: @padding-horizontal-page-container;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ( min-width: @width-breakpoint-desktop-wide ) {
|
|
|
|
padding-left: @padding-horizontal-page-container-wide;
|
|
|
|
padding-right: @padding-horizontal-page-container-wide;
|
|
|
|
}
|
2020-10-30 16:57:38 +00:00
|
|
|
}
|
|
|
|
|
2021-01-29 01:53:27 +00:00
|
|
|
.skin--responsive .mw-page-container {
|
|
|
|
min-width: auto;
|
|
|
|
}
|
|
|
|
|
2020-10-30 16:57:38 +00:00
|
|
|
// Used as a container for absolutely positioned elements.
|
|
|
|
.mw-page-container-inner {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-workspace-container {
|
|
|
|
// The sidebar is absolutely positioned relative to the
|
|
|
|
// mw-workspace-container.
|
|
|
|
position: relative;
|
2020-10-15 19:26:51 +00:00
|
|
|
|
2022-05-12 16:29:56 +00:00
|
|
|
.vector-layout-legacy & {
|
|
|
|
max-width: @max-width-workspace-container;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
2020-10-15 19:26:51 +00:00
|
|
|
&.mw-footer-container {
|
|
|
|
// T264679: There are elements (e.g. discussion tool popovers) in the main
|
|
|
|
// content container that we want to appear on top of the footer. We set the
|
|
|
|
// footer container to have static positioning instead of relative
|
|
|
|
// positioning (applied by .mw-workspace-container) to enable this.
|
|
|
|
position: static;
|
|
|
|
}
|
2020-10-30 16:57:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-content-container {
|
2022-05-12 16:29:56 +00:00
|
|
|
.vector-layout-legacy & {
|
|
|
|
max-width: @max-width-content-container;
|
|
|
|
display: flow-root;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
2020-10-01 22:55:52 +00:00
|
|
|
|
|
|
|
// For container logic specific to special pages and history pages.
|
2021-01-06 21:50:19 +00:00
|
|
|
.skin-vector-disable-max-width & {
|
2020-10-01 22:55:52 +00:00
|
|
|
// Allow the max-width of content on history/special pages to be wider than
|
|
|
|
// the max-width of content on article pages.
|
2021-12-07 18:47:54 +00:00
|
|
|
// Note, we don't disable the max-width on .mw-article-toolbar-container intentionally
|
|
|
|
// to support easier navigation between tabs.
|
|
|
|
// See T293441 for further information on that.
|
2020-10-01 22:55:52 +00:00
|
|
|
max-width: none;
|
|
|
|
}
|
2020-10-30 16:57:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-footer-container {
|
|
|
|
padding-top: 50px;
|
|
|
|
padding-bottom: 82px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// We want it to appear like the sidebar is going into/coming out of
|
|
|
|
// `.mw-page-container`, but we can't use `overflow: hidden` on
|
|
|
|
// `.mw-page-container` because that will cut off the sidebar. Therefore, we
|
|
|
|
// calculate the maximum distance from the start of `mw-page-container` to the
|
|
|
|
// start of the sidebar.
|
|
|
|
#mw-sidebar-checkbox:not( :checked ) ~ .mw-workspace-container .mw-sidebar {
|
2022-05-13 20:34:51 +00:00
|
|
|
transform: translateX( -( @max-width-page-container - @max-width-workspace-container ) / 2 );
|
2020-10-30 16:57:38 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 23:21:24 +00:00
|
|
|
// Hide sidebar entirely when the checkbox is disabled and the TOC is enabled
|
|
|
|
.vector-toc-enabled #mw-sidebar-checkbox:not( :checked ) ~ .mw-workspace-container .mw-sidebar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2020-10-30 16:57:38 +00:00
|
|
|
// Responsive overrides.
|
|
|
|
@media ( min-width: @min-width-page-container--padded ) {
|
|
|
|
.mw-page-container {
|
|
|
|
border-left: 1px solid @border-color-sidebar;
|
|
|
|
border-right: 1px solid @border-color-sidebar;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-01 22:55:52 +00:00
|
|
|
// Adjusts the content when sidebar is open regardless of the viewport width.
|
2022-05-26 16:11:31 +00:00
|
|
|
/* FIXME: The following selector can be removed when the option to disable `VectorTitleAboveTabs` is removed. */
|
2022-05-12 16:29:56 +00:00
|
|
|
.vector-layout-legacy @{selector-workspace-container-sidebar-open} #mw-navigation .mw-article-toolbar-container,
|
|
|
|
.vector-layout-legacy @{selector-workspace-container-sidebar-open} .mw-content-container {
|
2020-10-01 22:55:52 +00:00
|
|
|
// For container logic specific to special pages and history pages.
|
2021-01-06 21:50:19 +00:00
|
|
|
.skin-vector-disable-max-width & {
|
2020-10-01 22:55:52 +00:00
|
|
|
margin-left: @margin-start-content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-30 16:57:38 +00:00
|
|
|
@media ( max-width: @max-width-margin-start-content ) {
|
|
|
|
// Adjusts the content and mw-article-toolbar-container.
|
2022-05-12 16:29:56 +00:00
|
|
|
.vector-layout-legacy @{selector-workspace-container-sidebar-open} .mw-content-container,
|
2022-05-26 16:11:31 +00:00
|
|
|
/* FIXME: The following selector can be removed when the option to disable `VectorTitleAboveTabs` is removed. */
|
2022-05-12 16:29:56 +00:00
|
|
|
.vector-layout-legacy @{selector-workspace-container-sidebar-open} #mw-navigation .mw-article-toolbar-container {
|
2020-10-30 16:57:38 +00:00
|
|
|
margin-left: @margin-start-content;
|
|
|
|
}
|
|
|
|
|
2022-01-11 19:52:26 +00:00
|
|
|
// Increase margin when TOC is enabled
|
2022-05-12 16:29:56 +00:00
|
|
|
.vector-toc-enabled .vector-layout-legacy @{selector-workspace-container-sidebar-open} .mw-content-container,
|
2022-05-26 16:11:31 +00:00
|
|
|
/* FIXME: The following selector can be removed when the option to disable `VectorTitleAboveTabs` is removed. */
|
2022-05-12 16:29:56 +00:00
|
|
|
.vector-toc-enabled .vector-layout-legacy @{selector-workspace-container-sidebar-open} #mw-navigation .mw-article-toolbar-container {
|
2022-01-11 19:52:26 +00:00
|
|
|
margin-left: @margin-toc-start-content;
|
|
|
|
}
|
|
|
|
|
2020-10-30 16:57:38 +00:00
|
|
|
// Specificity needed to disable the default animations at lower resolutions.
|
|
|
|
.vector-animations-ready .mw-sidebar {
|
|
|
|
// Remove sidebar transition at smaller widths.
|
2022-05-13 19:41:15 +00:00
|
|
|
transition: none;
|
2020-10-30 16:57:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-19 20:08:53 +00:00
|
|
|
.skin-vector-toc-experiment-control .mw-table-of-contents-container,
|
2022-05-05 20:01:51 +00:00
|
|
|
.skin-vector-toc-experiment-unsampled .mw-table-of-contents-container {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Cannot use display: none on legacy TOC because it needs to be accessible
|
|
|
|
// to scrollObserver for the TOC A/B test (T303297)
|
|
|
|
// Instead we hide the contents of the legacy TOC and reset it's styles
|
|
|
|
// See I3f247730fa1c399e6d2e4d866677703fc24e8c58
|
2022-04-19 20:08:53 +00:00
|
|
|
.skin-vector-toc-experiment-treatment #toc {
|
2022-05-05 20:01:51 +00:00
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.skin-vector-toc-experiment-treatment #toc > * {
|
2022-04-19 20:08:53 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-01-11 19:52:26 +00:00
|
|
|
// Update article page's content container when
|
2022-04-19 20:08:53 +00:00
|
|
|
// TOC is visible and when TOC is enabled and the sidebar is open.
|
|
|
|
//
|
|
|
|
// T306366: When the TOC AB test is enabled, both the old and new TOC are in the
|
|
|
|
// HTML but only one is actually visible. Prevent the left margin from undesirably
|
|
|
|
// applying if bucketed into the control or unsampled groups which won't show
|
|
|
|
// the new TOC.
|
2022-05-12 16:29:56 +00:00
|
|
|
.skin-vector-disable-max-width .vector-toc-enabled .vector-layout-legacy @{selector-workspace-container-sidebar-open} .mw-content-container,
|
|
|
|
body:not( .skin-vector-toc-experiment-control ):not( .skin-vector-toc-experiment-unsampled ) .vector-layout-legacy .vector-toc-visible .mw-workspace-container .mw-content-container,
|
2022-05-26 16:11:31 +00:00
|
|
|
/* FIXME: The following selector can be removed when the option to disable `VectorTitleAboveTabs` is removed. */
|
2022-05-12 16:29:56 +00:00
|
|
|
body:not( .skin-vector-toc-experiment-control ):not( .skin-vector-toc-experiment-unsampled ) .vector-layout-legacy .vector-toc-visible #mw-navigation .mw-article-toolbar-container,
|
|
|
|
.vector-toc-enabled .vector-layout-legacy @{selector-workspace-container-sidebar-open} .mw-content-container,
|
2022-05-26 16:11:31 +00:00
|
|
|
/* FIXME: The following selector can be removed when the option to disable `VectorTitleAboveTabs` is removed. */
|
2022-05-12 16:29:56 +00:00
|
|
|
.vector-toc-enabled .vector-layout-legacy @{selector-workspace-container-sidebar-open} #mw-navigation .mw-article-toolbar-container {
|
2022-04-26 17:11:33 +00:00
|
|
|
@media ( min-width: @width-breakpoint-desktop ) {
|
2022-03-17 22:58:44 +00:00
|
|
|
margin-left: @margin-toc-start-content;
|
|
|
|
}
|
2022-01-11 19:52:26 +00:00
|
|
|
|
2022-04-28 18:21:52 +00:00
|
|
|
@media ( min-width: @width-breakpoint-desktop-wide ) {
|
|
|
|
margin-left: @margin-toc-start-content-wide;
|
2020-10-01 22:55:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Makes the sidebar full screen at lower resolutions.
|
|
|
|
*/
|
|
|
|
@media ( max-width: @width-breakpoint-tablet ) {
|
2022-05-12 16:05:26 +00:00
|
|
|
@{selector-workspace-container-sidebar-open} {
|
2020-10-01 22:55:52 +00:00
|
|
|
#mw-panel {
|
|
|
|
width: 100%;
|
|
|
|
position: relative;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// !important as we always want to disable the margin-left on these elements
|
|
|
|
// Using !important is cleaner than having to rely on specificity involved :checked elements
|
|
|
|
.mw-content-container,
|
2022-05-26 16:11:31 +00:00
|
|
|
/* FIXME: The following selector can be removed when the option to disable `VectorTitleAboveTabs` is removed. */
|
|
|
|
#mw-navigation .mw-article-toolbar-container {
|
2020-10-01 22:55:52 +00:00
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
margin-left: 0 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-06-02 22:09:28 +00:00
|
|
|
|
|
|
|
@import 'grid.less';
|