mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-01 18:57:04 +00:00
8db112ddb3
- Fixes TOC button being transparent (https://jmp.sh/jbuivqlM). FYI the fixed width toggle button has the same issue. - Add replace `html-vector-heading-icon` with Icon.mustache Bug: T320453 Depends-on: I9a990ea8de63fb336391bea11b4503d447fb9d4f Change-Id: I39397f8e98f79a2fdde9a8d785690133ea5a2619
77 lines
1.7 KiB
Plaintext
77 lines
1.7 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
|
|
*/
|
|
.vector-dropdown > .vector-menu-heading:not( .mw-ui-icon-element ) {
|
|
display: flex;
|
|
|
|
&:after {
|
|
.mixin-vector-menu-heading-arrow();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Dropdown container
|
|
*/
|
|
.vector-dropdown {
|
|
.vector-dropdown-content,
|
|
> .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;
|
|
|
|
.vector-feature-page-tools-disabled & {
|
|
// The menu content should not be narrower than the menu button.
|
|
min-width: 100%;
|
|
}
|
|
|
|
.vector-feature-page-tools-enabled & {
|
|
padding: 4px 0;
|
|
// TODO Add consistent min/max values for dropdowns in T316055
|
|
width: max-content;
|
|
max-width: 200px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.vector-feature-page-tools-enabled .vector-pinnable-element,
|
|
.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;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Dropdown menu items.
|
|
*/
|
|
.vector-dropdown .mw-list-item {
|
|
a {
|
|
.mixin-vector-dropdown-menu-item();
|
|
color: @color-link;
|
|
|
|
.vector-feature-page-tools-disabled & {
|
|
.mixin-vector-dropdown-menu-item-deprecated();
|
|
}
|
|
}
|
|
}
|