diff options
author | Richard Levitte <levitte@openssl.org> | 2022-07-13 10:52:28 +0300 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2022-07-15 07:02:44 +0300 |
commit | 8b2adfd8fa74db148760da299d1a754bc0cf4fbf (patch) | |
tree | e2ebb935424c516fea2b09ea253123c4b9a5b977 | |
parent | 017f25cfc4b4232ffca1e108919bf29dd25b92b2 (diff) |
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 <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/web/pull/350)
-rw-r--r-- | inc/screen.css | 8 |
1 files 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%; } |