mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-05 23:46:28 +08:00
adjust table style
This commit is contained in:
parent
9630dc48a0
commit
50dc59e1ce
@ -23,8 +23,7 @@
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
border-collapse: collapse;
|
||||
text-align: left;
|
||||
border-radius: @border-radius-base @border-radius-base 0 0;
|
||||
}
|
||||
@ -301,8 +300,6 @@
|
||||
.@{table-prefix-cls}-fixed-left table,
|
||||
.@{table-prefix-cls}-fixed-right table {
|
||||
border: @border-width-base @border-style-base @border-color-split;
|
||||
border-right: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
&.@{table-prefix-cls}-empty {
|
||||
@ -313,23 +310,10 @@
|
||||
}
|
||||
|
||||
&.@{table-prefix-cls}-fixed-header {
|
||||
.@{table-prefix-cls}-header > table {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.@{table-prefix-cls}-body > table {
|
||||
border-top: 0;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
|
||||
.@{table-prefix-cls}-body-inner > table {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.@{table-prefix-cls}-placeholder {
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.@{table-prefix-cls}-thead > tr:not(:last-child) > th {
|
||||
|
@ -22,8 +22,13 @@
|
||||
|
||||
.@{table-prefix-cls}-small {
|
||||
border: @border-width-base @border-style-base @border-color-split;
|
||||
padding: 0 @table-padding-horizontal/2;
|
||||
border-radius: @border-radius-base;
|
||||
|
||||
&.@{table-prefix-cls}-fixed-header {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
> .@{table-prefix-cls}-title,
|
||||
> .@{table-prefix-cls}-footer {
|
||||
padding: @table-padding-vertical/2 @table-padding-horizontal/2;
|
||||
@ -44,7 +49,6 @@
|
||||
> .@{table-prefix-cls}-fixed-left > .@{table-prefix-cls}-body-outer > .@{table-prefix-cls}-body-inner > table,
|
||||
> .@{table-prefix-cls}-fixed-right > .@{table-prefix-cls}-body-outer > .@{table-prefix-cls}-body-inner > table {
|
||||
border: 0;
|
||||
padding: 0 @table-padding-horizontal/2;
|
||||
> .@{table-prefix-cls}-thead > tr > th,
|
||||
> .@{table-prefix-cls}-tbody > tr > td {
|
||||
padding: @table-padding-vertical/2 @table-padding-horizontal/2;
|
||||
|
Loading…
Reference in New Issue
Block a user