窄屏改用抽屉导航和卡片列表,加大触控区域并处理安全区,避免表格横向溢出。 Co-authored-by: Cursor <cursoragent@cursor.com>
81 lines
1.6 KiB
CSS
81 lines
1.6 KiB
CSS
@import "tailwindcss";
|
|
|
|
@theme {
|
|
/* 中性色 */
|
|
--color-background: #f6f7f9;
|
|
--color-surface: #ffffff;
|
|
--color-foreground: #1e293b;
|
|
--color-muted: #f1f5f9;
|
|
--color-muted-foreground: #64748b;
|
|
--color-border: #e8eaed;
|
|
|
|
/* 主题色(现代 CMS 靛蓝) */
|
|
--color-primary: #4f46e5;
|
|
--color-primary-hover: #4338ca;
|
|
--color-primary-foreground: #ffffff;
|
|
--color-primary-soft: #eef2ff;
|
|
|
|
/* 侧边栏(深色) */
|
|
--color-sidebar: #0b1220;
|
|
--color-sidebar-muted: #94a3b8;
|
|
--color-sidebar-foreground: #e2e8f0;
|
|
--color-sidebar-hover: #1e293b;
|
|
|
|
/* 语义色 */
|
|
--color-success: #16a34a;
|
|
--color-success-soft: #dcfce7;
|
|
--color-warning: #d97706;
|
|
--color-warning-soft: #fef3c7;
|
|
--color-danger: #e11d48;
|
|
--color-danger-soft: #ffe4e6;
|
|
--color-info: #0ea5e9;
|
|
--color-info-soft: #e0f2fe;
|
|
|
|
--color-ring: #a5b4fc;
|
|
|
|
--radius: 0.625rem;
|
|
--font-sans: ui-sans-serif, system-ui, -apple-system, "PingFang SC",
|
|
"Microsoft YaHei", sans-serif;
|
|
}
|
|
|
|
* {
|
|
border-color: var(--color-border);
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
-webkit-text-size-adjust: 100%;
|
|
text-size-adjust: 100%;
|
|
}
|
|
|
|
body {
|
|
background: var(--color-background);
|
|
color: var(--color-foreground);
|
|
font-family: var(--font-sans);
|
|
-webkit-font-smoothing: antialiased;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* 避免 iOS 聚焦输入框时自动放大(需 ≥16px) */
|
|
@media (max-width: 767px) {
|
|
input,
|
|
select,
|
|
textarea {
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
/* 细滚动条 */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: #cbd5e1;
|
|
border-radius: 9999px;
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|