You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

526 lines
9.5 KiB

@import "../../style/themes/default";
@import "../../style/mixins/index";
9 years ago
@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;
9 years ago
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 {
9 years ago
margin-left: 4px;
.iconfont-size-under-12px(10px);
cursor: pointer;
color: #aaa;
transition: all 0.3s ease;
&:hover {
color: #666;
}
}
10 years ago
.@{table-prefix-cls}-filter-selected.anticon-filter {
10 years ago
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;
9 years ago
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;
9 years ago
}
.@{table-prefix-cls}-spin-holder {
9 years ago
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;
9 years ago
}
}
10 years ago
&-middle {
9 years ago
th,
td {
padding: 10px 8px;
}
}
10 years ago
&-small {
border: 1px solid @border-color-split;
border-radius: @border-radius-base;
table {
border: 0;
padding: 0 8px;
}
10 years ago
th {
padding: 10px 8px;
background: #fff;
border-bottom: 1px solid @border-color-split;
10 years ago
}
10 years ago
10 years ago
td {
padding: 6px 8px;