2019-05-06 12:04:39 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-12-07 20:02:01 +08:00
|
|
|
@import '../../style/mixins/index';
|
2019-11-15 14:35:25 +08:00
|
|
|
@import './size';
|
|
|
|
@import './bordered';
|
2015-09-10 11:04:31 +08:00
|
|
|
|
2018-12-07 20:02:01 +08:00
|
|
|
@table-prefix-cls: ~'@{ant-prefix}-table';
|
2019-11-15 14:35:25 +08:00
|
|
|
@dropdown-prefix-cls: ~'@{ant-prefix}-dropdown';
|
2018-09-17 15:28:49 +08:00
|
|
|
@table-header-icon-color: #bfbfbf;
|
2019-11-15 14:35:25 +08:00
|
|
|
@table-header-icon-color-hover: darken(@table-header-icon-color, 10%);
|
2019-12-19 17:48:56 +08:00
|
|
|
@table-header-sort-active-filter-bg: lighten(@table-header-sort-active-bg, 2%);
|
2019-11-15 14:35:25 +08:00
|
|
|
|
2019-04-11 00:54:46 +08:00
|
|
|
@table-selection-column-width: 60px;
|
2015-07-09 14:51:48 +08:00
|
|
|
|
2017-02-20 11:35:01 +08:00
|
|
|
.@{table-prefix-cls}-wrapper {
|
|
|
|
.clearfix;
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{table-prefix-cls} {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2016-03-24 16:16:37 +08:00
|
|
|
position: relative;
|
2019-12-05 18:16:39 +08:00
|
|
|
z-index: 0;
|
2018-03-02 12:00:28 +08:00
|
|
|
clear: both;
|
2015-09-15 11:40:58 +08:00
|
|
|
|
2019-07-15 17:59:29 +08:00
|
|
|
// https://github.com/ant-design/ant-design/issues/17611
|
2015-07-09 14:51:48 +08:00
|
|
|
table {
|
|
|
|
width: 100%;
|
2015-07-15 17:57:19 +08:00
|
|
|
text-align: left;
|
2018-12-21 11:46:52 +08:00
|
|
|
border-radius: @table-border-radius-base @table-border-radius-base 0 0;
|
2019-07-15 17:59:29 +08:00
|
|
|
border-collapse: separate;
|
|
|
|
border-spacing: 0;
|
2015-07-09 14:51:48 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================= 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;
|
2019-06-25 12:36:01 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// weak priority
|
|
|
|
td {
|
2019-11-27 15:24:48 +08:00
|
|
|
background: @table-bg;
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2018-05-04 14:33:06 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-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;
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2019-06-05 10:17:41 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================ Title =============================
|
|
|
|
&-title {
|
|
|
|
padding: @table-padding-vertical @table-padding-horizontal;
|
|
|
|
}
|
2019-06-05 10:17:41 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================ Footer ============================
|
|
|
|
&-footer {
|
|
|
|
padding: @table-padding-vertical @table-padding-horizontal;
|
2019-12-31 15:04:00 +08:00
|
|
|
color: @table-footer-color;
|
|
|
|
background: @table-footer-bg;
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2019-03-31 14:01:24 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================ Header ============================
|
|
|
|
thead {
|
|
|
|
> tr {
|
|
|
|
> th {
|
|
|
|
color: @table-header-color;
|
|
|
|
font-weight: 500;
|
|
|
|
text-align: left;
|
|
|
|
background: @table-header-bg;
|
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
|
|
transition: background 0.3s ease;
|
2019-03-31 14:01:24 +08:00
|
|
|
|
2019-12-27 12:34:40 +08:00
|
|
|
&[colspan]:not([colspan='1']) {
|
2019-11-15 14:35:25 +08:00
|
|
|
text-align: center;
|
2019-03-31 14:01:24 +08:00
|
|
|
}
|
2018-09-17 17:33:02 +08:00
|
|
|
}
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
2018-09-17 17:33:02 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
> tr:not(:last-child) > th {
|
|
|
|
&[colspan] {
|
|
|
|
border-bottom: 0;
|
2018-10-10 13:45:11 +08:00
|
|
|
}
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2018-09-17 17:33:02 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================= Body =============================
|
|
|
|
tbody {
|
|
|
|
> tr {
|
|
|
|
> td {
|
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
|
|
transition: background 0.3s;
|
|
|
|
}
|
2019-03-31 14:01:24 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&.@{table-prefix-cls}-row:hover {
|
|
|
|
> td {
|
|
|
|
background: @table-row-hover-bg;
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2019-04-06 12:56:07 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&.@{table-prefix-cls}-row-selected {
|
|
|
|
> td {
|
|
|
|
background: @table-selected-row-bg;
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
|
|
|
|
:hover {
|
|
|
|
> td {
|
|
|
|
background: @table-selected-row-hover-bg;
|
|
|
|
}
|
2019-04-06 12:56:07 +08:00
|
|
|
}
|
2018-09-17 17:33:02 +08:00
|
|
|
}
|
2019-12-31 15:04:00 +08:00
|
|
|
|
|
|
|
// ========================= Nest Table ===========================
|
|
|
|
.@{table-prefix-cls} {
|
|
|
|
margin: -@table-padding-vertical -@table-padding-horizontal -@table-padding-vertical (@table-padding-horizontal +
|
|
|
|
ceil(@font-size-sm * 1.4));
|
|
|
|
|
|
|
|
td {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
tbody > tr:last-child > td {
|
|
|
|
border-bottom: 0;
|
|
|
|
|
|
|
|
&:first-child,
|
|
|
|
&:last-child {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
2015-07-09 14:51:48 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// =========================== Summary ============================
|
|
|
|
tfoot {
|
|
|
|
> tr {
|
|
|
|
> th,
|
|
|
|
> td {
|
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
2017-02-28 11:31:01 +08:00
|
|
|
}
|
2015-07-09 14:51:48 +08:00
|
|
|
}
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ========================== Pagination ==========================
|
|
|
|
&-pagination.@{ant-prefix}-pagination {
|
|
|
|
float: right;
|
|
|
|
margin: 16px 0;
|
2016-05-05 16:21:51 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ================================================================
|
|
|
|
// = Function =
|
|
|
|
// ================================================================
|
2016-07-21 15:14:42 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================ Sorter ============================
|
|
|
|
thead th.@{table-prefix-cls}-column-has-sorters {
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.3s;
|
2016-07-21 15:14:42 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&:hover {
|
|
|
|
background: @table-header-sort-active-bg;
|
2019-06-03 16:46:31 +08:00
|
|
|
|
2019-12-19 17:48:56 +08:00
|
|
|
.@{table-prefix-cls}-filter-trigger-container {
|
|
|
|
background: @table-header-sort-active-filter-bg;
|
2016-11-14 14:37:04 +08:00
|
|
|
}
|
2016-07-21 15:14:42 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
thead th.@{table-prefix-cls}-column-sort {
|
2017-06-24 00:37:19 +08:00
|
|
|
background: @table-header-sort-bg;
|
2016-12-27 18:24:30 +08:00
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
td&-column-sort {
|
2018-09-17 18:49:07 +08:00
|
|
|
background: @table-body-sort-bg;
|
2019-02-14 17:47:20 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-column-sorters {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2017-11-18 00:03:30 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-column-sorter {
|
|
|
|
margin-top: 0.15em;
|
|
|
|
margin-bottom: -0.15em;
|
|
|
|
margin-left: @padding-xs;
|
|
|
|
color: @table-header-icon-color;
|
2015-07-15 11:43:00 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-full {
|
|
|
|
margin-top: -0.2em;
|
|
|
|
margin-bottom: 0;
|
2015-10-27 10:34:05 +08:00
|
|
|
}
|
2018-09-17 18:49:07 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-inner {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2015-08-19 16:10:08 +08:00
|
|
|
}
|
2015-07-12 17:10:06 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-up,
|
|
|
|
&-down {
|
|
|
|
.iconfont-size-under-12px(11px);
|
2015-07-15 11:12:17 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&.active {
|
|
|
|
color: @primary-color;
|
2017-01-19 22:40:30 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-up + &-down {
|
|
|
|
margin-top: -0.42em;
|
|
|
|
}
|
2016-03-24 16:16:37 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================ Filter ============================
|
|
|
|
&-filter-column {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin: -@table-padding-vertical -@table-padding-horizontal;
|
2016-01-24 15:39:34 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-filter-column-title {
|
|
|
|
flex: auto;
|
|
|
|
padding: @table-padding-vertical 2.3em @table-padding-vertical @table-padding-horizontal;
|
2015-07-12 17:10:06 +08:00
|
|
|
}
|
2015-07-12 18:14:17 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-filter-trigger-container {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
display: flex;
|
|
|
|
flex: none;
|
|
|
|
align-items: stretch;
|
|
|
|
align-self: stretch;
|
2019-12-19 17:48:56 +08:00
|
|
|
cursor: pointer;
|
2019-11-15 14:35:25 +08:00
|
|
|
transition: background-color 0.3s;
|
2015-08-11 20:05:52 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-open,
|
2019-12-19 17:48:56 +08:00
|
|
|
&:hover,
|
|
|
|
thead th.@{table-prefix-cls}-column-has-sorters:hover &:hover {
|
2019-11-15 14:35:25 +08:00
|
|
|
background: @table-header-filter-active-bg;
|
2017-01-19 22:40:30 +08:00
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2017-01-19 22:40:30 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-filter-trigger {
|
|
|
|
display: block;
|
|
|
|
width: 2.3em;
|
|
|
|
color: @table-header-icon-color;
|
|
|
|
font-size: @font-size-sm;
|
|
|
|
transition: color 0.3s;
|
2016-10-10 22:38:15 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{iconfont-css-prefix} {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
2016-05-21 18:08:09 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{table-prefix-cls}-filter-trigger-container-open &,
|
|
|
|
&:hover {
|
|
|
|
color: @text-color-secondary;
|
2015-08-11 20:05:52 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&.active {
|
|
|
|
color: @primary-color;
|
2016-09-09 13:55:41 +08:00
|
|
|
}
|
2015-08-11 20:05:52 +08:00
|
|
|
}
|
2015-08-28 17:20:02 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// Dropdown
|
2016-03-24 16:16:37 +08:00
|
|
|
&-filter-dropdown {
|
2019-11-15 14:35:25 +08:00
|
|
|
.reset-component;
|
2015-12-10 12:13:13 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// Reset menu
|
|
|
|
.@{dropdown-prefix-cls}-menu {
|
2016-03-24 16:16:37 +08:00
|
|
|
border: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
box-shadow: none;
|
2017-02-21 15:54:14 +08:00
|
|
|
|
|
|
|
// https://github.com/ant-design/ant-design/issues/4916
|
|
|
|
&-without-submenu {
|
|
|
|
max-height: 400px;
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
2016-01-10 21:10:10 +08:00
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
min-width: 96px;
|
2019-12-25 15:59:16 +08:00
|
|
|
background-color: @table-filter-dropdown-bg;
|
2015-12-10 12:13:13 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
border-radius: @border-radius-base;
|
|
|
|
box-shadow: @box-shadow-base;
|
2016-03-24 16:16:37 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// Checkbox
|
|
|
|
&,
|
|
|
|
&-submenu {
|
|
|
|
.@{ant-prefix}-checkbox-wrapper + span {
|
|
|
|
padding-left: 8px;
|
|
|
|
}
|
2015-08-23 15:51:45 +08:00
|
|
|
}
|
2016-03-24 16:16:37 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// Operation
|
2016-03-24 16:16:37 +08:00
|
|
|
&-btns {
|
2019-11-15 14:35:25 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2017-05-02 16:07:16 +08:00
|
|
|
padding: 7px 8px;
|
2019-02-15 10:48:07 +08:00
|
|
|
overflow: hidden;
|
2019-12-07 10:21:05 +08:00
|
|
|
background-color: @table-filter-btns-bg;
|
2017-01-31 16:05:10 +08:00
|
|
|
border-top: @border-width-base @border-style-base @border-color-split;
|
2015-08-23 15:51:45 +08:00
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2016-03-24 16:16:37 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ========================== Selections ==========================
|
|
|
|
colgroup {
|
|
|
|
> col.@{table-prefix-cls}-selection-col {
|
|
|
|
width: @table-selection-column-width;
|
2015-08-23 15:51:45 +08:00
|
|
|
}
|
|
|
|
}
|
2015-09-10 11:04:31 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
table tr th&-selection-column,
|
|
|
|
table tr td&-selection-column {
|
|
|
|
text-align: center;
|
2019-01-29 14:02:22 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{ant-prefix}-radio-wrapper {
|
|
|
|
margin-right: 0;
|
2017-03-06 17:14:34 +08:00
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2017-02-23 19:29:47 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-selection {
|
|
|
|
position: relative;
|
2017-02-23 19:29:47 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-extra {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
right: 0;
|
|
|
|
transform: translate(100%, -50%);
|
2017-02-23 19:29:47 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{iconfont-css-prefix} {
|
|
|
|
.iconfont-size-under-12px(10px);
|
2017-09-27 22:32:49 +08:00
|
|
|
color: @table-header-icon-color;
|
2017-02-23 19:29:47 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&:hover {
|
|
|
|
color: @table-header-icon-color-hover;
|
|
|
|
}
|
2017-05-03 16:23:08 +08:00
|
|
|
}
|
2017-02-23 19:29:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ========================== Expandable ==========================
|
|
|
|
&-expand-icon-col {
|
|
|
|
width: 48px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-row-expand-icon-cell {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-row-expand-icon {
|
|
|
|
.operation-unit();
|
|
|
|
position: relative;
|
|
|
|
display: inline-flex;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
width: ceil(@font-size-sm * 1.4);
|
|
|
|
height: ceil(@font-size-sm * 1.4);
|
|
|
|
color: inherit;
|
|
|
|
line-height: @font-size-sm;
|
|
|
|
vertical-align: floor((@font-size-base - ceil(@font-size-sm * 1.4)) / 2);
|
|
|
|
background: @component-background;
|
|
|
|
border: @border-width-base @border-style-base @border-color-split;
|
2019-11-18 10:20:14 +08:00
|
|
|
border-radius: @border-radius-base;
|
2019-11-15 14:35:25 +08:00
|
|
|
outline: none;
|
|
|
|
transition: all 0.3s;
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
|
|
|
border-color: currentColor;
|
2015-09-10 11:04:31 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
position: absolute;
|
|
|
|
background: currentColor;
|
|
|
|
transition: transform 0.3s ease-out;
|
|
|
|
content: '';
|
2015-09-10 11:04:31 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&::before {
|
|
|
|
top: 7px;
|
|
|
|
right: 3px;
|
|
|
|
left: 3px;
|
|
|
|
height: @border-width-base;
|
2015-09-10 11:04:31 +08:00
|
|
|
}
|
2015-12-28 21:41:42 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&::after {
|
|
|
|
top: 3px;
|
|
|
|
bottom: 3px;
|
|
|
|
left: 7px;
|
|
|
|
width: @border-width-base;
|
|
|
|
transform: rotate(90deg);
|
2015-12-28 21:41:42 +08:00
|
|
|
}
|
2019-09-03 18:47:17 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// Motion effect
|
|
|
|
&-collapsed::before {
|
|
|
|
transform: rotate(-180deg);
|
|
|
|
}
|
|
|
|
&-collapsed::after {
|
|
|
|
transform: rotate(0deg);
|
2019-09-03 18:47:17 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-spaced {
|
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
display: none;
|
|
|
|
content: none;
|
|
|
|
}
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
2019-09-03 18:47:17 +08:00
|
|
|
}
|
2019-09-12 22:54:44 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{table-prefix-cls}-row-indent + & {
|
|
|
|
margin-right: @padding-xs;
|
2019-09-12 22:54:44 +08:00
|
|
|
}
|
2015-09-10 11:04:31 +08:00
|
|
|
}
|
2016-03-24 16:16:37 +08:00
|
|
|
|
2015-09-10 12:21:41 +08:00
|
|
|
tr&-expanded-row {
|
2015-11-26 19:32:55 +08:00
|
|
|
&,
|
|
|
|
&:hover {
|
2019-11-15 14:35:25 +08:00
|
|
|
> td {
|
|
|
|
background: @table-expanded-row-bg;
|
|
|
|
}
|
2018-11-02 18:23:26 +08:00
|
|
|
}
|
2015-09-10 12:21:41 +08:00
|
|
|
}
|
2015-12-25 15:45:44 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// With fixed
|
|
|
|
.@{table-prefix-cls}-expanded-row-fixed {
|
|
|
|
position: relative;
|
|
|
|
margin: -@table-padding-vertical -@table-padding-horizontal;
|
|
|
|
padding: @table-padding-vertical @table-padding-horizontal;
|
2015-12-25 15:45:44 +08:00
|
|
|
}
|
2016-01-20 17:14:34 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ========================= Placeholder ==========================
|
|
|
|
tbody > tr&-placeholder {
|
|
|
|
&:hover {
|
|
|
|
> td {
|
|
|
|
background: @component-background;
|
2019-01-25 15:35:48 +08:00
|
|
|
}
|
2016-06-02 17:35:25 +08:00
|
|
|
}
|
2016-03-24 16:16:37 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================ Fixed =============================
|
|
|
|
&-cell-fix-left,
|
|
|
|
&-cell-fix-right {
|
|
|
|
z-index: 2;
|
2016-03-24 16:16:37 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-cell-fix-left-last::after {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: -1px;
|
|
|
|
width: 20px;
|
|
|
|
transform: translateX(100%);
|
|
|
|
transition: box-shadow 0.3s;
|
|
|
|
content: '';
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
&-cell-fix-right-first::after {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: -1px;
|
|
|
|
left: 0;
|
|
|
|
width: 20px;
|
|
|
|
transform: translateX(-100%);
|
|
|
|
transition: box-shadow 0.3s;
|
|
|
|
content: '';
|
|
|
|
pointer-events: none;
|
2016-03-24 17:01:41 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{table-prefix-cls}-container {
|
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 1;
|
|
|
|
width: 20px;
|
|
|
|
transition: box-shadow 0.3s;
|
|
|
|
content: '';
|
|
|
|
pointer-events: none;
|
2019-06-04 14:20:18 +08:00
|
|
|
}
|
2019-06-04 16:18:25 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&::before {
|
|
|
|
left: 0;
|
2019-06-12 19:39:28 +08:00
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
&::after {
|
|
|
|
right: 0;
|
2019-06-04 16:18:25 +08:00
|
|
|
}
|
2016-06-16 21:56:13 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-ping-left {
|
|
|
|
&:not(.@{table-prefix-cls}-has-fix-left) .@{table-prefix-cls}-container {
|
|
|
|
position: relative;
|
2019-12-05 10:55:45 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&::before {
|
|
|
|
box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);
|
|
|
|
}
|
2019-06-04 14:20:18 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{table-prefix-cls}-cell-fix-left-last::after {
|
2019-12-04 11:58:48 +08:00
|
|
|
box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);
|
2019-06-12 19:39:28 +08:00
|
|
|
}
|
|
|
|
}
|
2019-12-31 15:04:00 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-ping-right {
|
|
|
|
&:not(.@{table-prefix-cls}-has-fix-right) .@{table-prefix-cls}-container {
|
|
|
|
position: relative;
|
2019-06-12 19:39:28 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&::after {
|
|
|
|
box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);
|
|
|
|
}
|
2016-03-24 16:16:37 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{table-prefix-cls}-cell-fix-right-first::after {
|
|
|
|
box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);
|
2018-03-03 16:42:31 +08:00
|
|
|
}
|
2016-03-24 16:16:37 +08:00
|
|
|
}
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
2019-12-31 15:04:00 +08:00
|
|
|
|
|
|
|
@import './radius.less';
|