mediawiki-skins-Vector/resources/skins.vector.styles/components/PageTitlebar.less
Jan Drewniak bd05ff4ae5 Add initial Zebra design update for page layout
Implements the zebra design update via the
skins.vector.zebra.styles module.

Refactors:
- Moves common variable and mixin imports from
individual files to skin.less file.
- Applies font-sizes to menu containers instead
of individual menu links.
- Adds mixins for dropdown and content-box styles.
- Unifies padding for pinned and unpinned menu states
  (including TOC).

Bug: T332600
Change-Id: I3d49095d84fa205cb5dcc889574133f42f1fd4ea
2023-04-21 11:02:56 -05:00

50 lines
1.5 KiB
Plaintext

@import '../../common/variables.less';
.vector-page-titlebar {
display: flex;
// Enabled bottom border via ::after element for Zebra update.
flex-wrap: wrap;
// Ensure language button or indicators are positioned to the right even when the title is hidden
justify-content: flex-end;
// Use box-shadow instead of border to allow border collapsing between titlebar and toolbar
// FIXME: Delete box shadow after VectorZebraDesign flag is removed
box-shadow: 0 1px @border-color-base;
align-items: center;
&-blank {
box-shadow: none;
}
.firstHeading {
flex-grow: 1;
border: 0;
}
.vector-page-titlebar-toc.ve-active {
display: none !important; /* stylelint-disable-line declaration-no-important */
}
> .mw-ui-button {
font-size: @font-size-base;
margin-top: 2px;
// When labels have multiple words e.g. "Add topic" make sure they do not wrap onto
// new line. This can happen when editing pages with long titles. e.g. F36867314
white-space: nowrap;
// At low resolutions, the rule in core for `.mw-ui-button:not(.mw-ui-icon-element)`
// interferes with add topic and makes it overlap the language button. e.g. F36867319
&:not( .mw-ui-icon-element ) {
min-width: auto;
}
}
> .mw-ui-button,
> .mw-portlet-lang {
&:last-child {
// This number should be synced with the value in:
// https://github.com/wikimedia/mediawiki/blob/master/resources/src/mediawiki.less/mediawiki.ui/mixins.buttons.less#L33
margin-right: -12px;
}
}
}