未验证 提交 11138673 编写于 作者: Y Yulia Maximova 提交者: GitHub

fix: form customizing mixin (#26422)

* fix: add styling form input background-color

* fix: conflict resolution
Co-authored-by: NMaksimova, Yuliya <Yuliya.Maksimova@nexign.com>
上级 c72ee71d
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
.@{ant-prefix}-input-affix-wrapper { .@{ant-prefix}-input-affix-wrapper {
&, &,
&:hover { &:hover {
background-color: @background-color;
border-color: @border-color; border-color: @border-color;
} }
...@@ -18,16 +19,15 @@ ...@@ -18,16 +19,15 @@
} }
} }
.@{ant-prefix}-input { .@{ant-prefix}-input-disabled {
&:not(&-disabled) { background-color: @input-disabled-bg;
background-color: @background-color; border-color: @input-border-color;
}
} }
.@{ant-prefix}-input-affix-wrapper { .@{ant-prefix}-input-affix-wrapper-disabled {
&:not(&-disabled) { background-color: @input-disabled-bg;
background-color: @background-color; border-color: @input-border-color;
}
input:focus { input:focus {
box-shadow: none !important; box-shadow: none !important;
} }
......
...@@ -137,6 +137,7 @@ ...@@ -137,6 +137,7 @@
//select //select
.@{ant-prefix}-select:not(.@{ant-prefix}-select-borderless) { .@{ant-prefix}-select:not(.@{ant-prefix}-select-borderless) {
.@{ant-prefix}-select-selector { .@{ant-prefix}-select-selector {
background-color: @form-warning-input-bg;
border-color: @warning-color !important; border-color: @warning-color !important;
} }
&.@{ant-prefix}-select-open .@{ant-prefix}-select-selector, &.@{ant-prefix}-select-open .@{ant-prefix}-select-selector,
...@@ -148,12 +149,14 @@ ...@@ -148,12 +149,14 @@
//input-number, timepicker //input-number, timepicker
.@{ant-prefix}-input-number, .@{ant-prefix}-input-number,
.@{ant-prefix}-picker { .@{ant-prefix}-picker {
background-color: @form-warning-input-bg;
border-color: @warning-color; border-color: @warning-color;
&-focused, &-focused,
&:focus { &:focus {
.active(@warning-color); .active(@warning-color);
} }
&:not([disabled]):hover { &:not([disabled]):hover {
background-color: @form-warning-input-bg;
border-color: @warning-color; border-color: @warning-color;
} }
} }
...@@ -175,6 +178,7 @@ ...@@ -175,6 +178,7 @@
//select //select
.@{ant-prefix}-select:not(.@{ant-prefix}-select-borderless) { .@{ant-prefix}-select:not(.@{ant-prefix}-select-borderless) {
.@{ant-prefix}-select-selector { .@{ant-prefix}-select-selector {
background-color: @form-error-input-bg;
border-color: @error-color !important; border-color: @error-color !important;
} }
&.@{ant-prefix}-select-open .@{ant-prefix}-select-selector, &.@{ant-prefix}-select-open .@{ant-prefix}-select-selector,
...@@ -200,17 +204,34 @@ ...@@ -200,17 +204,34 @@
//input-number, timepicker //input-number, timepicker
.@{ant-prefix}-input-number, .@{ant-prefix}-input-number,
.@{ant-prefix}-picker { .@{ant-prefix}-picker {
background-color: @form-error-input-bg;
border-color: @error-color; border-color: @error-color;
&-focused, &-focused,
&:focus { &:focus {
.active(@error-color); .active(@error-color);
} }
&:not([disabled]):hover { &:not([disabled]):hover {
background-color: @form-error-input-bg;
border-color: @error-color; border-color: @error-color;
} }
} }
.@{ant-prefix}-mention-wrapper {
.@{ant-prefix}-mention-editor {
&,
&:not([disabled]):hover {
background-color: @form-error-input-bg;
border-color: @error-color;
}
}
&.@{ant-prefix}-mention-active:not([disabled]) .@{ant-prefix}-mention-editor,
.@{ant-prefix}-mention-editor:not([disabled]):focus {
.active(@error-color);
}
}
.@{ant-prefix}-cascader-picker:focus .@{ant-prefix}-cascader-input { .@{ant-prefix}-cascader-picker:focus .@{ant-prefix}-cascader-input {
background-color: @form-error-input-bg;
.active(@error-color); .active(@error-color);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册