2023-01-30 14:55:10 +00:00
|
|
|
@import '../../common/variables.less';
|
|
|
|
|
2022-07-25 20:41:39 +00:00
|
|
|
.vector-page-titlebar {
|
|
|
|
display: flex;
|
2023-04-18 21:57:55 +00:00
|
|
|
// Enabled bottom border via ::after element for Zebra update.
|
|
|
|
flex-wrap: wrap;
|
2022-09-19 18:26:12 +00:00
|
|
|
// 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
|
2023-04-20 05:34:45 +00:00
|
|
|
// FIXME: Delete box shadow after VectorZebraDesign flag is removed
|
2022-09-19 18:26:12 +00:00
|
|
|
box-shadow: 0 1px @border-color-base;
|
2022-11-07 22:57:31 +00:00
|
|
|
align-items: center;
|
2022-09-19 18:26:12 +00:00
|
|
|
|
|
|
|
&-blank {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2022-07-25 20:41:39 +00:00
|
|
|
|
|
|
|
.firstHeading {
|
|
|
|
flex-grow: 1;
|
|
|
|
border: 0;
|
|
|
|
}
|
2023-01-09 18:48:02 +00:00
|
|
|
|
2023-02-14 18:01:14 +00:00
|
|
|
.vector-page-titlebar-toc.ve-active {
|
|
|
|
display: none !important; /* stylelint-disable-line declaration-no-important */
|
2023-01-09 18:48:02 +00:00
|
|
|
}
|
2023-01-30 14:55:10 +00:00
|
|
|
|
|
|
|
> .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;
|
|
|
|
}
|
|
|
|
}
|
2023-03-06 18:29:26 +00:00
|
|
|
|
|
|
|
> .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;
|
|
|
|
}
|
|
|
|
}
|
2022-07-25 20:41:39 +00:00
|
|
|
}
|