From 8b2adfd8fa74db148760da299d1a754bc0cf4fbf Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 13 Jul 2022 09:52:28 +0200 Subject: Diverse small fixes - Alter the CSS for tables to work with different ways of wring them. That makes these two selectors equivalent: table > tr:first-child table > thead table > :not(thead + tbody) > tr:first-child That also makes these two selectors equivalent: table > tr:nth-child(even) table > thead + tbody > tr:nth-child(odd) table > :not(thead + tbody) > tr:nth-child(even) Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/web/pull/350) --- inc/screen.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/inc/screen.css b/inc/screen.css index 1e40269..ff2b465 100644 --- a/inc/screen.css +++ b/inc/screen.css @@ -1569,8 +1569,12 @@ body > footer p:last-child { /* OPENSSL WEBSITE ADDITIONS */ /* newsflash table */ -tr:first-child { font-weight: bold; border-bottom: 1px solid black; } -tr:nth-child(even) { background-color: #D9f0ff; } +table > tr:first-child, table > thead, table > :not(thead + tbody) > tr:first-child { + font-weight: bold; border-bottom: 1px solid black; +} +table > tr:nth-child(even), table > thead + tbody > tr:nth-child(odd), table > :not(thead + tbody) > tr:nth-child(even) { + background-color: #D9f0ff; +} td.d { float: left; width: 20%; } td.t { float: right; width: 80%; } -- cgit v1.2.3