ygd
Version:
An enterprise-class UI design language and React-based implementation
163 lines (162 loc) • 3.52 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.yg-progress {
box-sizing: content-box;
margin: 0;
padding: 0;
color: #333;
font-size: 12px;
list-style: none;
display: inline-block;
}
.yg-progress-line {
position: relative;
width: 100%;
font-size: 12px;
}
.yg-progress-small.yg-progress-line,
.yg-progress-small.yg-progress-line .yg-progress-text .anticon {
font-size: 12px;
}
.yg-progress-outer {
display: inline-block;
width: 100%;
margin-right: 0;
padding-right: 0;
}
.yg-progress-show-info .yg-progress-outer {
margin-right: calc(-2em - 8px);
padding-right: calc(2em + 8px);
width: calc(100% - 32px);
}
.yg-progress-inner {
position: relative;
display: inline-block;
width: 100%;
vertical-align: middle;
background-color: #f5f5f5;
border-radius: 100px;
}
.yg-progress-circle-trail {
stroke: #f5f5f5;
}
.yg-progress-circle-path {
-webkit-animation: yg-progress-appear 0.3s;
animation: yg-progress-appear 0.3s;
stroke: #00a1ff;
}
.yg-progress-success-bg,
.yg-progress-bg {
position: relative;
background-color: #00a1ff;
transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;
}
.yg-progress-success-bg {
position: absolute;
top: 0;
left: 0;
background-color: #228b22;
}
.yg-progress-text {
display: inline-block;
width: 2em;
margin-left: 8px;
color: rgba(0, 0, 0, 0.45);
font-size: 1em;
line-height: 1;
white-space: nowrap;
text-align: left;
vertical-align: middle;
word-break: normal;
}
.yg-progress-text .anticon {
font-size: 12px;
}
.yg-progress-status-active .yg-progress-bg::before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: #fff;
border-radius: 10px;
opacity: 0;
-webkit-animation: yg-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
animation: yg-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
content: '';
}
.yg-progress-status-exception .yg-progress-bg {
background-color: #e2062c;
}
.yg-progress-status-exception .yg-progress-text {
color: #e2062c;
}
.yg-progress-status-exception .yg-progress-circle-path {
stroke: #e2062c;
}
.yg-progress-status-success .yg-progress-bg {
background-color: #228b22;
}
.yg-progress-status-success .yg-progress-text {
color: #228b22;
}
.yg-progress-status-success .yg-progress-circle-path {
stroke: #228b22;
}
.yg-progress-circle .yg-progress-inner {
position: relative;
line-height: 1;
background-color: transparent;
}
.yg-progress-circle .yg-progress-text {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
margin: 0;
padding: 0;
color: #333;
line-height: 1;
white-space: normal;
text-align: center;
transform: translate(-50%, -50%);
}
.yg-progress-circle .yg-progress-text .anticon {
font-size: 1.16666667em;
}
.yg-progress-circle.yg-progress-status-exception .yg-progress-text {
color: #e2062c;
}
.yg-progress-circle.yg-progress-status-success .yg-progress-text {
color: #228b22;
}
@-webkit-keyframes yg-progress-active {
0% {
width: 0;
opacity: 0.1;
}
20% {
width: 0;
opacity: 0.5;
}
100% {
width: 100%;
opacity: 0;
}
}
@keyframes yg-progress-active {
0% {
width: 0;
opacity: 0.1;
}
20% {
width: 0;
opacity: 0.5;
}
100% {
width: 100%;
opacity: 0;
}
}