jenkins-bot has submitted this change and it was merged.
Change subject: Add support for page status indicators
......................................................................
Add support for page status indicators
Corresponding patch in core: I2389ff9a5332a2b1d033eb75f0946e5241cfaaf4.
Bug: 23796
Change-Id: I90a8ae15ac8275d084ea5f47b6b2684d5e6c7412
---
M VectorTemplate.php
M components/common.less
2 files changed, 24 insertions(+), 4 deletions(-)
Approvals:
Jforrester: Looks good to me, approved
Jdlrobson: Looks good to me, but someone else must approve
Esanders: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/VectorTemplate.php b/VectorTemplate.php
index cd70ac4..6601842 100644
--- a/VectorTemplate.php
+++ b/VectorTemplate.php
@@ -102,6 +102,7 @@
<?php
}
?>
+ <?php echo $this->getIndicators(); ?>
<h1 id="firstHeading" class="firstHeading" lang="<?php
$this->data['pageLanguage'] =
$this->getSkin()->getTitle()->getPageViewLanguage()->getHtmlCode();
diff --git a/components/common.less b/components/common.less
index ac4b850..857ecf5 100644
--- a/components/common.less
+++ b/components/common.less
@@ -50,16 +50,14 @@
}
h1,
- h2,
- #firstHeading {
+ h2 {
font-family: @content-heading-font-family;
line-height: @heading-line-height;
margin-bottom: 0.25em;
padding: 0;
}
- h1,
- #firstHeading {
+ h1 {
font-size: @content-heading-font-size;
}
@@ -98,6 +96,27 @@
font-size: 100%; /* (reset) */
font-family: @content-font-family;
}
+
+ .firstHeading {
+ /* Change the default from mediawiki.skinning CSS to let
indicators float into heading area */
+ overflow: visible;
+ }
+
+ .mw-indicators {
+ float: right;
+ line-height: @content-line-height;
+ font-size: @content-font-size;
+ /* Ensure that this is displayed on top of .mw-body-content and
clickable */
+ position: relative;
+ z-index: 1;
+ }
+
+ .mw-indicator {
+ display: -moz-inline-block;
+ display: inline-block;
+ zoom: 1;
+ *display: inline;
+ }
}
/* Hide empty portlets */
--
To view, visit https://gerrit.wikimedia.org/r/162610
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I90a8ae15ac8275d084ea5f47b6b2684d5e6c7412
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/skins/Vector
Gerrit-Branch: master
Gerrit-Owner: Bartosz DziewoĆski <[email protected]>
Gerrit-Reviewer: Edokter <[email protected]>
Gerrit-Reviewer: Esanders <[email protected]>
Gerrit-Reviewer: Isarra <[email protected]>
Gerrit-Reviewer: Jack Phoenix <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: Trevor Parscal <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits