mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 09:30:17 +00:00
Create .mw-body-header element for body content
For language-in-header feature, edits the <header> element to contain: - page title, - language selector - tagline (siteSub) - Indicators These elements are associated with header/meta content so grouping them inside one header element makes sense semantically. Bug: T248761 Change-Id: Ief6c4936d1ebe381432369f8d86419da5f7c6cae
This commit is contained in:
parent
355b188db4
commit
03d61e12c9
|
@ -51,18 +51,30 @@
|
||||||
<main id="content" class="mw-body" role="main">
|
<main id="content" class="mw-body" role="main">
|
||||||
<a id="top"></a>
|
<a id="top"></a>
|
||||||
<div id="siteNotice" class="mw-body-content">{{{html-site-notice}}}</div>
|
<div id="siteNotice" class="mw-body-content">{{{html-site-notice}}}</div>
|
||||||
{{>Indicators}}
|
|
||||||
{{^is-language-in-header}}
|
{{^is-language-in-header}}
|
||||||
|
{{>Indicators}}
|
||||||
<h1 id="firstHeading" class="firstHeading" {{{html-user-language-attributes}}}>{{{html-title}}}</h1>
|
<h1 id="firstHeading" class="firstHeading" {{{html-user-language-attributes}}}>{{{html-title}}}</h1>
|
||||||
{{/is-language-in-header}}
|
{{/is-language-in-header}}
|
||||||
|
|
||||||
{{#is-language-in-header}}
|
{{#is-language-in-header}}
|
||||||
<header>
|
<header class="mw-body-header">
|
||||||
<h1 id="firstHeading" class="firstHeading" {{{html-user-language-attributes}}}>{{{html-title}}}</h1>
|
|
||||||
{{#data-portlets.data-languages}}{{>Menu}}{{/data-portlets.data-languages}}
|
{{#data-portlets.data-languages}}{{>Menu}}{{/data-portlets.data-languages}}
|
||||||
|
{{>Indicators}}
|
||||||
|
<h1 id="firstHeading" class="firstHeading" {{{html-user-language-attributes}}}>
|
||||||
|
{{{html-title}}}
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
{{#page-isarticle}}
|
||||||
|
<div id="siteSub" class="noprint">{{msg-tagline}}</div>
|
||||||
|
{{/page-isarticle}}
|
||||||
</header>
|
</header>
|
||||||
{{/is-language-in-header}}
|
{{/is-language-in-header}}
|
||||||
|
|
||||||
<div id="bodyContent" class="mw-body-content">
|
<div id="bodyContent" class="mw-body-content">
|
||||||
|
{{^is-language-in-header}}
|
||||||
{{#page-isarticle}}<div id="siteSub" class="noprint">{{msg-tagline}}</div>{{/page-isarticle}}
|
{{#page-isarticle}}<div id="siteSub" class="noprint">{{msg-tagline}}</div>{{/page-isarticle}}
|
||||||
|
{{/is-language-in-header}}
|
||||||
<div id="contentSub"{{{html-user-language-attributes}}}>{{{html-subtitle}}}</div>
|
<div id="contentSub"{{{html-user-language-attributes}}}>{{{html-subtitle}}}</div>
|
||||||
<div id="contentSub2">{{{html-undelete-link}}}</div>
|
<div id="contentSub2">{{{html-undelete-link}}}</div>
|
||||||
{{{html-user-message}}}
|
{{{html-user-message}}}
|
||||||
|
|
|
@ -78,6 +78,14 @@ body {
|
||||||
z-index: @z-index-indicators;
|
z-index: @z-index-indicators;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mw-body-header {
|
||||||
|
.mixin-clearfix();
|
||||||
|
|
||||||
|
#p-lang {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mw-body-content {
|
.mw-body-content {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: @z-index-base;
|
z-index: @z-index-base;
|
||||||
|
@ -317,19 +325,3 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
main.mw-body {
|
|
||||||
header {
|
|
||||||
border-bottom: 1px solid @border-color-base;
|
|
||||||
.mixin-clearfix();
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
border-bottom: 0;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#p-lang {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -217,7 +217,8 @@
|
||||||
"value": false
|
"value": false
|
||||||
},
|
},
|
||||||
"VectorLanguageInHeader": {
|
"VectorLanguageInHeader": {
|
||||||
"value": false
|
"value": false,
|
||||||
|
"description": "@var boolean Moves the language links from the sidebar into a menu beside the page title. Also moves the indicators to the line below, next to the tagline (siteSub)."
|
||||||
},
|
},
|
||||||
"VectorDisableSidebarPersistence": {
|
"VectorDisableSidebarPersistence": {
|
||||||
"value": false,
|
"value": false,
|
||||||
|
|
Loading…
Reference in a new issue