taiga-front/app/styles/modules/common/related-tasks.scss

214 lines
4.7 KiB
SCSS

.related-tasks {
margin-bottom: 2rem;
position: relative;
}
.related-tasks-header {
@include table-flex(space-between, center, flex, row, wrap, space-between);
background: $whitish;
padding: .5rem 1rem;
.related-tasks-title {
@extend %medium;
@extend %bold;
}
.icon {
@extend %large;
color: $grayer;
cursor: pointer;
&:hover {
color: $green-taiga;
transition: color .2s ease-in;
}
}
}
.related-tasks-body {
width: 100%;
.row {
@extend %small;
@include table-flex(center, center, flex, row, wrap, center);
border-bottom: 1px solid $whitish;
padding: .5rem 0 .5rem .5rem;
position: relative;
text-align: left;
width: 100%;
&:hover {
background: transparent;
.task-settings {
opacity: 1;
transition: all .2s ease-in;
}
}
&:last-child {
border: 0;
}
.tasks {
@include table-flex-child(10, 78%, 0);
}
.status {
@include table-flex-child(0, 10%, 0);
}
.assigned-to {
@include table-flex-child(0, 10%, 0);
}
}
.related-task-create-form {
padding: 0;
&.active {
padding: .5rem 0 .5rem .5rem;
}
}
.status {
position: relative;
text-align: left;
&:hover {
.icon {
opacity: 1;
transition: opacity .2s ease-in;
}
}
.not-clickable {
&:hover {
color: $grayer;
}
}
.popover {
a {
text-align: left;
width: 100%;
}
.point {
text-align: center;
}
}
.icon {
color: $gray-light;
margin-left: .2rem;
opacity: 0;
}
}
.pop-status {
@include popover(200px, 0, 40%);
padding-right: 1rem;
&.fix {
bottom: 0;
top: auto;
}
}
.task-name {
display: flex;
position: relative;
a {
display: inline-block;
max-width: 90%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
input {
margin-right: 1rem;
padding: 3px;
width: 85%;
}
&.loading {
margin: 0;
padding: 8px;
text-align: center;
width: 100%;
span {
animation: loading .5s linear;
animation: spin 1s linear infinite;
}
}
}
.blocked,
.blocked:hover {
background: $red-light;
color: $white;
a {
color: $white !important;
&:hover {
color: $white;
}
}
.icon {
color: $white;
&:hover {
color: $white;
}
}
}
.icon-iocaine {
display: none;
}
.iocaine,
.iocaine:hover {
background: rgba($fresh-taiga, .3);
.icon-iocaine {
@extend %large;
display: inline-block;
margin-right: .5rem;
vertical-align: top;
}
}
.task-settings {
margin: 0 0 0 2rem;
opacity: 0;
position: absolute;
right: 0;
top: .1rem;
width: 10%;
a {
@extend %large;
color: $gray-light;
transition: all .2s ease-in;
&:hover {
color: $grayer;
transition: all .2s ease-in;
}
}
}
.assigned-to {
position: relative;
text-align: left;
}
.task-assignedto {
position: relative;
&.editable {
cursor: pointer;
}
&:hover {
.icon {
opacity: 1;
transition: opacity .3s linear;
}
}
figcaption {
max-width: 50%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.icon {
opacity: 0;
position: absolute;
right: .5rem;
top: .5rem;
transition: opacity .3s linear;
}
}
.avatar {
align-items: center;
display: flex;
img {
flex-basis: 35px;
/* width & height they are only required for IE */
height: 35px;
width: 35px;
}
figcaption {
margin-left: .5rem;
}
}
}