2022-07-22 16:11:36 +00:00
|
|
|
/**
|
|
|
|
* Less mixins shared between both legacy and Vector 2022.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Defines the arrow beside dropdown headings.
|
|
|
|
.mixin-vector-menu-heading-arrow() {
|
|
|
|
content: '';
|
|
|
|
background: url( ../common/images/arrow-down.svg ) 100% 50% no-repeat;
|
|
|
|
width: unit( 16 / @font-size-tabs / @font-size-browser, em );
|
|
|
|
height: unit( 16 / @font-size-tabs / @font-size-browser, em );
|
2022-10-05 16:19:26 +00:00
|
|
|
|
|
|
|
// FIXME: This can be folded into the main mixin as soon as wgVectorVisualEnhancementNext
|
|
|
|
// is default. This rule should not apply to the current master as is part of a larger
|
|
|
|
// set of changes that must go out together.
|
|
|
|
.vector-feature-visual-enhancement-next-enabled & {
|
|
|
|
// https://phabricator.wikimedia.org/T319070#8284272
|
|
|
|
margin-left: -1px;
|
|
|
|
}
|
2022-07-22 16:11:36 +00:00
|
|
|
}
|
2022-07-22 19:20:55 +00:00
|
|
|
|
|
|
|
.mixin-vector-dropdown-menu-item() {
|
2022-10-19 20:43:40 +00:00
|
|
|
min-height: @height-dropdown-menu-item;
|
2022-07-22 19:20:55 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-10-19 20:43:40 +00:00
|
|
|
padding: @padding-dropdown-menu-item;
|
2022-07-22 19:20:55 +00:00
|
|
|
|
|
|
|
&:visited {
|
|
|
|
color: @color-link;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.selected a,
|
|
|
|
&.selected a:visited {
|
|
|
|
color: @color-link-selected;
|
|
|
|
}
|
|
|
|
}
|
2022-09-29 22:54:55 +00:00
|
|
|
|
|
|
|
// Copied from mediawiki.ui.icons
|
|
|
|
// (Ifccaadabd72a12814d3d4d01200931f7254c6cd5)
|
|
|
|
// but converted to px to match `mw-ui-button`
|
|
|
|
@icon-padding-md: 12px;
|
|
|
|
// Copied from mediawiki.ui.icons,
|
|
|
|
// (Ifccaadabd72a12814d3d4d01200931f7254c6cd5)
|
|
|
|
// but converted to px to match `mw-ui-button`
|
|
|
|
@icon-padding-md-next: 5px;
|
|
|
|
|
2022-10-26 17:01:12 +00:00
|
|
|
// FIXME: Deprecated. Remove when VectorVisualEnhancementNext is everywhere
|
2022-09-29 22:54:55 +00:00
|
|
|
.mixin-vector-flush-left-margin-left() {
|
|
|
|
margin-left: -@icon-padding-md;
|
|
|
|
}
|
|
|
|
|
2022-10-26 17:01:12 +00:00
|
|
|
// FIXME: Deprecated. Remove when VectorVisualEnhancementNext is everywhere
|
2022-09-29 22:54:55 +00:00
|
|
|
.mixin-vector-flush-right-margin-right() {
|
|
|
|
margin-right: -@icon-padding-md;
|
|
|
|
}
|