mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 21:59:41 +08:00
116 lines
2.1 KiB
Plaintext
116 lines
2.1 KiB
Plaintext
@prefixProgressClass: ant-progress;
|
|
|
|
.@{prefixProgressClass} {
|
|
&-line-wrap,
|
|
&-circle-wrap {
|
|
display: inline-block;
|
|
}
|
|
&-line-wrap {
|
|
width: 100%;
|
|
font-size: 12px;
|
|
position: relative;
|
|
}
|
|
&-line-outer {
|
|
margin-right: 45px;
|
|
}
|
|
&-line-wrap-full {
|
|
.@{prefixProgressClass}-line-outer {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
&-line-inner {
|
|
display: inline-block;
|
|
width: 100%;
|
|
background-color: #E9E9E9;
|
|
border-radius: 100px;
|
|
}
|
|
&-line-bg {
|
|
border-radius: 100px;
|
|
background-color: @primary-color;
|
|
transition: all 0.6s linear 0s;
|
|
}
|
|
&-line-text {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
width: 35px;
|
|
text-align: left;
|
|
font-size: 1em;
|
|
margin-left: 10px;
|
|
|
|
.anticon {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
&-line-wrap.status-active {
|
|
.@{prefixProgressClass}-line-bg:before {
|
|
content: "";
|
|
opacity: 0;
|
|
position: absolute;
|
|
top: 0px;
|
|
left: 0px;
|
|
right: 0px;
|
|
bottom: 0px;
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
animation: progress-active 2s ease infinite;
|
|
}
|
|
}
|
|
&-line-wrap.status-exception {
|
|
.@{prefixProgressClass}-line-bg {
|
|
background-color: @error-color;
|
|
}
|
|
.@{prefixProgressClass}-line-text {
|
|
color: @error-color;
|
|
}
|
|
}
|
|
&-line-wrap.status-success {
|
|
.@{prefixProgressClass}-line-bg {
|
|
background-color: @success-color;
|
|
}
|
|
.@{prefixProgressClass}-line-text {
|
|
color: @success-color;
|
|
}
|
|
}
|
|
|
|
&-circle-inner {
|
|
position: relative;
|
|
line-height: 1;
|
|
}
|
|
&-circle-text {
|
|
display: block;
|
|
position: absolute;
|
|
width: 100%;
|
|
text-align: center;
|
|
line-height: 1;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
left: 0;
|
|
|
|
.anticon {
|
|
font-size: 14/12em;
|
|
}
|
|
}
|
|
&-circle-wrap.status-exception {
|
|
.@{prefixProgressClass}-circle-text {
|
|
color: @error-color;
|
|
}
|
|
}
|
|
&-circle-wrap.status-success {
|
|
.@{prefixProgressClass}-circle-text {
|
|
color: @success-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes progress-active {
|
|
0% {
|
|
opacity: .3;
|
|
width: 0;
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
width: 100%;
|
|
}
|
|
}
|