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-progress-spinner {
|
|
|
|
position: relative;
|
|
|
|
margin: 0 auto;
|
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-progress-spinner::before {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
padding-top: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-progress-spinner-svg {
|
|
|
|
height: 100%;
|
|
|
|
transform-origin: center center;
|
|
|
|
width: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
margin: auto;
|
|
|
|
animation: p-progress-spinner-rotate 2s linear infinite;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-progress-spinner-circle {
|
|
|
|
stroke-dasharray: 89, 200;
|
|
|
|
stroke-dashoffset: 0;
|
2024-03-12 10:07:36 +00:00
|
|
|
stroke: ${dt('progressspinner.color-1')};
|
2024-02-19 22:53:42 +00:00
|
|
|
animation: p-progress-spinner-dash 1.5s ease-in-out infinite, p-progress-spinner-color 6s ease-in-out infinite;
|
|
|
|
stroke-linecap: round;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes p-progress-spinner-rotate {
|
|
|
|
100% {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@keyframes p-progress-spinner-dash {
|
|
|
|
0% {
|
|
|
|
stroke-dasharray: 1, 200;
|
|
|
|
stroke-dashoffset: 0;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
stroke-dasharray: 89, 200;
|
|
|
|
stroke-dashoffset: -35px;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
stroke-dasharray: 89, 200;
|
|
|
|
stroke-dashoffset: -124px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@keyframes p-progress-spinner-color {
|
|
|
|
100%,
|
|
|
|
0% {
|
2024-03-12 10:07:36 +00:00
|
|
|
stroke: ${dt('progressspinner.color-1')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
40% {
|
2024-03-12 10:07:36 +00:00
|
|
|
stroke: ${dt('progressspinner.color-2')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
66% {
|
2024-03-12 10:07:36 +00:00
|
|
|
stroke: ${dt('progressspinner.color-3')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
80%,
|
|
|
|
90% {
|
2024-03-12 10:07:36 +00:00
|
|
|
stroke: ${dt('progressspinner.color-4')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|