Skip to content

Commit

Permalink
Tweak table border radius (#9674)
Browse files Browse the repository at this point in the history
Close #6750
  • Loading branch information
yesmeck authored Mar 18, 2018
1 parent 411181e commit 381b88e
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions components/table/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
.@{table-prefix-cls} {
.reset-component;
position: relative;
border-radius: @border-radius-base @border-radius-base 0 0;
clear: both;

&-body {
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -138,7 +139,8 @@
overflow: hidden;
.@{table-prefix-cls}-bordered & {
&,
table {
table,
.@{table-prefix-cls}-thead > tr:first-child > th {
border-radius: 0;
}
}
Expand Down

0 comments on commit 381b88e

Please sign in to comment.