feat: add CloseButton Avatar and Skeleton components
This commit is contained in:
@@ -44,10 +44,14 @@ const groups = [
|
||||
{
|
||||
title: "组件",
|
||||
items: [
|
||||
{ title: "Avatar 头像", url: "/components/avatar" },
|
||||
{ title: "AvatarGroup 头像组", url: "/components/avatar-group" },
|
||||
{ title: "Button 按钮", url: "/components/button" },
|
||||
{ title: "Card 卡片", url: "/components/card" },
|
||||
{ title: "CloseButton 关闭按钮", url: "/components/close-button" },
|
||||
{ title: "Input 输入框", url: "/components/input" },
|
||||
{ title: "Link 链接", url: "/components/link" },
|
||||
{ title: "Skeleton 骨架屏", url: "/components/skeleton" },
|
||||
{ title: "Spinner 加载指示器", url: "/components/spinner" },
|
||||
{ title: "Surface 表面", url: "/components/surface" },
|
||||
{ title: "Switch 开关", url: "/components/switch" },
|
||||
|
||||
@@ -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