mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
120 lines
2.3 KiB
Plaintext
120 lines
2.3 KiB
Plaintext
@progress-prefix-cls: ant-progress;
|
|
|
|
.@{progress-prefix-cls} {
|
|
&-line-wrap,
|
|
&-circle-wrap {
|
|
display: inline-block;
|
|
}
|
|
&-line-wrap {
|
|
width: 100%;
|
|
font-size: 12px;
|
|
position: relative;
|
|
}
|
|
&-line-outer {
|
|
padding-right: 45px;
|
|
display: inline-block;
|
|
width: 100%;
|
|
margin-right: -45px;
|
|
.@{progress-prefix-cls}-line-wrap-full & {
|
|
margin-right: 0;
|
|
padding-right: 0;
|
|
}
|
|
}
|
|
&-line-inner {
|
|
display: inline-block;
|
|
width: 100%;
|
|
background-color: #f3f3f3;
|
|
border-radius: 100px;
|
|
vertical-align: middle;
|
|
}
|
|
&-line-bg {
|
|
border-radius: 100px;
|
|
background-color: @info-color;
|
|
transition: all 0.3s linear 0s;
|
|
position: relative;
|
|
}
|
|
&-line-text {
|
|
width: 35px;
|
|
text-align: left;
|
|
font-size: 1em;
|
|
margin-left: 10px;
|
|
vertical-align: middle;
|
|
display: inline-block;
|
|
font-family: tahoma;
|
|
.anticon {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
&-line-wrap.status-active {
|
|
.@{progress-prefix-cls}-line-bg:before {
|
|
content: "";
|
|
opacity: 0;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
animation: progress-active 2s ease infinite;
|
|
}
|
|
}
|
|
&-line-wrap.status-exception {
|
|
.@{progress-prefix-cls}-line-bg {
|
|
background-color: @error-color;
|
|
}
|
|
.@{progress-prefix-cls}-line-text {
|
|
color: @error-color;
|
|
}
|
|
}
|
|
&-line-wrap.status-success {
|
|
.@{progress-prefix-cls}-line-bg {
|
|
background-color: @success-color;
|
|
}
|
|
.@{progress-prefix-cls}-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;
|
|
font-family: tahoma;
|
|
|
|
.anticon {
|
|
font-size: 14 / 12em;
|
|
}
|
|
}
|
|
&-circle-wrap.status-exception {
|
|
.@{progress-prefix-cls}-circle-text {
|
|
color: @error-color;
|
|
}
|
|
}
|
|
&-circle-wrap.status-success {
|
|
.@{progress-prefix-cls}-circle-text {
|
|
color: @success-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes progress-active {
|
|
0% {
|
|
opacity: .3;
|
|
width: 0;
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
width: 100%;
|
|
}
|
|
}
|