list collapse toggle
parent
185ff1f626
commit
b4043961c1
|
|
@ -78,6 +78,29 @@
|
||||||
body {
|
body {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
background: #f8f9fb;
|
background: #f8f9fb;
|
||||||
|
height: 100vh;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
body > .wrap {
|
||||||
|
flex-grow: 2;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrap > .board {
|
||||||
|
flex-grow: 2;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.board > .lists {
|
||||||
|
flex-grow: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.dragging {
|
body.dragging {
|
||||||
|
|
@ -151,9 +174,11 @@
|
||||||
|
|
||||||
/***/
|
/***/
|
||||||
.board .head {
|
.board .head {
|
||||||
padding: 5px 0;
|
padding: 0;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
|
|
||||||
.board .head .text,
|
.board .head .text,
|
||||||
|
|
@ -163,12 +188,14 @@
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
padding: 0 5px 2px;
|
padding: 0 5px 2px;
|
||||||
border: none;
|
border: none;
|
||||||
|
flex-grow: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.board .head .text {
|
.board .head .text {
|
||||||
min-height: 20px;
|
min-height: 20px;
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.board .head .edit {
|
.board .head .edit {
|
||||||
|
|
@ -194,9 +221,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.board .menu {
|
.board .menu {
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
height: 20px;
|
height: 20px;
|
||||||
padding: 5px 6px 7px 30px;
|
padding: 5px 6px 7px 30px;
|
||||||
background: linear-gradient(to right, #EAEDF000, #EAEDF0 10px);
|
background: linear-gradient(to right, #EAEDF000, #EAEDF0 10px);
|
||||||
|
|
@ -289,11 +313,21 @@
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.board .collapsed-list,
|
||||||
|
.board .collapsed-list .head {
|
||||||
|
text-orientation: sideways;
|
||||||
|
writing-mode: vertical-rl;
|
||||||
|
height: 290px;
|
||||||
|
width: 2em !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.board .collapsed-list .head .menu .bulk a:not(.collapse-list),
|
||||||
|
.board .collapsed-list .notes {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/***/
|
/***/
|
||||||
.board .head .menu .teaser {
|
.board .head .menu .teaser {
|
||||||
position: absolute;
|
|
||||||
right: 3px;
|
|
||||||
top: 5px;
|
|
||||||
padding: 0 3px;
|
padding: 0 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -303,6 +337,11 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.board .head .menu:hover {
|
||||||
|
flex-grow: 999;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
.board .head .menu:hover .bulk {
|
.board .head .menu:hover .bulk {
|
||||||
display: block;
|
display: block;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|
@ -1170,6 +1209,7 @@
|
||||||
<a href=# class='mov-list-l full'>< Move</a>
|
<a href=# class='mov-list-l full'>< Move</a>
|
||||||
<a href=# class='mov-list-l half'>< Mo</a><a href=# class='mov-list-r half'>ve ></a>
|
<a href=# class='mov-list-l half'>< Mo</a><a href=# class='mov-list-r half'>ve ></a>
|
||||||
<a href=# class='mov-list-r full'>Move ></a>
|
<a href=# class='mov-list-r full'>Move ></a>
|
||||||
|
<a href=# class='collapse-list'>- Hide</a>
|
||||||
<a href=# class='add-note'>+ Note</a>
|
<a href=# class='add-note'>+ Note</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -1742,11 +1782,11 @@
|
||||||
setText( $b.find('.head .text'), board.title );
|
setText( $b.find('.head .text'), board.title );
|
||||||
|
|
||||||
board.lists.forEach(function(list){
|
board.lists.forEach(function(list){
|
||||||
|
|
||||||
var $l = $ldiv.clone();
|
var $l = $ldiv.clone();
|
||||||
var $l_notes = $l.find('.notes');
|
var $l_notes = $l.find('.notes');
|
||||||
|
|
||||||
setText( $l.find('.head .text'), list.title );
|
setText( $l.find('.head .text'), list.title );
|
||||||
|
if (list.min) $l.addClass('collapsed-list');
|
||||||
|
|
||||||
list.notes.forEach(function(n){
|
list.notes.forEach(function(n){
|
||||||
var $n = $ndiv.clone();
|
var $n = $ndiv.clone();
|
||||||
|
|
@ -1782,6 +1822,7 @@
|
||||||
$board.find('.list').each(function(){
|
$board.find('.list').each(function(){
|
||||||
var $list = $(this);
|
var $list = $(this);
|
||||||
var l = board.addList( getText($list.find('.head .text')) );
|
var l = board.addList( getText($list.find('.head .text')) );
|
||||||
|
l.min = $list.hasClass('collapsed-list');
|
||||||
|
|
||||||
$list.find('.note').each(function(){
|
$list.find('.note').each(function(){
|
||||||
var $note = $(this)
|
var $note = $(this)
|
||||||
|
|
@ -2933,6 +2974,13 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
//
|
//
|
||||||
|
$('.board .collapse-list').live('click', function(){
|
||||||
|
var $list = $(this).closest('.list');
|
||||||
|
$list.toggleClass('collapsed-list');
|
||||||
|
saveBoard();
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
$('.board .add-note').live('click', function(){
|
$('.board .add-note').live('click', function(){
|
||||||
addNote( $(this).closest('.list') );
|
addNote( $(this).closest('.list') );
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue