mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-30 02:15:49 +00:00
785926d8ba
This code is not resilient to changes in the mw-ui-icon definition In preparation for changing touch areas we need an easy way to flush these correctly based on feature flag. No expected visual changes. Bug: T314323 Change-Id: Ia10a7c696c690887a37851684215e515474fbd90
71 lines
1.7 KiB
Plaintext
71 lines
1.7 KiB
Plaintext
/**
|
|
* 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 );
|
|
}
|
|
|
|
.mixin-vector-dropdown-menu-item() {
|
|
//NOTE: using px instead of em's due to difference in font-size
|
|
// across dropdowns (i.e tabs 13px vs. personal menu 14px).
|
|
min-height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 12px;
|
|
|
|
&:visited {
|
|
color: @color-link;
|
|
}
|
|
|
|
&.selected a,
|
|
&.selected a:visited {
|
|
color: @color-link-selected;
|
|
}
|
|
}
|
|
|
|
// 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;
|
|
|
|
.mixin-vector-flush-right-margin-left() {
|
|
margin-left: @icon-padding-md;
|
|
|
|
.vector-feature-visual-enhancement-next-enabled & {
|
|
margin-left: @icon-padding-md-next;
|
|
}
|
|
}
|
|
|
|
.mixin-vector-flush-left-margin-left() {
|
|
margin-left: -@icon-padding-md;
|
|
|
|
.vector-feature-visual-enhancement-next-enabled & {
|
|
margin-left: -@icon-padding-md-next;
|
|
}
|
|
}
|
|
|
|
.mixin-vector-flush-right-margin-right() {
|
|
margin-right: -@icon-padding-md;
|
|
|
|
.vector-feature-visual-enhancement-next-enabled & {
|
|
margin-right: -@icon-padding-md-next;
|
|
}
|
|
}
|
|
|
|
.mixin-vector-flush-left-left() {
|
|
left: -@icon-padding-md;
|
|
|
|
.vector-feature-visual-enhancement-next-enabled & {
|
|
left: -@icon-padding-md-next;
|
|
}
|
|
}
|