mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-26 08:35:42 +00:00
69f3dcd7a7
Makes the dropdown styles compatible with the pinned state of the menu so that both states can share the same styles. - New vector-menu-heading mixin shared between main menu headings and dropdown headings. - New @font-size-dropdown variable so font-size is consistent in dropdown and pinned state. - Ensure hidden 'more' menu works in both pinned and dropdown state. - Removes extra <ul><li> from PinnableDropdownContents.mustache, as the child Menu template already contain <ul><li> elements. Bug: T318434 Change-Id: Ie1a56d8584c1dc3f20c6643ff4cfc740be4007fa
42 lines
806 B
Plaintext
42 lines
806 B
Plaintext
@import '../../common/variables.less';
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
.vector-menu-portal {
|
|
margin: 0 @margin-end-portal 0 @margin-start-portal;
|
|
padding: 0.25em 0;
|
|
direction: ltr;
|
|
|
|
.vector-menu-heading {
|
|
.mixin-vector-menu-heading();
|
|
font-size: @font-size-nav-main-heading;
|
|
margin: 0.5em 0 0 ( @margin-start-nav-main-body / @font-size-nav-main-heading );
|
|
padding: 0.25em 0;
|
|
border-bottom-style: @border-style-base;
|
|
}
|
|
|
|
.vector-menu-content {
|
|
margin-left: @margin-start-portal-body;
|
|
padding-top: 0;
|
|
|
|
ul {
|
|
padding-top: 0.3em;
|
|
}
|
|
|
|
li {
|
|
margin: 0;
|
|
padding: 0.25em 0;
|
|
font-size: @font-size-portal-list-item;
|
|
line-height: @line-height-nav;
|
|
word-wrap: break-word;
|
|
|
|
a {
|
|
color: @color-link;
|
|
|
|
&:visited {
|
|
color: @color-link--visited;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|