Merge "Datatable: Apply `padding` only on `th` & `td` elements"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 23 Jan 2019 04:18:29 +0000 (04:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 23 Jan 2019 04:18:29 +0000 (04:18 +0000)
1  2 
resources/src/mediawiki.legacy/shared.css

@@@ -326,7 -326,7 +326,7 @@@ a.new 
   * wikitable class for skinning normal tables
   * keep in sync with commonPrint.css
   */
 -table.wikitable {
 +.wikitable {
        background-color: #f8f9fa;
        color: #222;
        margin: 1em 0;
        border-collapse: collapse;
  }
  
 -table.wikitable > tr > th,
 -table.wikitable > tr > td,
 -table.wikitable > * > tr > th,
 -table.wikitable > * > tr > td {
 +.wikitable > tr > th,
 +.wikitable > tr > td,
 +.wikitable > * > tr > th,
 +.wikitable > * > tr > td {
        border: 1px solid #a2a9b1;
        padding: 0.2em 0.4em;
  }
  
 -table.wikitable > tr > th,
 -table.wikitable > * > tr > th {
 +.wikitable > tr > th,
 +.wikitable > * > tr > th {
        background-color: #eaecf0;
        text-align: center;
  }
  
 -table.wikitable > caption {
 +.wikitable > caption {
        font-weight: bold;
  }
  
  /**
   * Data table style
   *
-  * Transparent table with suddle borders
-  * and blue row-highlighting.
+  * Table with suddle borders
+  * and row-highlighting.
   */
  .mw-datatable {
+       border: 1px solid #a2a9b1;
        border-collapse: collapse;
  }
  
- .mw-datatable,
  .mw-datatable td,
  .mw-datatable th {
        border: 1px solid #a2a9b1;
-       padding: 0 0.15em 0 0.15em;
+       padding: 0 0.15em;
  }
  
  .mw-datatable th {