From c36e1d8fff70ab6a817e00aa053b996342554681 Mon Sep 17 00:00:00 2001
From: Alexander Sohn <39831045+Sohn123@users.noreply.github.com>
Date: Fri, 18 Nov 2022 14:46:04 +0000
Subject: [PATCH] fix: move theme class to root node to prevent white flash (#392)
---
assets/scss/partials/layout/_body.scss | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/assets/scss/partials/layout/_body.scss b/assets/scss/partials/layout/_body.scss
index 654bb2b..ae07333 100644
--- a/assets/scss/partials/layout/_body.scss
+++ b/assets/scss/partials/layout/_body.scss
@@ -2,12 +2,8 @@
width: 100%;
margin: 0 auto;
// work around to style body
- &.theme--dark {
- color: $primary--darkmode;
- background-color: $accent--darkmode;
- }
- &.theme--light {
- color: $primary--lightmode;
- background-color: $accent--lightmode;
+ @include themed() {
+ color: t('primary');
+ background-color: t('accent');
}
}
--
Gitblit v1.10.0