mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-06-22 06:03:49 +08:00
c877f0551e
新增SidebarEntry类型定义与侧边栏配置加载逻辑,支持从服务器拉取sidebar-config.json动态配置侧边栏入口 替换原分类侧边栏为可配置样式,新增CategoryBar分类选择组件,更新品牌色为苹果风格蓝色 重构侧边栏状态管理,拆分activeTab与选中分类逻辑,新增侧边栏入口计数统计 添加SIDEBAR_CONFIG.md文档说明配置格式与使用方法,更新测试用例与组件props
79 lines
1.5 KiB
CSS
79 lines
1.5 KiB
CSS
@import "tailwindcss";
|
|
|
|
@theme {
|
|
--font-sans: "Inter", "system-ui", "-apple-system", "Segoe UI", "sans-serif";
|
|
|
|
--color-brand: #0071e3;
|
|
--color-brand-dark: #0066cc;
|
|
--color-brand-soft: #409cff;
|
|
|
|
--color-surface-light: #f5f7fb;
|
|
--color-surface-dark: #0b1220;
|
|
|
|
--color-card-light: #ffffff;
|
|
--color-card-dark: #151c2c;
|
|
|
|
--shadow-glass: 0 10px 30px rgba(15,23,42,0.08);
|
|
--shadow-glassDark: 0 20px 45px rgba(0,0,0,0.45);
|
|
|
|
--radius-xl: 1rem;
|
|
}
|
|
|
|
@variant dark (&:where(.dark, .dark *));
|
|
|
|
@layer base {
|
|
body {
|
|
font-family: var(--font-sans);
|
|
background-color: var(--color-surface-light);
|
|
color: #0f172a;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
:root.dark body {
|
|
background-color: var(--color-surface-dark);
|
|
color: #f8fafc;
|
|
}
|
|
|
|
#app {
|
|
min-height: 100vh;
|
|
}
|
|
}
|
|
|
|
@layer utilities {
|
|
.scrollbar-muted {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: #94a3b8 transparent;
|
|
}
|
|
|
|
.scrollbar-muted::-webkit-scrollbar {
|
|
width: 0.4rem;
|
|
}
|
|
|
|
.scrollbar-muted::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.scrollbar-muted::-webkit-scrollbar-thumb {
|
|
background-color: #94a3b8;
|
|
border-radius: 9999px;
|
|
}
|
|
|
|
.scrollbar-nowidth {
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.scrollbar-nowidth::-webkit-scrollbar {
|
|
width: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
.scrollbar-nowidth::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.scrollbar-nowidth::-webkit-scrollbar-thumb {
|
|
background-color: transparent;
|
|
border-radius: 0;
|
|
}
|
|
}
|