hubl/src/styles/base/menu-left.scss

147 lines
3.0 KiB
SCSS
Raw Normal View History

2019-05-14 15:32:42 +00:00
#main__menu {
2019-05-13 16:50:34 +00:00
background-color: $color-233-18-29;
color: $color-0-0-100;
display: block;
overflow: auto;
2019-05-13 16:50:34 +00:00
flex: 0 0 16em;
transition: flex-basis 0.5s ease-in-out;
&.open {
transform: translateX(0);
}
sib-router {
.menu-wrapper {
&.is-closed {
.sub-menu {
display: none;
}
.menu-chevron {
transform: rotate(180deg);
}
}
}
.menu {
cursor: pointer;
display: flex;
flex-direction: row-reverse;
font-weight: bold;
padding: 1.6rem;
&[active] {
2019-05-13 16:50:34 +00:00
background-color: $color-46-100-67;
color: $color-233-18-29;
.menu-icon:before {
2019-05-13 16:50:34 +00:00
background-color: $color-233-18-29;
color: $color-0-0-100;
}
.menu-notification > sib-display > div:first-child {
2019-05-13 16:50:34 +00:00
background-color: $color-233-18-29;
color: $color-46-100-67;
}
}
.menu-icon {
align-items: center;
display: flex;
justify-content: center;
flex-grow: 0;
flex-shrink: 0;
font-size: 1.7rem;
width: 3.2em;
&:before {
border-radius: 100%;
height: 1.9em;
line-height: 1.9em;
width: 1.9em;
}
}
.menu-label {
display: flex;
flex-direction: column;
flex-grow: 1;
flex-shrink: 0;
font-weight: 600;
justify-content: center;
letter-spacing: 0.017rem;
text-transform: uppercase;
width: 8em;
}
.menu-chevron {
align-items: center;
2019-05-13 16:50:34 +00:00
color: $color-244-10-70;
display: flex;
flex-grow: 0;
flex-shrink: 0;
justify-content: center;
width: 2em;
}
> sib-display {
display: block;
}
}
.sub-menu {
padding-left: 2.88rem;
div {
2019-05-13 16:50:34 +00:00
color: $color-244-10-70;
cursor: pointer;
padding-bottom: 1.12rem;
div[name='project'] {
display: flex;
sib-display-value {
display: block;
}
sib-display-div[name='dash'] {
margin: 0 0.4em;
}
}
}
2019-06-05 08:50:33 +00:00
&.menu-notification {
> sib-display > div > sib-display > div {
display: flex;
sib-display-div {
flex: 3;
}
hd-counter {
height: 20px;
width: 20px;
margin-right: 1em;
div:not(:empty) {
text-align: center;
display: block;
background-color: var(--sib-notifications-theme, gray);
border-radius: 50%;
font-size: 12px;
line-height: 20px;
width: 20px;
height: 20px;
padding-bottom: 0;
color: $color-216-4-22;
}
}
}
}
}
.divider {
height: 1px;
2019-05-13 16:50:34 +00:00
background-color: $color-213-13-86;
}
}
}