style: optimize descriptions border in rtl (#28010)

This commit is contained in:
xrkffgg 2020-11-26 09:58:32 +08:00 committed by GitHub
parent 20788d870c
commit e1663d1fc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,22 @@
&-item-label {
&::after {
.@{descriptions-prefix-cls}-rtl & {
margin: 0 2px 0 8px;
margin: 0 @descriptions-item-label-colon-margin-left 0
@descriptions-item-label-colon-margin-right;
}
}
}
&-bordered {
.@{descriptions-prefix-cls}-item-label,
.@{descriptions-prefix-cls}-item-content {
.@{descriptions-prefix-cls}-rtl& {
border-right: none;
border-left: 1px solid @border-color-split;
&:last-child {
border-left: none;
}
}
}
}