Skip to content

Commit 1b5ee68

Browse files
committed
fix: styles in light mode in tables are white
1 parent 236c2e9 commit 1b5ee68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_static/pyos.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ ugly scrollbar to show all the time
179179

180180
html[data-theme="light"] {
181181
--pst-color-primary: var(--pyos-color-primary);
182-
--pst-color-primary-text: #fff;
182+
--pst-color-primary-text: #272424;
183183
--pst-color-primary-highlight: #053f49;
184184
--sd-color-primary: var(--pst-color-primary);
185185
--sd-color-primary-text: var(--pst-color-primary-text);
@@ -405,7 +405,7 @@ aside.footnote {
405405
/* Make the first column in a table a "header" like thing */
406406

407407
/* Dark mode fix for tables */
408-
@media (prefers-color-scheme: dark) {
408+
@media (data-theme="dark") {
409409
td:not(.row-header):nth-child(1) {
410410
background-color: var(--pst-color-tbl-row); /* Adjust the dark mode color */
411411
color: #ffffff; /* Adjust the text color for better contrast */

0 commit comments

Comments
 (0)