fix: status less compile error (#34350)

This commit is contained in:
MadCcc 2022-03-08 12:10:29 +08:00 committed by GitHub
parent ae77463db4
commit 868a17736a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 48 deletions

View File

@ -25,56 +25,52 @@
}
}
.select-status-base(@prefix-cls) {
.@{prefix-cls} {
&-status-error {
.select-status-color(@error-color, @error-color, @select-background, @error-color-hover, @error-color-outline);
}
.@{select-prefix-cls} {
&-status-error {
.select-status-color(@error-color, @error-color, @select-background, @error-color-hover, @error-color-outline);
}
&-status-warning {
.select-status-color(@warning-color, @warning-color, @input-bg, @warning-color-hover, @warning-color-outline);
}
&-status-warning {
.select-status-color(@warning-color, @warning-color, @input-bg, @warning-color-hover, @warning-color-outline);
}
&-status-success {
.@{prefix-cls}-feedback-icon {
color: @success-color;
&-status-success {
.@{select-prefix-cls}-feedback-icon {
color: @success-color;
}
}
&-status-validating {
.@{select-prefix-cls}-feedback-icon {
color: @primary-color;
}
}
&-status-error,
&-status-warning,
&-status-success,
&-status-validating {
&.@{select-prefix-cls}-has-feedback {
//.@{prefix-cls}-arrow,
.@{select-prefix-cls}-clear {
right: 32px;
}
}
&-status-validating {
.@{prefix-cls}-feedback-icon {
color: @primary-color;
}
}
&-status-error,
&-status-warning,
&-status-success,
&-status-validating {
&.@{prefix-cls}-has-feedback {
//.@{prefix-cls}-arrow,
.@{prefix-cls}-clear {
right: 32px;
}
.@{prefix-cls}-selection-selected-value {
padding-right: 42px;
}
}
}
&-feedback-icon {
font-size: @font-size-base;
text-align: center;
visibility: visible;
animation: zoomIn 0.3s @ease-out-back;
pointer-events: none;
&:not(:first-child) {
margin-left: 8px;
.@{select-prefix-cls}-selection-selected-value {
padding-right: 42px;
}
}
}
}
.select-status-base(@select-prefix-cls);
&-feedback-icon {
font-size: @font-size-base;
text-align: center;
visibility: visible;
animation: zoomIn 0.3s @ease-out-back;
pointer-events: none;
&:not(:first-child) {
margin-left: 8px;
}
}
}

View File

@ -2,7 +2,7 @@
@transfer-prefix-cls: ~'@{ant-prefix}-transfer';
.status-color(@color) {
.transfer-status-color(@color) {
.@{transfer-prefix-cls}-list {
border-color: @color;
@ -22,10 +22,10 @@
.@{transfer-prefix-cls} {
&-status-error {
.status-color(@error-color);
.transfer-status-color(@error-color);
}
&-status-warning {
.status-color(@warning-color);
.transfer-status-color(@warning-color);
}
}