mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-29 01:45:00 +00:00
68239ae344
Changes: - mw-ui-button to cdx-button - mw-ui-quiet to cdx-button--weight-quiet - mw-ui-icon-element to cdx-button--icon-only - mw-ui-icon to vector-icon - mw-ui-icon-flush-right/left to vector-button-flush-right/left - Removes $isSmallIcon param in Hooks.php 85 Visual Changes - ~36 changes from minor pixel changes from the new button classes in the main menu, language button - 22 from standardizing the padding of the TOC in page title - ~10 changes from addition of .cdx-button to the TOC toggle buttons PERFORMANCE: This will result in an overall increase of 2.7kb of render blocking CSS, 1kb will be reclaimed when I6c1ed1523df8cc9e2f2ca09506f12a595b8b013d is merged. Co-author: Bernard Wang <bwang@wikimedia.org> Bug: T336526 Change-Id: Ibd558238a41a0d3edb981e441638f9564f43d226
61 lines
1.8 KiB
Plaintext
61 lines
1.8 KiB
Plaintext
@import '../../common/variables.less';
|
|
|
|
.vector-page-titlebar {
|
|
position: relative;
|
|
display: flex;
|
|
// T335633 - Although nowrap is default, setting it explicitly to prevent layout issues with ToC & languages button.
|
|
flex-wrap: nowrap;
|
|
// 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 */
|
|
}
|
|
|
|
// FIXME: Remove old button classes after caching
|
|
> .mw-ui-button,
|
|
> .cdx-button {
|
|
font-size: @font-size-base;
|
|
// 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
|
|
// FIXME: See if this selector can be removed after caching
|
|
&:not( .mw-ui-icon-element ),
|
|
&:not( .cdx-button--icon-only ) {
|
|
min-width: auto;
|
|
}
|
|
}
|
|
|
|
// FIXME: Remove old button classes after caching
|
|
> .mw-ui-button,
|
|
> .cdx-button,
|
|
> .mw-portlet-lang {
|
|
&:last-child {
|
|
.cdx-mixin-button-layout-flush( 'end' );
|
|
}
|
|
}
|
|
|
|
// The language button sometimes appears as an icon only button, in which
|
|
// case we need to flush differently. See an empty user page for an example of
|
|
// where this is used.
|
|
> .mw-portlet-lang-icon-only:last-child {
|
|
.cdx-mixin-button-layout-flush( 'end', true );
|
|
}
|
|
}
|