2022-04-27 19:32:19 +00:00
|
|
|
@import '../../common/variables.less';
|
2023-06-21 20:13:22 +00:00
|
|
|
@import '../../common/mixins.less';
|
2022-04-27 19:32:19 +00:00
|
|
|
|
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
|
|
|
|
2023-04-27 20:39:40 +00:00
|
|
|
// Reduce icon size for icon buttons in the page toolbar (i.e. watchstar, wikilove)
|
|
|
|
.vector-icon {
|
|
|
|
.cdx-mixin-css-icon-background( @size-icon-small );
|
|
|
|
.cdx-mixin-css-icon-size( @size-icon-small );
|
|
|
|
.cdx-mixin-css-icon-alignment( );
|
|
|
|
}
|
|
|
|
|
|
|
|
// Prevent icon buttons in the page toolbar from automatically increasing padding on small viewports
|
|
|
|
.cdx-button--icon-only {
|
|
|
|
// !important needed to override 'responsive' button styles on smaller viewports defined in Button.less
|
|
|
|
min-width: 32px !important; /* stylelint-disable-line declaration-no-important */
|
|
|
|
min-height: 32px !important; /* stylelint-disable-line declaration-no-important */
|
|
|
|
}
|
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;
|
2023-06-26 16:54:44 +00:00
|
|
|
|
2022-09-29 15:28:57 +00:00
|
|
|
// Any dropdowns inside the right navigation in modern Vector (e.g. "more" menu).
|
|
|
|
// should be right-aligned to prevent horizontal scrolling.
|
2023-06-26 16:54:44 +00:00
|
|
|
.vector-dropdown-content {
|
2023-06-21 20:13:22 +00:00
|
|
|
.mixin-vector-dropdown-content-flip();
|
2022-09-29 15:28:57 +00:00
|
|
|
}
|
|
|
|
}
|