From 52873938117a2752ef2ae18fdb32171a3265e25b Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 27 May 2024 12:40:06 +0200 Subject: [PATCH] chore: fix dark mode loading screen --- src/routes/tutorial/[slug]/Loading.svelte | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/routes/tutorial/[slug]/Loading.svelte b/src/routes/tutorial/[slug]/Loading.svelte index 57683501..ff248a73 100644 --- a/src/routes/tutorial/[slug]/Loading.svelte +++ b/src/routes/tutorial/[slug]/Loading.svelte @@ -191,11 +191,9 @@ height: 10rem; } - @media (prefers-color-scheme: dark) { - .loading { - --faded: #444; - --progress: #555; - --cutout: var(--sk-back-2); - } + :global(.dark) .loading { + --faded: #444; + --progress: #555; + --cutout: var(--sk-back-2); }