From 0fbe2d562ece63d09cf39c286e6aacb84fa3656c Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Mon, 7 Jun 2021 20:51:55 +1000 Subject: [PATCH] Add stripes to table --- html/main.css | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/html/main.css b/html/main.css index 0105049..1558ae0 100644 --- a/html/main.css +++ b/html/main.css @@ -68,6 +68,8 @@ a:hover { table { border-collapse: collapse; + color-adjust: exact; + -webkit-print-color-adjust: exact; } .result td { padding: 0px 8px; @@ -88,23 +90,15 @@ tr.stage-kind td { min-width: 5rem; color: #1b2839; background-color: #f0f5fb; - color-adjust: exact; - -webkit-print-color-adjust: exact; } td.excluded { background-color: #fde2e2; - color-adjust: exact; - -webkit-print-color-adjust: exact; } td.elected { background-color: #e0fdc5; - color-adjust: exact; - -webkit-print-color-adjust: exact; } tr.info td { background-color: #f0f5fb; - color-adjust: exact; - -webkit-print-color-adjust: exact; } tr.stage-no td:not(:empty), tr.transfers td { border-top: 1px solid #76858c; @@ -113,6 +107,28 @@ tr.info:last-child td, .bb { border-bottom: 1px solid #76858c; } +/* Table stripes */ + +tr.stage-no td:nth-child(even), +tr.stage-comment td:nth-child(odd), +tr.candidate.transfers td:nth-child(even):not(.elected):not(.excluded), +tr.candidate.votes td:nth-child(odd):not(.elected):not(.excluded) { + background-color: #f9f9f9; +} +tr.candidate.transfers td.elected:nth-child(even), +tr.candidate.votes td.elected:nth-child(odd) { + background-color: #e0f7ca; +} +tr.candidate.transfers td.excluded:nth-child(even), +tr.candidate.votes td.excluded:nth-child(odd) { + background-color: #fbdfdf; +} +tr.info.stage-kind td:nth-child(odd), +tr.info.transfers td:nth-child(even), +tr.info.votes td:nth-child(odd) { + background-color: #e8eef7; +} + /* BLT input tool */ #selBallots {