2021-02-02 10:04:37 +00:00
|
|
|
@import '../../common/variables.less';
|
2022-09-29 22:54:55 +00:00
|
|
|
@import '../../common/mixins.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-12-15 22:52:24 +00:00
|
|
|
// Ensure there is only 1 main menu landmark at anytime
|
|
|
|
.vector-main-menu-landmark {
|
|
|
|
.vector-feature-page-tools-enabled.vector-feature-main-menu-pinned-enabled .vector-header-start &,
|
|
|
|
.vector-feature-page-tools-enabled.vector-feature-main-menu-pinned-disabled .vector-main-menu-container & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:57:25 +00:00
|
|
|
.vector-main-menu {
|
|
|
|
box-sizing: border-box;
|
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-12-19 17:40:17 +00:00
|
|
|
}
|
2022-06-29 19:28:06 +00:00
|
|
|
|
2022-12-19 16:27:54 +00:00
|
|
|
.vector-feature-page-tools-enabled .vector-main-menu {
|
2023-01-06 17:07:29 +00:00
|
|
|
// Match styles of .mw-list-item a in PinnableElement.less
|
|
|
|
.vector-main-menu-action-opt-out a,
|
|
|
|
.vector-main-menu-action-lang-alert .vector-main-menu-action-content {
|
|
|
|
.mixin-vector-dropdown-menu-item();
|
|
|
|
}
|
|
|
|
|
2022-12-19 16:27:54 +00:00
|
|
|
.vector-main-menu-action-opt-out a {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2022-12-14 22:26:48 +00:00
|
|
|
|
2023-01-06 17:07:29 +00:00
|
|
|
.vector-main-menu-action-lang-alert .vector-main-menu-action-content {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
2022-12-19 16:27:54 +00:00
|
|
|
.vector-language-sidebar-alert {
|
|
|
|
// Override default .mw-message-box styles
|
|
|
|
padding: 8px;
|
|
|
|
margin: 0;
|
2022-12-19 17:40:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-19 16:27:54 +00:00
|
|
|
// Main menu when pinned in the sidebar
|
|
|
|
.vector-feature-page-tools-enabled #vector-main-menu-pinned-container .vector-main-menu {
|
|
|
|
padding: @padding-vertical-dropdown-menu-item @padding-horizontal-dropdown-menu-item;
|
|
|
|
background-color: @background-color-secondary--modern;
|
|
|
|
// Align text with page container
|
|
|
|
margin-left: -@padding-horizontal-dropdown-menu-item;
|
2023-01-06 17:07:29 +00:00
|
|
|
|
|
|
|
// Match styles of .mw-list-item a in PinnableElement.less
|
|
|
|
.vector-main-menu-action-opt-out a,
|
|
|
|
.vector-main-menu-action-lang-alert .vector-main-menu-action-content {
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
2022-12-19 16:27:54 +00:00
|
|
|
}
|
|
|
|
|
2022-12-19 17:40:17 +00:00
|
|
|
// Main menu when unpinned in the dropdown
|
|
|
|
#vector-main-menu-unpinned-container .vector-main-menu {
|
2023-01-06 17:07:29 +00:00
|
|
|
// TODO: Standardize dropdown min and max width
|
2022-12-19 17:40:17 +00:00
|
|
|
width: 250px;
|
|
|
|
|
2022-12-19 16:27:54 +00:00
|
|
|
.vector-language-sidebar-alert {
|
|
|
|
margin-bottom: 6px;
|
2022-12-14 20:57:25 +00:00
|
|
|
}
|
2022-12-19 16:27:54 +00:00
|
|
|
}
|
2022-12-14 20:57:25 +00:00
|
|
|
|
2022-12-19 16:27:54 +00:00
|
|
|
.vector-feature-page-tools-disabled {
|
|
|
|
@media ( max-width: @max-width-tablet ) {
|
|
|
|
.vector-main-menu {
|
|
|
|
// Makes the sidebar full screen at lower resolutions.
|
|
|
|
width: 100%;
|
2022-12-14 22:26:48 +00:00
|
|
|
}
|
2022-12-19 16:27:54 +00:00
|
|
|
}
|
|
|
|
// Hide sidebar entirely when the checkbox is disabled
|
|
|
|
@{selector-main-menu-closed} ~ .vector-main-menu-container .vector-main-menu {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2022-12-14 20:57:25 +00:00
|
|
|
|
2022-12-19 16:27:54 +00:00
|
|
|
.vector-feature-page-tools-disabled .vector-main-menu {
|
|
|
|
// Temporary magic number, will be calculated after TOC specs are finalized
|
|
|
|
padding: 12px 19px 12px 9px;
|
|
|
|
background-color: @background-color-secondary--modern;
|
|
|
|
|
|
|
|
@media ( min-width: @min-width-desktop ) {
|
|
|
|
// Magic number from the edge of the main menu to the start of the main menu text.
|
|
|
|
margin-left: -28px;
|
2022-12-14 20:57:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-19 16:27:54 +00:00
|
|
|
.vector-feature-page-tools-disabled .vector-main-menu-action {
|
2022-10-17 20:09:53 +00:00
|
|
|
// Styles for MainMenuAction template.
|
|
|
|
.vector-main-menu-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;
|
|
|
|
|
2022-10-17 20:09:53 +00:00
|
|
|
.vector-main-menu-action-heading {
|
2022-08-12 16:11:41 +00:00
|
|
|
margin-bottom: 0.75em;
|
2021-12-07 20:28:58 +00:00
|
|
|
}
|
|
|
|
|
2022-10-17 20:09:53 +00:00
|
|
|
.vector-main-menu-action-content {
|
2021-12-10 16:38:51 +00:00
|
|
|
> * {
|
|
|
|
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 */
|
2022-11-30 22:22:33 +00:00
|
|
|
.vector-feature-page-tools-disabled & {
|
|
|
|
background-image: url( images/chevronHorizontal-ltr.svg );
|
|
|
|
}
|
2020-08-13 01:19:51 +00:00
|
|
|
|
2022-11-30 22:22:33 +00:00
|
|
|
.vector-feature-page-tools-disabled @{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
|
|
|
}
|