Skip to content

Commit

Permalink
fix: Table head style in dark mode (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
taorepoara committed Oct 25, 2023
1 parent 9601b9b commit fc9d433
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/static/css/components/.table.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ main>table td {
}

main>table th {
color: rgb(var(--background-color-data));
background-color: rgb(var(--text-color-data));
color: rgb(var(--white-data));
background-color: rgb(var(--black-data));
}

main>table th:first-of-type {
Expand All @@ -29,4 +29,10 @@ main>table th:first-of-type {

main>table th:last-of-type {
border-top-right-radius: 0.25rem;
}

@media (prefers-color-scheme: dark) {
main>table th {
background-color: rgba(var(--white-data), 0.1);
}
}

0 comments on commit fc9d433

Please sign in to comment.