2015-08-20 16:55:42 +08:00
|
|
|
@progress-prefix-cls: ant-progress;
|
2015-06-14 19:50:23 +08:00
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{progress-prefix-cls} {
|
2015-07-29 23:32:24 +08:00
|
|
|
&-line-wrap,
|
|
|
|
&-circle-wrap {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2015-06-15 16:16:51 +08:00
|
|
|
&-line-wrap {
|
2015-07-29 22:20:05 +08:00
|
|
|
width: 100%;
|
2015-06-15 16:16:51 +08:00
|
|
|
font-size: 12px;
|
2015-07-29 22:20:05 +08:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
&-line-outer {
|
|
|
|
margin-right: 45px;
|
2015-06-15 16:16:51 +08:00
|
|
|
}
|
2015-07-30 17:27:41 +08:00
|
|
|
&-line-wrap-full {
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{progress-prefix-cls}-line-outer {
|
2015-07-30 17:27:41 +08:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
2015-06-14 19:50:23 +08:00
|
|
|
&-line-inner {
|
|
|
|
display: inline-block;
|
2015-07-29 22:20:05 +08:00
|
|
|
width: 100%;
|
|
|
|
background-color: #E9E9E9;
|
|
|
|
border-radius: 100px;
|
|
|
|
}
|
|
|
|
&-line-bg {
|
|
|
|
border-radius: 100px;
|
2015-07-30 15:07:38 +08:00
|
|
|
background-color: @primary-color;
|
2015-09-22 20:11:28 +08:00
|
|
|
transition: all 0.3s linear 0s;
|
2015-06-14 19:50:23 +08:00
|
|
|
}
|
|
|
|
&-line-text {
|
2015-07-29 22:20:05 +08:00
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 35px;
|
|
|
|
text-align: left;
|
2015-06-14 19:50:23 +08:00
|
|
|
font-size: 1em;
|
|
|
|
margin-left: 10px;
|
|
|
|
|
|
|
|
.anticon {
|
2015-07-09 18:17:15 +08:00
|
|
|
font-size: 12px;
|
2015-06-14 19:50:23 +08:00
|
|
|
}
|
|
|
|
}
|
2015-07-30 15:07:38 +08:00
|
|
|
&-line-wrap.status-active {
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{progress-prefix-cls}-line-bg:before {
|
2015-07-30 15:07:38 +08:00
|
|
|
content: "";
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
2015-08-20 16:55:42 +08:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2015-07-30 15:07:38 +08:00
|
|
|
background: #fff;
|
|
|
|
border-radius: 10px;
|
|
|
|
animation: progress-active 2s ease infinite;
|
|
|
|
}
|
|
|
|
}
|
2015-07-29 22:20:05 +08:00
|
|
|
&-line-wrap.status-exception {
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{progress-prefix-cls}-line-bg {
|
2015-07-30 15:07:38 +08:00
|
|
|
background-color: @error-color;
|
2015-07-29 22:20:05 +08:00
|
|
|
}
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{progress-prefix-cls}-line-text {
|
2015-07-30 15:07:38 +08:00
|
|
|
color: @error-color;
|
2015-07-29 22:20:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&-line-wrap.status-success {
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{progress-prefix-cls}-line-bg {
|
2015-07-30 15:07:38 +08:00
|
|
|
background-color: @success-color;
|
2015-07-29 22:20:05 +08:00
|
|
|
}
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{progress-prefix-cls}-line-text {
|
2015-07-30 15:07:38 +08:00
|
|
|
color: @success-color;
|
2015-07-29 22:20:05 +08:00
|
|
|
}
|
|
|
|
}
|
2015-06-14 20:07:21 +08:00
|
|
|
|
|
|
|
&-circle-inner {
|
|
|
|
position: relative;
|
2015-06-14 23:04:43 +08:00
|
|
|
line-height: 1;
|
2015-06-14 20:07:21 +08:00
|
|
|
}
|
|
|
|
&-circle-text {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
2015-06-14 23:04:43 +08:00
|
|
|
line-height: 1;
|
2015-06-15 17:30:24 +08:00
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
2015-06-14 23:04:43 +08:00
|
|
|
left: 0;
|
2015-06-14 20:07:21 +08:00
|
|
|
|
|
|
|
.anticon {
|
2015-08-20 16:55:42 +08:00
|
|
|
font-size: 14 / 12em;
|
2015-06-14 20:07:21 +08:00
|
|
|
}
|
|
|
|
}
|
2015-07-29 23:32:24 +08:00
|
|
|
&-circle-wrap.status-exception {
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{progress-prefix-cls}-circle-text {
|
2015-07-30 15:54:08 +08:00
|
|
|
color: @error-color;
|
2015-07-29 23:32:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&-circle-wrap.status-success {
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{progress-prefix-cls}-circle-text {
|
2015-07-30 15:54:08 +08:00
|
|
|
color: @success-color;
|
2015-07-29 23:32:24 +08:00
|
|
|
}
|
|
|
|
}
|
2015-06-15 11:00:27 +08:00
|
|
|
}
|
2015-07-30 15:07:38 +08:00
|
|
|
|
|
|
|
@keyframes progress-active {
|
|
|
|
0% {
|
|
|
|
opacity: .3;
|
|
|
|
width: 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|