From e56cb31e856c02403c3fa9f4349ef45e123d744e Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Wed, 9 Oct 2024 21:36:45 +0200 Subject: [PATCH] remove flashing when initially loading the pages --- src/styles/global.css | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/styles/global.css b/src/styles/global.css index 0cf729b..5800c9f 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -1,24 +1,16 @@ :root { - --background-body: #fff; - --text-main: #36393b; - --text-secondary: #6b6f72; + --background-body: #202122; + --text-main: #fff; + --text-secondary: #ccc; --primary-color: #548e9b; --font-family-serif: Merriweather, serif; --font-family-sans: 'Fira Sans', sans-serif; } - @view-transition { navigation: auto; } -:root.theme-dark { - --background-body: #202122; - --text-main: #fff; - --text-secondary: #ccc; - --primary-color: #548e9b; -} - html { overflow-y: scroll; scroll-behavior: smooth;