diff --git a/docs/assets/css/unicado.css b/docs/assets/css/unicado.css index 86edb4c7529febfedd879e24a42890fca4bdea8e..ff31e3d4fe794c18c2f3ca496b35216a32269146 100644 --- a/docs/assets/css/unicado.css +++ b/docs/assets/css/unicado.css @@ -3,6 +3,7 @@ --primary-color: #2C3E50; /* Primary color for headers, hero section, and cards */ --background-color: #34495E; /* Background color for main content areas */ --text-color: #D1D5DB; /* Main text color for readability on dark backgrounds */ + --math-color: var(--text-color); /* Set the default color for equations */ --button-bg-color: #ffffff; /* Background color for buttons */ --accent-color: #E74C3C; /* Accent color for links and hover effects */ --secondary-accent: #1ABC9C; /* Secondary accent color for icons */ @@ -10,6 +11,10 @@ --link-hover-color: #E74C3C; /* Hover color for links */ } +[data-md-color-scheme=default] { + --math-color: #000000; /* Set the default color for equations */ +} + .md-header { background-color: var(--primary-color); } @@ -47,10 +52,6 @@ font-size: 1.1em; } -/* Make all LaTeX-style math equations white */ -:root { - --math-color: #ffffff; /* Set the default color for equations */ -} /* MathJax equations */ .MathJax, mjx-container, math { @@ -58,7 +59,7 @@ } /* KaTeX equations */ -.katex, .katex-display { +.katex, .katex-display, .katex * { color: var(--math-color) !important; }