style(css): 优化表头中文字体可读性并添加下拉框通用类
这个提交包含在:
+75
-13
@@ -1,10 +1,9 @@
|
|||||||
/*
|
/*
|
||||||
Style tokens source (single-direction sync):
|
Style tokens source (single-direction sync):
|
||||||
- /home/shunli/Projects/hyb-web
|
- Extracted from Stitch MCP AI-generated Design Preview (B2B SaaS Theme)
|
||||||
- commit: unavailable_local_reference
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;700;900&display=swap");
|
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
|
||||||
@import "./styles/mobile-touch.css";
|
@import "./styles/mobile-touch.css";
|
||||||
|
|
||||||
@tailwind base;
|
@tailwind base;
|
||||||
@@ -13,36 +12,99 @@
|
|||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
body {
|
body {
|
||||||
@apply bg-background-light text-slate-900 font-sans antialiased selection:bg-primary selection:text-white;
|
@apply bg-zinc-50 font-sans text-zinc-900 antialiased selection:bg-zinc-900 selection:text-white;
|
||||||
}
|
}
|
||||||
|
|
||||||
#root {
|
#root {
|
||||||
@apply min-h-screen;
|
@apply min-h-screen flex flex-col;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@layer components {
|
@layer components {
|
||||||
|
|
||||||
|
/* Layout */
|
||||||
.layout-container {
|
.layout-container {
|
||||||
@apply mx-auto max-w-7xl px-4 sm:px-6 lg:px-8;
|
@apply mx-auto w-full px-4 sm:px-6 lg:px-8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Buttons */
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
@apply rounded-lg bg-primary px-4 py-2 font-bold text-white transition-colors hover:bg-primary-600;
|
@apply flex items-center justify-center gap-2 px-4 py-2 bg-zinc-900 text-white rounded-lg text-sm font-bold hover:bg-zinc-800 transition-all shadow-sm;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-secondary {
|
.btn-secondary {
|
||||||
@apply rounded-lg border border-slate-200 bg-white px-4 py-2 font-medium text-slate-700 transition-colors hover:bg-slate-50;
|
@apply flex items-center justify-center gap-2 px-3 py-2 bg-white border border-zinc-200 rounded-lg text-sm font-medium text-zinc-700 hover:bg-zinc-50 transition-colors shadow-sm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-ghost {
|
||||||
|
@apply text-zinc-400 hover:text-zinc-600 p-1 rounded-md transition-colors;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Cards */
|
||||||
.card-std {
|
.card-std {
|
||||||
@apply rounded-xl border border-slate-200 bg-white p-6 text-left shadow-sm transition-all hover:shadow-md;
|
@apply bg-white p-6 rounded-xl shadow-sm ring-1 ring-zinc-900/5 transition-all;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-title {
|
.card-title {
|
||||||
@apply mb-2 text-xl font-bold text-slate-900;
|
@apply text-sm font-medium text-zinc-500 mb-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-desc {
|
.card-value {
|
||||||
@apply text-slate-600;
|
@apply text-3xl font-bold text-zinc-900 tracking-tight;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
/* Forms */
|
||||||
|
.input-std {
|
||||||
|
@apply h-10 w-full rounded-md border border-zinc-200 bg-white px-3 py-2 text-sm text-zinc-900 shadow-sm outline-none transition-colors focus:border-zinc-400 focus:ring-1 focus:ring-zinc-400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select-std {
|
||||||
|
@apply h-10 w-full rounded-md border border-zinc-200 bg-white px-3 py-2 text-sm text-zinc-700 shadow-sm outline-none transition-colors focus:border-zinc-400 focus:ring-1 focus:ring-zinc-400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select-sm {
|
||||||
|
@apply h-8 rounded-md border border-zinc-200 bg-white px-2 py-1 text-xs font-medium text-zinc-600 shadow-sm outline-none transition-colors focus:border-zinc-400 focus:ring-1 focus:ring-zinc-400;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tables */
|
||||||
|
.table-container {
|
||||||
|
@apply bg-white rounded-xl shadow-sm ring-1 ring-zinc-900/5 overflow-hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-header {
|
||||||
|
@apply bg-zinc-50/50 border-b border-zinc-100;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-th {
|
||||||
|
@apply px-6 py-4 text-xs font-bold text-zinc-500 text-left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-row {
|
||||||
|
@apply transition-colors hover:bg-zinc-50/80;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-td {
|
||||||
|
@apply px-6 py-4 text-sm text-zinc-600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-td-strong {
|
||||||
|
@apply px-6 py-4 text-sm font-bold text-zinc-900;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Badges */
|
||||||
|
.badge-success {
|
||||||
|
@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-semibold bg-emerald-50 text-emerald-700 ring-1 ring-inset ring-emerald-600/10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge-warning {
|
||||||
|
@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-semibold bg-amber-50 text-amber-700 ring-1 ring-inset ring-amber-600/10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge-error {
|
||||||
|
@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-semibold bg-red-50 text-red-700 ring-1 ring-inset ring-red-600/10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge-neutral {
|
||||||
|
@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-semibold bg-zinc-100 text-zinc-700 ring-1 ring-inset ring-zinc-600/10;
|
||||||
|
}
|
||||||
|
}
|
||||||
在新工单中引用
屏蔽一个用户