提交 c95a9125 编写于 作者: C Catouse

* improve tree with lines.

上级 b2318342
......@@ -112,21 +112,6 @@
}
.tree-lines {
li {
&.has-list {
&.open > ul:after {
display: block;
position: absolute;
content: ' ';
border-left: 1px dotted #999;
top: -5px;
left: -11px;
bottom: 12px;
z-index: 1;
}
}
}
ul > li {
&:after {
display: block;
......@@ -139,11 +124,33 @@
width: 18px;
}
&.drag-shadow:after {display: none}
&:before,
&.has-list:before {
background: none;
content: ' ';
display: block;
position: absolute;
width: auto;
height: auto;
border: none;
border-left: 1px dotted #999;
top: -12px;
bottom: 13px;
left: -11px;
}
&:last-child:before {
bottom: auto;
height: 23px;
}
&:first-child:before {top: -7px;}
&.has-list:after {
width: 14px;
}
&.drag-shadow:after {display: none}
}
}
......@@ -151,7 +158,7 @@
li > .list-toggle:before {content: '\e6ef'}
li.open > .list-toggle:before {content: '\e6f0'}
li:before {border: 1px solid #999; background-color: #fff; width: 4px; height: 4px; border-radius: 2px; left: 7px; top: 9px;}
&.tree-lines ul > li:first-child:before {top: -6px;}
&.tree-lines li.has-list.open > ul:after {top: 16px}
ul > li.has-list:after {width: 13px}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册