mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 04:36:19 +08:00
6936599aef
* rename .stylelintrc to .stylelintrc.json for explicit file type * add new npm script lint-fix:style * fix pseudo-element with double colon * function name should be lower except ignored functions * support stylelint declaration-block-no-ignored-properties rule * support sorted CSS properties order for readability and consistency * autofix order of all styles by lint-fix:style script * remove double slash comments after selector * replace .stylelintignore with ignoreFiles in .stylelintrc.json
84 lines
2.0 KiB
Plaintext
84 lines
2.0 KiB
Plaintext
@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';
|
|
|
|
.@{autocomplete-prefix-cls} {
|
|
.reset-component;
|
|
|
|
&.@{select-prefix-cls} {
|
|
.@{select-prefix-cls} {
|
|
&-selection {
|
|
border: 0;
|
|
box-shadow: none;
|
|
&__rendered {
|
|
height: 100%;
|
|
margin-right: 0;
|
|
margin-left: 0;
|
|
line-height: @input-height-base;
|
|
}
|
|
&__placeholder {
|
|
margin-right: (@input-padding-horizontal-base + 1px);
|
|
margin-left: (@input-padding-horizontal-base + 1px);
|
|
}
|
|
|
|
&--single {
|
|
height: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Fix https://github.com/ant-design/ant-design/issues/7800
|
|
.@{select-prefix-cls}-search--inline {
|
|
position: static;
|
|
float: left;
|
|
}
|
|
|
|
&-allow-clear {
|
|
.@{select-prefix-cls}-selection:hover .@{select-prefix-cls}-selection__rendered {
|
|
margin-right: 0 !important;
|
|
}
|
|
}
|
|
|
|
.@{input-prefix-cls} {
|
|
height: @input-height-base;
|
|
line-height: @line-height-base;
|
|
background: transparent;
|
|
border-width: @border-width-base;
|
|
&:focus,
|
|
&:hover {
|
|
.hover;
|
|
}
|
|
&[disabled] {
|
|
.disabled;
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
|
|
&-lg {
|
|
.@{select-prefix-cls}-selection__rendered {
|
|
line-height: @input-height-lg;
|
|
}
|
|
.@{input-prefix-cls} {
|
|
height: @input-height-lg;
|
|
padding-top: @input-padding-vertical-lg;
|
|
padding-bottom: @input-padding-vertical-lg;
|
|
}
|
|
}
|
|
|
|
&-sm {
|
|
.@{select-prefix-cls}-selection__rendered {
|
|
line-height: @input-height-sm;
|
|
}
|
|
.@{input-prefix-cls} {
|
|
height: @input-height-sm;
|
|
padding-top: @input-padding-vertical-sm;
|
|
padding-bottom: @input-padding-vertical-sm;
|
|
}
|
|
}
|
|
}
|
|
}
|