jenkins-bot has submitted this change and it was merged.
Change subject: HTML changes to make styling with CSS easier
......................................................................
HTML changes to make styling with CSS easier
Change-Id: Ifbcc20aa2c64002f48237ec3bbd578a1bdc04d2f
---
M resources/css/ext.translate.mainpage.css
M specials/SpecialTwnMainPage.php
2 files changed, 17 insertions(+), 6 deletions(-)
Approvals:
Nikerabbit: Looks good to me, approved
jenkins-bot: Verified
diff --git a/resources/css/ext.translate.mainpage.css
b/resources/css/ext.translate.mainpage.css
index 015939a..fcf2d14 100644
--- a/resources/css/ext.translate.mainpage.css
+++ b/resources/css/ext.translate.mainpage.css
@@ -59,6 +59,7 @@
/* Actual image is added in php */
background: transparent none no-repeat scroll left center;
background-size: 100%;
+ position: relative;
}
.banner-attribution {
@@ -66,8 +67,9 @@
clear: left;
font-size: 10px;
padding: 10px 10px 20px 10px;
- position: relative;
+ position: absolute;
opacity: 0.8;
+ bottom: 0;
}
.banner-attribution a {
@@ -479,6 +481,10 @@
margin-bottom: 10px;
}
+ .banner-attribution {
+ position: relative;
+ }
+
.main-widget {
opacity: 1;
}
diff --git a/specials/SpecialTwnMainPage.php b/specials/SpecialTwnMainPage.php
index 7763ff0..5c0a2c8 100644
--- a/specials/SpecialTwnMainPage.php
+++ b/specials/SpecialTwnMainPage.php
@@ -5,7 +5,7 @@
* @file
* @author Niklas Laxström
* @author Santhosh Thottingal
- * @license GPL2+
+ * @license GPL-2.0+
*/
/**
@@ -232,13 +232,14 @@
$out = Html::openElement( 'div', $bannerAttribs );
$out .= $this->twnStats();
- $out .= $this->userWidget();
if ( isset( $image['attribution'] ) ) {
$out .= Html::rawElement( 'div', array( 'class' =>
'banner-attribution' ),
$this->msg( 'twnmp-bannerwho',
$image['attribution'] )->plain()
);
}
+
+ $out .= $this->userWidget();
$out .= Html::closeElement( 'div' );
@@ -422,9 +423,13 @@
$out .= Html::closeElement( 'li' );
$out .= Html::closeElement( 'ul' );
$out .= Html::openElement( 'div', $row );
- $out .= Html::element( 'div', array(
- 'class' => 'eight columns offset-by-one
signup-language-selector'
- ), $this->msg( 'twnmp-choose-another-language' )->text() );
+ $out .= Html::openElement( 'div', array( 'class' => 'eight
columns offset-by-one' ) );
+ $out .= Html::element(
+ 'div',
+ array( 'class' => 'signup-language-selector' ),
+ $this->msg( 'twnmp-choose-another-language' )->text()
+ );
+ $out .= Html::closeElement( 'div' );
$out .= Html::closeElement( 'div' );
$out .= Html::element(
'h2',
--
To view, visit https://gerrit.wikimedia.org/r/83078
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ifbcc20aa2c64002f48237ec3bbd578a1bdc04d2f
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/TwnMainPage
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Pginer <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits