ant-design/components/input/style/index.less

42 lines
933 B
Plaintext
Raw Normal View History

2018-12-07 20:02:01 +08:00
@import '../../style/themes/default';
@import '../../style/mixins/index';
@import './mixin';
// 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;
2018-12-07 20:02:01 +08:00
.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;
2018-12-07 20:02:01 +08:00
.input-affix-wrapper(~'@{ant-prefix}-input');
// https://github.com/ant-design/ant-design/issues/6144
.@{ant-prefix}-input {
2018-12-07 20:02:01 +08:00
min-height: 100%; // use min-height, assume that no smaller height to override
}
}
2018-11-29 10:03:16 +08:00
.@{ant-prefix}-input-password-icon {
cursor: pointer;
2018-12-07 20:02:01 +08:00
transition: all 0.3s;
2018-11-29 10:03:16 +08:00
&:hover {
color: #333;
}
}
2018-12-07 20:02:01 +08:00
@import './search-input';