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-08 17:53:04 +08:00
|
|
|
height: 100%;
|
|
|
|
font-size: 16px;
|
|
|
|
text-align: center;
|
|
|
|
color: @subsidiary-color;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
z-index: 1;
|
|
|
|
&:after{
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
width: 0;
|
|
|
|
height: 100%;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-icon + &{
|
2016-11-09 17:36:40 +08:00
|
|
|
padding-right: 32px;
|
2016-11-08 17:53:04 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{input-prefix-cls}-group{
|
|
|
|
.input-group(~"@{input-prefix-cls}");
|
|
|
|
}
|