From 3152fab64e6f5b4f36cab6d7097807e5bca71981 Mon Sep 17 00:00:00 2001 From: Leah Wasser Date: Mon, 19 May 2025 15:05:30 -0400 Subject: [PATCH] fix: styles in light mode in tables are white --- _static/pyos.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_static/pyos.css b/_static/pyos.css index 7a467b8d7..3980d4cb6 100644 --- a/_static/pyos.css +++ b/_static/pyos.css @@ -179,7 +179,7 @@ ugly scrollbar to show all the time html[data-theme="light"] { --pst-color-primary: var(--pyos-color-primary); - --pst-color-primary-text: #fff; + --pst-color-primary-text: #272424; --pst-color-primary-highlight: #053f49; --sd-color-primary: var(--pst-color-primary); --sd-color-primary-text: var(--pst-color-primary-text); @@ -405,7 +405,7 @@ aside.footnote { /* Make the first column in a table a "header" like thing */ /* Dark mode fix for tables */ -@media (prefers-color-scheme: dark) { +@media (data-theme="dark") { td:not(.row-header):nth-child(1) { background-color: var(--pst-color-tbl-row); /* Adjust the dark mode color */ color: #ffffff; /* Adjust the text color for better contrast */