Browse Source

style: optimize table rtl style (#23706)

pull/23710/head
xrkffgg 5 years ago
committed by GitHub
parent
commit
f6d12c5d88
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 42
      components/table/style/rtl.less

42
components/table/style/rtl.less

@ -2,6 +2,7 @@
@import '../../style/mixins/index'; @import '../../style/mixins/index';
@table-prefix-cls: ~'@{ant-prefix}-table'; @table-prefix-cls: ~'@{ant-prefix}-table';
@table-wrapepr-cls: ~'@{table-prefix-cls}-wrapper';
@table-wrapepr-rtl-cls: ~'@{table-prefix-cls}-wrapper-rtl'; @table-wrapepr-rtl-cls: ~'@{table-prefix-cls}-wrapper-rtl';
.@{table-prefix-cls}-wrapper { .@{table-prefix-cls}-wrapper {
@ -51,10 +52,29 @@
} }
// ========================== Pagination ========================== // ========================== Pagination ==========================
&-pagination.@{ant-prefix}-pagination { &-pagination {
.@{table-wrapepr-rtl-cls} & { .@{table-wrapepr-cls}.@{table-wrapepr-rtl-cls} & {
float: left; 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; 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);
}
}
} }
} }

Loading…
Cancel
Save