From 226891b9b1630c90835d1bc1a239c2ebbb5c9ff1 Mon Sep 17 00:00:00 2001
From: kabirgh <15871468+kabirgh@users.noreply.github.com>
Date: Sun, 11 Feb 2024 20:20:44 +0000
Subject: [PATCH] fix(fast rebuild): call only required emitters, don't always copy assets (#845)

---
 quartz/components/styles/darkmode.scss |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/quartz/components/styles/darkmode.scss b/quartz/components/styles/darkmode.scss
index 46291d8..348c6f7 100644
--- a/quartz/components/styles/darkmode.scss
+++ b/quartz/components/styles/darkmode.scss
@@ -1,8 +1,8 @@
 .darkmode {
-  float: right;
-  padding: 1rem;
-  min-width: 30px;
   position: relative;
+  width: 20px;
+  height: 20px;
+  margin: 0 10px;
 
   & > .toggle {
     display: none;
@@ -16,12 +16,19 @@
     width: 20px;
     height: 20px;
     top: calc(50% - 10px);
-    margin: 0 7px;
     fill: var(--darkgray);
     transition: opacity 0.1s ease;
   }
 }
 
+:root[saved-theme="dark"] {
+  color-scheme: dark;
+}
+
+:root[saved-theme="light"] {
+  color-scheme: light;
+}
+
 :root[saved-theme="dark"] .toggle ~ label {
   & > #dayIcon {
     opacity: 0;

--
Gitblit v1.10.0