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
61 lines
1.5 KiB
Plaintext
61 lines
1.5 KiB
Plaintext
@import '../../common/variables.less';
|
|
|
|
@border-base-ems: unit( @border-width-base / @font-size-browser / @font-size-base, em );
|
|
|
|
.vector-page-toolbar-container {
|
|
display: flex;
|
|
font-size: @font-size-tabs;
|
|
// Use box-shadow instead of border to allow border collapsing between titlebar and toolbar
|
|
box-shadow: 0 1px @border-color-portal-heading;
|
|
// Add bottom margin to account for box-shadow
|
|
margin-bottom: 1px;
|
|
|
|
.mw-portlet-views {
|
|
display: none;
|
|
|
|
@media ( min-width: @min-width-tablet ) {
|
|
&:not( .emptyPortlet ) {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.vector-dropdown-content {
|
|
.vector-more-collapsible-item {
|
|
display: block;
|
|
|
|
@media ( min-width: @min-width-tablet ) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
// Make sure pcactions is displayed (even if .emptyPortlet present)
|
|
.vector-has-collapsible-items {
|
|
@media ( max-width: @max-width-mobile ) {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
// ID Selectors outside of .vector-page-toolbar-container to avoid over-specificity.
|
|
#left-navigation {
|
|
// flex ensures all child elements align on one line.
|
|
display: flex;
|
|
margin-left: -@padding-horizontal-tabs;
|
|
// pushes #right-navigation to the end of the line.
|
|
flex-grow: 1;
|
|
}
|
|
|
|
#right-navigation {
|
|
// flex ensures all child elements align on one line.
|
|
display: flex;
|
|
margin-right: -@padding-horizontal-tabs;
|
|
// Any dropdowns inside the right navigation in modern Vector (e.g. "more" menu).
|
|
// should be right-aligned to prevent horizontal scrolling.
|
|
.vector-menu-content {
|
|
left: auto;
|
|
right: -@border-width-base;
|
|
}
|
|
}
|