2017-01-13 21:19:23 +08:00
|
|
|
@import "../../style/themes/default";
|
|
|
|
@import "../../style/mixins/index";
|
|
|
|
@import "../../input/style/mixin";
|
|
|
|
|
|
|
|
@input-prefix-cls: ~"@{ant-prefix}-input";
|
|
|
|
@select-prefix-cls: ~"@{ant-prefix}-select";
|
|
|
|
@autocomplete-prefix-cls: ~"@{select-prefix-cls}-auto-complete";
|
|
|
|
|
2017-02-09 10:45:42 +08:00
|
|
|
.@{autocomplete-prefix-cls} {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
|
|
|
|
2017-02-09 10:45:42 +08:00
|
|
|
&.@{select-prefix-cls} {
|
|
|
|
.@{select-prefix-cls} {
|
|
|
|
&-selection {
|
|
|
|
border: 0;
|
2017-03-14 11:24:38 +08:00
|
|
|
box-shadow: none;
|
2017-02-09 10:45:42 +08:00
|
|
|
&__rendered {
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
2017-05-09 13:36:37 +08:00
|
|
|
height: 100%;
|
2017-05-28 15:27:55 +08:00
|
|
|
line-height: @input-height-base;
|
2017-02-09 10:45:42 +08:00
|
|
|
}
|
|
|
|
&__placeholder {
|
2017-07-17 15:44:40 +08:00
|
|
|
margin-left: (@input-padding-horizontal + 1px);
|
|
|
|
margin-right: (@input-padding-horizontal + 1px);
|
2017-02-09 10:45:42 +08:00
|
|
|
}
|
2017-10-08 15:22:24 +08:00
|
|
|
|
|
|
|
&--single {
|
|
|
|
height: auto;
|
|
|
|
}
|
2017-02-09 10:45:42 +08:00
|
|
|
}
|
2017-01-13 21:19:23 +08:00
|
|
|
}
|
2017-02-09 10:45:42 +08:00
|
|
|
|
2017-10-08 15:22:24 +08:00
|
|
|
// Fix https://github.com/ant-design/ant-design/issues/7800
|
|
|
|
.@{select-prefix-cls}-search--inline {
|
|
|
|
position: static;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
2017-04-05 17:51:51 +08:00
|
|
|
&-allow-clear {
|
|
|
|
.@{select-prefix-cls}-selection:hover .@{select-prefix-cls}-selection__rendered {
|
|
|
|
margin-right: 0 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-09 10:45:42 +08:00
|
|
|
.@{input-prefix-cls} {
|
|
|
|
background: transparent;
|
2017-09-27 20:13:01 +08:00
|
|
|
border-width: @border-width-base;
|
|
|
|
line-height: @line-height-base;
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
.hover;
|
|
|
|
}
|
2017-02-09 10:45:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-lg {
|
2017-05-28 15:27:55 +08:00
|
|
|
.@{select-prefix-cls}-selection__rendered {
|
|
|
|
line-height: @input-height-lg;
|
2017-01-13 21:19:23 +08:00
|
|
|
}
|
2017-02-09 10:45:42 +08:00
|
|
|
.@{input-prefix-cls} {
|
|
|
|
.input-lg();
|
2017-01-13 21:19:23 +08:00
|
|
|
}
|
2017-02-09 10:45:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-sm {
|
2017-05-28 15:27:55 +08:00
|
|
|
.@{select-prefix-cls}-selection__rendered {
|
|
|
|
line-height: @input-height-sm;
|
2017-02-09 10:45:42 +08:00
|
|
|
}
|
|
|
|
.@{input-prefix-cls} {
|
|
|
|
.input-sm();
|
2017-01-13 21:19:23 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|