Left menu: css improved for the projects tab

This commit is contained in:
gaelle morin 2020-01-06 12:19:08 +01:00
parent ef20af91dd
commit 4fb569b9ef
No known key found for this signature in database
GPG Key ID: BC97AADCB48B7F27

View File

@ -92,50 +92,64 @@
.sub-menu { .sub-menu {
sib-set-default[name='project'] { /* Specific styles for the "Projects" tab */
padding: 1rem 1rem 1rem 3.2rem;
.project-customer, .project-tab>div>sib-display>div:nth-child(1) {
.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 */
}
}
.project-tab>div>sib-display[fields='project(customer.name, name), badge']>div:hover {
background-color: $color-233-20-17;
sib-set-default[name='project'] { sib-set-default[name='project'] {
background-color: $color-233-20-17; padding: 1rem 1rem 1rem 3.2rem;
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;
z-index: 1000;
.project-customer, .project-customer,
.project-name { .project-name {
width: auto; display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.project-customer {
font-weight: bold;
width: 150px;
} }
.project-name { .project-name {
font-weight: normal; padding-left: 14px;
width: calc(150px - 10px);
/* 10px = padding of the sib-set-default = better alignment */
}
}
hd-counter {
margin-top: 16px;
margin-left: 8px;
}
&:hover {
background-color: $color-233-20-17;
box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.26);
sib-set-default[name='project'] {
background-color: $color-233-20-17;
color: $color-218-100-98;
/* transition: all 0.6s cubic-bezier(0.39, 0.575, 0.565, 1); Need better animation */
z-index: 1000;
.project-customer,
.project-name {
width: auto;
}
.project-name {
font-weight: normal;
}
}
hd-counter {
display: none;
} }
} }
} }
/* End of specific styles of "Projects" tab */
sib-display>div { sib-display>div {
@ -175,6 +189,7 @@
flex: 3; flex: 3;
} }
hd-counter { hd-counter {
background: burlywood;
height: 20px; height: 20px;
width: 20px; width: 20px;
margin-right: 1em; margin-right: 1em;