amis2/scss/components/_progress.scss
hsm-lv e4203dd033
Style yunshe4 (#2837)
* fix:输入框禁用状态下依然弹出options

* style:再升级几个组件样式到yunshe4.0
2021-11-03 15:11:04 +08:00

47 lines
950 B
SCSS

.#{$ns}Progress {
height: 10px;
background: #ebebeb;
overflow: hidden;
border-radius: var(--Progress-borderRadius);
&-bar {
float: left;
width: 0;
height: 100%;
font-size: 12px;
line-height: 10px;
color: #fff;
text-align: center;
background: var(--primary);
transition: width var(--animation-duration) ease;
border-radius: var(--Progress-borderRadius);
&--stripe {
background-image: linear-gradient(
45deg,
rgba(255, 255, 255, 0.15) 25%,
transparent 25%,
transparent 50%,
rgba(255, 255, 255, 0.15) 50%,
rgba(255, 255, 255, 0.15) 75%,
transparent 75%,
transparent
);
background-size: 2rem 2rem;
}
&--animate {
animation: progress-bar-stripes 1s linear infinite;
}
}
}
@keyframes progress-bar-stripes {
from {
background-position: 2rem 0;
}
to {
background-position: 0 0;
}
}