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

221 lines
4.6 KiB
SCSS

.kanban-task {
background: $card;
border: 1px solid $card-hover;
box-shadow: none;
cursor: move;
margin: .2rem;
position: relative;
&:last-child {
margin-bottom: 0;
}
&:hover {
.edit-us {
display: block;
fill: $card-dark;
opacity: 1;
transition: color .3s linear, opacity .3s linear;
}
}
&.gu-mirror {
box-shadow: 1px 1px 15px rgba($black, .4);
opacity: 1;
transition: box-shadow .3s linear;
}
&.blocked {
background: $red;
border: 1px solid darken($red, 10%);
color: $white;
a,
span {
color: $white;
}
}
&.card-placeholder {
background: darken($whitish, 2%);
border: 3px dashed darken($whitish, 8%);
cursor: default;
}
.kanban-tagline {
border-color: $card-hover;
display: flex;
height: .6rem;
}
.kanban-tag {
border-top: .3rem solid $card-hover;
flex-basis: 0;
flex-grow: 1;
height: .6rem;
z-index: 90;
}
.kanban-task-inner {
display: flex;
padding: .5rem;
}
.avatar-wrapper {
flex-basis: 55px;
flex-grow: 0;
flex-shrink: 0;
width: 55px;
img {
width: 100%;
}
}
.avatar {
a {
@extend %small;
text-align: center;
}
img {
margin: 0 auto;
&:hover {
border: 2px solid $primary;
transition: border .3s linear;
}
}
}
.task-text {
@extend %small;
flex-grow: 1;
padding: 0 .5rem 0 .8rem;
}
.task-assigned {
color: $card-dark;
display: block;
}
.task-num {
color: $grayer;
margin-right: .3rem;
}
.task-name {
@extend %bold;
}
.loading {
bottom: .5rem;
position: absolute;
}
.edit-us {
display: block;
opacity: 0;
position: absolute;
svg {
@include svg-size(1.1rem);
fill: $card-hover;
}
&:hover {
cursor: pointer;
svg {
fill: darken($card-hover, 15%);
transition: color .3s linear;
}
}
}
}
.kanban-task-maximized {
.task-archived {
background: darken($whitish, 5%);
padding: .5rem;
text-align: left;
transition: background .3s linear;
&:hover {
background: darken($whitish, 8%);
transition: background .3s linear;
}
.task-archived-text {
flex: 1;
}
span {
color: $gray-light;
}
p {
@extend %small;
color: $gray-light;
margin: 0;
&:last-child {
color: $gray;
margin: .5rem 0;
text-align: center;
}
}
}
.task-name {
word-wrap: break-word;
}
.loading,
.edit-us {
bottom: .2rem;
right: .5rem;
}
.task-points {
@extend %small;
color: darken($card-hover, 15%);
margin: 0;
span {
display: inline-block;
&:first-child {
padding-right: .2rem;
}
}
.points-text {
text-transform: lowercase;
}
}
.kanban-tag {
border-top: .3rem solid;
}
}
.kanban-task-minimized {
.kanban-task-inner {
padding: 0 .3rem;
}
.task-archived {
@extend %small;
background: darken($whitish, 5%);
padding: .3rem;
text-align: left;
.task-archived-text {
flex: 1;
}
span {
color: $gray-light;
}
.task-name {
display: inline-block;
max-width: 70%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
p {
color: $gray-light;
margin: 0;
&:last-child {
display: none;
}
}
}
.task-num {
vertical-align: top;
}
.task-name {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 135px;
}
.task-points {
display: none;
}
.icon-edit {
bottom: .2rem;
right: 1rem;
top: 1.4rem;
}
.kanban-tag {
border-top: .2rem solid;
}
}