From 14df41737359c4559ac996ab743e88a4ae9f70e6 Mon Sep 17 00:00:00 2001 From: Lee Cattarin Date: Tue, 6 Jan 2026 12:44:14 -0800 Subject: [PATCH] fix broken glitch font --- scripts/nav.js | 2 +- styles/main.css | 24 +++++------------------- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/scripts/nav.js b/scripts/nav.js index 7973cce..7f08af6 100644 --- a/scripts/nav.js +++ b/scripts/nav.js @@ -35,4 +35,4 @@ function populateNav() { } } -populateNav(); \ No newline at end of file +populateNav(); diff --git a/styles/main.css b/styles/main.css index 285f35d..24ec02a 100644 --- a/styles/main.css +++ b/styles/main.css @@ -1,20 +1,19 @@ /* Our default values set as CSS variables */ :root { color-scheme: light dark; - + --color-bg-light: #f0f0f0; --color-text-light: #640054; --color-header-light: #185370; --color-warn-light: #fbcc0a; - - --color-bg-dark: #1f1f1f; + + --color-bg-dark: #1f1f1f; --color-text-dark: #91c73b; --color-header-dark: #ff9b37; --color-warn-dark: #540033; - + --color-text-main: #640054; --color-text-header: #185370; - --font-family: "HK Grotesk"; } /* Basic page style resets */ @@ -25,19 +24,6 @@ display: none !important; } -/* Import fonts */ -@font-face { - font-family: HK Grotesk; - src: url("https://cdn.glitch.me/605e2a51-d45f-4d87-a285-9410ad350515%2FHKGrotesk-Regular.otf?v=1603136326027") - format("opentype"); -} -@font-face { - font-family: HK Grotesk; - font-weight: bold; - src: url("https://cdn.glitch.me/605e2a51-d45f-4d87-a285-9410ad350515%2FHKGrotesk-Bold.otf?v=1603136323437") - format("opentype"); -} - /* Navigation */ #top-nav { position: sticky; @@ -72,7 +58,7 @@ /* Body */ body { - font-family: var(--font-family); + font-family: sans-serif; background-color: light-dark(var(--color-bg-light), var(--color-bg-dark)); color: light-dark(var(--color-text-light), var(--color-text-dark)); }