Skip to content
Snippets Groups Projects
Commit 1fa7bcce authored by “KatrinBistreck”'s avatar “KatrinBistreck”
Browse files

correct colors of formulas

parent 529ec435
No related branches found
No related tags found
1 merge request!53Feature/light mode
Pipeline #1621253 waiting for manual action
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
--primary-color: #2C3E50; /* Primary color for headers, hero section, and cards */ --primary-color: #2C3E50; /* Primary color for headers, hero section, and cards */
--background-color: #34495E; /* Background color for main content areas */ --background-color: #34495E; /* Background color for main content areas */
--text-color: #D1D5DB; /* Main text color for readability on dark backgrounds */ --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 */ --button-bg-color: #ffffff; /* Background color for buttons */
--accent-color: #E74C3C; /* Accent color for links and hover effects */ --accent-color: #E74C3C; /* Accent color for links and hover effects */
--secondary-accent: #1ABC9C; /* Secondary accent color for icons */ --secondary-accent: #1ABC9C; /* Secondary accent color for icons */
...@@ -10,6 +11,10 @@ ...@@ -10,6 +11,10 @@
--link-hover-color: #E74C3C; /* Hover color for links */ --link-hover-color: #E74C3C; /* Hover color for links */
} }
[data-md-color-scheme=default] {
--math-color: #000000; /* Set the default color for equations */
}
.md-header { .md-header {
background-color: var(--primary-color); background-color: var(--primary-color);
} }
...@@ -47,10 +52,6 @@ ...@@ -47,10 +52,6 @@
font-size: 1.1em; font-size: 1.1em;
} }
/* Make all LaTeX-style math equations white */
:root {
--math-color: #ffffff; /* Set the default color for equations */
}
/* MathJax equations */ /* MathJax equations */
.MathJax, mjx-container, math { .MathJax, mjx-container, math {
...@@ -58,7 +59,7 @@ ...@@ -58,7 +59,7 @@
} }
/* KaTeX equations */ /* KaTeX equations */
.katex, .katex-display { .katex, .katex-display, .katex * {
color: var(--math-color) !important; color: var(--math-color) !important;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment