Kaldari has uploaded a new change for review.

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


Change subject: Adding styling for wikitables.
......................................................................

Adding styling for wikitables.

Wikitables are used on hundreds of thousands of articles. Having
them be completely unstyled makes them very difficult to use. (Since
there are no borders it is difficult to tell where one cell of data
ends and another begins.) This CSS is a slimmed down version of the
CSS in skins/common/shared.css.

Change-Id: Ib3376651b8bbca3fb5b5ff8e3020efc435be0408
---
M less/common/common.less
1 file changed, 20 insertions(+), 0 deletions(-)


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

diff --git a/less/common/common.less b/less/common/common.less
index 51dde3d..c53d8de 100644
--- a/less/common/common.less
+++ b/less/common/common.less
@@ -204,6 +204,26 @@
                }
        }
 
+       /* wikitable class for skinning normal tables */
+       table.wikitable {
+               margin: 1em 0;
+               border: 1px @grayLight solid;
+       }
+       table.wikitable > tr > th,
+       table.wikitable > tr > td,
+       table.wikitable > * > tr > th,
+       table.wikitable > * > tr > td {
+               border: 1px @grayLight solid;
+       }
+       table.wikitable > tr > th,
+       table.wikitable > * > tr > th {
+               background-color: #f2f2f2;
+               text-align: center;
+       }
+       table.wikitable > caption {
+               font-weight: bold;
+       }
+
        // Hide the image magnification icon normally displayed in image 
captions
        div.magnify {
                display: none;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib3376651b8bbca3fb5b5ff8e3020efc435be0408
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>

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

Reply via email to