-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
113 lines (94 loc) · 2.18 KB
/
styles.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
:root {
--table-header-text-color: #fff;
--table-header-color: #04AA6D;
--row-selection-color: #bbb;
--row-hover-color: #ddd;
--row-odd-color: #fffff;
--row-even-color: #f2f2f2;
--table-border-color: #bbb;
}
main {
display: grid;
grid-template-columns: 1fr;
place-content: center;
place-items: center;
gap: 1rem;
padding: 1em;
}
main>article {
align-self: start;
display: flex;
flex-direction: column;
align-items: stretch;
padding: 0.5em;
gap: 1em;
}
main>article section {
display: flex;
flex-direction: column;
align-items: stretch;
flex-wrap: wrap;
margin: 0.5em;
}
main table {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
text-align: center;
max-width: 500px;
}
main table th,
main table td {
border: 1px solid var(--table-border-color);
padding: 8px;
}
main table td {
width: 20px;
}
main table tr:nth-child(even) {
background-color: var(--row-even-color);
}
main table tr[data-selected="true"] {
background-color: var(--row-selection-color);
}
main table tbody[data-selected-only="true"]>tr:not([data-selected="true"]) {
display: none;
}
main table tbody[data-selected-only="true"]>tr[data-selected="true"]:not([hidden]):nth-child(odd) {
background-color: var(--row-odd-color);
}
main table tbody[data-selected-only="true"]>tr[data-selected="true"]:not([hidden]):nth-child(even) {
background-color: var(--row-even-color);
}
main table>tbody>tr:hover {
background-color: var(--row-hover-color);
}
main table td:nth-child(2),
main table td:nth-child(5),
main table td:nth-child(9) {
border-right-width: 4px;
}
main table th {
padding-top: 12px;
padding-bottom: 12px;
background-color: var(--table-header-color);
color: var(--table-header-text-color);
}
#vexflow {
display: flex;
justify-content: center;
align-items: center;
}
@media screen and (min-width: 790px) {
main {
grid-template-columns: 1fr 1fr;
}
main article:nth-child(odd) {
justify-self: end;
}
main article:nth-child(even) {
justify-self: start;
}
main table td {
width: 24px
}
}