antd
Version:
An enterprise-class UI design language and React-based implementation
118 lines (117 loc) • 2.52 kB
CSS
.ant-progress {
display: inline-block;
}
.ant-progress-line {
width: 100%;
font-size: 12px;
position: relative;
}
.ant-progress-outer {
display: inline-block;
width: 100%;
margin-right: 0;
padding-right: 0;
}
.ant-progress-show-info .ant-progress-outer {
padding-right: 45px;
margin-right: -45px;
}
.ant-progress-inner {
display: inline-block;
width: 100%;
background-color: #f3f3f3;
border-radius: 100px;
vertical-align: middle;
}
.ant-progress-bg {
border-radius: 100px;
background-color: #2db7f5;
-webkit-transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;
transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;
position: relative;
}
.ant-progress-text {
width: 35px;
text-align: left;
font-size: 1em;
margin-left: 10px;
vertical-align: middle;
display: inline-block;
font-family: tahoma;
}
.ant-progress-text .anticon {
font-size: 12px;
}
.ant-progress-status-active .ant-progress-bg:before {
content: "";
opacity: 0;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #fff;
border-radius: 10px;
-webkit-animation: ant-progress-active 2s cubic-bezier(0.23, 1, 0.32, 1) infinite;
animation: ant-progress-active 2s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}
.ant-progress-status-exception .ant-progress-bg {
background-color: #f50;
}
.ant-progress-status-exception .ant-progress-text {
color: #f50;
}
.ant-progress-status-success .ant-progress-bg {
background-color: #87d068;
}
.ant-progress-status-success .ant-progress-text {
color: #87d068;
}
.ant-progress-circle .ant-progress-inner {
position: relative;
line-height: 1;
background-color: transparent;
}
.ant-progress-circle .ant-progress-text {
display: block;
position: absolute;
width: 100%;
text-align: center;
line-height: 1;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
left: 0;
font-family: tahoma;
margin: 0;
}
.ant-progress-circle .ant-progress-text .anticon {
font-size: 1.16666667em;
}
.ant-progress-circle .ant-progress-status-exception .ant-progress-text {
color: #f50;
}
.ant-progress-circle .ant-progress-status-success .ant-progress-text {
color: #87d068;
}
@-webkit-keyframes ant-progress-active {
0% {
opacity: .3;
width: 0;
}
100% {
opacity: 0;
width: 100%;
}
}
@keyframes ant-progress-active {
0% {
opacity: .3;
width: 0;
}
100% {
opacity: 0;
width: 100%;
}
}