From e0d18e3298ec43c546cf08f1c1cc7e8fe58b3e95 Mon Sep 17 00:00:00 2001 From: Isarra Date: Mon, 26 Aug 2019 21:37:28 +0000 Subject: [PATCH] Style datatables consistently with wikitables Bug: T220232 Change-Id: Idd286a154f1b615502e0c1bee4db4f704d9bd176 --- resources/screen-common.less | 41 ++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/resources/screen-common.less b/resources/screen-common.less index 67ef492..508720d 100644 --- a/resources/screen-common.less +++ b/resources/screen-common.less @@ -709,30 +709,45 @@ body :not( :checked ) > .toctogglespan:after { .mw-changeslist-legend, .mw-body .mw-search-profile-tabs, .mw-body fieldset#mw-searchoptions, -.wikitable { +.wikitable, +.mw-datatable { color: @text; .box; } +.mw-body .mw-search-profile-tabs { + padding: 0.5em; +} + +.mw-datatable, .wikitable { border-color: @base70; -} -.mw-body .mw-search-profile-tabs { - padding: 0.5em; + > tr > th, + > tr > td, + > * > tr > th, + > * > tr > td { + border: 1px solid @base70; + padding: 0.4em 0.5em; + } + + > tr > th, + > * > tr > th { + border-bottom-width: 2px; + } + + > tr > td, + > * > tr > td { + background: @base90; + } } -.wikitable > tr > th, -.wikitable > tr > td, -.wikitable > * > tr > th, -.wikitable > * > tr > td { - border: 1px solid @base70; - padding: 0.5em; +.mw-datatable th { + background: @blue-bright; } -.wikitable > tr > th, -.wikitable > * > tr > th { - border-bottom-width: 2px; +.wikitable th { + background: @base80; } /* Color bars */