aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-15 09:28:58 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-15 09:28:58 -0800
commit82ae577a037beb38582157dd686998836aa99d93 (patch)
tree0629e2b16acb0b65c01421e474568aac1c03ec1b
parenta2954daf15b035d87e2f33b6be3ca5edfb9dacc5 (diff)
downloadneko-82ae577a037beb38582157dd686998836aa99d93.tar.gz
neko-82ae577a037beb38582157dd686998836aa99d93.tar.bz2
neko-82ae577a037beb38582157dd686998836aa99d93.zip
Clean up redundant font CSS variables and consolidate :root blocks
-rw-r--r--frontend/src/index.css32
1 files changed, 15 insertions, 17 deletions
diff --git a/frontend/src/index.css b/frontend/src/index.css
index acabee9..22fc7d0 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -2,6 +2,20 @@
/* Font Variables */
--font-body: Palatino, 'Palatino Linotype', 'Palatino LT STD', 'Book Antiqua', Georgia, serif;
--font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
+
+ line-height: 1.5;
+ font-size: 18px;
+
+ /* Light Mode Defaults */
+ --bg-color: #ffffff;
+ --text-color: rgba(0, 0, 0, 0.87);
+ --sidebar-bg: #ccc;
+ --link-color: #0000ee;
+ /* Standard blue link */
+
+ color-scheme: light dark;
+ color: var(--text-color);
+ background-color: var(--bg-color);
}
html,
@@ -32,8 +46,7 @@ h5,
/* Font Themes */
.font-default {
- --font-body: Palatino, 'Palatino Linotype', 'Palatino LT STD', 'Book Antiqua', Georgia, serif;
- --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
+ /* Uses :root defaults */
font-family: var(--font-body);
}
@@ -55,21 +68,6 @@ h5,
font-family: var(--font-body);
}
-:root {
- line-height: 1.5;
- font-size: 18px;
-
- /* Light Mode Defaults */
- --bg-color: #ffffff;
- --text-color: rgba(0, 0, 0, 0.87);
- --sidebar-bg: #ccc;
- --link-color: #0000ee;
- /* Standard blue link */
-
- color-scheme: light dark;
- color: var(--text-color);
- background-color: var(--bg-color);
-}
.theme-light {
--bg-color: #ffffff;