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

@ -56,6 +56,10 @@
}
}
.notLoggedIn {
visibility: hidden;
}
sib-notifications {
@include breakpoint(sm) {
@ -259,6 +263,7 @@
@include breakpoint(sm) {
display: block;
padding-left: 0;
font-size: 26px;
}
}
}

View File

@ -212,19 +212,14 @@ h5 {
.mobile-sidebar-button {
@include breakpoint(sm) {
float: right;
button {
color: $color-233-18-29;
color: $color-233-18-29;
font-size: 1.8rem;
font-weight: bold!important;
&::before {
font-size: 2.2rem;
margin-right: 1.2rem;
}
}
span {
font-size: 1.8rem;
font-weight: bold;
&::before {
font-size: 2.2rem;
font-weight: normal;
margin-right: 1.2rem;
}
}

View File

@ -189,9 +189,17 @@
}
}
&.jsLeftMenu.mobile-opened {
&.jsLeftMenu {
@include breakpoint(sm) {
display: none;
}
}
&.jsLeftMenu[open] {
@include breakpoint(sm) {
display: block;
bottom: 0;
box-shadow: 0 2px 8px 0 rgba(65, 69, 73, 0.5);
min-width: 80%;
@ -201,11 +209,4 @@
z-index: 1;
}
}
&.jsLeftMenu.mobile-closed {
@include breakpoint(sm) {
display: none;
}
}
}

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;
}
}
}
}

View File

@ -14,7 +14,7 @@
grid-template-columns: 7vh auto;
grid-template-rows: repeat(2, 5.2vh);
>[name='user.account.picture'] {
>[name='account.picture'] {
align-items: center;
align-self: center;
background-color: $color-213-20-91;
@ -61,7 +61,7 @@
margin-bottom: 1px;
margin-left: 0.6rem;
[name='user.groups'] {
[name='groups'] {
@extend %tag-role;
}
}