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

43 lines
956 B
Plaintext
Raw Normal View History

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