Tweak table border radius (#9674)

Close #6750
This commit is contained in:
Wei Zhu 2018-03-18 11:14:31 +08:00 committed by GitHub
parent 411181e6ec
commit 381b88e9b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,6 @@
.@{table-prefix-cls} {
.reset-component;
position: relative;
border-radius: @border-radius-base @border-radius-base 0 0;
clear: both;
&-body {
@ -34,14 +33,6 @@
font-weight: 500;
border-bottom: @border-width-base @border-style-base @border-color-split;
&:first-child {
border-top-left-radius: @border-radius-base;
}
&:last-child {
border-top-right-radius: @border-radius-base;
}
&[colspan] {
text-align: center;
border-bottom: 0;
@ -78,6 +69,16 @@
}
}
&-thead > tr:first-child > th {
&:first-child {
border-top-left-radius: @border-radius-base;
}
&:last-child {
border-top-right-radius: @border-radius-base;
}
}
&-tbody > tr > td {
border-bottom: @border-width-base @border-style-base @border-color-split;
transition: all .3s;
@ -138,7 +139,8 @@
overflow: hidden;
.@{table-prefix-cls}-bordered & {
&,
table {
table,
.@{table-prefix-cls}-thead > tr:first-child > th {
border-radius: 0;
}
}