mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-12 09:21:11 +00:00
Correct ContentHeader source order to match design
- Use flexbox instead of float Visual changes: - The title wraps differently when the title is very long Bug: T313947 Change-Id: I2915e36286b21c8fd1a07247ada7754a08a0b574
This commit is contained in:
parent
e629775aff
commit
4c622fe8de
|
@ -2,17 +2,7 @@
|
|||
Content Header - Main <H1> title for all pages, with either the indicators or language selector.
|
||||
When language button is visible, indicators are placed in the ContentSubheader.mustache template instead.
|
||||
}}
|
||||
<header class="mw-body-header">
|
||||
{{#is-language-in-content-top}}
|
||||
{{#data-portlets.data-languages}}
|
||||
{{>Menu}}
|
||||
{{/data-portlets.data-languages}}
|
||||
{{/is-language-in-content-top}}
|
||||
|
||||
{{^is-language-in-content-top}}
|
||||
{{>Indicators}}
|
||||
{{/is-language-in-content-top}}
|
||||
|
||||
<header class="mw-body-header vector-page-titlebar">
|
||||
{{#data-toc}}
|
||||
<label
|
||||
id="vector-toc-collapsed-button"
|
||||
|
@ -26,5 +16,16 @@
|
|||
{{msg-vector-toc-collapsible-button-label}}
|
||||
</label>
|
||||
{{/data-toc}}
|
||||
|
||||
{{{html-title-heading}}}
|
||||
|
||||
{{#is-language-in-content-top}}
|
||||
{{#data-portlets.data-languages}}
|
||||
{{>Menu}}
|
||||
{{/data-portlets.data-languages}}
|
||||
{{/is-language-in-content-top}}
|
||||
|
||||
{{^is-language-in-content-top}}
|
||||
{{>Indicators}}
|
||||
{{/is-language-in-content-top}}
|
||||
</header>
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
.vector-page-titlebar {
|
||||
display: flex;
|
||||
border-bottom: 1px solid @border-color-base;
|
||||
|
||||
.firstHeading {
|
||||
flex-grow: 1;
|
||||
border: 0;
|
||||
}
|
||||
}
|
|
@ -12,6 +12,7 @@
|
|||
margin-right: -@icon-padding-md;
|
||||
box-sizing: border-box;
|
||||
height: @height-button-lang;
|
||||
flex-shrink: 0;
|
||||
|
||||
.mw-ui-icon:before {
|
||||
// Put icon on correct standard normal state color.
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
// Components
|
||||
@import './components/ArticleToolbar.less';
|
||||
@import './components/ContentHeader.less';
|
||||
@import './components/SearchBoxLoader.less';
|
||||
@import './components/VueEnhancedSearchBox.less';
|
||||
@import './components/Sidebar.less';
|
||||
|
|
Loading…
Reference in a new issue