194 lines
4.2 KiB
SCSS
194 lines
4.2 KiB
SCSS
#main__menu {
|
|
background-color: $color-233-18-29;
|
|
color: $color-0-0-100;
|
|
display: block;
|
|
height: auto;
|
|
max-width: 250px;
|
|
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] {
|
|
background-color: $color-46-100-67;
|
|
color: $color-233-18-29;
|
|
|
|
.menu-icon:before {
|
|
background-color: $color-233-18-29;
|
|
color: $color-0-0-100;
|
|
}
|
|
|
|
.menu-notification > sib-display > div:first-child {
|
|
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;
|
|
color: $color-244-10-70;
|
|
display: flex;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
justify-content: center;
|
|
width: 2em;
|
|
}
|
|
|
|
> sib-display {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.sub-menu {
|
|
|
|
sib-set-default[name='project'] {
|
|
padding: 1rem 1rem 1rem 3.2rem;
|
|
|
|
.project-customer,
|
|
.project-name {
|
|
display: inline-block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.project-customer {
|
|
font-weight: bold;
|
|
width: 150px;
|
|
}
|
|
|
|
.project-name {
|
|
padding-left: 14px;
|
|
width: calc(150px - 10px); /* 10px = padding of the sib-set-default = better alignment */
|
|
}
|
|
|
|
&:hover {
|
|
background-color: $color-233-20-17;
|
|
box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.26);
|
|
color: $color-218-100-98;
|
|
/* transition: all 0.6s cubic-bezier(0.39, 0.575, 0.565, 1); Need better animation */
|
|
width: auto;
|
|
|
|
.project-customer,
|
|
.project-name {
|
|
width: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
sib-display>div {
|
|
|
|
.create {
|
|
color: $color-244-10-70;
|
|
margin: 1rem 1rem 2.2rem 3.2rem;
|
|
}
|
|
|
|
&>sib-display {
|
|
|
|
&:last-child>div {
|
|
margin-bottom: 2.2rem;
|
|
}
|
|
|
|
>div {
|
|
color: $color-244-10-70;
|
|
cursor: pointer;
|
|
padding: 10px 10px 10px 32px;
|
|
}
|
|
|
|
&[fields="project(customer.name, name), badge"]>div {
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
&>sib-display[active]>div {
|
|
background-color: $color-46-100-67;
|
|
color: $color-233-18-29;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
&.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.counter:not([data-nb-unread="0"]) {
|
|
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;
|
|
background-color: $color-213-13-86;
|
|
}
|
|
}
|
|
}
|
|
|