By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 tables.css

View raw Download
text/plain • 1.48 kiB
ASCII text
        
            
1
table {
2
border-collapse: collapse;
3
background: var(--color-table);
4
color: var(--color-table-text);
5
font: var(--table-font);
6
}
7
8
td, th {
9
padding: var(--padding-cell);
10
border-top: var(--border-cell-vertical);
11
border-bottom: var(--border-cell-vertical);
12
border-left: var(--border-cell-horizontal);
13
border-right: var(--border-cell-horizontal);
14
}
15
16
tr:nth-child(odd) {
17
background: var(--color-row-odd);
18
color: var(--color-row-odd-text);
19
}
20
21
tr:nth-child(even) {
22
background: var(--color-row-even);
23
color: var(--color-row-even-text);
24
}
25
26
th {
27
background: var(--color-row-header);
28
color: var(--color-row-header-text);
29
font: var(--table-header-font);
30
}
31
32
ol.table {
33
background: var(--color-table);
34
color: var(--color-table-text);
35
padding: 0;
36
margin: 0;
37
list-style: none;
38
font: var(--table-font);
39
}
40
41
ol.table > li {
42
border-top: var(--border-cell-vertical);
43
display: flex;
44
padding: var(--padding-cell);
45
align-items: center;
46
justify-content: left;
47
flex-flow: row wrap;
48
}
49
50
ol.table > li:nth-child(odd) {
51
background: var(--color-row-odd);
52
color: var(--color-row-odd-text);
53
}
54
55
ol.table > li:nth-child(even) {
56
background: var(--color-row-even);
57
color: var(--color-row-even-text);
58
}
59
60
ol.table > li:last-of-type {
61
border-bottom: var(--border-cell-vertical);
62
}
63
64
ol.table > li.list-header {
65
background: var(--color-row-header);
66
color: var(--color-row-header-text);
67
font: var(--table-header-font);
68
}