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.
|
2023-03-28 20:22:36 +00:00
|
|
|
.vector-menu-checkbox:checked + .vector-menu-heading::after {
|
2022-08-16 21:13:47 +00:00
|
|
|
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;
|
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
&::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.
|
2023-03-07 17:30:13 +00:00
|
|
|
opacity: @opacity-icon-base;
|
2022-07-22 16:11:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @color-base;
|
2021-02-24 23:30:16 +00:00
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
&::after {
|
2023-03-07 17:30:13 +00:00
|
|
|
opacity: @opacity-icon-base--selected;
|
2022-07-22 16:11:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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;
|
2023-01-10 17:28:17 +00:00
|
|
|
// The menu content should not be narrower than the menu button.
|
|
|
|
min-width: 100%;
|
2022-07-22 16:11:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Open the dropdown container via hover.
|
2021-02-24 23:30:16 +00:00
|
|
|
&:hover .vector-menu-content {
|
2023-03-07 17:30:13 +00:00
|
|
|
opacity: @opacity-base;
|
2021-02-24 23:30:16 +00:00
|
|
|
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 {
|
2023-01-10 17:28:17 +00:00
|
|
|
// displays all links in a single column.
|
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
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
|
|
|
}
|