2021-09-07 16:14:20 +08:00
|
|
|
@import (reference) '../../style/themes/index';
|
|
|
|
|
|
|
|
@table-prefix-cls: ~'@{ant-prefix}-table';
|
2019-11-15 14:35:25 +08:00
|
|
|
|
2020-06-04 08:57:58 +08:00
|
|
|
.table-size(@size, @padding-vertical, @padding-horizontal, @font-size) {
|
2020-04-11 16:11:28 +08:00
|
|
|
.@{table-prefix-cls}.@{table-prefix-cls}-@{size} {
|
2020-06-04 08:57:58 +08:00
|
|
|
font-size: @font-size;
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{table-prefix-cls}-title,
|
|
|
|
.@{table-prefix-cls}-footer,
|
2020-03-26 23:39:16 +08:00
|
|
|
.@{table-prefix-cls}-thead > tr > th,
|
2020-04-11 16:11:28 +08:00
|
|
|
.@{table-prefix-cls}-tbody > tr > td,
|
|
|
|
tfoot > tr > th,
|
|
|
|
tfoot > tr > td {
|
2019-11-15 14:35:25 +08:00
|
|
|
padding: @padding-vertical @padding-horizontal;
|
2017-12-10 16:20:02 +08:00
|
|
|
}
|
|
|
|
|
2021-05-24 22:16:06 +08:00
|
|
|
.@{table-prefix-cls}-filter-trigger {
|
|
|
|
margin-right: -(@padding-horizontal / 2);
|
2017-12-27 12:20:04 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{table-prefix-cls}-expanded-row-fixed {
|
|
|
|
margin: -@padding-vertical -@padding-horizontal;
|
2018-06-15 17:40:32 +08:00
|
|
|
}
|
2020-04-26 10:42:05 +08:00
|
|
|
|
|
|
|
.@{table-prefix-cls}-tbody {
|
|
|
|
// ========================= Nest Table ===========================
|
|
|
|
.@{table-prefix-cls}-wrapper:only-child {
|
|
|
|
.@{table-prefix-cls} {
|
|
|
|
margin: -@padding-vertical -@padding-horizontal -@padding-vertical (@padding-horizontal +
|
2020-12-25 14:31:44 +08:00
|
|
|
ceil((@font-size-sm * 1.4)));
|
2020-04-26 10:42:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-12-10 16:20:02 +08:00
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2018-11-08 14:21:39 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ================================================================
|
|
|
|
// = Middle =
|
|
|
|
// ================================================================
|
2020-06-04 08:57:58 +08:00
|
|
|
.table-size(~'middle', @table-padding-vertical-md, @table-padding-horizontal-md, @table-font-size-md);
|
2019-10-22 11:13:40 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ================================================================
|
|
|
|
// = Small =
|
|
|
|
// ================================================================
|
2020-06-04 08:57:58 +08:00
|
|
|
.table-size(~'small', @table-padding-vertical-sm, @table-padding-horizontal-sm, @table-font-size-sm);
|