mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-26 00:25:40 +00:00
697b5deeda
Splits MenuDropdown styles into modern and legacy styles. Leaves a common MenuDropdownCheckbox.less file (for lack of a better name) for common styles related to the checkbox behaviour and dropdown menu resets. Adds a new file in common/mixins.less for a shared dropdown mixin. Bug: T312157 Change-Id: Ib60b25ea3121843ed5ed54820d6295a81289b332
58 lines
1.1 KiB
Plaintext
58 lines
1.1 KiB
Plaintext
@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
|
|
*/
|
|
.emptyPortlet .vector-menu-heading,
|
|
.vector-menu-dropdown .vector-menu-heading,
|
|
.mw-interlanguage-selector {
|
|
display: flex;
|
|
color: @color-base--subtle;
|
|
|
|
&:after {
|
|
.mixin-vector-menu-heading-arrow();
|
|
// Modify the color of the image from the default #202122 to approx. #404244 to match the text.
|
|
opacity: 0.84;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: @color-base;
|
|
|
|
&:after {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Dropdown container
|
|
*/
|
|
.vector-menu-dropdown {
|
|
.vector-menu-content {
|
|
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;
|
|
line-height: 1.125em;
|
|
}
|
|
|
|
.mw-list-item {
|
|
a {
|
|
color: @color-link;
|
|
}
|
|
|
|
&.selected a,
|
|
&.selected a:visited {
|
|
color: @color-link-selected;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|