#main__menu { background-color: var(--color-menu-background); color: var(--color-menu-text); /*transition: flex-basis 0.5s ease-in-out;*/ &.open { transform: translateX(0); } .unread { font-weight: bolder; } sib-router { .menu-wrapper { &.is-closed { .sub-menu { display: none; } .menu-chevron { transform: rotate(180deg); } } } sib-link { width: 100%; } .menu { cursor: pointer; display: flex; flex-direction: row-reverse; font-weight: bold; padding: 1.2rem; &[active] { background-color: var(--color-menu-highlight-primary); .menu-icon:before { background-color: var(--color-menu-icon-background-active); } .menu-notification > sib-display > div:first-child { background-color: var(--color-menu-badge-background); } } .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; display: flex; flex-grow: 0; flex-shrink: 0; justify-content: center; width: 2em; } > sib-display { display: block; } } .sub-menu { /* Specific styles for the "Projects" tab */ .project-tab>div>sib-display>div:nth-child(1) { sib-set-default[name='project'] { .project-customer, .project-name>div { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .project-customer { width: 100%; @include breakpoint(lg) { width: 150px; } } .project-name { display: block; width: 100%; @include breakpoint(lg) { width: 150px; } } } hubl-counter { margin-top: 16px; } } /* End of specific styles of "Projects" tab */ sib-display.nosub>sib-form[fields="name"]>hubl-search-users>input { margin-left: 30px; max-width: 87%; width: 87%; display: block; background-color: var(--color-secondary); color: var(--color-grey-6); border: 1px solid var(--color-grey-4); border-radius: 3px; padding: 4px; @include breakpoint(lg) { margin: auto; width: auto; } } sib-display.nosub>nav { text-align: center; overflow: hidden; display: grid; grid-template-columns: auto 50% auto; grid-template-areas: "left middle right"; >* { color: var(--color-grey-6); } >[data-id="prev"] { grid-area: left; } >[data-id="next"] { grid-area: right; } >span { grid-area: middle; } } hubl-menu-publicprivate { display: inline-block; text-align: center; div { font-family: simple-line-icons; width: 20px; font-size: 0.8em; padding-top: 0.1em; } } >sib-display.nosub>div>sib-display>div { padding: 1rem 1rem 1rem 3rem; } sib-display>div { .create { color: var(--color-white); margin: 1rem 1rem 2.2rem 3.2rem; } &>sib-display { &:last-child>div { margin-bottom: 2.2rem; } >div { color: var(--color-grey-6); cursor: pointer; >hubl-menu-fix-url-circle>sib-display>div, >hubl-menu-fix-url-project>sib-display>div { padding: 1rem 1rem 1rem 3rem; } } &[fields="project(customer.name, name), badge"]>div { padding: 0; } } &>sib-display[active]>div, &>sib-display>div>hubl-menu-fix-url-circle>sib-display[active]>div, &>sib-display>div>hubl-menu-fix-url-project>sib-display[active]>div { background-color: var(--color-menu-highlight-primary); color: var(--color-menu-text-active); font-weight: bold; } } &.menu-notification { > sib-display > div > sib-display > div > hubl-menu-fix-url-circle, > sib-display > div > sib-display > div > hubl-menu-fix-url-project { flex: 1; } > sib-display > div > sib-display > div, > sib-display > div > sib-display > div > hubl-menu-fix-url-circle > sib-display > div, > sib-display > div > sib-display > div > hubl-menu-fix-url-project > sib-display > div { display: flex; sib-display-div { flex: 3; @include breakpoint(lg) { max-width: 150px; } } hubl-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: var(--color-secondary); } } sib-display-div { @include breakpoint(lg) { max-width: 150px; >div[name='name'] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } } } } } } .divider { height: 1px; background-color: var(--color-grey-11); opacity: 0.2; } } } /* Styles for hovering (only on large screens) */ #main__menu sib-router .sub-menu.menu-notification>sib-display>div>sib-display>div>hubl-menu-fix-url-project>sib-display>div:hover, #main__menu sib-router .sub-menu.menu-notification>sib-display>div>sib-display>div>hubl-menu-fix-url-circle>sib-display>div:hover, #main__menu sib-router .sub-menu.menu-notification>sib-display.nosub>div>sib-display>div:hover { @include breakpoint(lg) { background-color: var(--color-secondary); color: var(--color-white); display: block; box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.26); opacity: 70%; width: 250px; box-sizing: border-box; font-weight: normal; >hubl-menu-publicprivate { display: none; } >hubl-counter { display: none; } /* Hover for projects */ >sib-set-default[name='project']>.project-customer { width: 250px; white-space: break-spaces; text-align: left; font-weight: normal; } sib-set-default[name='project']>.project-name { padding-left: 0; width: 100%; &>div { white-space: break-spaces; text-align: left; } } /* Hover for circles */ >sib-display-div[name="name"] { padding-left: 0; width: 100%; } /* Hover for private messages */ sib-display-div { >div[name="name"] { white-space: normal; } } } } // Temporary fix for badges sib-fix-badge { display: none; box-sizing: border-box; font-family: sans-serif; font-size: 12px; background-color: var(--sib-notifications-theme, gray); color: #36383a; border-radius: 50%; line-height: 20px; width: 20px; height: 20px; text-align: center; font-weight: bold; padding-bottom: 0; }