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-01 17:52:43 +0300
committerHuy Nguyen <huyb.1991@gmail.com>2020-07-01 17:52:43 +0300
commit72198afa31a9d57e213e2fecc8d5f434ad59a1e1 (patch)
treed4cdb6e92da726019e6c7fded7549990ad22f235
parent640837ae8b7261152cfdd9ee2e8dab294b3c44c8 (diff)
Add css variables and dark/light bg color
-rw-r--r--styles/base/_all.scss1
-rw-r--r--styles/base/_css_variables.scss7
2 files changed, 8 insertions, 0 deletions
diff --git a/styles/base/_all.scss b/styles/base/_all.scss
index f70832d..280ce32 100644
--- a/styles/base/_all.scss
+++ b/styles/base/_all.scss
@@ -1,5 +1,6 @@
@import
'variables',
+ 'css_variables',
'reset',
'base',
'layout';
diff --git a/styles/base/_css_variables.scss b/styles/base/_css_variables.scss
new file mode 100644
index 0000000..3efbe20
--- /dev/null
+++ b/styles/base/_css_variables.scss
@@ -0,0 +1,7 @@
+:root {
+ --main-bg-color: $main-background;
+}
+
+.dark-mode:root {
+ --main-bg-color: black;
+}