mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-10 19:19:20 +08:00
style: optimize table rtl style (#23706)
This commit is contained in:
parent
190e2a28a7
commit
f6d12c5d88
@ -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…
Reference in New Issue
Block a user