style: optimize table rtl style (#23706)

This commit is contained in:
xrkffgg 2020-04-28 14:48:42 +08:00 committed by GitHub
parent 190e2a28a7
commit f6d12c5d88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
@import '../../style/mixins/index';
@table-prefix-cls: ~'@{ant-prefix}-table';
@table-wrapepr-cls: ~'@{table-prefix-cls}-wrapper';
@table-wrapepr-rtl-cls: ~'@{table-prefix-cls}-wrapper-rtl';
.@{table-prefix-cls}-wrapper {
@ -51,10 +52,29 @@
}
// ========================== Pagination ==========================
&-pagination.@{ant-prefix}-pagination {
.@{table-wrapepr-rtl-cls} & {
&-pagination {
.@{table-wrapepr-cls}.@{table-wrapepr-rtl-cls} & {
float: left;
}
&-left {
.@{table-wrapepr-cls}.@{table-wrapepr-rtl-cls} & {
float: left;
}
}
&-right {
.@{table-wrapepr-cls}.@{table-wrapepr-rtl-cls} & {
float: right;
}
}
&-center {
.@{table-wrapepr-cls}.@{table-wrapepr-rtl-cls} & {
float: initial;
text-align: center;
}
}
}
// ================================================================
@ -129,5 +149,23 @@
margin-left: @padding-xs;
}
}
&::after {
.@{table-wrapepr-rtl-cls} & {
transform: rotate(-90deg);
}
}
&-collapsed::before {
.@{table-wrapepr-rtl-cls} & {
transform: rotate(180deg);
}
}
&-collapsed::after {
.@{table-wrapepr-rtl-cls} & {
transform: rotate(0deg);
}
}
}
}