2020-03-18 12:54:30 +08:00
|
|
|
@import '../../style/themes/index';
|
|
|
|
@import '../../style/mixins/index';
|
|
|
|
@import '../../checkbox/style/mixin';
|
|
|
|
|
|
|
|
@tree-prefix-cls: ~'@{ant-prefix}-tree';
|
2020-05-29 22:28:52 +08:00
|
|
|
@select-tree-prefix-cls: ~'@{ant-prefix}-select-tree';
|
2020-03-18 12:54:30 +08:00
|
|
|
@tree-node-prefix-cls: ~'@{tree-prefix-cls}-treenode';
|
|
|
|
|
2020-05-13 14:45:08 +08:00
|
|
|
.@{tree-prefix-cls} {
|
|
|
|
&-rtl {
|
|
|
|
direction: rtl;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ===================== TreeNode =====================
|
|
|
|
.@{tree-node-prefix-cls} {
|
2020-03-18 12:54:30 +08:00
|
|
|
&-rtl {
|
|
|
|
direction: rtl;
|
|
|
|
}
|
2020-05-13 14:45:08 +08:00
|
|
|
}
|
2020-03-18 12:54:30 +08:00
|
|
|
|
2020-05-13 14:45:08 +08:00
|
|
|
// >>> Switcher
|
|
|
|
& &-switcher {
|
|
|
|
&_close {
|
|
|
|
.@{tree-prefix-cls}-switcher-icon {
|
|
|
|
svg {
|
|
|
|
.@{tree-prefix-cls}-rtl& {
|
|
|
|
transform: rotate(90deg);
|
2020-03-18 12:54:30 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-10-05 16:20:14 +08:00
|
|
|
|
|
|
|
&-loading-icon {
|
|
|
|
.@{tree-prefix-cls}-rtl& {
|
|
|
|
transform: scaleY(-1);
|
|
|
|
}
|
|
|
|
}
|
2020-05-13 14:45:08 +08:00
|
|
|
}
|
|
|
|
// ==================== Show Line =====================
|
|
|
|
&-show-line {
|
|
|
|
// ================ Indent lines ================
|
|
|
|
.@{tree-prefix-cls}-indent {
|
|
|
|
&-unit {
|
|
|
|
&::before {
|
|
|
|
.@{tree-prefix-cls}-rtl& {
|
|
|
|
right: auto;
|
2020-08-14 15:41:52 +08:00
|
|
|
left: -@tree-title-height / 2 - 1px;
|
2020-05-13 14:45:08 +08:00
|
|
|
border-right: none;
|
|
|
|
border-left: 1px solid @border-color-base;
|
2020-03-18 12:54:30 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-29 10:36:50 +08:00
|
|
|
// >>> Checkbox
|
|
|
|
& &-checkbox {
|
|
|
|
.@{tree-prefix-cls}-rtl& {
|
|
|
|
margin: ((@tree-title-height - @checkbox-size) / 2) 0 0 8px;
|
|
|
|
}
|
|
|
|
}
|
2020-03-18 12:54:30 +08:00
|
|
|
}
|
2020-05-29 22:28:52 +08:00
|
|
|
|
|
|
|
.@{select-tree-prefix-cls} {
|
|
|
|
// >>> Checkbox
|
|
|
|
& &-checkbox {
|
|
|
|
.@{tree-prefix-cls}-select-dropdown-rtl & {
|
|
|
|
margin: ((@tree-title-height - @checkbox-size) / 2) 0 0 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|