style: optimize tree checkbox rtl style (#24563)

This commit is contained in:
xrkffgg 2020-05-29 22:28:52 +08:00 committed by GitHub
parent 0cdb4c8c86
commit ada81616b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
@import '../../checkbox/style/mixin';
@tree-prefix-cls: ~'@{ant-prefix}-tree';
@select-tree-prefix-cls: ~'@{ant-prefix}-select-tree';
@tree-node-prefix-cls: ~'@{tree-prefix-cls}-treenode';
.@{tree-prefix-cls} {
@ -52,3 +53,12 @@
}
}
}
.@{select-tree-prefix-cls} {
// >>> Checkbox
& &-checkbox {
.@{tree-prefix-cls}-select-dropdown-rtl & {
margin: ((@tree-title-height - @checkbox-size) / 2) 0 0 8px;
}
}
}