Browse Source

Merge pull request #5711 from kappa-gooner/master

Adding less variables for table head background color and table row h…
pull/5718/head
偏右 8 years ago
committed by GitHub
parent
commit
0745f8b231
  1. 5
      components/style/themes/default.less
  2. 3
      components/table/style/index.less

5
components/style/themes/default.less

@ -252,6 +252,11 @@
@spin-dot-size: 20px; @spin-dot-size: 20px;
@spin-dot-size-lg: 32px; @spin-dot-size-lg: 32px;
// Table
// --
@table-head-background-color: @background-color-base;
@table-row-background-hover : @primary-1;
// TimePicker // TimePicker
// --- // ---
@time-picker-panel-column-width: 56px; @time-picker-panel-column-width: 56px;

3
components/table/style/index.less

@ -2,7 +2,6 @@
@import "../../style/mixins/index"; @import "../../style/mixins/index";
@table-prefix-cls: ~"@{ant-prefix}-table"; @table-prefix-cls: ~"@{ant-prefix}-table";
@table-head-background-color: @background-color-base;
.@{table-prefix-cls}-wrapper { .@{table-prefix-cls}-wrapper {
.clearfix; .clearfix;
@ -66,7 +65,7 @@
&.@{table-prefix-cls}-row-hover, &.@{table-prefix-cls}-row-hover,
&:hover { &:hover {
& > td { & > td {
background: @primary-1; background: @table-row-background-hover;
} }
} }
} }

Loading…
Cancel
Save