From b7affdcdd54a93bd8fa3c9bdb01d334f4cecce4e Mon Sep 17 00:00:00 2001 From: Cass Unterholzner Date: Tue, 21 Jul 2026 22:40:17 -0500 Subject: [PATCH] Starting to work on Table of Contents CSS --- src/routes/+layout.svelte | 1 + static/style/light.css | 2 +- static/style/toc.css | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 static/style/toc.css diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 327e540..755a191 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -10,6 +10,7 @@ + {@render children()} diff --git a/static/style/light.css b/static/style/light.css index a655d28..1f028ce 100644 --- a/static/style/light.css +++ b/static/style/light.css @@ -8,5 +8,5 @@ --text-2: #b3b3b3; --primary-color: #ef5350; - --hover-color: white; + --hover-color: black; } \ No newline at end of file diff --git a/static/style/toc.css b/static/style/toc.css new file mode 100644 index 0000000..2487f3b --- /dev/null +++ b/static/style/toc.css @@ -0,0 +1,17 @@ +.toc { + @media only screen and (max-width: 1365px) { + display: none; + } + + li, a { + font-family: sans-serif; + color: var(--text-2); + transition: none; + border-bottom: none; + } + + a:hover { + color: var(--hover-color) !important; + transition: none; + } +} \ No newline at end of file -- 2.51.2