From eb41e554c77930cad46a2c1650e7c585de7336fb Mon Sep 17 00:00:00 2001 From: ndrooo Date: Fri, 9 Aug 2024 10:54:08 -0400 Subject: [PATCH] Use a ` ) } diff --git a/quartz/components/styles/darkmode.scss b/quartz/components/styles/darkmode.scss index 348c6f793..30ea94466 100644 --- a/quartz/components/styles/darkmode.scss +++ b/quartz/components/styles/darkmode.scss @@ -1,14 +1,11 @@ .darkmode { position: relative; + background: none; + border: none; width: 20px; height: 20px; margin: 0 10px; - & > .toggle { - display: none; - box-sizing: border-box; - } - & svg { cursor: pointer; opacity: 0; @@ -31,18 +28,18 @@ :root[saved-theme="dark"] .toggle ~ label { & > #dayIcon { - opacity: 0; + display: none; } & > #nightIcon { - opacity: 1; + display: inline; } } :root .toggle ~ label { & > #dayIcon { - opacity: 1; + display: inline; } & > #nightIcon { - opacity: 0; + display: none; } }