From ff41758cb57949999c25f981918d9775a4f4a344 Mon Sep 17 00:00:00 2001 From: grmbyrn Date: Tue, 19 Dec 2023 13:56:03 +0000 Subject: [PATCH] fix article links colour on dark mode --- src/app.css | 13 ++++--------- src/routes/+page.svelte | 4 ---- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/app.css b/src/app.css index a4ad15a..578aab6 100644 --- a/src/app.css +++ b/src/app.css @@ -29,14 +29,6 @@ html { --border-light: var(--gray-4); } -a:hover { - color: #62629d; -} - -a:visited { - color: #6464e2; -} - :root { color-scheme: dark; @@ -88,7 +80,7 @@ a:visited { color: #000; } .post a { - color: #fff; + color: var(--text-1-dark); } } @@ -104,6 +96,9 @@ a:visited { --surface-4: var(--surface-4-light); --background: var(--background-light); --border: var(--border-light); + .post a { + color: var(--text-1-light); + } } html, diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 137df36..cf6b8f7 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -82,10 +82,6 @@ text-transform: capitalize; } - a { - color: black; - } - @media (min-width: 768px) { .articles-section { display: flex;