2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-progressbar {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
border: 0 none;
|
|
|
|
height: 1.25rem;
|
2024-03-12 10:07:36 +00:00
|
|
|
background: ${dt('progressbar.background')};
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-progressbar-value {
|
|
|
|
border: 0 none;
|
|
|
|
margin: 0;
|
2024-03-12 10:07:36 +00:00
|
|
|
background: ${dt('progressbar.value.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-progressbar-label {
|
2024-03-12 10:07:36 +00:00
|
|
|
color: ${dt('progressbar.label.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
line-height: 1.25rem;
|
|
|
|
font-size: .75rem;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-progressbar-determinate .p-progressbar-value {
|
|
|
|
height: 100%;
|
|
|
|
width: 0%;
|
|
|
|
position: absolute;
|
|
|
|
display: none;
|
|
|
|
border: 0 none;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-progressbar-determinate .p-progressbar-label {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-progressbar-determinate .p-progressbar-value-animate {
|
|
|
|
transition: width 1s ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-progressbar-indeterminate .p-progressbar-value::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
background-color: inherit;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
will-change: left, right;
|
|
|
|
animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-progressbar-indeterminate .p-progressbar-value::after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
background-color: inherit;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
will-change: left, right;
|
|
|
|
animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
|
|
|
|
animation-delay: 1.15s;
|
|
|
|
}
|
|
|
|
|
|
|
|
@-webkit-keyframes p-progressbar-indeterminate-anim {
|
|
|
|
0% {
|
|
|
|
left: -35%;
|
|
|
|
right: 100%;
|
|
|
|
}
|
|
|
|
60% {
|
|
|
|
left: 100%;
|
|
|
|
right: -90%;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
left: 100%;
|
|
|
|
right: -90%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@keyframes p-progressbar-indeterminate-anim {
|
|
|
|
0% {
|
|
|
|
left: -35%;
|
|
|
|
right: 100%;
|
|
|
|
}
|
|
|
|
60% {
|
|
|
|
left: 100%;
|
|
|
|
right: -90%;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
left: 100%;
|
|
|
|
right: -90%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@-webkit-keyframes p-progressbar-indeterminate-anim-short {
|
|
|
|
0% {
|
|
|
|
left: -200%;
|
|
|
|
right: 100%;
|
|
|
|
}
|
|
|
|
60% {
|
|
|
|
left: 107%;
|
|
|
|
right: -8%;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
left: 107%;
|
|
|
|
right: -8%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@keyframes p-progressbar-indeterminate-anim-short {
|
|
|
|
0% {
|
|
|
|
left: -200%;
|
|
|
|
right: 100%;
|
|
|
|
}
|
|
|
|
60% {
|
|
|
|
left: 107%;
|
|
|
|
right: -8%;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
left: 107%;
|
|
|
|
right: -8%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|