-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathtable-styling.css
More file actions
71 lines (60 loc) · 1.63 KB
/
table-styling.css
File metadata and controls
71 lines (60 loc) · 1.63 KB
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
/* Custom button link styles */
.button-link {
display: inline-block;
padding: 0.5rem 1rem;
border-radius: 0.375rem;
text-decoration: none;
transition: all 0.2s;
}
/* Table styling - use consistent faint border colors for both rows and columns */
table {
border-collapse: collapse;
width: 100%;
}
/* Apply faint border color to all table cells */
table th,
table td {
border: 1px solid rgba(0, 0, 0, 0.1);
padding: 0.5rem 0.75rem !important;
}
/* Dark mode - use faint borders */
.dark table th,
.dark table td {
border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Table header background - filled/darker background */
table th {
background-color: rgba(0, 0, 0, 0.05);
}
/* Dark mode - darker header background */
.dark table th {
background-color: rgba(255, 255, 255, 0.05);
}
/* Alternating row colors */
table tbody tr:nth-child(even) td {
background-color: rgba(0, 0, 0, 0.02);
}
.dark table tbody tr:nth-child(even) td {
background-color: rgba(255, 255, 255, 0.02);
}
/* Ensure column borders match row borders (faint style) */
table th:not(:last-child),
table td:not(:last-child) {
border-right: 1px solid rgba(0, 0, 0, 0.1);
}
.dark table th:not(:last-child),
.dark table td:not(:last-child) {
border-right: 1px solid rgba(255, 255, 255, 0.1);
}
/* Row borders - keep faint */
table tr:not(:last-child) th,
table tr:not(:last-child) td {
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.dark table tr:not(:last-child) th,
.dark table tr:not(:last-child) td {
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#banner > div > p, #banner > div > p > a, #banner > div, #banner > button > svg {
color: black !important;
}