Debian Codegraph @

lib/compass/utilities/tables/_alternating-rows-and-columns.scss

raw
1 @mixin alternating-rows-and-columns($even-row-color, $odd-row-color, $dark-intersection, $header-color: white, $footer-color: white) {
2 th {
3 background-color: $header-color;
4 &.even, &:nth-child(2n) {
5 background-color: $header-color - $dark-intersection; } }
6 tr {
7 &.odd, &:nth-child(2n+1) {
8 td {
9 background-color: $odd-row-color;
10 &.even, &:nth-child(2n) {
11 background-color: $odd-row-color - $dark-intersection; } } }
12 }
13 tr.even {
14 td {
15 background-color: $even-row-color;
16 &.even, &:nth-child(2n) {
17 background-color: $even-row-color - $dark-intersection; } } }
18 tfoot {
19 th, td {
20 background-color: $footer-color;
21 &.even, &:nth-child(2n) {
22 background-color: $footer-color - $dark-intersection; } } } }