Fix table in dark theme
This commit is contained in:
parent
77d3a3dace
commit
c34d96fdd1
|
@ -17,6 +17,8 @@
|
|||
--button-shadow-color-normal: rgba(108, 108, 108, 0.2);
|
||||
--button-shadow-color-hover: rgba(108, 108, 108, 0.3);
|
||||
--toggle-darkmode-button-color: #fff;
|
||||
--table-background-color-odd: #fafafa;
|
||||
--table-head-border-bottom: #e2e2e2;
|
||||
}
|
||||
|
||||
[data-theme="dark"] {
|
||||
|
@ -37,6 +39,8 @@
|
|||
--button-shadow-color-normal: rgba(10, 10, 10, 0.5);
|
||||
--button-shadow-color-hover: rgba(10, 10, 10, 0.5);
|
||||
--toggle-darkmode-button-color: #efd114;
|
||||
--table-background-color-odd: #050505;
|
||||
--table-head-border-bottom: #1d1d1d;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
@ -58,5 +62,7 @@
|
|||
--button-shadow-color-normal: rgba(10, 10, 10, 0.5);
|
||||
--button-shadow-color-hover: rgba(10, 10, 10, 0.5);
|
||||
--toggle-darkmode-button-color: #efd114;
|
||||
--table-background-color-odd: #050505;
|
||||
--table-head-border-bottom: #1d1d1d;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -330,7 +330,7 @@
|
|||
}
|
||||
|
||||
thead {
|
||||
border-bottom: 1px solid #e2e2e2;
|
||||
border-bottom: 1px solid var(--table-head-border-bottom);
|
||||
|
||||
td {
|
||||
font-weight: 600;
|
||||
|
@ -338,8 +338,11 @@
|
|||
}
|
||||
|
||||
tbody {
|
||||
tr:nth-child(even) {
|
||||
background-color: var(--background-color);
|
||||
}
|
||||
tr:nth-child(odd) {
|
||||
background-color: #fafafa;
|
||||
background-color: var(--table-background-color-odd);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue