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
|
|
|
|
*/
|
2023-02-16 19:41:35 +00:00
|
|
|
.vector-dropdown > .vector-menu-heading:not( .mw-ui-icon-element ) {
|
2022-07-22 16:11:36 +00:00
|
|
|
display: flex;
|
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
&::after {
|
2022-07-22 16:11:36 +00:00
|
|
|
.mixin-vector-menu-heading-arrow();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Dropdown container
|
|
|
|
*/
|
2022-12-14 22:26:48 +00:00
|
|
|
.vector-dropdown {
|
2023-02-01 23:38:44 +00:00
|
|
|
.vector-dropdown-content,
|
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-03-28 15:26:22 +00:00
|
|
|
padding: 4px 0;
|
|
|
|
// 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
|
|
|
|
2023-03-28 15:26:22 +00:00
|
|
|
.vector-pinnable-element,
|
2023-02-01 23:38:44 +00:00
|
|
|
.vector-dropdown-content {
|
|
|
|
.vector-menu-heading {
|
|
|
|
.mixin-vector-dropdown-menu-item();
|
|
|
|
.mixin-vector-menu-heading();
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-list-item a {
|
|
|
|
// Mirror styles from Dropdown.less
|
|
|
|
.mixin-vector-dropdown-menu-item();
|
|
|
|
color: @color-link;
|
|
|
|
}
|
|
|
|
|
|
|
|
> *:not( :last-child ) {
|
|
|
|
// Apply bottom border to every children of dropdown contents and pinnable elements except the last
|
|
|
|
border-bottom: @border-width-base @border-style-base @colorGray14;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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();
|
2023-02-03 00:35:07 +00:00
|
|
|
|
|
|
|
// The link is a mw-selflink in the case of temporary users.
|
|
|
|
&:not( .mw-selflink ) {
|
|
|
|
color: @color-link;
|
|
|
|
}
|
2022-07-22 16:11:36 +00:00
|
|
|
}
|
|
|
|
}
|