fix previous

This commit is contained in:
Benoit Alessandroni 2020-10-12 19:44:07 +02:00
parent 7ecc311893
commit a3a1c32257

View File

@ -12,19 +12,6 @@
} }
solid-router { solid-router {
.menu-wrapper {
&.is-closed {
.sub-menu {
display: none;
}
.menu-chevron {
transform: rotate(180deg);
}
}
}
solid-link {
width: 100%;
}
.menu-wrapper { .menu-wrapper {
.menu-icon.icon-arrow-up { .menu-icon.icon-arrow-up {
visibility: hidden; visibility: hidden;
@ -44,31 +31,30 @@
} }
} }
} }
.unread {
font-weight: bolder; solid-link {
width: 100%;
} }
.menu { .menu {
cursor: pointer; cursor: pointer;
display: flex; display: flex;
flex-direction: row-reverse; flex-direction: row-reverse;
font-weight: bold; font-weight: bold;
padding: 1.2rem; padding: 1.2rem;
&[active] { &[active] {
background-color: var(--color-menu-highlight-primary); background-color: var(--color-menu-highlight-primary);
.menu-icon:before { .menu-icon:before {
background-color: var(--color-menu-icon-background-active); background-color: var(--color-menu-icon-background-active);
} }
.menu-notification>solid-display>div:first-child { .menu-notification>solid-display>div:first-child {
background-color: var(--color-menu-badge-background); background-color: var(--color-menu-badge-background);
} }
} }
&[name="dashboard"][active] .menu-icon:before,
&[name="members"][active] .menu-icon:before,
&[name="resources"][active] .menu-icon:before,
&[name="polls"][active] .menu-icon:before,
&[name="events"][active] .menu-icon:before {
background-color: transparent;
}
.menu-icon { .menu-icon {
align-items: center; align-items: center;
display: flex; display: flex;
@ -77,6 +63,7 @@
flex-shrink: 0; flex-shrink: 0;
font-size: 1.7rem; font-size: 1.7rem;
width: 3.2em; width: 3.2em;
&:before { &:before {
border-radius: 100%; border-radius: 100%;
height: 1.9em; height: 1.9em;
@ -84,6 +71,7 @@
width: 1.9em; width: 1.9em;
} }
} }
.menu-label { .menu-label {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -95,6 +83,7 @@
text-transform: uppercase; text-transform: uppercase;
width: 8em; width: 8em;
} }
.menu-chevron { .menu-chevron {
align-items: center; align-items: center;
display: flex; display: flex;
@ -103,36 +92,35 @@
justify-content: center; justify-content: center;
width: 2em; width: 2em;
} }
>solid-display { >solid-display {
display: block; display: block;
} }
&[name="events"],
&[name="resources"],
&[name="polls"],
&[name="dashboard"],
&[name="members"] {
.menu-label {
width: 9.9em;
}
}
} }
.sub-menu { .sub-menu {
/* Ellipsis for project tab */ /* Ellipsis for project tab */
.project-tab>div>solid-display>div:nth-child(1) { .project-tab>div>solid-display>div:nth-child(1) {
solid-set-default[name='project'] { solid-set-default[name='project'] {
flex: 3; flex: 3;
.project-customer, .project-customer,
.project-name { .project-name {
box-sizing: border-box; box-sizing: border-box;
display: block; display: block;
width: calc(80vw - 96px); width: calc(80vw - 96px); /*96px = padding of the element + width and margin of counter */
/*96px = padding of the element + width and margin of counter */
@include breakpoint(lg) { @include breakpoint(lg) {
width: 150px; width: 150px;
} }
} }
.project-customer, .project-customer,
.project-name>div { .project-name>div {
@include breakpoint(lg) { @include breakpoint(lg) {
display: block; display: block;
overflow: hidden; overflow: hidden;
@ -142,15 +130,19 @@
} }
} }
} }
/* Ellipsis for circle tab */ /* Ellipsis for circle tab */
.circle-tab>div>solid-display>div { .circle-tab>div>solid-display>div {
solid-display-div[name='name'] { solid-display-div[name='name'] {
flex: 3; flex: 3;
>div[name='name'] { >div[name='name'] {
box-sizing: border-box; box-sizing: border-box;
padding-left: 0.2em; padding-left: 0.2em;
width: calc(80vw - 96px); width: calc(80vw - 96px); /*96px = padding of the element + width and margin of counter */
/*96px = padding of the element + width and margin of counter */
@include breakpoint(lg) { @include breakpoint(lg) {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -160,56 +152,64 @@
} }
} }
} }
/* Ellipsis for message tab */ /* Ellipsis for message tab */
.message-tab>div>solid-display>div>solid-display-div>div { .message-tab>div>solid-display>div>solid-display-div>div {
box-sizing: border-box; box-sizing: border-box;
width: calc(80vw - 96px); width: calc(80vw - 96px); /*96px = padding of the element + width and margin of counter */
/*96px = padding of the element + width and margin of counter */
@include breakpoint(lg) { @include breakpoint(lg) {
width: 150px; width: 150px;
} }
} }
solid-display.nosub>solid-form[fields="name"]>hubl-search-users>input { solid-display.nosub>solid-form[fields="name"]>hubl-search-users>input {
margin-left: 30px!important; margin-left: 30px;
margin-bottom: 10px; margin-bottom: 10px;
width: calc(80vw - 71px); width: calc(80vw - 71px);
display: block; display: block;
background-color: var(--color-secondary); background-color: var(--color-secondary);
color: var(--color-grey-6); color: var(--color-white);
border: 1px solid var(--color-grey-4); border: 1px solid var(--color-grey-4);
border-radius: 3px; border-radius: 3px;
padding: 4px; padding: 4px;
@include breakpoint(lg) { @include breakpoint(lg) {
margin: auto; margin: auto;
margin-bottom: 10px; margin-bottom: 10px;
width: auto; width: auto;
&::placeholder {
color: var(--color-grey-6);
}
} }
} }
solid-display.nosub>nav { solid-display.nosub>nav {
text-align: center; text-align: center;
overflow: hidden; overflow: hidden;
display: grid; display: grid;
grid-template-columns: auto 50% auto; grid-template-columns: auto 50% auto;
grid-template-areas: "left middle right"; grid-template-areas: "left middle right";
>* { >* {
color: var(--color-grey-6); color: var(--color-white);
} }
>[data-id="prev"] { >[data-id="prev"] {
grid-area: left; grid-area: left;
} }
>[data-id="next"] { >[data-id="next"] {
grid-area: right; grid-area: right;
} }
>span { >span {
grid-area: middle; grid-area: middle;
} }
} }
hubl-menu-publicprivate { hubl-menu-publicprivate {
display: inline-block; display: inline-block;
text-align: center; text-align: center;
div { div {
font-family: simple-line-icons; font-family: simple-line-icons;
width: 20px; width: 20px;
@ -217,30 +217,38 @@
padding-top: 0.1em; padding-top: 0.1em;
} }
} }
>solid-display.nosub>div>solid-display>div { >solid-display.nosub>div>solid-display>div {
padding: 1rem 1rem 1rem 3rem; padding: 1rem 1rem 1rem 3rem;
} }
solid-display>div { solid-display>div {
.create { .create {
color: var(--color-white); color: var(--color-white);
margin: 1rem 1rem 2.2rem 3.2rem; margin: 1rem 1rem 2.2rem 3.2rem;
} }
&>solid-display { &>solid-display {
&:last-child>div { &:last-child>div {
margin-bottom: 2.2rem; margin-bottom: 2.2rem;
} }
>div { >div {
color: var(--color-grey-6); color: var(--color-white);
cursor: pointer; cursor: pointer;
>hubl-menu-fix-url-circle>solid-display>div, >hubl-menu-fix-url-circle>solid-display>div,
>hubl-menu-fix-url-project>solid-display>div { >hubl-menu-fix-url-project>solid-display>div {
padding: 1rem 1rem 1rem 3rem; padding: 1rem 1rem 1rem 3rem;
} }
} }
&[fields="project(customer.name, name), badge"]>div { &[fields="project(customer.name, name), badge"]>div {
padding: 0; padding: 0;
} }
} }
&>solid-display[active]>div, &>solid-display[active]>div,
&>solid-display>div>hubl-menu-fix-url-circle>solid-display[active]>div, &>solid-display>div>hubl-menu-fix-url-circle>solid-display[active]>div,
&>solid-display>div>hubl-menu-fix-url-project>solid-display[active]>div { &>solid-display>div>hubl-menu-fix-url-project>solid-display[active]>div {
@ -249,21 +257,26 @@
font-weight: bold; font-weight: bold;
} }
} }
&.menu-notification { &.menu-notification {
>solid-display>div>solid-display>div>hubl-menu-fix-url-circle, >solid-display>div>solid-display>div>hubl-menu-fix-url-circle,
>solid-display>div>solid-display>div>hubl-menu-fix-url-project { >solid-display>div>solid-display>div>hubl-menu-fix-url-project {
flex: 1; flex: 1;
} }
>solid-display>div>solid-display>div, >solid-display>div>solid-display>div,
>solid-display>div>solid-display>div>hubl-menu-fix-url-circle>solid-display>div, >solid-display>div>solid-display>div>hubl-menu-fix-url-circle>solid-display>div,
>solid-display>div>solid-display>div>hubl-menu-fix-url-project>solid-display>div { >solid-display>div>solid-display>div>hubl-menu-fix-url-project>solid-display>div {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
hubl-counter { hubl-counter {
height: 20px; height: 20px;
width: 20px; width: 20px;
margin-right: 1em; margin-right: 1em;
div.counter:not([data-nb-unread="0"]) { div.counter:not([data-nb-unread="0"]) {
text-align: center; text-align: center;
display: block; display: block;
@ -279,6 +292,7 @@
} }
} }
} }
.divider { .divider {
height: 1px; height: 1px;
background-color: var(--color-grey-11); background-color: var(--color-grey-11);