fix a lot of problems and add js for menus

This commit is contained in:
Jean-Baptiste Pasquier
2020-01-20 13:57:03 +01:00
parent 36a045cacb
commit 83e6957934
15 changed files with 169 additions and 117 deletions

View File

@ -15,8 +15,10 @@
/*-webkit-backface-visibility: hidden;*/
&.sidebar-is-closed {
margin-left: -15.5rem;
transform: translate(15.5rem);
@include breakpoint(769px, 0) {
margin-left: -15.5rem;
transform: translate(15.5rem);
}
}
}
@ -111,7 +113,14 @@
}
}
&.jsRightMenu.offsite-is-closed {
&.jsRightMenu {
@include breakpoint(sm) {
display: none;
}
}
&.jsRightMenu:not([open]) {
transform: translate(15.5rem);
& .jsOffsiteToggle::before {
@ -119,9 +128,10 @@
}
}
&.jsRightMenu.mobile-opened {
&.jsRightMenu[open] {
@include breakpoint(sm) {
display: block;
background: $color-221-51-90;
bottom: 0;
box-shadow: 0 2px 9px 0 rgba(0, 0, 0, 0.12);
@ -132,12 +142,5 @@
z-index: 1;
}
}
&.jsRightMenu.mobile-closed {
@include breakpoint(sm) {
display: none;
}
}
}
}