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

65 lines
1.2 KiB
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;
width: 100%;
2019-02-19 10:54:03 +08:00
text-align: start;
vertical-align: top; // https://github.com/ant-design/ant-design/issues/6403
}
}
// 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 {
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;
2018-11-29 10:03:16 +08:00
&:hover {
color: #333;
}
}
.@{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';