2022-07-22 16:11:36 +00:00
|
|
|
/**
|
|
|
|
* Less mixins shared between both legacy and Vector 2022.
|
|
|
|
*/
|
|
|
|
|
2022-11-17 04:45:51 +00:00
|
|
|
@import '../common/variables.less';
|
|
|
|
|
|
|
|
.mixin-vector-menu-heading() {
|
|
|
|
align-self: center;
|
|
|
|
color: @color-base--subtle;
|
|
|
|
font-weight: normal;
|
|
|
|
cursor: default;
|
|
|
|
// NOTE: Setting these values does not produce a visible border.
|
|
|
|
// That's handled elsewhere with either border-top-style or border-bottom-style.
|
|
|
|
border-color: @border-color-portal-heading;
|
|
|
|
border-width: @border-width-base;
|
|
|
|
}
|
|
|
|
|
2022-07-22 16:11:36 +00:00
|
|
|
// Defines the arrow beside dropdown headings.
|
2022-11-07 22:57:31 +00:00
|
|
|
.mixin-vector-legacy-menu-heading-arrow {
|
2022-07-22 16:11:36 +00:00
|
|
|
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-11-07 22:57:31 +00:00
|
|
|
}
|
2022-10-05 16:19:26 +00:00
|
|
|
|
2022-11-07 22:57:31 +00:00
|
|
|
.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 );
|
|
|
|
// 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
|
|
|
|
2022-12-19 16:27:54 +00:00
|
|
|
// Remove this mixin after VectorPageTools is enabled everywhere
|
|
|
|
.mixin-vector-dropdown-menu-item-deprecated() {
|
2022-10-19 20:43:40 +00:00
|
|
|
min-height: @height-dropdown-menu-item;
|
2022-12-19 16:27:54 +00:00
|
|
|
padding: @padding-dropdown-menu-item;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mixin-vector-dropdown-menu-item() {
|
2022-07-22 19:20:55 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-12-19 16:27:54 +00:00
|
|
|
padding: @padding-vertical-dropdown-menu-item @padding-horizontal-dropdown-menu-item;
|
2022-11-17 04:45:51 +00:00
|
|
|
font-size: @font-size-dropdown;
|
2022-07-22 19:20:55 +00:00
|
|
|
|
|
|
|
&:visited {
|
|
|
|
color: @color-link;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.selected a,
|
|
|
|
&.selected a:visited {
|
|
|
|
color: @color-link-selected;
|
|
|
|
}
|
|
|
|
}
|