2018-12-07 20:02:01 +08:00
|
|
|
@import '../../style/themes/default';
|
|
|
|
@import '../../style/mixins/index';
|
|
|
|
@import './mixin';
|
2016-04-27 20:44:36 +08:00
|
|
|
|
|
|
|
// Input styles
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-input {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2016-04-27 20:44:36 +08:00
|
|
|
.input;
|
|
|
|
}
|
2016-05-23 20:09:25 +08:00
|
|
|
|
|
|
|
//== Style for input-group: input with label, with button or dropdown...
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-input-group {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2018-12-07 20:02:01 +08:00
|
|
|
.input-group(~'@{ant-prefix}-input');
|
2017-05-28 15:27:55 +08:00
|
|
|
&-wrapper {
|
|
|
|
display: inline-block;
|
2017-08-17 18:13:06 +08:00
|
|
|
width: 100%;
|
2019-02-19 10:54:03 +08:00
|
|
|
text-align: start;
|
2019-02-15 10:48:07 +08:00
|
|
|
vertical-align: top; // https://github.com/ant-design/ant-design/issues/6403
|
2017-05-28 15:27:55 +08:00
|
|
|
}
|
2016-05-23 20:09:25 +08:00
|
|
|
}
|
2017-01-01 01:06:19 +08:00
|
|
|
|
2017-03-18 21:26:42 +08:00
|
|
|
// Input with affix: prefix or suffix
|
|
|
|
.@{ant-prefix}-input-affix-wrapper {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2018-12-07 20:02:01 +08:00
|
|
|
.input-affix-wrapper(~'@{ant-prefix}-input');
|
2017-05-15 18:15:29 +08:00
|
|
|
|
|
|
|
// 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
|
2017-05-15 18:15:29 +08:00
|
|
|
}
|
2017-01-01 01:06:19 +08:00
|
|
|
}
|
2017-09-15 17:03:43 +08:00
|
|
|
|
2018-11-29 10:03:16 +08:00
|
|
|
.@{ant-prefix}-input-password-icon {
|
2019-03-26 22:37:14 +08:00
|
|
|
color: @text-color-secondary;
|
2018-11-29 10:03:16 +08:00
|
|
|
cursor: pointer;
|
2018-12-07 20:02:01 +08:00
|
|
|
transition: all 0.3s;
|
2019-03-26 22:37:14 +08:00
|
|
|
|
2018-11-29 10:03:16 +08:00
|
|
|
&:hover {
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-26 22:37:14 +08:00
|
|
|
.@{ant-prefix}-input-clear-icon {
|
|
|
|
color: @disabled-color;
|
|
|
|
font-size: @font-size-sm;
|
|
|
|
vertical-align: top;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: color 0.3s;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: @text-color-secondary;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
color: @text-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ i {
|
|
|
|
margin-left: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-07 20:02:01 +08:00
|
|
|
@import './search-input';
|