|
|
|
@import '../../style/themes/index';
|
|
|
|
@import '../../style/mixins/index';
|
|
|
|
@import './size';
|
|
|
|
@import './bordered';
|
|
|
|
|
|
|
|
@table-prefix-cls: ~'@{ant-prefix}-table';
|
|
|
|
@dropdown-prefix-cls: ~'@{ant-prefix}-dropdown';
|
|
|
|
@table-header-icon-color: #bfbfbf;
|
|
|
|
@table-header-icon-color-hover: darken(@table-header-icon-color, 10%);
|
|
|
|
@table-header-sort-active-filter-bg: lighten(@table-header-sort-active-bg, 2%);
|
|
|
|
|
|
|
|
@table-selection-column-width: 60px;
|
|
|
|
|
|
|
|
.@{table-prefix-cls}-wrapper {
|
|
|
|
.clearfix;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{table-prefix-cls} {
|
|
|
|
.reset-component;
|
|
|
|
position: relative;
|
|
|
|
z-index: 0;
|
|
|
|
clear: both;
|
|
|
|
background: @table-bg;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
|
|
|
|
// https://github.com/ant-design/ant-design/issues/17611
|
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
text-align: left;
|
|
|
|
border-radius: @table-border-radius-base @table-border-radius-base 0 0;
|
|
|
|
border-collapse: separate;
|
|
|
|
border-spacing: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ============================= Cell =============================
|
|
|
|
&-thead > tr > th,
|
|
|
|
&-tbody > tr > td,
|
|
|
|
tfoot > tr > th,
|
|
|
|
tfoot > tr > td {
|
|
|
|
position: relative;
|
|
|
|
padding: @table-padding-vertical @table-padding-horizontal;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-cell-ellipsis {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
word-break: keep-all;
|
|
|
|
|
|
|
|
// Fixed first or last should special process
|
|
|
|
&.@{table-prefix-cls}-cell-fix-left-last,
|
|
|
|
&.@{table-prefix-cls}-cell-fix-right-first {
|
|
|
|
overflow: visible;
|
|
|
|
|
|
|
|
.@{table-prefix-cls}-cell-content {
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ============================ Title =============================
|
|
|
|
&-title {
|
|
|
|
padding: @table-padding-vertical @table-padding-horizontal;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ============================ Footer ============================
|
|
|
|
&-footer {
|
|
|
|
padding: @table-padding-vertical @table-padding-horizontal;
|
|
|
|
color: @table-footer-color;
|
|
|
|
background: @table-footer-bg;
|
|
|
|
}
|
|
|
|
|
|
|