jenkins-bot has submitted this change and it was merged.

Change subject: More CSS adjustments, link corrections
......................................................................


More CSS adjustments, link corrections

Change-Id: Idf038c19d8ee73c0e22d99780db908f21a143b96
---
M MainPage/Resources.php
M MainPage/resources/css/ext.translate.mainpage.css
M MainPage/resources/js/ext.translate.mainpage.js
M MainPage/specials/SpecialTwnMainPage.php
4 files changed, 61 insertions(+), 14 deletions(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/MainPage/Resources.php b/MainPage/Resources.php
index 7eed1d9..fe617f1 100644
--- a/MainPage/Resources.php
+++ b/MainPage/Resources.php
@@ -18,6 +18,8 @@
                'jquery.uls.grid',
                'jquery.uls',
                'ext.translate.statsbar',
+               'mediawiki.util',
+               'mediawiki.Uri',
        ),
        'position' => 'top',
 ) + $resourcePaths;
diff --git a/MainPage/resources/css/ext.translate.mainpage.css 
b/MainPage/resources/css/ext.translate.mainpage.css
index 122aefc..6f98a76 100644
--- a/MainPage/resources/css/ext.translate.mainpage.css
+++ b/MainPage/resources/css/ext.translate.mainpage.css
@@ -10,7 +10,10 @@
 }
 
 .twn-mainpage-header .uls-trigger {
-       padding-left: 20px;
+       background-position: bottom left;
+       padding-left: 30px;
+       color: #3366BB;
+       padding-top: 50px;
 }
 
 .twn-mainpage-title { /* @embed */
@@ -20,22 +23,30 @@
        height: 75px;
 }
 
-.twn-mainpage-title .twn-brand-name,
+.twn-mainpage-title .twn-brand-name {
+       padding-left: 50px;
+       padding-top: 20px;
+       font-size: 24px;
+}
+
 .twn-mainpage-title .twn-brand-motto {
        padding-left: 50px;
+       padding-top: 5px;
+       font-size: 16px;
 }
 
 .twn-mainpage-header {
-       border-bottom: 2px solid blue;
-       height: 100px;
+       border-bottom: 2px solid #3366BB;
 }
 
 .twn-mainpage-header .login {
        float: right;
+       color: #3366BB;
+       padding-top: 50px;
 }
 
 .twn-mainpage-banner {
-       min-height: 300px;
+       min-height: 500px;
        background: transparent url('../banners/dance.jpg') no-repeat scroll 
left 40%;
        background-size: 100%;
 }
@@ -50,12 +61,13 @@
 }
 
 .stats-tile {
-       background-color: blue;
+       background-color: #3366BB;
        color: white;
        height: 130px;
        margin: auto;
        max-width: 130px;
        padding: 10px;
+       opacity: 0.9;
 }
 
 .unused.stats-tile {
@@ -105,8 +117,8 @@
 }
 
 .twn-mainpage-footer {
-       background-color: rgb(190, 181, 181);
-       height: 100px;
+       background-color: #bbbbbb;
+       height: 50px;
        font-size: 16px;
        padding: 10px;
        margin: 10px;
@@ -117,6 +129,10 @@
        margin: 10px;
        padding: 10px;
        height: 200px;
+}
+
+.project-tile:hover {
+       border: 2px solid #3366BB;
 }
 
 .project-icon {
@@ -209,3 +225,8 @@
        border-top: 1px solid black;
        border-bottom: 1px solid black;
 }
+
+.twn-mainpage-footer a {
+       text-align: center;
+       color: #3366BB;
+}
diff --git a/MainPage/resources/js/ext.translate.mainpage.js 
b/MainPage/resources/js/ext.translate.mainpage.js
index c767de8..d71466c 100644
--- a/MainPage/resources/js/ext.translate.mainpage.js
+++ b/MainPage/resources/js/ext.translate.mainpage.js
@@ -1 +1,10 @@
-//test
\ No newline at end of file
+( function ( $, mw ) {
+       'use strict';
+
+       $( document ).ready( function () {
+               $( '.twn-mainpage-search button' ).on( 'click', function () {
+                       window.location.href = new mw.Uri( mw.util.wikiGetlink( 
'Special:SearchTranslations' ) )
+                               .extend( { query: $( 'input.searchbox' ).val() 
} );
+               } );
+       } );
+}( jQuery, mediaWiki ) );
diff --git a/MainPage/specials/SpecialTwnMainPage.php 
b/MainPage/specials/SpecialTwnMainPage.php
index e6c3be3..d794210 100644
--- a/MainPage/specials/SpecialTwnMainPage.php
+++ b/MainPage/specials/SpecialTwnMainPage.php
@@ -41,6 +41,8 @@
        }
 
        public function header() {
+               global $wgScript;
+
                $out = Html::openElement( 'div', array( 'class' => 'row 
twn-mainpage-header' ) );
                $out .= Html::openElement( 'div', array( 'class' => 'ten 
columns twn-mainpage-title' ) );
                $out .= Html::element( 'div',
@@ -62,6 +64,7 @@
                $out .= Html::element( 'a',
                        array(
                                'class' => 'login column text-right',
+                               'href' => 
"$wgScript?title=Special:UserLogin&returnto=Special%3AMainPage",
                        )
                        , 'Login' );
                $out .= Html::closeElement( 'div' );
@@ -72,12 +75,13 @@
                $out = Html::openElement( 'div', array( 'class' => 'row 
twn-mainpage-search' ) );
                $out .= Html::element( 'span',
                        array(
-                               'class' => 'search-label',
+                               'class' => 'one column search-label',
                        ) );
                $out .= Html::element( 'input',
                        array(
                                'class' => 'ten columns searchbox',
-                               'placeholder' => 'Find and fix translations'
+                               'placeholder' => 'Find and fix translations',
+                               'type' => 'search',
                        ) );
 
                $out .= Html::element( 'button',
@@ -145,11 +149,22 @@
        }
 
        public function footer() {
+               global $wgScript;
+
                $out = Html::openElement( 'div', array( 'class' => 'row 
twn-mainpage-footer' ) );
                $out .= Html::element( 'a', array( 'class' => 'three column' ), 
'About' );
-               $out .= Html::element( 'a', array( 'class' => 'three column' ), 
'Languages supported' );
-               $out .= Html::element( 'a', array( 'class' => 'three column' ), 
'Special pages' );
-               $out .= Html::element( 'a', array( 'class' => 'three column' ), 
'Help' );
+               $out .= Html::element( 'a', array(
+                       'class' => 'three column',
+                       'href' => "$wgScript?title=Special:SupportedLanguages",
+               ), 'Languages supported' );
+               $out .= Html::element( 'a', array(
+                       'class' => 'three column',
+                       'href' => "$wgScript?title=Special:SpecialPages",
+               ), 'Special pages' );
+               $out .= Html::element( 'a', array(
+                       'class' => 'three column',
+                       'href' => "$wgScript?title=Translating:Index",
+               ), 'Help' );
                $out .= Html::closeElement( 'div' );
                return $out;
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/56574
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Idf038c19d8ee73c0e22d99780db908f21a143b96
Gerrit-PatchSet: 2
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to