/
table.css
52 lines (44 loc) · 1.03 KB
/
table.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
table {
border-collapse: separate;
border-spacing: 0;
width: 100%;
}
th {
padding: 0.75rem 0.5rem 0.75rem 0.5rem;
text-transform: uppercase;
font-weight: 400;
font-size: 0.75rem;
text-align: left;
color: var(--accents-5);
background: var(--accents-1);
border-top: var(--accents-2) 1px solid;
border-bottom: var(--accents-2) 1px solid;
}
th:first-child {
border-top-left-radius: 0.3rem;
border-bottom-left-radius: 0.3rem;
border-left: var(--accents-2) 1px solid;
}
th:last-child {
border-top-right-radius: 0.3rem;
border-bottom-right-radius: 0.3rem;
border-right: var(--accents-2) 1px solid;
}
td {
padding: 0.5rem;
color: var(--accents-6);
}
tr:not(:last-of-type) td {
border-bottom: var(--accents-2) 1px solid;
}
tr {
transition: 0.1s ease;
}
tr:hover {
background: var(--accents-1);
filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.05));
}
th::selection,
td::selection {
color: var(--foreground);
}