2016-09-22 16:24:20 +08:00
|
|
|
@progress-prefix-cls: ~"@{css-prefix}progress";
|
|
|
|
|
|
|
|
.@{progress-prefix-cls} {
|
|
|
|
display: inline-block;
|
2017-07-21 12:36:16 -05:00
|
|
|
|
2016-09-22 16:24:20 +08:00
|
|
|
width: 100%;
|
2017-07-21 12:36:16 -05:00
|
|
|
&-vertical {
|
|
|
|
height: 100%;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
2016-11-09 18:02:18 +08:00
|
|
|
font-size: @font-size-small;
|
2016-09-22 16:24:20 +08:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&-outer {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
margin-right: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
|
|
|
|
.@{progress-prefix-cls}-show-info & {
|
|
|
|
padding-right: 55px;
|
|
|
|
margin-right: -55px;
|
|
|
|
}
|
|
|
|
}
|
2017-07-21 12:36:16 -05:00
|
|
|
&-vertical &-outer {
|
|
|
|
height: 100%;
|
|
|
|
width: auto;
|
|
|
|
}
|
2016-09-22 16:24:20 +08:00
|
|
|
|
|
|
|
&-inner {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
background-color: #f3f3f3;
|
|
|
|
border-radius: 100px;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2017-07-21 12:36:16 -05:00
|
|
|
&-vertical &-inner {
|
|
|
|
height: 100%;
|
|
|
|
width: auto;
|
|
|
|
|
|
|
|
& > *, &:after {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
2016-09-22 16:24:20 +08:00
|
|
|
|
|
|
|
&-bg {
|
|
|
|
border-radius: 100px;
|
|
|
|
background-color: @info-color;
|
2016-11-27 00:25:19 +08:00
|
|
|
transition: all @transition-time linear;
|
2016-09-22 16:24:20 +08:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-text {
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 5px;
|
|
|
|
text-align: left;
|
|
|
|
font-size: 1em;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-active {
|
|
|
|
.@{progress-prefix-cls}-bg:before {
|
|
|
|
content: '';
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
background: #fff;
|
|
|
|
border-radius: 10px;
|
2016-11-27 00:25:19 +08:00
|
|
|
animation: ivu-progress-active 2s @ease-in-out infinite;
|
2016-09-22 16:24:20 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-wrong {
|
|
|
|
.@{progress-prefix-cls}-bg {
|
|
|
|
background-color: @error-color;
|
|
|
|
}
|
|
|
|
.@{progress-prefix-cls}-text {
|
|
|
|
color: @error-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-success {
|
|
|
|
.@{progress-prefix-cls}-bg {
|
|
|
|
background-color: @success-color;
|
|
|
|
}
|
|
|
|
.@{progress-prefix-cls}-text {
|
|
|
|
color: @success-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes ivu-progress-active {
|
|
|
|
0% {
|
|
|
|
opacity: .3;
|
|
|
|
width: 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2016-11-27 00:25:19 +08:00
|
|
|
}
|