feat: add CloseButton Avatar and Skeleton components
This commit is contained in:
@@ -13,3 +13,49 @@
|
||||
@slot;
|
||||
}
|
||||
}
|
||||
|
||||
/* Demo-only utilities ported from the baseline docs global.css. */
|
||||
@keyframes shine {
|
||||
0% {
|
||||
translate: -100% 0;
|
||||
}
|
||||
100% {
|
||||
translate: 100% 0;
|
||||
}
|
||||
}
|
||||
|
||||
@utility shadow-panel {
|
||||
box-shadow: var(--surface-shadow);
|
||||
}
|
||||
|
||||
@utility animate-shine {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(
|
||||
120deg,
|
||||
transparent 10%,
|
||||
rgba(255, 255, 255, 0.3) 45%,
|
||||
rgba(255, 255, 255, 0.1) 55%,
|
||||
transparent 90%
|
||||
);
|
||||
animation: shine 3s ease-in-out infinite;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&:where(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *)::after {
|
||||
background: linear-gradient(
|
||||
120deg,
|
||||
transparent 10%,
|
||||
rgba(255, 255, 255, 0.1) 45%,
|
||||
rgba(255, 255, 255, 0.04) 55%,
|
||||
transparent 90%
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user