mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-29 18:05:19 +00:00
7c172531c2
Visual changes: - Footer text and border is aligned with header icons - Main page content has no padding, slightly wider on certain pages/viewports Bug: T317573 Change-Id: Id0c4343b8bc4c16006c0b9abd914213ca2f307ca
94 lines
2.2 KiB
Plaintext
94 lines
2.2 KiB
Plaintext
@import '../../common/variables.less';
|
|
@import '../../common/mixins.less';
|
|
@import 'mediawiki.mixins.less';
|
|
@import '../layouts/screen.less';
|
|
@import './checkboxHack.less';
|
|
|
|
// Match styles between TOC and fade element to ensure the fade covers the correct area
|
|
// This is expressed in pixels to support different font sizes since our layout is currently
|
|
// expressed in pixels. See T313817.
|
|
.sidebar-toc:after,
|
|
.mw-sidebar,
|
|
.sidebar-toc {
|
|
// T305069 Layout adjustments of sidebar elements
|
|
// Align the left edge of main menu with the main menu button.
|
|
width: @width-sidebar-px;
|
|
.mixin-vector-flush-left-margin-left();
|
|
|
|
// Align the left edge of main menu with the main menu button icon.
|
|
@media ( min-width: @min-width-desktop-wide ) {
|
|
width: @width-sidebar-px-wide;
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
.mw-sidebar {
|
|
box-sizing: border-box;
|
|
// Temporary magic number, will be calculated after TOC specs are finalized
|
|
padding: 12px 19px 12px 9px;
|
|
background-image: none;
|
|
background-color: @background-color-secondary--modern;
|
|
|
|
@media ( max-width: @max-width-tablet ) {
|
|
// Makes the sidebar full screen at lower resolutions.
|
|
width: 100%;
|
|
}
|
|
|
|
// Hide sidebar entirely when the checkbox is disabled
|
|
@{selector-main-menu-closed} ~ .vector-sidebar-container & {
|
|
display: none;
|
|
}
|
|
|
|
// Hide #p-navigation label
|
|
#p-navigation .vector-menu-heading {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.mw-sidebar-action {
|
|
// Styles for SidebarAction template.
|
|
.mw-sidebar-action-item {
|
|
// Align with the portal heading/links
|
|
// `.portal` + `.portal .body`
|
|
margin-top: 4px;
|
|
margin-bottom: 4px;
|
|
|
|
.mw-sidebar-action-heading {
|
|
margin-bottom: 0.75em;
|
|
}
|
|
|
|
.mw-sidebar-action-content {
|
|
> * {
|
|
font-size: @font-size-portal-list-item;
|
|
}
|
|
|
|
> a {
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
// T295555 style overrides for temporary language switch alert (can be removed later ).
|
|
.vector-language-sidebar-alert {
|
|
padding: 0.75em;
|
|
}
|
|
}
|
|
}
|
|
|
|
#mw-sidebar-button {
|
|
&:before {
|
|
/* @embed */
|
|
background-image: url( images/chevronHorizontal-ltr.svg );
|
|
|
|
@{selector-main-menu-closed} ~ .mw-header & {
|
|
/* @embed */
|
|
background-image: url( images/menu.svg );
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
&:before {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|