2019-01-25 14:47:14 +00:00
|
|
|
#navbar {
|
|
|
|
background-color: $color-purple-dark;
|
|
|
|
color: $color-white;
|
2019-02-04 08:48:39 +00:00
|
|
|
display: block;
|
|
|
|
flex: 0 0 16em;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: auto;
|
|
|
|
transition: flex-basis 0.5s ease-in-out;
|
2019-01-25 14:47:14 +00:00
|
|
|
// max-width: 16rem;
|
|
|
|
// position: relative;
|
|
|
|
// min-height: 100%;
|
|
|
|
|
|
|
|
&.open {
|
|
|
|
transform: translateX(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
sib-router {
|
|
|
|
|
|
|
|
.menu-wrapper {
|
|
|
|
&.is-closed {
|
|
|
|
.sub-menu {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.menu-chevron {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu {
|
2019-02-04 08:48:39 +00:00
|
|
|
cursor: pointer;
|
2019-01-25 14:47:14 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
font-weight: bold;
|
2019-02-04 08:48:39 +00:00
|
|
|
padding: 1.6rem;
|
2019-01-25 14:47:14 +00:00
|
|
|
|
|
|
|
&[active] {
|
|
|
|
background-color: $color-mustard;
|
|
|
|
color: $color-purple-dark;
|
|
|
|
|
|
|
|
.menu-icon:before {
|
|
|
|
background-color: $color-purple-dark;
|
|
|
|
color: $color-white;
|
|
|
|
// transform: perspective(1000px) translateZ(1px) scale(0.8);
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-notification > sib-display > div:first-child {
|
|
|
|
background-color: $color-purple-dark;
|
|
|
|
color: $color-mustard;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-icon {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2019-02-04 08:48:39 +00:00
|
|
|
justify-content: center;
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
font-size: 1.7rem;
|
|
|
|
width: 3.2em;
|
2019-01-25 14:47:14 +00:00
|
|
|
|
|
|
|
&:before {
|
2019-02-04 08:48:39 +00:00
|
|
|
border-radius: 100%;
|
2019-01-25 14:47:14 +00:00
|
|
|
height: 1.9em;
|
|
|
|
line-height: 1.9em;
|
2019-02-04 08:48:39 +00:00
|
|
|
width: 1.9em;
|
2019-01-25 14:47:14 +00:00
|
|
|
// transform: perspective(1000px) translateZ(1px) scale(1);
|
|
|
|
// will-change: transform;
|
|
|
|
// transition: all 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.4);
|
|
|
|
}
|
|
|
|
}
|
2019-02-04 08:48:39 +00:00
|
|
|
|
|
|
|
.menu-label {
|
2019-01-25 14:47:14 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
2019-02-04 08:48:39 +00:00
|
|
|
flex-shrink: 0;
|
|
|
|
font-weight: 600;
|
2019-01-25 14:47:14 +00:00
|
|
|
justify-content: center;
|
2019-02-04 08:48:39 +00:00
|
|
|
letter-spacing: 0.017rem;
|
2019-01-25 14:47:14 +00:00
|
|
|
text-transform: uppercase;
|
2019-02-04 08:48:39 +00:00
|
|
|
width: 8em;
|
2019-01-25 14:47:14 +00:00
|
|
|
}
|
2019-02-04 08:48:39 +00:00
|
|
|
|
2019-01-25 14:47:14 +00:00
|
|
|
/*Fix: presque doublon avec main.scss ligne 71 qui gère le nombre de notifications sur la cloche */
|
|
|
|
.menu-notification {
|
2019-02-04 08:48:39 +00:00
|
|
|
align-self: center;
|
2019-01-25 14:47:14 +00:00
|
|
|
display: flex;
|
2019-02-04 08:48:39 +00:00
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
2019-01-25 14:47:14 +00:00
|
|
|
justify-content: center;
|
2019-02-04 08:48:39 +00:00
|
|
|
width: 2em;
|
2019-01-25 14:47:14 +00:00
|
|
|
|
|
|
|
> sib-display {
|
2019-02-04 08:48:39 +00:00
|
|
|
|
2019-02-28 09:44:32 +00:00
|
|
|
> div:first-of-type {
|
|
|
|
@extend %notification;
|
|
|
|
}
|
2019-01-25 14:47:14 +00:00
|
|
|
}
|
|
|
|
}
|
2019-02-04 08:48:39 +00:00
|
|
|
|
|
|
|
.menu-chevron {
|
|
|
|
align-items: center;
|
|
|
|
color: $color-spun-pearl;
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
justify-content: center;
|
|
|
|
width: 2em;
|
2019-01-25 14:47:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
> sib-display {
|
|
|
|
display: block;
|
2019-02-04 08:48:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sub-menu {
|
|
|
|
padding-left: 2.88rem;
|
|
|
|
|
|
|
|
div {
|
|
|
|
color: $color-spun-pearl;
|
|
|
|
cursor: pointer;
|
|
|
|
padding-bottom: 1.12rem;
|
2019-01-25 14:47:14 +00:00
|
|
|
|
2019-02-04 08:48:39 +00:00
|
|
|
div[name='project'] {
|
|
|
|
display: flex;
|
2019-01-25 14:47:14 +00:00
|
|
|
|
2019-02-04 08:48:39 +00:00
|
|
|
sib-display-div[name='dash'] {
|
|
|
|
margin: 0 0.4em;
|
2019-01-25 14:47:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-02-04 08:48:39 +00:00
|
|
|
|
|
|
|
.divider {
|
|
|
|
height: 1px;
|
|
|
|
background-color: $color-gainsboro-a02;
|
|
|
|
}
|
2019-01-25 14:47:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include media('width<phone') {
|
|
|
|
#button-toggle {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
#navbar {
|
|
|
|
//transform: translateX(-120%);
|
|
|
|
transition: flex-basis 0.5s ease-in-out;
|
|
|
|
flex-basis: 0;
|
|
|
|
//position: absolute;
|
|
|
|
//top: auto;
|
|
|
|
//display: none;
|
|
|
|
//z-index: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|