2022-07-22 16:11:36 +00:00
|
|
|
/**
|
|
|
|
* Dropdown container
|
|
|
|
*/
|
2022-12-14 22:26:48 +00:00
|
|
|
.vector-dropdown {
|
2023-06-26 16:54:44 +00:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Dropdown toggle buttons. Doesn't apply to icon only buttons like the main menu dropdown.
|
|
|
|
* - language variants, Actions menus
|
|
|
|
* - more menu, user menu
|
|
|
|
* - ULS button in sticky header
|
|
|
|
*/
|
|
|
|
.vector-dropdown-label:not( .cdx-button--icon-only ) {
|
|
|
|
.mixin-vector-arrowed-dropdown-toggle();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Invisible checkbox covering the dropdown toggle button.
|
|
|
|
*/
|
|
|
|
.vector-dropdown-checkbox {
|
|
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: @z-index-stacking-1;
|
|
|
|
opacity: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
// Hide and show menu content based off checked status.
|
|
|
|
&:checked ~ .vector-dropdown-content {
|
|
|
|
opacity: 1;
|
|
|
|
visibility: visible;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-09 14:46:11 +00:00
|
|
|
// Dropdown menu container. Hidden by default until checkbox is checked.
|
2023-06-26 16:54:44 +00:00
|
|
|
.vector-dropdown-content {
|
|
|
|
position: absolute;
|
|
|
|
top: 100%;
|
|
|
|
left: -@border-width-base;
|
|
|
|
opacity: 0;
|
|
|
|
height: 0;
|
|
|
|
visibility: hidden;
|
2024-01-09 14:46:11 +00:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
2023-06-26 16:54:44 +00:00
|
|
|
z-index: @z-index-dropdown;
|
2024-01-09 14:46:11 +00:00
|
|
|
.mixin-vector-dropdown-menu();
|
|
|
|
max-height: 75vh;
|
2022-07-22 16:11:36 +00:00
|
|
|
}
|
2022-07-22 19:20:55 +00:00
|
|
|
}
|
2022-07-22 16:11:36 +00:00
|
|
|
|
2024-01-09 14:46:11 +00:00
|
|
|
.vector-pinnable-element .vector-menu-heading {
|
|
|
|
color: @color-subtle;
|
|
|
|
font-weight: normal;
|
|
|
|
cursor: default;
|
|
|
|
padding: @padding-vertical-dropdown-menu-item 0;
|
|
|
|
margin: @padding-vertical-dropdown-menu-item 0;
|
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-content-box;
|
2023-02-01 23:38:44 +00:00
|
|
|
}
|
|
|
|
|
2024-01-09 14:46:11 +00:00
|
|
|
.vector-pinnable-element .mw-list-item,
|
|
|
|
.vector-dropdown-content .mw-list-item {
|
2023-06-26 16:54:44 +00:00
|
|
|
padding: 0;
|
|
|
|
|
2022-07-22 19:20:55 +00:00
|
|
|
a {
|
|
|
|
.mixin-vector-dropdown-menu-item();
|
2024-01-09 14:46:11 +00:00
|
|
|
color: @color-link;
|
2023-06-26 16:54:44 +00:00
|
|
|
}
|
2022-07-22 16:11:36 +00:00
|
|
|
}
|