syssam 7 years ago
committed by 偏右
parent
commit
f8b7aad53d
  1. 4
      components/auto-complete/style/index.less
  2. 3
      components/form/style/index.less
  3. 18
      components/input/style/mixin.less
  4. 5
      components/style/themes/default.less

4
components/auto-complete/style/index.less

@ -19,8 +19,8 @@
line-height: @input-height-base;
}
&__placeholder {
margin-left: (@input-padding-horizontal + 1px);
margin-right: (@input-padding-horizontal + 1px);
margin-left: (@input-padding-horizontal-base + 1px);
margin-right: (@input-padding-horizontal-base + 1px);
}
&--single {

3
components/form/style/index.less

@ -285,7 +285,8 @@ form {
// Form layout
//== Vertical Form
.make-vertical-layout() {
padding: 0 0 8px;
padding: @form-vertical-label-padding;
margin: @form-vertical-label-margin;
display: block;
text-align: left;
line-height: @line-height-base;

18
components/input/style/mixin.less

@ -5,12 +5,12 @@
// size mixins for input
.input-lg() {
padding: @input-padding-vertical-lg @input-padding-horizontal;
padding: @input-padding-vertical-lg @input-padding-horizontal-lg;
height: @input-height-lg;
}
.input-sm() {
padding: @input-padding-vertical-sm @input-padding-horizontal;
padding: @input-padding-vertical-sm @input-padding-horizontal-sm;
height: @input-height-sm;
}
@ -41,7 +41,7 @@
.input() {
position: relative;
display: inline-block;
padding: @input-padding-vertical-base @input-padding-horizontal;
padding: @input-padding-vertical-base @input-padding-horizontal-base;
width: 100%;
height: @input-height-base;
font-size: @font-size-base;
@ -137,7 +137,7 @@
}
&-addon {
padding: @input-padding-vertical-base @input-padding-horizontal;
padding: @input-padding-vertical-base @input-padding-horizontal-base;
font-size: @font-size-base;
font-weight: normal;
line-height: 1;
@ -151,7 +151,7 @@
// Reset Select's style in addon
.@{ant-prefix}-select {
margin: -(@input-padding-vertical-base + 1px) (-@input-padding-horizontal); // lesshint spaceAroundOperator: false
margin: -(@input-padding-vertical-base + 1px) (-@input-padding-horizontal-base); // lesshint spaceAroundOperator: false
.@{ant-prefix}-select-selection {
background-color: inherit;
@ -328,18 +328,18 @@
}
.@{inputClass}-prefix {
left: @input-padding-horizontal;
left: @input-padding-horizontal-base;
}
.@{inputClass}-suffix {
right: @input-padding-horizontal;
right: @input-padding-horizontal-base;
}
.@{inputClass}:not(:first-child) {
padding-left: @input-padding-horizontal + @input-affix-width;
padding-left: @input-padding-horizontal-base + @input-affix-width;
}
.@{inputClass}:not(:last-child) {
padding-right: @input-padding-horizontal + @input-affix-width;
padding-right: @input-padding-horizontal-base + @input-affix-width;
}
}

5
components/style/themes/default.less

@ -218,6 +218,8 @@
@label-color : @heading-color;
@form-item-margin-bottom : 24px;
@form-item-trailing-colon : true;
@form-vertical-label-padding : 0 0 8px;
@form-vertical-label-margin : 0;
// Input
// ---
@ -225,6 +227,9 @@
@input-height-lg : 32px;
@input-height-sm : 22px;
@input-padding-horizontal : 7px;
@input-padding-horizontal-base : @input-padding-horizontal;
@input-padding-horizontal-sm : @input-padding-horizontal;
@input-padding-horizontal-lg : @input-padding-horizontal;
@input-padding-vertical-base : 4px;
@input-padding-vertical-sm : 1px;
@input-padding-vertical-lg : 6px;

Loading…
Cancel
Save