Spaces:
Running
Running
:root { | |
--background-color: #ffffff; | |
--text-color: #000000; | |
--header-background: #f0f0f0; | |
--global-column-background: #f0f8ff; | |
--dimension-column-background: #f0fff0; | |
--hover-background: rgba(0, 0, 0, 0.1); | |
--border-color: #e0e0e0; | |
--row-even-global: #e6f3ff; | |
--row-even-dimension: #e6ffe6; | |
} | |
@media (prefers-color-scheme: dark) { | |
:root { | |
--background-color: #1a1a1a; | |
--text-color: #e0e0e0; | |
--header-background: #333333; | |
--global-column-background: rgba(0, 50, 100, 0.3); | |
--dimension-column-background: rgba(0, 75, 0, 0.3); | |
--hover-background: rgba(255, 255, 255, 0.1); | |
--border-color: #3a3a3a; | |
--row-even-global: rgba(0, 60, 120, 0.3); | |
--row-even-dimension: rgba(0, 90, 0, 0.3); | |
} | |
} | |
/* Light mode styles */ | |
.custom-dataframe { | |
color: #000000; | |
background-color: #ffffff; | |
} | |
.custom-dataframe thead th { | |
background-color: #f0f0f0 ; | |
color: #000000 ; | |
} | |
.custom-dataframe tbody td { | |
background-color: #ffffff ; | |
color: #000000 ; | |
} | |
.custom-dataframe thead th:nth-child(-n+4), | |
.custom-dataframe tbody td:nth-child(-n+4) { | |
background-color: #f0f8ff ; | |
} | |
.custom-dataframe thead th:nth-child(n+5), | |
.custom-dataframe tbody td:nth-child(n+5) { | |
background-color: #f0fff0 ; | |
} | |
.custom-dataframe tbody tr:nth-child(even) td:nth-child(-n+4) { | |
background-color: #e6f3ff ; | |
} | |
.custom-dataframe tbody tr:nth-child(even) td:nth-child(n+5) { | |
background-color: #e6ffe6 ; | |
} | |
/* Dark mode styles */ | |
@media (prefers-color-scheme: dark) { | |
.custom-dataframe { | |
color: #e0e0e0 ; | |
background-color: #1a1a1a ; | |
} | |
.custom-dataframe thead th { | |
background-color: #333333 ; | |
color: #ffffff ; | |
} | |
.custom-dataframe tbody td { | |
background-color: #1a1a1a ; | |
color: #e0e0e0 ; | |
} | |
.custom-dataframe thead th:nth-child(-n+4), | |
.custom-dataframe tbody td:nth-child(-n+4) { | |
background-color: rgba(0, 50, 100, 0.3) ; | |
} | |
.custom-dataframe thead th:nth-child(n+5), | |
.custom-dataframe tbody td:nth-child(n+5) { | |
background-color: rgba(0, 75, 0, 0.3) ; | |
} | |
.custom-dataframe tbody tr:nth-child(even) td:nth-child(-n+4) { | |
background-color: rgba(0, 60, 120, 0.3) ; | |
} | |
.custom-dataframe tbody tr:nth-child(even) td:nth-child(n+5) { | |
background-color: rgba(0, 90, 0, 0.3) ; | |
} | |
.custom-dataframe tbody tr:hover td { | |
background-color: rgba(255, 255, 255, 0.1) ; | |
} | |
} | |