2020-03-08 15:12:21 +08:00
|
|
|
@import './index';
|
|
|
|
|
|
|
|
.table-size(@size, @padding-vertical, @padding-horizontal) {
|
2020-04-13 23:11:08 +08:00
|
|
|
.@{table-prefix-cls}.@{table-prefix-cls}-@{size} {
|
2020-03-08 15:12:21 +08:00
|
|
|
.@{table-prefix-cls}-title,
|
|
|
|
.@{table-prefix-cls}-footer,
|
2020-03-30 09:53:10 +08:00
|
|
|
.@{table-prefix-cls}-thead > tr > th,
|
2020-04-13 23:11:08 +08:00
|
|
|
.@{table-prefix-cls}-tbody > tr > td,
|
|
|
|
tfoot > tr > th,
|
|
|
|
tfoot > tr > td {
|
2020-03-08 15:12:21 +08:00
|
|
|
padding: @padding-vertical @padding-horizontal;
|
2020-03-05 12:17:50 +08:00
|
|
|
}
|
|
|
|
|
2020-04-06 17:35:04 +08:00
|
|
|
.@{table-prefix-cls}-thead {
|
|
|
|
th.@{table-prefix-cls}-column-has-sorters {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{table-prefix-cls}-filter-column {
|
|
|
|
margin: -@padding-vertical -@padding-horizontal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{table-prefix-cls}-filter-column-title {
|
|
|
|
padding: @padding-vertical 2.3em @padding-vertical @padding-horizontal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{table-prefix-cls}-column-sorters {
|
|
|
|
padding: @padding-vertical @padding-horizontal;
|
|
|
|
}
|
2020-03-05 12:17:50 +08:00
|
|
|
}
|
|
|
|
|
2020-03-08 15:12:21 +08:00
|
|
|
.@{table-prefix-cls}-expanded-row-fixed {
|
|
|
|
margin: -@padding-vertical -@padding-horizontal;
|
2020-03-05 12:17:50 +08:00
|
|
|
}
|
|
|
|
}
|
2020-03-08 15:12:21 +08:00
|
|
|
}
|
2020-03-05 12:17:50 +08:00
|
|
|
|
2020-03-08 15:12:21 +08:00
|
|
|
// ================================================================
|
|
|
|
// = Middle =
|
|
|
|
// ================================================================
|
|
|
|
.table-size(~'middle', @table-padding-vertical-md, @table-padding-horizontal-md);
|
2020-03-05 12:17:50 +08:00
|
|
|
|
2020-03-08 15:12:21 +08:00
|
|
|
// ================================================================
|
|
|
|
// = Small =
|
|
|
|
// ================================================================
|
|
|
|
.table-size(~'small', @table-padding-vertical-sm, @table-padding-horizontal-sm);
|
2020-03-05 12:17:50 +08:00
|
|
|
|
2020-04-06 17:35:04 +08:00
|
|
|
.@{table-prefix-cls}-small {
|
2020-03-30 09:53:10 +08:00
|
|
|
.@{table-prefix-cls}-thead > tr > th {
|
2020-03-08 15:12:21 +08:00
|
|
|
background-color: @table-header-bg-sm;
|
2020-03-05 12:17:50 +08:00
|
|
|
}
|
|
|
|
}
|