Template:Alternance/styles.css

From Meta, a Wikimedia project coordination wiki
.alternance,
.alternance2 {
  border-collapse: collapse;
}
 
.alternance > * > tr > th,
.alternance2 > * > tr > th {
 background: #e6e6e6;
}
 
.alternance tr,
.alternance th[scope="row"] {
  background: #fcfcfc;
}
 
.alternance:not(.sortable) tr:nth-child(odd),
.alternance.sortable       tr:nth-child(even),
.alternance:not(.sortable) tr:nth-child(odd) th[scope="row"],
.alternance.sortable       tr:nth-child(even) th[scope="row"],
.alternance2 tr,
.alternance2 th[scope="row"] {
  background: #eee;
}

 
.alternance2 tr:nth-child(odd),
.alternance2 tr:nth-child(odd) th[scope="row"] {
  background: #fcfcfc;
}