mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
72a7ba618f
* chore: update rc-table * add basic table style * checked all logic * checkbox support disabled * selection style * selection support radio * add selections support * selection extra style * select all locale * sorter logic * add more desc * init Filter hooks * init filter hooks * update style * filter style * filter style * fix filter * sort control * ajax it * add expandedable css * expandable view style * fixed style * border style * empty style * fix pagination style * add fixed demo * un-comment * clean up * fix filter check logic * fix overflow & ellipsis conflict * fix tes * adjust scroll shadow * fix border fixed style * add part of test case * add filter test part * more test case * issue related test * filter test * adjust pagination logic * fix pagination test case * all selection test case * table sorter test case * table basic test * fix test case * update faq * update expandable doc * add v4 doc * add summary docs * more demo * fix selection * update snapshot * update test case * fix ff styling * update rc-table * update snapshot * update snapshot * fix lint * fix style lint * fix style * update snapshot * update desc * fix missing icon
82 lines
2.0 KiB
Plaintext
82 lines
2.0 KiB
Plaintext
@import './index';
|
|
@import './size';
|
|
|
|
@table-border: @border-width-base @border-style-base @border-color-split;
|
|
|
|
.@{table-prefix-cls}.@{table-prefix-cls}-bordered {
|
|
// ============================ Title =============================
|
|
.@{table-prefix-cls}-title {
|
|
border: @table-border;
|
|
border-bottom: 0;
|
|
}
|
|
|
|
// ============================= Cell =============================
|
|
thead > tr > th,
|
|
tbody > tr > td,
|
|
tfoot > tr > th,
|
|
tfoot > tr > td {
|
|
border-right: @table-border;
|
|
}
|
|
|
|
// Fixed right should provides additional border
|
|
.@{table-prefix-cls}-cell-fix-right-first::after {
|
|
border-right: @table-border;
|
|
}
|
|
|
|
// ============================ Header ============================
|
|
table > {
|
|
thead {
|
|
> tr:not(:last-child) > th {
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
}
|
|
}
|
|
}
|
|
|
|
// =========================== Content ============================
|
|
.@{table-prefix-cls}-container {
|
|
border: @table-border;
|
|
border-right: 0;
|
|
border-bottom: 0;
|
|
}
|
|
|
|
// ========================== Expandable ==========================
|
|
.@{table-prefix-cls}-expanded-row-fixed {
|
|
margin: -@table-padding-vertical (-@table-padding-horizontal - @border-width-base);
|
|
|
|
&::after {
|
|
position: absolute;
|
|
top: 0;
|
|
right: @border-width-base;
|
|
bottom: 0;
|
|
border-right: @table-border;
|
|
content: '';
|
|
}
|
|
}
|
|
|
|
tr.@{table-prefix-cls}-expanded-row,
|
|
tr.@{table-prefix-cls}-placeholder {
|
|
> td {
|
|
border-right: 0;
|
|
}
|
|
}
|
|
|
|
// Size related
|
|
&.@{table-prefix-cls}-middle {
|
|
.@{table-prefix-cls}-expanded-row-fixed {
|
|
margin: -@table-padding-vertical-md (-@table-padding-horizontal-md - @border-width-base);
|
|
}
|
|
}
|
|
|
|
&.@{table-prefix-cls}-small {
|
|
.@{table-prefix-cls}-expanded-row-fixed {
|
|
margin: -@table-padding-vertical-sm (-@table-padding-horizontal-sm - @border-width-base);
|
|
}
|
|
}
|
|
|
|
// ============================ Footer ============================
|
|
.@{table-prefix-cls}-footer {
|
|
border: @table-border;
|
|
border-top: 0;
|
|
}
|
|
}
|