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

66 lines
1.4 KiB
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-10-17 18:52:10 +08:00
// fix style #1296, remove annotation when upgrade ant-design version > 3.21.3
.@{ant-prefix}-input-clear-icon {
color: @disabled-color;
font-size: @font-size-sm;
// https://github.com/ant-design/ant-design/pull/18151
// https://codesandbox.io/s/wizardly-sun-u10br
vertical-align: 0;
cursor: pointer;
transition: color 0.3s;
&:hover {
color: @text-color-secondary;
}
&:active {
color: @text-color;
}
+ i {
margin-left: 6px;
}
}
2019-01-02 21:01:56 +08:00
@import './search-input';