mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 06:09:34 +08:00
767d2d0638
* add allow clear to textarea revert textarea md refactor textarea css fix textarea props bug add test and update snapshot update doc add margin refactor textarea to reuse fixControlledValue and setValue method add clearable input to reuse code refactor clearable input finish refactor refactor clearable input refactor input and textArea finish refactor update test snapshots fix input props bug fix dom issue fix textarea dom issue fix textarea test bug fix textarea dom issue refactor code and fix textarea dom issue fix input dom issue fix typo error update test snapshots fix ci failed issues adjust margin * remove useless code fix ci failed issue * fix textarea padding issue * update snapshots * fix padding issue
58 lines
1.2 KiB
Plaintext
58 lines
1.2 KiB
Plaintext
@import '../../style/themes/index';
|
|
@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;
|
|
.input-group(~'@{ant-prefix}-input');
|
|
&-wrapper {
|
|
display: inline-block;
|
|
width: 100%;
|
|
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;
|
|
.input-affix-wrapper(~'@{ant-prefix}-input');
|
|
|
|
// https://github.com/ant-design/ant-design/issues/6144
|
|
.@{ant-prefix}-input {
|
|
min-height: 100%; // use min-height, assume that no smaller height to override
|
|
}
|
|
}
|
|
|
|
.@{ant-prefix}-input-password-icon {
|
|
color: @text-color-secondary;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
|
|
&:hover {
|
|
color: #333;
|
|
}
|
|
}
|
|
|
|
.@{ant-prefix}-input-clear-icon {
|
|
.clear-icon;
|
|
vertical-align: 0;
|
|
}
|
|
|
|
.@{ant-prefix}-input-textarea-clear-icon {
|
|
.clear-icon;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
margin: 8px 8px 0 0;
|
|
}
|
|
|
|
@import './search-input';
|