taiga-front/app/styles/modules/kanban/kanban-table.scss

115 lines
2.7 KiB
SCSS

//Table basic shared vars
$column-width: 300px;
$column-folded-width: 30px;
$column-flex: 0;
$column-shrink: 0;
$column-margin: 0 10px 0 0;
.kanban-table {
overflow: hidden;
width: 100%;
.vfold {
&.task-colum-name {
@include table-flex();
align-items: center;
cursor: pointer;
justify-content: center;
opacity: .8;
padding: .5rem 0;
transition: opacity .3s linear;
.icon-plus,
.icon-bulk,
.icon-vfold,
.icon-vunfold,
span {
display: none;
}
.hunfold {
margin: 0;
}
}
&.task-colum-name,
&.task-column {
@include table-flex-child(1, 0, 0);
max-width: $column-folded-width;
min-height: 2.5rem;
min-width: $column-folded-width;
width: $column-folded-width;
}
.kanban-task {
display: none;
}
}
}
.kanban-table-header {
margin-bottom: .5rem;
position: relative;
width: 100%;
.kanban-table-inner {
@include table-flex();
overflow: hidden;
position: absolute;
}
.task-colum-name {
@extend %large;
@include table-flex-child($column-flex, $column-width, $column-shrink, $column-width);
@include table-flex();
background: $whitish;
border-top: 3px solid $gray-light;
justify-content: space-between;
margin: $column-margin;
padding: .5rem .5rem .5rem 1rem;
position: relative;
text-transform: uppercase;
&:last-child {
margin-right: 0;
}
.icon {
@extend %medium;
color: $gray-light;
margin-right: .3rem;
transition: color .2s linear;
&:hover {
color: $green-taiga;
}
&.hfold,
&.hunfold {
display: inline-block;
transform: rotate(90deg);
}
}
}
}
.kanban-table-body {
@extend %medium;
@include table-flex();
overflow: hidden;
overflow-x: auto;
width: 100%;
.task-column {
@include table-flex-child($column-flex, $column-width, $column-shrink, $column-width);
margin: $column-margin;
overflow-y: auto;
&:last-child {
margin-right: 0;
}
.kanban-wip-limit {
background: $red;
border-radius: 2px;
height: 4px;
margin: .5rem 0;
padding: 0;
}
}
.kanban-uses-box {
background: $whitish;
}
}
.kanban-table-inner {
@include table-flex($flex-wrap: nowrap);
}