2016-11-08 17:53:04 +08:00
|
|
|
@input-prefix-cls: ~"@{css-prefix}input";
|
|
|
|
|
|
|
|
.@{input-prefix-cls} {
|
|
|
|
.input;
|
|
|
|
&-wrapper{
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
&-icon {
|
2016-11-09 17:36:40 +08:00
|
|
|
width: 32px;
|
2016-11-11 15:35:26 +08:00
|
|
|
height: @input-height-base;
|
|
|
|
line-height: @input-height-base;
|
2016-11-08 17:53:04 +08:00
|
|
|
font-size: 16px;
|
|
|
|
text-align: center;
|
|
|
|
color: @subsidiary-color;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
z-index: 1;
|
2016-11-11 15:35:26 +08:00
|
|
|
}
|
|
|
|
|
2016-11-18 11:46:55 +08:00
|
|
|
&-icon + &{
|
|
|
|
padding-right: 32px;
|
|
|
|
}
|
|
|
|
|
2016-11-11 15:35:26 +08:00
|
|
|
&-wrapper-large &-icon{
|
|
|
|
font-size: 18px;
|
|
|
|
height: @input-height-large;
|
|
|
|
line-height: @input-height-large;
|
|
|
|
}
|
|
|
|
&-wrapper-small &-icon{
|
|
|
|
width: 24px;
|
|
|
|
font-size: 14px;
|
|
|
|
height: @input-height-small;
|
|
|
|
line-height: @input-height-small;
|
2016-11-08 17:53:04 +08:00
|
|
|
|
2016-11-18 11:46:55 +08:00
|
|
|
+ .@{input-prefix-cls} {
|
|
|
|
padding-right: 24px;
|
|
|
|
}
|
2016-11-08 17:53:04 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{input-prefix-cls}-group{
|
|
|
|
.input-group(~"@{input-prefix-cls}");
|
|
|
|
}
|