Debian Codegraph @

skins/Vector/resources/skins.vector.styles/components/PageTitlebar.less

raw
1 .vector-page-titlebar {
2 position: relative;
3 display: flex;
4 // T335633 - Although nowrap is default, setting it explicitly to prevent layout issues with ToC & languages button.
5 flex-wrap: nowrap;
6 // Ensure language button or indicators are positioned to the right even when the title is hidden
7 justify-content: flex-end;
8 align-items: center;
9
10 &-blank {
11 box-shadow: none;
12 }
13
14 .firstHeading {
15 flex-grow: 1;
16 padding: 0;
17 border: 0;
18 }
19
20 .vector-page-titlebar-toc.ve-active {
21 display: none !important; /* stylelint-disable-line declaration-no-important */
22 }
23
24 > .cdx-button {
25 font-size: @font-size-small;
26 // When labels have multiple words e.g. "Add topic" make sure they do not wrap onto
27 // new line. This can happen when editing pages with long titles. e.g. F36867314
28 white-space: nowrap;
29 }
30
31 > .cdx-button,
32 > .mw-portlet-lang {
33 &:last-child {
34 .cdx-mixin-button-layout-flush( 'end' );
35 }
36 }
37
38 // The language button sometimes appears as an icon only button, in which
39 // case we need to flush differently. See an empty user page for an example of
40 // where this is used.
41 // FIXME: This should be scoped to on desktop viewports only
42 // Currently the icon only language button is misaligned on smaller viewports
43 > .mw-portlet-lang-icon-only:last-child {
44 .cdx-mixin-button-layout-flush( 'end', true );
45 }
46 }