Add stripes to table

This commit is contained in:
RunasSudo 2021-06-07 20:51:55 +10:00
parent 30b68d4992
commit 0fbe2d562e
No known key found for this signature in database
GPG Key ID: 7234E476BF21C61A
1 changed files with 24 additions and 8 deletions

View File

@ -68,6 +68,8 @@ a:hover {
table { table {
border-collapse: collapse; border-collapse: collapse;
color-adjust: exact;
-webkit-print-color-adjust: exact;
} }
.result td { .result td {
padding: 0px 8px; padding: 0px 8px;
@ -88,23 +90,15 @@ tr.stage-kind td {
min-width: 5rem; min-width: 5rem;
color: #1b2839; color: #1b2839;
background-color: #f0f5fb; background-color: #f0f5fb;
color-adjust: exact;
-webkit-print-color-adjust: exact;
} }
td.excluded { td.excluded {
background-color: #fde2e2; background-color: #fde2e2;
color-adjust: exact;
-webkit-print-color-adjust: exact;
} }
td.elected { td.elected {
background-color: #e0fdc5; background-color: #e0fdc5;
color-adjust: exact;
-webkit-print-color-adjust: exact;
} }
tr.info td { tr.info td {
background-color: #f0f5fb; background-color: #f0f5fb;
color-adjust: exact;
-webkit-print-color-adjust: exact;
} }
tr.stage-no td:not(:empty), tr.transfers td { tr.stage-no td:not(:empty), tr.transfers td {
border-top: 1px solid #76858c; border-top: 1px solid #76858c;
@ -113,6 +107,28 @@ tr.info:last-child td, .bb {
border-bottom: 1px solid #76858c; 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 */ /* BLT input tool */
#selBallots { #selBallots {