This commit is contained in:
杜恒
2021-04-21 15:09:39 +08:00
parent 7a0e201284
commit 8056d8c0e8
16 changed files with 173 additions and 26 deletions

File diff suppressed because one or more lines are too long

View File

@@ -2214,6 +2214,42 @@
}
}
}
&-progress {
width: 100%;
display: flex;
align-items: center;
.strip {
height: 12px;
border-radius: 6px;
overflow: hidden;
background: var(--classC);;
min-width: 0;
flex: 1;
margin-right: 10px;
.percent {
position: relative;
display: block;
height: 100%;
border-radius: 6px;
transition: width 0.35s;
&::before{
content: "";
opacity: 0;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #fff;
border-radius: 6px;
animation: progress-active 3s ease-in-out infinite;
}
}
}
.percentage {
color: var(--minor);
}
}
/* 以下未测试 */
&-protected {
@@ -3362,3 +3398,13 @@
clip-path: circle(100%);
}
}
@keyframes progress-active {
0% {
opacity: .3;
width: 0
}
to {
opacity: 0;
width: 100%
}
}