Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Commit 8b2adfd

Browse files
committed
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 <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from #350)
1 parent 017f25c commit 8b2adfd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

inc/screen.css

+6-2
Original file line numberDiff line numberDiff line change
@@ -1569,8 +1569,12 @@ body > footer p:last-child {
15691569
/* OPENSSL WEBSITE ADDITIONS */
15701570

15711571
/* newsflash table */
1572-
tr:first-child { font-weight: bold; border-bottom: 1px solid black; }
1573-
tr:nth-child(even) { background-color: #D9f0ff; }
1572+
table > tr:first-child, table > thead, table > :not(thead + tbody) > tr:first-child {
1573+
font-weight: bold; border-bottom: 1px solid black;
1574+
}
1575+
table > tr:nth-child(even), table > thead + tbody > tr:nth-child(odd), table > :not(thead + tbody) > tr:nth-child(even) {
1576+
background-color: #D9f0ff;
1577+
}
15741578
td.d { float: left; width: 20%; }
15751579
td.t { float: right; width: 80%; }
15761580

0 commit comments

Comments
 (0)