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-10-17 20:09:53 +00:00
|
|
|
.vector-page-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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-05-02 19:03:13 +00:00
|
|
|
|
|
|
|
.mw-ui-icon-element {
|
|
|
|
// Override icon styles to apply .mw-ui-icon-small styles
|
|
|
|
// FIXME: To be replaced with Codex mixins
|
|
|
|
.mw-ui-icon {
|
|
|
|
min-width: 16px;
|
|
|
|
min-height: 16px;
|
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
min-width: 100%;
|
|
|
|
min-height: 100%;
|
|
|
|
background-size: 100% 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-11-17 04:45:51 +00:00
|
|
|
}
|
2022-06-27 20:57:50 +00:00
|
|
|
|
2022-10-17 20:09:53 +00:00
|
|
|
// ID Selectors outside of .vector-page-toolbar-container to avoid over-specificity.
|
2022-09-29 15:28:57 +00:00
|
|
|
#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;
|
|
|
|
}
|
|
|
|
}
|