From 7161caf45d8ea0db61c28cdbebbb1e4a31d30b4f Mon Sep 17 00:00:00 2001 From: shaolonger Date: Fri, 6 Aug 2021 20:28:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=B1=E4=BA=8Eless=204.x=E6=9C=89br?= =?UTF-8?q?eaking=20change=EF=BC=8C=E5=9B=A0=E6=AD=A4=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E6=89=8B=E5=8A=A8=E8=B0=83=E6=95=B4theme.less=E7=9A=84?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 参考:https://github.com/NG-ZORRO/ng-zorro-antd/issues/6359 --- src/theme.less | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/theme.less b/src/theme.less index a61c68b..caa75e6 100644 --- a/src/theme.less +++ b/src/theme.less @@ -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; @@ -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; @@ -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 // --- @@ -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;