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

43 lines
956 B
Plaintext
Raw Normal View History

2019-01-02 13:01:56 +00:00
@import '../../style/themes/default';
@import '../../style/mixins/index';
@import './mixin';
2017-12-06 10:54:20 +00:00
// Input styles
.@{ant-prefix}-input {
2018-01-15 10:54:26 +00:00
.reset-component;
2017-12-06 10:54:20 +00:00
.input;
}
//== Style for input-group: input with label, with button or dropdown...
.@{ant-prefix}-input-group {
2018-01-15 10:54:26 +00:00
.reset-component;
2019-01-02 13:01:56 +00:00
.input-group(~'@{ant-prefix}-input');
2017-12-06 10:54:20 +00:00
&-wrapper {
display: inline-block;
width: 100%;
2019-03-30 08:06:06 +00:00
text-align: start;
vertical-align: top; // https://github.com/ant-design/ant-design/issues/6403
2017-12-06 10:54:20 +00:00
}
}
// Input with affix: prefix or suffix
.@{ant-prefix}-input-affix-wrapper {
2018-01-15 10:54:26 +00:00
.reset-component;
2019-01-02 13:01:56 +00:00
.input-affix-wrapper(~'@{ant-prefix}-input');
2017-12-06 10:54:20 +00:00
// https://github.com/ant-design/ant-design/issues/6144
.@{ant-prefix}-input {
2019-01-02 13:01:56 +00:00
min-height: 100%; // use min-height, assume that no smaller height to override
2017-12-06 10:54:20 +00:00
}
}
2018-01-15 10:54:26 +00:00
2019-03-30 08:06:06 +00:00
.@{ant-prefix}-input-password-icon {
cursor: pointer;
transition: all 0.3s;
&:hover {
color: #333;
}
}
2019-01-02 13:01:56 +00:00
@import './search-input';