Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/huyb1991/hugo-lamp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuy Nguyen <huyb.1991@gmail.com>2020-07-02 10:03:49 +0300
committerHuy Nguyen <huyb.1991@gmail.com>2020-07-02 10:03:49 +0300
commit1d77c1386c91be8b6996e5f2b9a62124fe5ee7e7 (patch)
tree4c84218c4e3316b2b7d7ae087adbe6ea0c7f4a3d
parent91ffa8a55c1d6eda2ec333d0035dc47c03ee2445 (diff)
Update styles to show/hide dark mode
-rw-r--r--styles/base/_css_variables.scss14
1 files changed, 14 insertions, 0 deletions
diff --git a/styles/base/_css_variables.scss b/styles/base/_css_variables.scss
index 3efbe20..b98f099 100644
--- a/styles/base/_css_variables.scss
+++ b/styles/base/_css_variables.scss
@@ -1,7 +1,21 @@
:root {
--main-bg-color: $main-background;
+
+ .sunny {
+ display: none;
+ }
+ .moon {
+ display: block;
+ }
}
.dark-mode:root {
--main-bg-color: black;
+
+ .sunny {
+ display: block;
+ }
+ .moon {
+ display: none;
+ }
}