Fixed kanban tasks and made same css styles. TG-2085 #ready-for-test

stable
Xavier Julián 2015-01-28 15:13:39 +01:00
parent 5914f44b9d
commit 268d804854
2 changed files with 26 additions and 39 deletions

View File

@ -1,5 +1,7 @@
.kanban-task { .kanban-task {
background: $postit; background: $postit;
border: 1px solid $postit-hover;
box-shadow: none;
cursor: move; cursor: move;
margin: .2rem; margin: .2rem;
position: relative; position: relative;
@ -9,14 +11,19 @@
&:hover { &:hover {
.icon-edit, .icon-edit,
.icon-drag-h { .icon-drag-h {
color: $postit-dark-hover;
display: block;
opacity: 1; opacity: 1;
transition: opacity .2s linear; transition: color .3s linear, opacity .3s linear;
} }
} }
&.ui-sortable-helper { &.ui-sortable-helper {
box-shadow: 1px 1px 15px rgba($black, .4); box-shadow: 1px 1px 15px rgba($black, .4);
transition: box-shadow .3s linear; transition: box-shadow .3s linear;
} }
&.ui-sortable-placeholder {
background: $grayer;
}
&.blocked { &.blocked {
background: $red; background: $red;
border: 1px solid darken($red, 10%); border: 1px solid darken($red, 10%);
@ -32,12 +39,24 @@
height: .6rem; height: .6rem;
} }
.kanban-tag { .kanban-tag {
border-color: $postit-hover; border-top: .3rem solid $postit-hover;
flex-basis: 0;
flex-grow: 1; flex-grow: 1;
height: .6rem; height: .6rem;
z-index: 100;
} }
.kanban-task-inner { .kanban-task-inner {
display: flex; display: flex;
padding: .5rem;
}
.avatar-wrapper {
flex-basis: 55px;
flex-grow: 0;
flex-shrink: 0;
width: 55px;
img {
width: 100%;
}
} }
.avatar { .avatar {
a { a {
@ -51,26 +70,16 @@
transition: border .3s linear; transition: border .3s linear;
} }
} }
.assigned-to {
color: darken($postit-hover, 15%);
display: none;
overflow: hidden;
position: relative;
text-overflow: ellipsis;
top: -6px;
white-space: nowrap;
width: 50px;
}
}
.task-assigned {
@extend %small;
color: $postit-dark-hover;
display: block;
} }
.task-text { .task-text {
@extend %small; @extend %small;
flex-grow: 1;
padding: 0 .5rem 0 .8rem; padding: 0 .5rem 0 .8rem;
} }
.task-assigned {
color: $postit-dark-hover;
display: block;
}
.task-num { .task-num {
color: $grayer; color: $grayer;
margin-right: .3rem; margin-right: .3rem;
@ -94,9 +103,6 @@
.kanban-task-maximized { .kanban-task-maximized {
.kanban-task-inner {
padding: 1rem 1rem 2rem;
}
.task-archived { .task-archived {
background: darken($whitish, 5%); background: darken($whitish, 5%);
padding: .5rem; padding: .5rem;
@ -123,9 +129,6 @@
} }
} }
} }
.avatar {
width: 55px;
}
.task-name { .task-name {
word-wrap: break-word; word-wrap: break-word;
} }
@ -185,14 +188,6 @@
} }
} }
} }
.avatar-wrapper {
flex-basis: 50px;
flex-grow: 0;
width: 55px;
img {
width: 55px;
}
}
.task-num { .task-num {
vertical-align: top; vertical-align: top;
} }

View File

@ -63,14 +63,6 @@
transition: border .3s linear; transition: border .3s linear;
} }
} }
figcaption {
color: darken($postit-hover, 15%);
display: none;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100%;
}
} }
.iocaine { .iocaine {
img { img {