.kanban-task { background: $postit; cursor: move; margin: .2rem; position: relative; &:last-child { margin: 0; } &:hover { .icon-edit, .icon-drag-h { @include transition(opacity .2s linear); opacity: 1; } } &.ui-sortable-helper { @include transition(box-shadow .3s linear); box-shadow: 1px 1px 15px rgba($black, .4); } &.blocked { background: $red; border: 1px solid darken($red, 10%); color: $white; a, span { color: $white; } } .kanban-tagline { @include table-flex(); border-color: $postit-hover; height: .6rem; } .kanban-tag { @include table-flex-child(1, 0, 0, 0); border-color: $postit-hover; height: .6rem; } .kanban-task-inner { @include table-flex(); } .avatar { a { @extend %small; text-align: center; } img { margin: 0 auto; &:hover { @include transition(border .3s linear); border: 2px solid $green-taiga; } } .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 { @extend %small; @include table-flex-child($flex-grow: 10, $flex-basis: 50px); padding: 0 .5rem 0 .8rem; word-wrap: break-word; } .task-num { color: $grayer; margin-right: .3rem; } .task-name { @extend %bold; } .icon-edit, .icon-drag-h { @extend %large; @include transition(opacity .2s linear); color: $postit-hover; opacity: 0; position: absolute; &:hover { @include transition(color .3s linear); color: darken($postit-hover, 15%); } } } .kanban-task-maximized { .kanban-task-inner { padding: 1rem 1rem 2rem; } .avatar { @include table-flex-child($flex-basis: 50px); } .task-name { word-wrap: break-word; } .icon-edit { bottom: .2rem; right: .5rem; } .icon-drag-h { @extend %xlarge; bottom: .2rem; cursor: move; right: 45%; } .task-points { @extend %small; color: darken($postit-hover, 15%); display: block; margin: 0; span { display: inline-block; &:first-child { padding-right: .2rem; } } } .kanban-tag { border-top: .3rem solid; } } .kanban-task-minimized { .kanban-task-inner { padding: 0 .3rem; } .avatar { @include table-flex-child($flex-basis: 40px); } .task-num { vertical-align: top; } .task-name { display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 70%; } .task-points { display: none; } .icon-edit, .icon-drag-h { top: 1.4rem; } .icon-edit { bottom: .2rem; right: 1rem; } .icon-drag-h { @extend %medium; @include transform(rotate(90deg)); cursor: move; right: .1rem; } .kanban-tag { border-top: .2rem solid; } }