2022-07-22 16:11:36 +00:00
|
|
|
@import '../../common/variables.less';
|
|
|
|
@import '../../common/mixins.less';
|
|
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Targets all dropdown labels.
|
|
|
|
* - language variants, Actions menus
|
|
|
|
* - more menu, user menu
|
|
|
|
* - ULS button in sticky header
|
|
|
|
*/
|
2022-12-14 22:26:48 +00:00
|
|
|
.vector-dropdown > .vector-menu-heading {
|
2022-07-22 16:11:36 +00:00
|
|
|
display: flex;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
.mixin-vector-menu-heading-arrow();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Dropdown container
|
|
|
|
*/
|
2022-12-14 22:26:48 +00:00
|
|
|
.vector-dropdown {
|
2022-11-04 20:18:22 +00:00
|
|
|
> .vector-menu-content {
|
2022-07-22 16:11:36 +00:00
|
|
|
background-color: @background-color-base;
|
|
|
|
border: @border-width-base @border-style-base @border-color-base;
|
|
|
|
box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );
|
|
|
|
transition-property: opacity;
|
|
|
|
transition-duration: @transition-duration-base;
|
2023-01-10 17:28:17 +00:00
|
|
|
|
|
|
|
.vector-feature-page-tools-disabled & {
|
|
|
|
// The menu content should not be narrower than the menu button.
|
|
|
|
min-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vector-feature-page-tools-enabled & {
|
|
|
|
// TODO Add consistent min/max values for dropdowns in T316055
|
|
|
|
width: max-content;
|
|
|
|
max-width: 200px;
|
|
|
|
}
|
2022-07-22 16:11:36 +00:00
|
|
|
}
|
2022-07-22 19:20:55 +00:00
|
|
|
}
|
2022-07-22 16:11:36 +00:00
|
|
|
|
2022-11-17 04:45:51 +00:00
|
|
|
/**
|
|
|
|
* Dropdown menu items.
|
|
|
|
*/
|
2022-12-14 22:26:48 +00:00
|
|
|
.vector-dropdown .mw-list-item {
|
2022-07-22 19:20:55 +00:00
|
|
|
a {
|
|
|
|
.mixin-vector-dropdown-menu-item();
|
|
|
|
color: @color-link;
|
2022-12-19 16:27:54 +00:00
|
|
|
|
|
|
|
.vector-feature-page-tools-disabled & {
|
|
|
|
.mixin-vector-dropdown-menu-item-deprecated();
|
|
|
|
}
|
2022-07-22 16:11:36 +00:00
|
|
|
}
|
|
|
|
}
|