diff options
author | Jeffrey Tse <jeffreytse.mail@gmail.com> | 2023-07-13 17:50:33 +0800 |
---|---|---|
committer | Jeffrey Tse <jeffreytse.mail@gmail.com> | 2023-07-13 17:50:54 +0800 |
commit | 997515d10e6d049672b49d24fd69ab302e293dec (patch) | |
tree | 8318f7ec78a131e41181577bc621621170f4fbd8 /_sass | |
parent | 03ea17117db4dd00e3dd38984389181c2c0faa2f (diff) |
feat: custom click-to-top config support
Diffstat (limited to '_sass')
-rw-r--r-- | _sass/misc/click-to-top.scss | 11 |
1 files changed, 9 insertions, 2 deletions
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; } } |