mediawiki-skins-Vector/resources/skins.vector.styles/components/PageTitlebar.less
Moh'd Khier Abualruz f83cca3cc5 [Zebra] Merge skins.vector.zebra.styles module into skins.vector.styles
Merges all of the styles in the Zebra module into the default styles.

- skins.vector.zebra.styles ResourceLoader module is removed.
- FIXME's related to Zebra styles are removed.
- Top-level "&" that were used for scoping to feature-flag are removed.
- `$wgVectorZebraDesign` feature flag is removed.

Bug: T347712
Change-Id: I0177541ae87a5d070d5317629ca38de93613d620
2024-01-09 15:46:11 +01:00

44 lines
1.2 KiB
Plaintext

.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;
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 */
}
> .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;
}
> .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 );
}
}