-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Support mobile devices #176
Changes from 4 commits
62b76f1
7bb458a
e0a62ab
4a94932
9f62e7a
50fc165
1b36c37
13e8e09
83a13f5
7dbce38
9303630
a6c040f
9b6d405
e584e1a
ca36437
1ea892e
d7640b9
0e22bf9
2a755df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,15 @@ $color1: rgb(70, 70, 70); | |
$color2: #808080; | ||
$color3: rgb(38, 38, 38); | ||
|
||
$tablet-width: 768px; | ||
$desktop-width: 1024px; | ||
|
||
@mixin phone { | ||
@media (max-width: #{$tablet-width - 1px}) { | ||
@content; | ||
} | ||
} | ||
|
||
.main-app-container { | ||
opacity: 0; | ||
transition: opacity 0.5s ease; | ||
|
@@ -104,6 +113,55 @@ body, | |
flex-direction: column; | ||
flex-wrap: nowrap; | ||
overflow: hidden; | ||
|
||
@include phone { | ||
bottom: 0; | ||
left: 0 !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
width: 100% !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
z-index: 90; | ||
} | ||
} | ||
|
||
.hamburger { | ||
display: none; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Properties should be ordered color, display, fill |
||
|
||
@include phone { | ||
display: inline-block; | ||
position: relative; | ||
top: 9px; | ||
} | ||
} | ||
|
||
.mobile-sidebar { | ||
display: none; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Properties should be ordered color, display |
||
|
||
@include phone { | ||
background: $color1; | ||
bottom: 0; | ||
display: block; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Properties should be ordered background, bottom, display, left, position, top, transform, transition, width, z-index |
||
left: 0; | ||
position: absolute; | ||
top: 0; | ||
transform: translateX(-100vw); | ||
transition: all linear 250ms; | ||
width: 100vw; | ||
z-index: 91; | ||
|
||
&.open { | ||
transform: none; | ||
} | ||
|
||
.close { | ||
color: $primary; | ||
padding: 5px; | ||
position: absolute; | ||
right: 10px; | ||
top: 10px; | ||
} | ||
} | ||
} | ||
|
||
.tabs { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!important should not be used