178 lines
3.5 KiB
SCSS
178 lines
3.5 KiB
SCSS
// #navbar{}
|
|
// #navbar-router{}
|
|
|
|
#navbar {
|
|
background-color: $color-purple-dark;
|
|
color: $color-white;
|
|
// max-width: 16rem;
|
|
// position: relative;
|
|
// min-height: 100%;
|
|
transition: flex-basis 0.5s ease-in-out;
|
|
display: flex;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
flex-basis: 16em;
|
|
overflow: hidden;
|
|
flex-direction: column;
|
|
font-size: 16px;
|
|
|
|
&.open {
|
|
transform: translateX(0);
|
|
}
|
|
//@include border-shadow(right);
|
|
}
|
|
@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;
|
|
}
|
|
}
|
|
|
|
sib-router {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.sub-menu {
|
|
padding-left: 1.9em;
|
|
div{
|
|
color: $color-grey-mid;
|
|
padding-bottom: 0.7em;
|
|
}
|
|
}
|
|
|
|
.menu {
|
|
display: flex;
|
|
flex-direction: row-reverse;
|
|
padding: 1em;
|
|
// border-top: 1px solid #ddd;
|
|
// &:last-child {
|
|
// border-bottom: 1px solid #ddd;
|
|
// }
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
|
|
&[active] {
|
|
background-color: $color-yellow-light;
|
|
color: $color-purple-dark;
|
|
|
|
.menu-icon:before {
|
|
background-color: $color-purple-dark;
|
|
color: $color-yellow-light;
|
|
// transform: perspective(1000px) translateZ(1px) scale(0.8);
|
|
}
|
|
|
|
.menu-notification > div {
|
|
background-color: $color-purple-dark;
|
|
color: $color-yellow-light;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
.menu-icon {
|
|
//flex-basis: 2em;
|
|
width: 4em;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
justify-content: center;
|
|
align-items: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-size: 12px;
|
|
|
|
&:before {
|
|
width: 1.9em;
|
|
height: 1.9em;
|
|
line-height: 1.9em;
|
|
font-size: 1.6em;
|
|
border-radius: 100%;
|
|
// 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);
|
|
}
|
|
}
|
|
|
|
.menu-chevron {
|
|
width: 2em;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
> div {
|
|
color: $color-grey-mid;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
.menu-label {
|
|
//flex-basis: 8em;
|
|
width: 8em;
|
|
flex-shrink: 0;
|
|
flex-grow: 1;
|
|
justify-content: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
text-transform: uppercase;
|
|
font-weight: 600;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
.menu-notification {
|
|
//flex-basis: 3em;
|
|
width: 2em;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
> div {
|
|
color: $color-black;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 1.6em;
|
|
height: 1.6em;
|
|
border-radius: 100%;
|
|
background-color: $color-yellow-light;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
&[id-prefix] {
|
|
display: none;
|
|
}
|
|
|
|
> sib-display {
|
|
display: block;
|
|
font-size: 0.9em;
|
|
color: #aaa;
|
|
|
|
> div {
|
|
margin-bottom: 1.5em;
|
|
|
|
> sib-display {
|
|
cursor: pointer;
|
|
display: block;
|
|
padding: 0.5em 2em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|