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';
|
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
|
2023-04-19 20:57:36 +00:00
|
|
|
&.vector-feature-main-menu-pinned-enabled .vector-header-start .vector-main-menu-landmark,
|
|
|
|
&.vector-feature-main-menu-pinned-disabled .vector-main-menu-container .vector-main-menu-landmark {
|
2023-03-28 15:26:22 +00:00
|
|
|
display: none;
|
2022-12-15 22:52:24 +00:00
|
|
|
}
|
|
|
|
|
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-06-29 19:28:06 +00:00
|
|
|
|
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
|
2023-03-28 15:26:22 +00:00
|
|
|
#vector-main-menu-pinned-container .vector-main-menu {
|
2023-01-09 18:20:21 +00:00
|
|
|
// Align the left edge of the text with the page container
|
|
|
|
margin-left: -@padding-horizontal-dropdown-menu-item;
|
2023-01-12 17:35:01 +00:00
|
|
|
// Align border under pinnable header with border under page title
|
|
|
|
margin-top: 11px;
|
2022-12-19 16:27:54 +00:00
|
|
|
padding: @padding-vertical-dropdown-menu-item @padding-horizontal-dropdown-menu-item;
|
|
|
|
background-color: @background-color-secondary--modern;
|
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 {
|
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
|
|
|
}
|