taiga-front/app/styles/components/taskboard-task.scss

136 lines
2.9 KiB
SCSS

.taskboard-task {
background: $postit;
border: 1px solid $postit-hover;
box-shadow: none;
cursor: move;
margin: .2rem;
min-height: 7rem;
position: relative;
&:hover {
.icon-edit,
.icon-drag-h {
color: $postit-dark-hover;
display: block;
opacity: 1;
transition: color .3s linear, opacity .3s linear;
}
}
&.ui-sortable-helper {
box-shadow: 1px 1px 15px rgba($black, .4);
transition: box-shadow .3s linear;
}
&.ui-sortable-placeholder {
background: $grayer;
}
&.blocked {
background: $red;
border: 1px solid darken($red, 10%);
color: $white;
a,
span {
color: $white;
}
}
.taskboard-tagline {
border-color: $postit-hover;
display: flex;
height: .6rem;
}
.taskboard-tag {
border-top: .3rem solid $postit-hover;
flex-basis: 0;
flex-grow: 1;
height: .6rem;
z-index: 100;
}
.taskboard-task-inner {
display: flex;
padding: .5rem;
}
.taskboard-user-avatar {
flex-basis: 50px;
flex-grow: 1;
max-width: 55px;
a {
@extend %small;
display: block;
text-align: center;
}
img {
margin: 0 auto;
&:hover {
border: 2px solid $green-taiga;
transition: border .3s linear;
}
}
figcaption {
color: darken($postit-hover, 15%);
display: none;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100%;
}
}
.iocaine {
img {
filter: hue-rotate(150deg) saturate(200%);
}
}
.icon-iocaine {
@extend %large;
background: $black;
border-radius: 5px;
color: $white;
left: .2rem;
padding: .1rem;
position: absolute;
top: 1rem;
}
.task-assigned {
@extend %small;
color: $postit-dark-hover;
display: block;
}
.task-num {
color: $grayer;
margin-right: .5em;
}
.task-name {
@extend %bold;
}
.taskboard-text {
@extend %small;
flex-basis: 50px;
flex-grow: 10;
padding: 0 .5rem 0 1rem;
word-wrap: break-word;
}
.icon {
transition: color .3s linear, opacity .3s linear;
}
.icon-edit,
.icon-drag-h {
@extend %large;
bottom: .5rem;
color: $postit-hover;
opacity: 0;
position: absolute;
&:hover {
color: $postit-dark-hover;
}
}
.icon-edit {
right: 1rem;
}
.icon-drag-h {
@extend %xlarge;
cursor: move;
right: 45%;
}
}
.task-drag {
@include box-shadow();
}