summaryrefslogtreecommitdiff
path: root/src/components/SideBar.module.scss
diff options
context:
space:
mode:
authorHaishan <[email protected]>2018-12-04 23:39:26 +0800
committerHaishan <[email protected]>2018-12-07 00:19:49 +0800
commit3584ff617966af35ddd0fd45ef2df7cdfb8f5071 (patch)
tree83f4f535d1fd3ca1c85807a1c2b397cf9b6733c5 /src/components/SideBar.module.scss
parenta265c62020d4dd3a4e57e5ad0894794461dd8385 (diff)
feat: initial theming support
Diffstat (limited to 'src/components/SideBar.module.scss')
-rw-r--r--src/components/SideBar.module.scss22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/components/SideBar.module.scss b/src/components/SideBar.module.scss
index 86260f4..a0ca07d 100644
--- a/src/components/SideBar.module.scss
+++ b/src/components/SideBar.module.scss
@@ -1,6 +1,6 @@
.root {
- background: #2d2d30;
- // width: 220px;
+ background: var(--color-bg-sidebar);
+ position: relative;
}
.logo {
@@ -48,3 +48,21 @@
.label {
padding-left: 14px;
}
+
+.themeSwitchContainer {
+ $sz: 50px;
+
+ position: absolute;
+ bottom: 0;
+ left: 50%;
+ transform: translateX(-50%);
+ width: $sz;
+ height: $sz;
+ padding: 20px 0;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ svg {
+ display: block;
+ }
+}