Jdlrobson has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/348183 )

Change subject: Improved infobox style hacks
......................................................................

Improved infobox style hacks

* Increased padding for table cells;
* The table occupies the whole window on mobile devices;
* The table has a border;
* Allow purging the LESS cache.

Bug: T162913
Change-Id: Ia22378873b87cc3b6fd13cf9fbcabf1442d00550
---
M resources/skins.minerva.content.styles/hacks.less
M resources/skins.minerva.content.styles/styles.less
M resources/skins.minerva.tablet.styles/hacks.less
M resources/skins.minerva.tablet.styles/styles.less
4 files changed, 16 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/83/348183/1

diff --git a/resources/skins.minerva.content.styles/hacks.less 
b/resources/skins.minerva.content.styles/hacks.less
index d9dae73..468bf44 100644
--- a/resources/skins.minerva.content.styles/hacks.less
+++ b/resources/skins.minerva.content.styles/hacks.less
@@ -38,7 +38,7 @@
                &.infobox {
                        font-size: 90%;
                        position: relative;
-                       border: 0;
+                       border: 1px solid @colorGray14;
                        margin-bottom: 2em;
                        text-align: left;
                        background-color: @colorGray15;
@@ -46,8 +46,13 @@
                        th, td {
                                vertical-align: top;
                                border: 0;
-                               border-bottom: 1px solid @colorGray13;
-                               padding: 0.2em;
+                               border-bottom: 1px solid @colorGray14;
+                               font-size: 13px;
+                               padding: 7px 10px;
+                       }
+
+                       td {
+                               width: 100%;
                        }
 
                        tr:last-child th,
diff --git a/resources/skins.minerva.content.styles/styles.less 
b/resources/skins.minerva.content.styles/styles.less
index 705eb66..f7924f3 100644
--- a/resources/skins.minerva.content.styles/styles.less
+++ b/resources/skins.minerva.content.styles/styles.less
@@ -10,3 +10,4 @@
 & when (@wgMinervaApplyKnownTemplateHacks = 1) {
        @import (multiple) 'hacks.less';
 }
+// V2
diff --git a/resources/skins.minerva.tablet.styles/hacks.less 
b/resources/skins.minerva.tablet.styles/hacks.less
index 102189a..c833a7b 100644
--- a/resources/skins.minerva.tablet.styles/hacks.less
+++ b/resources/skins.minerva.tablet.styles/hacks.less
@@ -22,6 +22,11 @@
                width: auto !important;
                float: right !important;
                clear: right !important;
+
+               td {
+                       width: auto;
+               }
+
        }
        // banners inserted by other extensions, i.e. Zero
        #mw-mf-page-center .mw-mf-banner {
diff --git a/resources/skins.minerva.tablet.styles/styles.less 
b/resources/skins.minerva.tablet.styles/styles.less
index 6c3da62..c3df496 100644
--- a/resources/skins.minerva.tablet.styles/styles.less
+++ b/resources/skins.minerva.tablet.styles/styles.less
@@ -2,3 +2,5 @@
 & when (@wgMinervaApplyKnownTemplateHacks = 1) {
        @import (multiple) 'hacks.less';
 }
+
+// V2

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia22378873b87cc3b6fd13cf9fbcabf1442d00550
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: printstyles
Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org>
Gerrit-Reviewer: Bmansurov <bmansu...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to