forked from mystiq/hydrogen-web
Make side-bar responsive
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
9ac415fa4f
commit
eab6ca3baf
1 changed files with 10 additions and 1 deletions
|
@ -72,7 +72,7 @@ the layout viewport up without resizing it when the keyboard shows */
|
|||
.middle .close-middle { display: none; }
|
||||
/* mobile layout */
|
||||
@media screen and (max-width: 800px) {
|
||||
.SessionView:not(.middle-shown) {
|
||||
.SessionView:not(.middle-shown, .SideBarActive) {
|
||||
grid-template:
|
||||
"status" auto
|
||||
"left" 1fr /
|
||||
|
@ -86,8 +86,17 @@ the layout viewport up without resizing it when the keyboard shows */
|
|||
1fr;
|
||||
}
|
||||
|
||||
.SessionView.SideBarActive{
|
||||
grid-template:
|
||||
"status" auto
|
||||
"right" 1fr /
|
||||
1fr;
|
||||
|
||||
}
|
||||
|
||||
.SessionView:not(.middle-shown) .room-placeholder { display: none; }
|
||||
.SessionView.middle-shown .LeftPanel { display: none; }
|
||||
.SessionView.SideBarActive .middle { display: none; }
|
||||
|
||||
/* show back button */
|
||||
.middle .close-middle { display: block !important; }
|
||||
|
|
Loading…
Reference in a new issue