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-skeleton {
|
|
|
|
overflow: hidden;
|
2024-03-12 10:07:36 +00:00
|
|
|
background-color: ${dt('skeleton.background')};
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-skeleton::after {
|
|
|
|
content: "";
|
|
|
|
animation: p-skeleton-animation 1.2s infinite;
|
|
|
|
height: 100%;
|
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
transform: translateX(-100%);
|
|
|
|
z-index: 1;
|
2024-03-12 10:07:36 +00:00
|
|
|
background: linear-gradient( 90deg, rgba(255, 255, 255, 0), ${dt('skeleton.animation.background')}, rgba(255, 255, 255, 0) );
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-skeleton-circle {
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-skeleton-none::after {
|
|
|
|
animation: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes p-skeleton-animation {
|
|
|
|
from {
|
|
|
|
transform: translateX(-100%);
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
transform: translateX(100%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|