feat: add CloseButton Avatar and Skeleton components

This commit is contained in:
maoyingjie
2026-10-21 17:06:53 +08:00
parent 56b1ef11d8
commit 3d05fea7bd
60 changed files with 3906 additions and 57 deletions
+46
View File
@@ -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%
);
}
}