https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112476

Revision: 112476
Author:   jdlrobson
Date:     2012-02-27 10:29:57 +0000 (Mon, 27 Feb 2012)
Log Message:
-----------
table styling - fix for bug 34711

adjust styling for tables within tables

Modified Paths:
--------------
    trunk/extensions/MobileFrontend/stylesheets/beta_common.css
    trunk/extensions/MobileFrontend/stylesheets/common.css

Modified: trunk/extensions/MobileFrontend/stylesheets/beta_common.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/beta_common.css 2012-02-27 
10:22:19 UTC (rev 112475)
+++ trunk/extensions/MobileFrontend/stylesheets/beta_common.css 2012-02-27 
10:29:57 UTC (rev 112476)
@@ -215,7 +215,7 @@
 
 table {
        border-spacing: 0 !important;
-       width: 100%;
+       max-width: 100%;
        border-collapse: collapse !important;
        border: 1px solid #cccccc;
        padding: 3px;
@@ -248,7 +248,6 @@
 }
 
 table[style] {
-       width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
 }
@@ -292,6 +291,7 @@
 table td, table th {
        border: 1px solid #cccccc;
        padding: 3px;
+       word-break: break-word;
 }
 
 .mwm-message.mwm-notice {
@@ -336,11 +336,13 @@
 
 table table {
        border: 0;
+       margin-bottom: 0;
 }
 
 table table td,
 table table th {
        border: 0;
+       padding: 0;
 }
 
 table.toc {

Modified: trunk/extensions/MobileFrontend/stylesheets/common.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/common.css      2012-02-27 
10:22:19 UTC (rev 112475)
+++ trunk/extensions/MobileFrontend/stylesheets/common.css      2012-02-27 
10:29:57 UTC (rev 112476)
@@ -214,7 +214,7 @@
 
 table {
        border-spacing: 0 !important;
-       width: 100%;
+       max-width: 100%;
        border-collapse: collapse !important;
        border: 1px solid #cccccc;
        padding: 3px;
@@ -247,7 +247,6 @@
 }
 
 table[style] {
-       width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
 }
@@ -291,6 +290,7 @@
 table td, table th {
        border: 1px solid #cccccc;
        padding: 3px;
+       word-break: break-word;
 }
 
 .mwm-message.mwm-notice {
@@ -335,11 +335,13 @@
 
 table table {
        border: 0;
+       margin-bottom: 0;
 }
 
 table table td,
 table table th {
        border: 0;
+       padding: 0;
 }
 
 table.toc {


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

Reply via email to