2021-02-02 10:04:37 +00:00
|
|
|
@import '../../common/variables.less';
|
2020-03-30 20:07:35 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
2021-02-02 10:04:37 +00:00
|
|
|
@import '../layouts/screen.less';
|
|
|
|
@import './checkboxHack.less';
|
2020-05-26 17:38:24 +00:00
|
|
|
|
2022-09-02 20:21:29 +00:00
|
|
|
// 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,
|
2022-07-01 20:16:36 +00:00
|
|
|
.mw-sidebar,
|
2022-09-02 20:21:29 +00:00
|
|
|
.sidebar-toc {
|
|
|
|
// T305069 Layout adjustments of sidebar elements
|
|
|
|
// Align the left edge of main menu with the main menu button.
|
2022-08-04 06:26:18 +00:00
|
|
|
width: @width-sidebar-px;
|
2022-07-01 20:16:36 +00:00
|
|
|
margin-left: 0;
|
|
|
|
|
2022-09-02 20:21:29 +00:00
|
|
|
// Align the left edge of main menu with the main menu button icon.
|
2022-07-01 20:16:36 +00:00
|
|
|
@media ( min-width: @min-width-desktop-wide ) {
|
2022-08-04 06:26:18 +00:00
|
|
|
width: @width-sidebar-px-wide;
|
2022-09-02 20:21:29 +00:00
|
|
|
margin-left: @icon-padding-md;
|
2022-04-08 22:33:59 +00:00
|
|
|
}
|
2022-07-01 20:16:36 +00:00
|
|
|
}
|
2022-04-08 22:33:59 +00:00
|
|
|
|
2022-07-20 01:18:07 +00:00
|
|
|
.sidebar-toc,
|
|
|
|
.sidebar-toc:after {
|
2022-09-02 20:21:29 +00:00
|
|
|
// T312156 Update TOC spacing after removing background color
|
|
|
|
// Align the left edge of the TOC text with the main menu button icon.
|
|
|
|
margin-left: -@icon-padding-md;
|
2022-07-20 01:18:07 +00:00
|
|
|
|
|
|
|
@media ( min-width: @min-width-desktop-wide ) {
|
2022-09-02 20:21:29 +00:00
|
|
|
// Align the TOC subsection toggle button icon with the main menu button icon.
|
2022-07-20 01:18:07 +00:00
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-04 20:05:36 +00:00
|
|
|
.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
|
2022-08-17 18:57:38 +00:00
|
|
|
@{selector-main-menu-closed} ~ .vector-sidebar-container & {
|
2022-08-04 20:05:36 +00:00
|
|
|
display: none;
|
2022-07-01 20:16:36 +00:00
|
|
|
}
|
2022-06-30 22:37:08 +00:00
|
|
|
|
2022-08-04 20:05:36 +00:00
|
|
|
// Hide #p-navigation label
|
|
|
|
#p-navigation .vector-menu-heading {
|
|
|
|
display: none;
|
2022-06-30 22:37:08 +00:00
|
|
|
}
|
2022-06-29 19:28:06 +00:00
|
|
|
}
|
|
|
|
|
2020-05-26 17:38:24 +00:00
|
|
|
.mw-sidebar-action {
|
2021-12-07 20:28:58 +00:00
|
|
|
// Styles for SidebarAction template.
|
|
|
|
.mw-sidebar-action-item {
|
2022-08-12 16:11:41 +00:00
|
|
|
// Align with the portal heading/links
|
|
|
|
// `.portal` + `.portal .body`
|
|
|
|
margin-top: 4px;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
|
|
|
.mw-sidebar-action-heading {
|
|
|
|
margin-bottom: 0.75em;
|
2021-12-07 20:28:58 +00:00
|
|
|
}
|
|
|
|
|
2021-12-10 16:38:51 +00:00
|
|
|
.mw-sidebar-action-content {
|
|
|
|
> * {
|
|
|
|
font-size: @font-size-portal-list-item;
|
|
|
|
}
|
|
|
|
|
|
|
|
> a {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2021-12-07 20:28:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// T295555 style overrides for temporary language switch alert (can be removed later ).
|
2022-01-27 22:25:30 +00:00
|
|
|
.vector-language-sidebar-alert {
|
2021-12-07 20:28:58 +00:00
|
|
|
padding: 0.75em;
|
|
|
|
}
|
|
|
|
}
|
2020-05-26 17:38:24 +00:00
|
|
|
}
|
2020-03-30 20:07:35 +00:00
|
|
|
|
2020-06-23 02:43:28 +00:00
|
|
|
#mw-sidebar-button {
|
|
|
|
&:before {
|
2020-08-13 01:19:51 +00:00
|
|
|
/* @embed */
|
2020-08-18 20:43:39 +00:00
|
|
|
background-image: url( images/chevronHorizontal-ltr.svg );
|
2020-08-13 01:19:51 +00:00
|
|
|
|
2022-08-17 18:57:38 +00:00
|
|
|
@{selector-main-menu-closed} ~ .mw-header & {
|
2020-08-13 01:19:51 +00:00
|
|
|
/* @embed */
|
2020-08-18 20:43:39 +00:00
|
|
|
background-image: url( images/menu.svg );
|
2020-08-13 01:19:51 +00:00
|
|
|
}
|
2020-03-30 20:07:35 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 02:43:28 +00:00
|
|
|
&:hover {
|
2020-03-30 20:07:35 +00:00
|
|
|
&:before {
|
2020-06-23 02:43:28 +00:00
|
|
|
opacity: 1;
|
2020-05-29 21:52:36 +00:00
|
|
|
}
|
2020-03-30 20:07:35 +00:00
|
|
|
}
|
2020-06-23 02:43:28 +00:00
|
|
|
}
|