Kunalgrover05 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/120356

Change subject: Fix language bar design
......................................................................

Fix language bar design

Language bar <table> form replaced by <divs>

Bug: 55386
Change-Id: I72927e8904a29f70f06419bc673799fc92e977a1
---
M resources/css/ext.translate.css
M tag/PageTranslationHooks.php
2 files changed, 9 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/56/120356/1

diff --git a/resources/css/ext.translate.css b/resources/css/ext.translate.css
index a321463..d6902c0 100644
--- a/resources/css/ext.translate.css
+++ b/resources/css/ext.translate.css
@@ -4,25 +4,28 @@
        direction: ltr;
 }
 
-.mw-pt-languages table {
-       direction: ltr;
+.mw-pt-languages {
        border: 1px solid rgb(170, 170, 170);
        background: rgb(246, 249, 237) none repeat scroll 0 0;
        border-collapse: collapse;
-       line-height: 1.2;
+       line-height: 1.5;
        width: 100%;
        clear: both;
+       overflow: auto;
 }
 
 .mw-pt-languages-label {
+       float: left;
        border-right: 1px solid rgb(170, 170, 170);
        padding: 0.5em;
        background: rgb(238, 243, 226) none repeat scroll 0 0;
-       width: 200px;
        font-weight: bold;
+       width: 15%;
 }
 
 .mw-pt-languages-list {
+       width: 80%;
+       float: left;
        padding: 0.5em;
 }
 
diff --git a/tag/PageTranslationHooks.php b/tag/PageTranslationHooks.php
index 425dba1..90daf92 100644
--- a/tag/PageTranslationHooks.php
+++ b/tag/PageTranslationHooks.php
@@ -315,20 +315,13 @@
                        'lang' => $userLangCode,
                        'dir' => $userLangDir
                ) );
-               $out .= Html::openElement( 'table' );
-               $out .= Html::openElement( 'tbody' );
-               $out .= Html::openElement( 'tr', array( 'valign' => 'top' ) );
-               $out .= Html::rawElement( 'td',
-                       array( 'class' => 'mw-pt-languages-label' ),
+               $out .= Html::rawElement( 'div', array( 'class' => 
'mw-pt-languages-label' ),
                        wfMessage( 'tpt-languages-legend' )->escaped()
                );
-               $out .= Html::rawElement( 'td',
+               $out .= Html::rawElement( 'div',
                        array( 'class' => 'mw-pt-languages-list autonym' ),
                        $languages
                );
-               $out .= Html::closeElement( 'tr' );
-               $out .= Html::closeElement( 'tbody' );
-               $out .= Html::closeElement( 'table' );
                $out .= Html::closeElement( 'div' );
 
                return $out;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I72927e8904a29f70f06419bc673799fc92e977a1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Kunalgrover05 <[email protected]>

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

Reply via email to