Browse Source

refector: add @form-explain-font-size (#15488)

pull/15489/head
willc001 6 years ago
committed by 偏右
parent
commit
3a2e1abfa7
  1. 4
      components/form/style/index.less

4
components/form/style/index.less

@ -10,11 +10,12 @@
@form-component-max-height: @input-height-lg;
@form-feedback-icon-size: @font-size-base;
@form-help-margin-top: (@form-component-height - @form-component-max-height) / 2 + 2px;
@form-explain-font-size: @font-size-base;
// Extends additional 1px to fix precision issue.
// https://github.com/ant-design/ant-design/issues/12803
// https://github.com/ant-design/ant-design/issues/8220
@form-explain-precision: 1px;
@form-explain-height: floor(@font-size-base * @line-height-base);
@form-explain-height: floor(@form-explain-font-size * @line-height-base);
.@{form-prefix-cls} {
.reset-component;
@ -137,6 +138,7 @@ input[type='checkbox'] {
min-height: @form-explain-height + @form-explain-precision;
margin-top: @form-help-margin-top;
color: @text-color-secondary;
font-size: @form-explain-font-size;
line-height: @line-height-base;
transition: color 0.3s @ease-out; // sync input color transition
}

Loading…
Cancel
Save