2021-09-29 20:54:53 +00:00
|
|
|
|
@import '../../common/variables.less';
|
|
|
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
|
|
2021-02-02 10:04:37 +00:00
|
|
|
|
// Extends the common MenuDropdown, but allows it to be opened via hover.
|
2021-02-24 23:30:16 +00:00
|
|
|
|
|
2021-07-22 17:27:33 +00:00
|
|
|
|
.vector-menu-dropdown:not( .vector-user-menu ) {
|
2021-02-24 23:30:16 +00:00
|
|
|
|
&:hover .vector-menu-content {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
visibility: visible;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vector-menu-checkbox {
|
2022-02-21 15:42:10 +00:00
|
|
|
|
&:checked + .vector-menu-heading:after {
|
2021-02-24 23:30:16 +00:00
|
|
|
|
transform: scaleY( -1 );
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-09-29 20:54:53 +00:00
|
|
|
|
|
|
|
|
|
.vector-menu-dropdown {
|
|
|
|
|
li {
|
|
|
|
|
a {
|
|
|
|
|
// Historic value.
|
|
|
|
|
padding: unit( ( 8.125px / @font-size-browser ), em );
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-06-06 21:39:57 +00:00
|
|
|
|
|
2022-06-08 21:21:11 +00:00
|
|
|
|
.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;
|
|
|
|
|
}
|
2022-06-06 21:39:57 +00:00
|
|
|
|
}
|