mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
fix: correct class name for Input component with @ant-prefix
variable (#31479)
This commit is contained in:
parent
eb24d3d8e0
commit
65b8087784
@ -4,15 +4,17 @@
|
||||
@import './affix';
|
||||
@import './allow-clear';
|
||||
|
||||
@input-prefix-cls: ~'@{ant-prefix}-input';
|
||||
|
||||
// Input styles
|
||||
.@{ant-prefix}-input {
|
||||
.@{input-prefix-cls} {
|
||||
.reset-component();
|
||||
.input();
|
||||
|
||||
//== Style for input-group: input with label, with button or dropdown...
|
||||
&-group {
|
||||
.reset-component();
|
||||
.input-group(~'@{ant-prefix}-input');
|
||||
.input-group(~'@{input-prefix-cls}');
|
||||
&-wrapper {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
@ -34,10 +36,10 @@
|
||||
&[type='color'] {
|
||||
height: @input-height-base;
|
||||
|
||||
&.@{ant-prefix}-input-lg {
|
||||
&.@{input-prefix-cls}-lg {
|
||||
height: @input-height-lg;
|
||||
}
|
||||
&.@{ant-prefix}-input-sm {
|
||||
&.@{input-prefix-cls}-sm {
|
||||
height: @input-height-sm;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
|
Loading…
Reference in New Issue
Block a user