Spaces:
Running
Running
add missing css
Browse files- static/css/table.css +57 -0
static/css/table.css
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.custom-dataframe thead th:nth-child(-n+5),
|
2 |
+
.custom-dataframe tbody td:nth-child(-n+5) {
|
3 |
+
background-color: var(--global-column-background) !important;
|
4 |
+
}
|
5 |
+
|
6 |
+
.custom-dataframe thead th:nth-child(n+6),
|
7 |
+
.custom-dataframe tbody td:nth-child(n+6) {
|
8 |
+
background-color: var(--dimension-column-background) !important;
|
9 |
+
}
|
10 |
+
|
11 |
+
.custom-dataframe tbody tr:nth-child(even) td:nth-child(-n+5) {
|
12 |
+
background-color: var(--row-even-global) !important;
|
13 |
+
}
|
14 |
+
|
15 |
+
.custom-dataframe tbody tr:nth-child(even) td:nth-child(n+6) {
|
16 |
+
background-color: var(--row-even-dimension) !important;
|
17 |
+
}
|
18 |
+
|
19 |
+
/* Dark mode styles */
|
20 |
+
@media (prefers-color-scheme: dark) {
|
21 |
+
.custom-dataframe {
|
22 |
+
color: var(--text-color) !important;
|
23 |
+
background-color: var(--background-color) !important;
|
24 |
+
}
|
25 |
+
|
26 |
+
.custom-dataframe thead th {
|
27 |
+
background-color: var(--header-background) !important;
|
28 |
+
color: var(--text-color) !important;
|
29 |
+
}
|
30 |
+
|
31 |
+
.custom-dataframe tbody td {
|
32 |
+
background-color: var(--background-color) !important;
|
33 |
+
color: var(--text-color) !important;
|
34 |
+
}
|
35 |
+
|
36 |
+
.custom-dataframe thead th:nth-child(-n+5),
|
37 |
+
.custom-dataframe tbody td:nth-child(-n+5) {
|
38 |
+
background-color: var(--global-column-background) !important;
|
39 |
+
}
|
40 |
+
|
41 |
+
.custom-dataframe thead th:nth-child(n+6),
|
42 |
+
.custom-dataframe tbody td:nth-child(n+6) {
|
43 |
+
background-color: var(--dimension-column-background) !important;
|
44 |
+
}
|
45 |
+
|
46 |
+
.custom-dataframe tbody tr:nth-child(even) td:nth-child(-n+5) {
|
47 |
+
background-color: var(--row-even-global) !important;
|
48 |
+
}
|
49 |
+
|
50 |
+
.custom-dataframe tbody tr:nth-child(even) td:nth-child(n+6) {
|
51 |
+
background-color: var(--row-even-dimension) !important;
|
52 |
+
}
|
53 |
+
|
54 |
+
.custom-dataframe tbody tr:hover td {
|
55 |
+
background-color: var(--hover-background) !important;
|
56 |
+
}
|
57 |
+
}
|