From: Volker E Date: Fri, 18 Jan 2019 23:35:24 +0000 (-0800) Subject: Datatable: Apply `padding` only on `th` & `td` elements X-Git-Tag: 1.34.0-rc.0~3026^2 X-Git-Url: http://git.cyclocoop.org/data/%7BGarradin/WEBSITE%7D?a=commitdiff_plain;h=6b10efaaed7ee6aed765d38e72c85ef919d98198;p=lhc%2Fweb%2Fwiklou.git Datatable: Apply `padding` only on `th` & `td` elements Applying it on `table` as well results in issues when wanting to override `border-radius` together with `border-collapse`. It's not needed in a well-formed table as every child element would need to reside within a `th` or `td` anyways. Also the only other content carrying element `caption` doesn't receive table's `padding` by default. Change-Id: I5e8c9d47fab806b56e6d03f1611ddbf6d4ea8924 --- diff --git a/resources/src/mediawiki.legacy/shared.css b/resources/src/mediawiki.legacy/shared.css index a98a73f1e1..b40273d9e8 100644 --- a/resources/src/mediawiki.legacy/shared.css +++ b/resources/src/mediawiki.legacy/shared.css @@ -447,18 +447,18 @@ table.wikitable > caption { /** * 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 {