From 997515d10e6d049672b49d24fd69ab302e293dec Mon Sep 17 00:00:00 2001
From: Jeffrey Tse <jeffreytse.mail@gmail.com>
Date: Thu, 13 Jul 2023 17:50:33 +0800
Subject: feat: custom click-to-top config support

---
 _sass/misc/click-to-top.scss | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

(limited to '_sass')

diff --git a/_sass/misc/click-to-top.scss b/_sass/misc/click-to-top.scss
index 00f543c..84495aa 100644
--- a/_sass/misc/click-to-top.scss
+++ b/_sass/misc/click-to-top.scss
@@ -9,7 +9,6 @@
   border-radius: 32px;
   right: 60px;
   bottom: 48px;
-  background: white;
   cursor: pointer;
   opacity: 0;
   transform: translateY(10px);
@@ -39,8 +38,16 @@
   transform: translateY(0);
 }
 
+html[data-theme="light"] {
+  .click-to-top {
+    background-color: $click-to-top-light-background-color;
+    color: $click-to-top-light-color;
+  }
+}
+
 html[data-theme="dark"] {
   .click-to-top {
-    background: #34323D;
+    background-color: $click-to-top-dark-background-color;
+    color: $click-to-top-dark-color;
   }
 }
-- 
cgit v1.2.3