@meleon/uni-ui
Version:
A uniapp components library written in vue3 and typescript
65 lines (63 loc) • 1.45 kB
text/less
@base: ~'ml-progress';
@status: ~'ml-progress-status';
.@{base} {
width: 100%;
max-width: 100%;
height: 100%;
&-line {
width: 100%;
max-width: 100%;
display: flex;
align-items: center;
justify-content: flex-start;
&-wrapper {
position: relative;
display: inline-block;
// flex: 1;
border-radius: 100px;
overflow: hidden;
&-bar {
max-width: 100%;
height: 100%;
border-radius: 100px;
position: relative;
transition:
width 0.6s cubic-bezier(0.34, 0.69, 0.1, 1),
background 0.3s cubic-bezier(0.34, 0.69, 0.1, 1);
background-color: var(--bar-color);
}
}
&-text {
min-width: 32px;
width: fit-content;
font-size: 12px;
margin-left: 16px;
white-space: nowrap;
text-align: right;
color: var(--info-color-8);
}
}
&-circle {
&-wrapper {
position: relative;
display: flex;
align-items: center;
justify-content: center;
&-bar,
&-bar-buffer {
position: absolute;
}
&-text {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
white-space: nowrap;
text-align: right;
color: var(--info-color-8);
}
}
}
}