2022-04-27 19:32:19 +00:00
|
|
|
@import '../../common/variables.less';
|
|
|
|
|
2022-06-27 20:57:50 +00:00
|
|
|
@border-base-ems: unit( @border-width-base / @font-size-browser / @font-size-base, em );
|
|
|
|
|
2022-07-04 18:05:03 +00:00
|
|
|
.mw-article-toolbar-container {
|
2022-09-29 15:28:57 +00:00
|
|
|
display: flex;
|
|
|
|
font-size: @font-size-tabs;
|
2022-09-19 18:26:12 +00:00
|
|
|
// Use box-shadow instead of border to allow border collapsing between titlebar and toolbar
|
2022-09-30 17:13:56 +00:00
|
|
|
box-shadow: 0 1px @border-color-portal-heading;
|
|
|
|
// Add bottom margin to account for box-shadow
|
|
|
|
margin-bottom: 1px;
|
2022-06-06 21:39:57 +00:00
|
|
|
|
2022-06-27 20:57:50 +00:00
|
|
|
.mw-portlet-views {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
@media ( min-width: @min-width-tablet ) {
|
|
|
|
&:not( .emptyPortlet ) {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.vector-more-collapsible-item {
|
2022-06-23 21:49:53 +00:00
|
|
|
display: block;
|
2022-06-27 20:57:50 +00:00
|
|
|
|
2022-06-23 21:49:53 +00:00
|
|
|
@media ( min-width: @min-width-tablet ) {
|
|
|
|
display: none;
|
2022-06-27 20:57:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Make sure pcactions is displayed (even if .emptyPortlet present)
|
|
|
|
.vector-has-collapsible-items {
|
|
|
|
@media ( max-width: @max-width-mobile ) {
|
|
|
|
display: block;
|
|
|
|
}
|
2022-04-28 21:31:59 +00:00
|
|
|
}
|
|
|
|
}
|
2022-09-29 15:28:57 +00:00
|
|
|
|
|
|
|
// ID Selectors outside of .mw-article-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;
|
|
|
|
}
|
|
|
|
}
|