Skip to content

Commit

Permalink
WIP: collapse while being dragged
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Kuenzli committed Nov 22, 2017
1 parent 8c7a85e commit 1154fed
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions contribs/gmf/less/desktoplayertree.less
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,6 @@ gmf-layertree {
}
}

&.gmf-layertree-dragger {
* {
cursor: url(../cursors/grabbing.cur), default;
cursor: -webkit-grabbing;
cursor: grabbing;
}
ul {
display: none;
}
}

.gmf-layertree-group.gmf-layertree-depth-1 {
background-color: @main-bg-color;
padding: @half-app-margin;
Expand Down Expand Up @@ -119,3 +108,16 @@ gmf-layertree {
margin: 0 @micro-app-margin @app-margin @micro-app-margin;
box-shadow: 0 0 4px 1px @input-border-focus;
}

/* super specific, to have a higher precedence order than the collapse rule */
.ui-sortable .gmf-layertree-node.gmf-layertree-dragger {
* {
cursor: url(../cursors/grabbing.cur), default;
cursor: -webkit-grabbing;
cursor: grabbing;
}
/* FIXME: ul doesn't get properly hidden, despite being the active rule */
ul.collapse.in {
display: none;
}
}

0 comments on commit 1154fed

Please sign in to comment.