From 4fc184776c0636cc939e420bfca9d2b30958b330 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Tue, 24 Dec 2024 13:15:39 -0500 Subject: [PATCH] =?UTF-8?q?fix(mediawiki):=20=F0=9F=90=9B=20fix=20hidden?= =?UTF-8?q?=20MW=20version=20in=20Special:Version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mediawiki/special/mediawiki.special.less | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/skinStyles/mediawiki/special/mediawiki.special.less b/skinStyles/mediawiki/special/mediawiki.special.less index d06bdbdf4..44a2c7fec 100644 --- a/skinStyles/mediawiki/special/mediawiki.special.less +++ b/skinStyles/mediawiki/special/mediawiki.special.less @@ -49,10 +49,6 @@ text-align: center; border: var( --border-width-base ) solid var( --border-color-base ); border-radius: var( --border-radius-medium ); - - &:first-child { - display: none; // Hide table header - } } td { @@ -64,6 +60,20 @@ font-weight: var( --font-weight-semi-bold ); } } + + // MW 1.43+ - Remove when we drop 1.39 + &:has( thead ) { + thead tr { + // Hide table header + display: none; + } + } + + &:not( :has( thead ) ) { + tbody tr:first-child { + display: none; + } + } } .citizen-overflow-wrapper:has( #sv-software ) {