hubl/src/styles/menu.scss

197 lines
3.8 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;
2018-11-30 21:28:00 +00:00
flex-basis: 16em;
2018-11-16 10:33:39 +00:00
overflow: hidden;
flex-direction: column;
2018-12-05 20:14:13 +00:00
font-size: 16px;
2018-11-16 10:33:39 +00:00
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;
.menu-wrapper {
&.is-closed {
.sub-menu {
display: none;
}
2018-12-03 19:16:57 +00:00
.menu-chevron {
transform: rotate(180deg);
}
}
}
.divider {
height: 1px;
background-color: $color-grey-light3;
}
2018-11-17 11:08:47 +00:00
.sub-menu {
2018-12-04 15:29:36 +00:00
padding-left: 1.8em;
2018-11-17 11:08:47 +00:00
div{
2018-12-06 09:00:58 +00:00
color: $color-grey-mid;
padding-bottom: 0.7em;
font-size: 15px;
cursor: pointer;
2018-11-17 11:08:47 +00:00
}
}
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-11-30 21:28:00 +00:00
color: $color-purple-dark;
2018-11-16 10:33:39 +00:00
.menu-icon:before {
background-color: $color-purple-dark;
color: $color-white;
2018-11-16 10:33:39 +00:00
// 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-12-04 15:29:36 +00:00
font-size: 12px;
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-12-04 15:29:36 +00:00
font-size: 11px;
2018-11-16 10:33:39 +00:00
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);
}
}
2018-11-30 21:28:00 +00:00
.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;
2018-12-04 15:29:36 +00:00
font-size: 11px;
2018-11-30 21:28:00 +00:00
}
}
2018-11-16 10:33:39 +00:00
.menu-label {
//flex-basis: 8em;
width: 8em;
flex-shrink: 0;
flex-grow: 1;
justify-content: center;
display: flex;
flex-direction: column;
text-transform: uppercase;
2018-11-30 21:28:00 +00:00
font-weight: 600;
2018-12-04 15:29:36 +00:00
letter-spacing: 0.17px;
font-size: 16px;
2018-11-16 10:33:39 +00:00
}
2018-12-06 18:47:32 +00:00
/*
2018-11-16 10:33:39 +00:00
.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;
2018-12-04 15:29:36 +00:00
width: 1.7em;
height: 1.7em;
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-12-04 15:29:36 +00:00
font-size: 12px;
2018-09-28 19:20:15 +00:00
}
}
2018-12-06 18:47:32 +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;
}
}
}
}
}