forked from fanruan/fineui
Browse Source
* commit '194814c99bbbf9bccacbf2669b89d0db9a231ea4': KERNEL-10683 fix: 树的样式调整,支持等比缩放..research/test
superman
2 years ago
4 changed files with 77 additions and 6 deletions
@ -0,0 +1,67 @@
|
||||
@import "../../index.less"; |
||||
|
||||
.tree-first-solid-line-conn-background, .tree-mid-solid-line-conn-background { |
||||
&:before { |
||||
position: absolute; |
||||
top: 0; |
||||
left: -1px; |
||||
width: 50%; |
||||
height: 100%; |
||||
border-right: 1px solid @border-color-dark-gray-line; |
||||
content: ''; |
||||
} |
||||
|
||||
&:after { |
||||
position: absolute; |
||||
top: 0; |
||||
right: 0; |
||||
height: 50%; |
||||
width: 50%; |
||||
border-bottom: 1px solid @border-color-dark-gray-line; |
||||
content: ''; |
||||
} |
||||
} |
||||
|
||||
.tree-last-solid-line-conn-background { |
||||
&:before { |
||||
position: absolute; |
||||
top: 0; |
||||
left: -1px; |
||||
width: 50%; |
||||
height: 50%; |
||||
border-right: 1px solid @border-color-dark-gray-line; |
||||
content: ''; |
||||
} |
||||
|
||||
&:after { |
||||
position: absolute; |
||||
top: 0; |
||||
right: 1px; |
||||
height: 50%; |
||||
width: 50%; |
||||
border-bottom: 1px solid @border-color-dark-gray-line; |
||||
content: ''; |
||||
} |
||||
} |
||||
|
||||
.bi-theme-dark { |
||||
.tree-first-solid-line-conn-background, .tree-mid-solid-line-conn-background { |
||||
&:before { |
||||
border-right: 1px solid @border-color-dark-gray-line-theme-dark; |
||||
} |
||||
|
||||
&:after { |
||||
border-bottom: 1px solid @border-color-dark-gray-line-theme-dark; |
||||
} |
||||
} |
||||
|
||||
.tree-last-solid-line-conn-background { |
||||
&:before { |
||||
border-right: 1px solid @border-color-dark-gray-line-theme-dark; |
||||
} |
||||
|
||||
&:after { |
||||
border-bottom: 1px solid @border-color-dark-gray-line-theme-dark; |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue