[Enhancement] Hide sidebar on tablets (#358)

* [Enhancement] Hide sidebar on tablets

* Remove unnecessary console.log

* Use beforeDestroy
This commit is contained in:
Pranav Raj S
2019-12-12 12:53:15 +05:30
committed by Sojan Jose
parent 2b41e91768
commit febc4bef83
12 changed files with 136 additions and 38 deletions

View File

@@ -456,12 +456,12 @@ $meter-fill-bad: $alert-color;
// --------------
$offcanvas-sizes: (
small: 250px,
medium: 350px,
small: 23rem,
medium: 23rem,
);
$offcanvas-vertical-sizes: (
small: 250px,
medium: 350px,
small: 23rem,
medium: 23rem,
);
$offcanvas-background: $light-gray;
$offcanvas-shadow: 0 0 10px rgba($black, 0.7);

View File

@@ -17,9 +17,6 @@
@include flex;
@include flex-align($x: center, $y: middle);
@include margin($zero);
> span {
@include padding($zero $space-small $zero $space-small);
}
}
}

View File

@@ -3,9 +3,14 @@
flex-direction: column;
.chat-list__top {
@include flex;
@include padding($space-normal $zero $space-small $zero);
align-items: center;
justify-content: space-between;
.page-title {
float: left;
@include flex;
margin-bottom: $zero;
margin-left: $space-normal;
}

View File

@@ -126,3 +126,22 @@
margin-top: auto;
}
}
.hamburger--menu {
cursor: pointer;
display: none;
margin-right: $space-normal;
@media screen and (max-width: 1200px){
display: block;
}
}
.header--icon {
display: block;
margin-right: $space-normal;
@media screen and (max-width: 1200px){
display: none;
}
}