hubl/src/styles/menu.scss

154 lines
3.0 KiB
SCSS
Raw Normal View History

2018-09-28 19:20:15 +00:00
// #navbar{}
// #navbar-router{}
#navbar {
2018-11-16 10:33:39 +00:00
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: 17em;
overflow: hidden;
flex-direction: column;
2018-09-28 19:20:15 +00:00
&.open {
transform: translateX(0);
}
2018-11-16 10:33:39 +00:00
//@include border-shadow(right);
2018-09-28 19:20:15 +00:00
}
2018-10-05 09:37:48 +00:00
@include media('width<phone') {
#button-toggle {
2018-09-28 19:20:15 +00:00
display: block;
}
2018-11-16 10:33:39 +00:00
2018-09-28 19:20:15 +00:00
#navbar {
2018-11-16 10:33:39 +00:00
//transform: translateX(-120%);
transition: flex-basis 0.5s ease-in-out;
2018-11-17 11:08:47 +00:00
flex-basis: 0;
2018-11-16 10:33:39 +00:00
//position: absolute;
//top: auto;
//display: none;
//z-index: 1;
2018-09-28 19:20:15 +00:00
}
}
2018-11-16 10:33:39 +00:00
sib-router {
display: flex;
flex-direction: column;
2018-11-17 11:08:47 +00:00
.sub-menu {
padding-left: 2em;
div{
padding-bottom: 1em;
}
}
2018-11-16 12:44:00 +00:00
.menu {
2018-11-16 10:33:39 +00:00
display: flex;
flex-direction: row-reverse;
padding: 1em;
// border-top: 1px solid #ddd;
// &:last-child {
// border-bottom: 1px solid #ddd;
// }
2018-09-28 19:20:15 +00:00
cursor: pointer;
2018-11-16 10:33:39 +00:00
font-weight: bold;
2018-09-28 19:20:15 +00:00
&[active] {
2018-11-16 10:33:39 +00:00
background-color: $color-yellow-light;
2018-09-28 19:20:15 +00:00
color: $color-black;
2018-11-16 10:33:39 +00:00
font-weight: normal;
.menu-icon:before {
background-color: $color-purple-dark;
color: $color-yellow-light;
// transform: perspective(1000px) translateZ(1px) scale(0.8);
}
2018-11-17 11:08:47 +00:00
.menu-notification > div {
2018-11-16 10:33:39 +00:00
background-color: $color-purple-dark;
color: $color-yellow-light;
2018-09-28 19:20:15 +00:00
}
}
2018-11-16 10:33:39 +00:00
.menu-icon {
//flex-basis: 2em;
2018-11-17 11:08:47 +00:00
width: 4em;
2018-11-16 10:33:39 +00:00
flex-shrink: 0;
flex-grow: 0;
justify-content: center;
align-items: center;
display: flex;
flex-direction: column;
2018-09-28 19:20:15 +00:00
&:before {
2018-11-16 10:33:39 +00:00
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-label {
//flex-basis: 8em;
width: 8em;
flex-shrink: 0;
flex-grow: 1;
justify-content: center;
display: flex;
flex-direction: column;
text-transform: uppercase;
}
.menu-notification {
//flex-basis: 3em;
width: 2em;
flex-shrink: 0;
flex-grow: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
2018-11-17 11:08:47 +00:00
> div {
color: $color-black;
2018-11-16 10:33:39 +00:00
display: flex;
justify-content: center;
align-items: center;
width: 1.5em;
height: 1.5em;
2018-09-28 19:20:15 +00:00
border-radius: 100%;
2018-11-16 10:33:39 +00:00
background-color: $color-yellow-light;
2018-09-28 19:20:15 +00:00
}
}
2018-11-16 10:33:39 +00:00
2018-09-28 19:20:15 +00:00
&[id-prefix] {
display: none;
}
2018-11-16 10:33:39 +00:00
2018-09-28 19:20:15 +00:00
> sib-display {
display: block;
font-size: 0.9em;
color: #aaa;
2018-11-16 10:33:39 +00:00
2018-09-28 19:20:15 +00:00
> div {
margin-bottom: 1.5em;
2018-11-16 10:33:39 +00:00
2018-09-28 19:20:15 +00:00
> sib-display {
cursor: pointer;
display: block;
padding: 0.5em 2em;
}
}
}
}
}