🐛 fix progress gradient

This commit is contained in:
Wendell 2019-08-15 10:30:18 +08:00
parent a223f6d798
commit 2eb3d22ccc

View File

@ -46,7 +46,12 @@
&-circle-path {
animation: ~'@{ant-prefix}-progress-appear' 0.3s;
stroke: @progress-default-color;
}
&-inner:not(.@{ant-prefix}-progress-circle-gradient) {
.@{ant-prefix}-progress-circle-path {
stroke: @progress-default-color;
}
}
&-success-bg,
@ -102,6 +107,9 @@
.@{progress-prefix-cls}-text {
color: @error-color;
}
}
&-status-exception &-inner:not(.@{progress-prefix-cls}-circle-gradient) {
.@{progress-prefix-cls}-circle-path {
stroke: @error-color;
}
@ -114,6 +122,9 @@
.@{progress-prefix-cls}-text {
color: @success-color;
}
}
&-status-success &-inner:not(.@{progress-prefix-cls}-circle-gradient) {
.@{progress-prefix-cls}-circle-path {
stroke: @success-color;
}
@ -153,12 +164,6 @@
color: @success-color;
}
}
&-circle-gradient {
.@{progress-prefix-cls}-circle-path {
stroke: url(#gradient);
}
}
}
@keyframes ~"@{ant-prefix}-progress-active" {