2021-09-29 20:54:53 +00:00
|
|
|
@import '../../common/variables.less';
|
|
|
|
@import 'mediawiki.mixins.less';
|
2022-07-22 16:11:36 +00:00
|
|
|
@import '../../common/mixins.less';
|
2021-09-29 20:54:53 +00:00
|
|
|
|
2022-08-16 21:13:47 +00:00
|
|
|
// Flips the chevron so it points up when the dropdown is open.
|
|
|
|
.vector-menu-checkbox:checked + .vector-menu-heading:after {
|
|
|
|
transform: scaleY( -1 );
|
|
|
|
}
|
|
|
|
|
2022-07-22 16:11:36 +00:00
|
|
|
/**
|
|
|
|
* Dropdown menus that only appear in the tab bar in legacy Vector.
|
|
|
|
*/
|
|
|
|
.vector-menu-dropdown {
|
|
|
|
direction: ltr;
|
|
|
|
float: left;
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
|
|
line-height: 1.125em;
|
|
|
|
|
|
|
|
// menu label with chevron icon.
|
|
|
|
.vector-menu-heading {
|
|
|
|
display: flex;
|
|
|
|
color: @color-base--subtle;
|
|
|
|
font-size: @font-size-tabs;
|
|
|
|
// Tab separator: Outer end (right in LTR) border of "Actions" menu.
|
|
|
|
background-position: right bottom;
|
|
|
|
margin: 0 -@border-width-base 0 0;
|
|
|
|
// `padding-top` needs to scale with font-size.
|
|
|
|
padding: 1.25em 8px 6px;
|
|
|
|
font-weight: normal;
|
|
|
|
|
|
|
|
&:after {
|
2022-11-07 22:57:31 +00:00
|
|
|
.mixin-vector-legacy-menu-heading-arrow();
|
2022-07-22 16:11:36 +00:00
|
|
|
// 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;
|
2021-02-24 23:30:16 +00:00
|
|
|
|
2022-07-22 16:11:36 +00:00
|
|
|
&:after {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Dropdown container.
|
|
|
|
*/
|
|
|
|
.vector-menu-content {
|
|
|
|
line-height: 1.125em;
|
|
|
|
background-color: @background-color-base;
|
|
|
|
border: @border-width-base @border-style-base @border-color-base;
|
|
|
|
border-top-width: 0;
|
|
|
|
box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );
|
|
|
|
transition-property: opacity;
|
|
|
|
transition-duration: @transition-duration-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Open the dropdown container via hover.
|
2021-02-24 23:30:16 +00:00
|
|
|
&:hover .vector-menu-content {
|
|
|
|
opacity: 1;
|
|
|
|
visibility: visible;
|
2022-08-24 14:33:26 +00:00
|
|
|
height: auto;
|
2021-02-24 23:30:16 +00:00
|
|
|
}
|
|
|
|
|
2022-07-22 16:11:36 +00:00
|
|
|
.mw-list-item {
|
|
|
|
text-align: left;
|
|
|
|
line-height: 1em;
|
2021-09-29 20:54:53 +00:00
|
|
|
|
2022-07-15 18:27:57 +00:00
|
|
|
a:not( .mw-ui-icon ) {
|
2022-07-04 18:05:03 +00:00
|
|
|
font-size: @font-size-tabs;
|
|
|
|
}
|
|
|
|
|
2021-09-29 20:54:53 +00:00
|
|
|
a {
|
2022-07-22 16:11:36 +00:00
|
|
|
padding: 0.625em;
|
|
|
|
color: @color-link;
|
2021-09-29 20:54:53 +00:00
|
|
|
}
|
2022-06-08 21:21:11 +00:00
|
|
|
|
2022-07-22 16:11:36 +00:00
|
|
|
&.selected a,
|
|
|
|
&.selected a:visited {
|
|
|
|
color: @color-link-selected;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2022-06-08 21:21:11 +00:00
|
|
|
}
|
2022-06-06 21:39:57 +00:00
|
|
|
}
|