Vector-Local/resources/skins.vector.styles.legacy/components/MenuDropdown.less

57 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@import '../../common/variables.less';
@import 'mediawiki.mixins.less';
// Extends the common MenuDropdown, but allows it to be opened via hover.
.vector-menu-dropdown:not( .vector-user-menu ) {
&:hover .vector-menu-content {
opacity: 1;
visibility: visible;
}
}
.vector-menu-checkbox {
&:checked + .vector-menu-heading:after {
transform: scaleY( -1 );
}
}
.vector-menu-dropdown {
line-height: 1.125em;
li {
a:not( .mw-ui-icon ) {
font-size: @font-size-tabs;
}
a {
// Historic value.
padding: unit( ( 8.125px / @font-size-browser ), em );
}
}
.vector-menu-heading {
background-image: linear-gradient( to bottom, rgba( 167, 215, 249, 0 ) 0, @border-color-content 100% );
background-repeat: no-repeat;
// Contain gradient to 1px × 100% size and draw from top to bottom-left or -right corner.
background-size: @border-width-base 100%;
background-position: right bottom;
height: 100%;
}
.vector-menu-content {
border-top-width: 0;
}
}
.vector-menu-dropdown-noicon .vector-menu-heading {
font-size: @font-size-tabs;
}
#mw-head .vector-menu-dropdown .vector-menu-heading {
// Tab separator: Outer end (right in LTR) border of "Actions" menu.
background-position: right bottom;
margin: 0 -@border-width-base 0 0;
float: left;
}