Skip to content

Commit

Permalink
feat: 由于less 4.x有breaking change,因此需要手动调整theme.less的部分写法
Browse files Browse the repository at this point in the history
  • Loading branch information
shaolonger committed Aug 6, 2021
1 parent 2826c88 commit 7161caf
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/theme.less
Expand Up @@ -312,7 +312,7 @@

// z-index list, order by `z-index`
@zindex-badge: auto;
@zindex-table-fixed: auto;
@zindex-table-fixed: 10;
@zindex-affix: 10;
@zindex-back-top: 10;
@zindex-picker-panel: 10;
Expand Down Expand Up @@ -366,16 +366,16 @@
@input-padding-horizontal-sm: @control-padding-horizontal-sm - 1px;
@input-padding-horizontal-lg: @input-padding-horizontal;
@input-padding-vertical-base: max(
round((@input-height-base - @font-size-base * @line-height-base) / 2 * 10) / 10 -
@border-width-base,
(round((@input-height-base - @font-size-base * @line-height-base) / 2 * 10) / 10 -
@border-width-base),
3px
);
@input-padding-vertical-sm: max(
round((@input-height-sm - @font-size-base * @line-height-base) / 2 * 10) / 10 - @border-width-base,
(round((@input-height-sm - @font-size-base * @line-height-base) / 2 * 10) / 10 - @border-width-base),
0
);
@input-padding-vertical-lg: ceil((@input-height-lg - @font-size-lg * @line-height-base) / 2 * 10) /
10 - @border-width-base;
@input-padding-vertical-lg: (ceil((@input-height-lg - @font-size-lg * @line-height-base) / 2 * 10) /
10 - @border-width-base);
@input-placeholder-color: hsv(0, 0, 75%);
@input-color: @text-color;
@input-icon-color: @input-color;
Expand Down Expand Up @@ -415,7 +415,7 @@
@select-single-item-height-lg: 40px;
@select-multiple-item-height: @input-height-base - @input-padding-vertical-base * 2; // Normal 24px
@select-multiple-item-height-lg: 32px;
@select-multiple-item-spacing-half: ceil(@input-padding-vertical-base / 2);
@select-multiple-item-spacing-half: (ceil(@input-padding-vertical-base / 2));

// Cascader
// ---
Expand Down Expand Up @@ -546,10 +546,10 @@
@table-expanded-row-bg: #fbfbfb;
@table-padding-vertical: 16px;
@table-padding-horizontal: 16px;
@table-padding-vertical-md: @table-padding-vertical * 3 / 4;
@table-padding-horizontal-md: @table-padding-horizontal / 2;
@table-padding-vertical-sm: @table-padding-vertical / 2;
@table-padding-horizontal-sm: @table-padding-horizontal / 2;
@table-padding-vertical-md: (@table-padding-vertical * 3 / 4);
@table-padding-horizontal-md: (@table-padding-horizontal / 2);
@table-padding-vertical-sm: (@table-padding-vertical / 2);
@table-padding-horizontal-sm: (@table-padding-horizontal / 2);
@table-border-radius-base: @border-radius-base;
@table-footer-bg: @background-color-light;
@table-footer-color: @heading-color;
Expand Down

0 comments on commit 7161caf

Please sign in to comment.