|
|
|
@import "../../style/themes/default";
|
|
|
|
@import "../../style/mixins/index";
|
|
|
|
|
|
|
|
@table-prefix-cls: ant-table;
|
|
|
|
@table-head-background-color: #f7f7f7;
|
|
|
|
|
|
|
|
.@{table-prefix-cls} {
|
|
|
|
font-size: @font-size-base;
|
|
|
|
color: @text-color;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&-body {
|
|
|
|
transition: opacity 0.3s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
border-collapse: separate;
|
|
|
|
border-spacing: 0;
|
|
|
|
text-align: left;
|
|
|
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
th {
|
|
|
|
background: @table-head-background-color;
|
|
|
|
font-weight: bold;
|
|
|
|
transition: background .3s ease;
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
.anticon-filter {
|
|
|
|
margin-left: 4px;
|
|
|
|
.iconfont-size-under-12px(10px);
|
|
|
|
cursor: pointer;
|
|
|
|
color: #aaa;
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
&:hover {
|
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{table-prefix-cls}-filter-selected.anticon-filter {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
td {
|
|
|
|
border-bottom: 1px solid @border-color-split;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr {
|
|
|
|
transition: all .3s ease;
|
|
|
|
&.@{table-prefix-cls}-row-hover,
|
|
|
|
&:hover {
|
|
|
|
background: tint(@primary-color, 90%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
thead tr:hover {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-footer {
|
|
|
|
padding: 16px 8px;
|
|
|
|
background: @table-head-background-color;
|
|
|
|
position: relative;
|
|
|
|
top: -1px;
|
|
|
|
border-radius: 0 0 @border-radius-base @border-radius-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.@{table-prefix-cls}-bordered &-footer {
|
|
|
|
border: 1px solid @border-color-split;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr.@{table-prefix-cls}-row-selected {
|
|
|
|
background: #fafafa;
|
|
|
|
}
|
|
|
|
|
|
|
|
th.@{table-prefix-cls}-column-sort {
|
|
|
|
background: #eaeaea;
|
|
|
|
}
|
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: 16px 8px;
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
|
|
|
|
|
|
|
th.@{table-prefix-cls}-selection-column,
|
|
|
|
td.@{table-prefix-cls}-selection-column {
|
|
|
|
text-align: center;
|
|
|
|
width: 60px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-header {
|
|
|
|
background: @table-head-background-color;
|
|
|
|
overflow: hidden;
|
|
|
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-header table {
|
|
|
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-loading {
|
|
|
|
position: relative;
|
|
|
|
.@{table-prefix-cls}-body {
|
|
|
|
background: #fff;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
.@{table-prefix-cls}-spin-holder {
|
|
|
|
height: 20px;
|
|
|
|
line-height: 20px;
|
|
|
|
left: 50%;
|
|
|
|
top: 50%;
|
|
|
|
margin-left: -30px;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
.@{table-prefix-cls}-with-pagination {
|
|
|
|
margin-top: -20px;
|
|
|
|
}
|
|
|
|
.@{table-prefix-cls}-without-pagination {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-middle {
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: 10px 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-small {
|
|
|
|
border: 1px solid @border-color-split;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
|
|
|
|
table {
|
|
|
|
border: 0;
|
|
|
|
padding: 0 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
th {
|
|
|
|
padding: 10px 8px;
|
|
|
|
background: #fff;
|
|
|
|
border-bottom: 1px solid @border-color-split;
|
|
|
|
}
|
|
|
|
|
|
|
|
td {
|
|
|
|
padding: 6px 8px;
|
|