adjust nest table logic (#22868)

This commit is contained in:
二货机器人 2020-04-02 22:22:34 +08:00 committed by GitHub
parent b28b2007be
commit 14cd2dc434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,20 +124,22 @@
}
// ========================= Nest Table ===========================
.@{table-prefix-cls} {
margin: -@table-padding-vertical -@table-padding-horizontal -@table-padding-vertical (@table-padding-horizontal +
ceil(@font-size-sm * 1.4));
.@{table-prefix-cls}-wrapper:only-child {
.@{table-prefix-cls} {
margin: -@table-padding-vertical -@table-padding-horizontal -@table-padding-vertical (@table-padding-horizontal +
ceil(@font-size-sm * 1.4));
td {
background: transparent;
}
td {
background: transparent;
}
&-tbody > tr:last-child > td {
border-bottom: 0;
&-tbody > tr:last-child > td {
border-bottom: 0;
&:first-child,
&:last-child {
border-radius: 0;
&:first-child,
&:last-child {
border-radius: 0;
}
}
}
}