summaryrefslogtreecommitdiff
path: root/src/components/SideBar.module.scss
diff options
context:
space:
mode:
authorHaishan <[email protected]>2018-12-28 21:43:36 +0800
committerHaishan <[email protected]>2018-12-28 21:43:36 +0800
commitf342857c8ce1207d15e69875c23366bda5dca852 (patch)
tree9e3298bb6814c2b2c4c17a2c2b02506c24de6ee6 /src/components/SideBar.module.scss
parentecdb8cab5210d506f49e771ecb49f159ff6b824c (diff)
style: a bite of responsive yo
Diffstat (limited to 'src/components/SideBar.module.scss')
-rw-r--r--src/components/SideBar.module.scss26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/components/SideBar.module.scss b/src/components/SideBar.module.scss
index ace8a4a..bdf6d6c 100644
--- a/src/components/SideBar.module.scss
+++ b/src/components/SideBar.module.scss
@@ -12,6 +12,9 @@
align-items: center;
justify-content: center;
padding: 25px 0 15px;
+ @media (max-width: 768px) {
+ padding: 0;
+ }
color: #2a477a;
transition: color 0.3s ease-in-out;
@@ -25,8 +28,15 @@
}
}
+.rows {
+ @media (max-width: 768px) {
+ display: flex;
+ justify-content: space-between;
+ overflow: scroll;
+ }
+}
+
// a router link
-.rowActive,
.row {
color: var(--color-text);
text-decoration: none;
@@ -35,6 +45,11 @@
align-items: center;
padding: 8px 20px;
+ @media (max-width: 768px) {
+ flex-direction: column;
+ // display: flex;
+ }
+
svg {
color: var(--color-icon);
}
@@ -42,6 +57,11 @@
.rowActive {
background: var(--color-sb-active-row-bg);
+
+ @media (max-width: 768px) {
+ background: none;
+ border-bottom: 2px solid #387cec;
+ }
}
.label {
@@ -51,6 +71,10 @@
.themeSwitchContainer {
$sz: 50px;
+ @media (max-width: 768px) {
+ display: none;
+ }
+
position: absolute;
bottom: 0;
left: 50%;