mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-24 05:33:24 +00:00
25f4bc2a37
Bug: T367899 Change-Id: I6ec44a10a7bfeb6b03912ca6d5a23eaed046db08
47 lines
1.3 KiB
Plaintext
47 lines
1.3 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;
|
|
padding: 0;
|
|
border: 0;
|
|
}
|
|
|
|
.vector-page-titlebar-toc.ve-active {
|
|
display: none !important; /* stylelint-disable-line declaration-no-important */
|
|
}
|
|
|
|
> .cdx-button {
|
|
font-size: @font-size-small;
|
|
// 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.
|
|
// FIXME: This should be scoped to on desktop viewports only
|
|
// Currently the icon only language button is misaligned on smaller viewports
|
|
> .mw-portlet-lang-icon-only:last-child {
|
|
.cdx-mixin-button-layout-flush( 'end', true );
|
|
}
|
|
}
|