Skip to content

Commit

Permalink
fix(module:tree,tree-select): fix the styles of connecting line
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuanxyz committed Apr 29, 2019
1 parent 3590158 commit 514d093
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 30 deletions.
1 change: 1 addition & 0 deletions components/tree-select/style/entry.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
@import '../../tree/style/entry.less';
@import '../../select/style/index.less';
@import '../../empty/style/index.less';
@import "./path.less";
9 changes: 9 additions & 0 deletions components/tree-select/style/path.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.ant-tree.ant-select-tree.ant-tree-show-line nz-tree-node:not(:last-child) > li::before {
content: ' ';
width: 1px;
border-left: 1px solid #d9d9d9;
height: calc(100% - 16px);
position: absolute;
left: 12px;
margin: 26px 0;
}
2 changes: 1 addition & 1 deletion components/tree/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
/* Required to make elements draggable in old WebKit */
-khtml-user-drag: element;
-webkit-user-drag: element;
}
}before
&.drag-over {
> span[draggable] {
color: white;
Expand Down
43 changes: 14 additions & 29 deletions components/tree/style/patch.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,19 @@
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/

.ant-tree {
&.ant-tree-show-line {
> nz-tree-node:not(:last-child), .ant-tree-child-tree > nz-tree-node:not(:last-child) {
> li:before {
content: ' ';
width: 1px;
border-left: 1px solid @border-color-base;
height: 100%;
position: absolute;
left: 12px;
margin: 22px 0;
}
}

.ant-tree-child-tree > nz-tree-node:last-child {
> li:before {
content: ' ';
width: 1px;
border-left: 0px solid @border-color-base;
height: 100%;
position: absolute;
left: 12px;
margin: 22px 0;
}
}
}
.ant-tree.ant-tree-show-line nz-tree-node:not(:last-child) > li::before {
content: ' ';
width: 1px;
border-left: 1px solid @border-color-base;
height: 100%;
position: absolute;
left: 12px;
margin: 22px 0;
}

.font-highlight {
color: @highlight-color;
}
.font-highlight {
color: @highlight-color;
}



0 comments on commit 514d093

Please sign in to comment.