aboutsummaryrefslogtreecommitdiff
path: root/src/mobile/MobileMenu.scss
diff options
context:
space:
mode:
authorLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-06-25 12:00:43 -0700
committerLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-06-25 12:00:43 -0700
commitdb92851456f168affcdbd4053b38e7b9f6b7a97d (patch)
treea8fc1a1629f6b0393858352a6b3158a7172b0c9a /src/mobile/MobileMenu.scss
parent627f4e582fe3a18d1c971b7e3850605e662afb7a (diff)
fix image flikering (hopefully), changed sidebar UI, and changed handle click
Diffstat (limited to 'src/mobile/MobileMenu.scss')
-rw-r--r--src/mobile/MobileMenu.scss50
1 files changed, 42 insertions, 8 deletions
diff --git a/src/mobile/MobileMenu.scss b/src/mobile/MobileMenu.scss
index 53bc48034..ec8946578 100644
--- a/src/mobile/MobileMenu.scss
+++ b/src/mobile/MobileMenu.scss
@@ -24,10 +24,10 @@ body {
.navbar .cover {
position: absolute;
- right: 20px;
- top: 30px;
- height: 70px;
- width: 70px;
+ right: 0px;
+ top: 0px;
+ height: 120px;
+ width: 120px;
background-color: whitesmoke;
z-index: 200;
}
@@ -38,7 +38,21 @@ body {
top: 30px;
height: 70px;
width: 70px;
- transition: all 300ms ease-in-out 200ms;
+ transition: all 400ms ease-in-out 200ms;
+ z-index: 180;
+}
+
+.navbar .background {
+ position: absolute;
+ right: 0px;
+ top: 0px;
+ height: 120px;
+ width: 120px;
+ //border: 1px solid black;
+}
+
+.navbar .background.active {
+ background-color: lightgrey;
}
.navbar .toggle-btn-home {
@@ -73,6 +87,7 @@ body {
height: 4px;
background: black;
transition: all 200ms ease;
+ z-index: 180;
}
.navbar .toggle-btn span:nth-child(1) {
@@ -107,8 +122,8 @@ body {
top: 120px;
opacity: 0;
right: -100%;
- width: 100%;
- height: calc(100% - (120px));
+ width: 80%;
+ height: calc(80% - (120px));
z-index: 101;
background-color: whitesmoke;
transition: all 400ms ease 50ms;
@@ -116,6 +131,7 @@ body {
// overflow-y: auto;
// -webkit-overflow-scrolling: touch;
// border-right: 5px solid black;
+ box-shadow: 0 0 5px 5px grey;
}
.sidebar .item {
@@ -142,6 +158,24 @@ body {
position: relative;
}
+.blanket {
+ position: fixed;
+ top: 120px;
+ opacity: 0.5;
+ right: -100%;
+ width: 100%;
+ height: calc(100% - (120px));
+ z-index: 101;
+ background-color: grey;
+ padding: 20px;
+}
+
+.blanket.active {
+ position: absolute;
+ right: 0%;
+ z-index: 100;
+}
+
.home {
position: absolute;
top: 30px;
@@ -213,7 +247,7 @@ body {
.sidebar.active {
position: absolute;
- right: 0%;
+ right:0%;
opacity: 1;
z-index: 101;
}