polestar-ui-kit
Version:
## Install
51 lines (41 loc) • 1.14 kB
text/less
@import '~antd/lib/input/style/index';
@import '../../themes/default/index';
@import '../../mixins/index';
@import "./mixin";
@import "./search-input";
// Input styles
.@{ant-prefix}-input {
.reset-component;
.input;
}
//== Style for input-group: input with label, with button or dropdown...
.@{ant-prefix}-input-group {
.reset-component;
.input-group(~"@{ant-prefix}-input");
&-wrapper {
display: inline-block;
vertical-align: top; // https://github.com/ant-design/ant-design/issues/6403
width: 100%;
}
}
// Input with affix: prefix or suffix
.@{ant-prefix}-input-affix-wrapper {
.reset-component;
.input-affix-wrapper(~"@{ant-prefix}-input");
// https://github.com/ant-design/ant-design/issues/6144
.@{ant-prefix}-input {
min-height: 100%; // use min-height, assume that no smaller height to override
}
}
// Readonly
.@{ant-prefix}-input.@{ps-input-prefix-cls}-readonly {
background: @gray-1;
.@{ant-prefix}-input {
background: @gray-1;
}
}
.@{ps-input-prefix-cls}-readonly {
.@{ant-prefix}-input {
background: @gray-1;
}
}