代码修改

This commit is contained in:
董宏凯 committed 2026-07-24 14:12:42 +08:00
1 parent 91ba47bf47
commit 25153dbd84
31 files changed
+536 -62

No files matched your search

+187
View File
@@ -525,6 +525,65 @@
--legacy-workspace-brand-rgb: 155 206 241;
}
/* Pale yellow: #F3FBD9 is the signature hue. Dark olive foreground and
interaction tokens preserve contrast while the surfaces remain airy. */
.lightyellow {
--workspace-brand: #F3FBD9;
--workspace-brand-foreground: #303d23;
--brand-200: #eef6d4;
--brand-900: #4c6330;
--brand-950: #34451f;
--background: #fcfdf5;
--foreground: #303d23;
--card: #ffffff;
--card-foreground: #303d23;
--popover: #ffffff;
--popover-foreground: #303d23;
--primary: #F3FBD9;
--primary-foreground: #303d23;
--secondary: #f7fae9;
--secondary-foreground: #4c6330;
--muted: #f6f8ea;
--muted-foreground: #68705a;
--accent: #eef6d4;
--accent-foreground: #4c6330;
--destructive: #cf4a4a;
--border: #dce8bc;
--input: #d2e1ad;
--ring: rgb(243 251 217 / 0.78);
--chart-1: #627b3d;
--chart-2: #56855e;
--chart-3: #85714b;
--chart-4: #bb8535;
--chart-5: #4f8f76;
--sidebar: #fdfef8;
--sidebar-foreground: #303d23;
--sidebar-primary: #F3FBD9;
--sidebar-primary-foreground: #303d23;
--sidebar-accent: #eef6d4;
--sidebar-accent-foreground: #4c6330;
--sidebar-border: #e4edcb;
--sidebar-ring: rgb(243 251 217 / 0.78);
--legacy-accent-rgb: 238 246 212;
--legacy-background-rgb: 252 253 245;
--legacy-border-rgb: 220 232 188;
--legacy-brand-200-rgb: 238 246 212;
--legacy-card-rgb: 255 255 255;
--legacy-destructive-rgb: 207 74 74;
--legacy-foreground-rgb: 48 61 35;
--legacy-input-rgb: 210 225 173;
--legacy-muted-rgb: 246 248 234;
--legacy-muted-foreground-rgb: 104 112 90;
--legacy-primary-rgb: 243 251 217;
--legacy-primary-foreground-rgb: 48 61 35;
--legacy-ring-rgb: 243 251 217;
--legacy-secondary-rgb: 247 250 233;
--legacy-sidebar-accent-rgb: 238 246 212;
--legacy-sidebar-border-rgb: 228 237 203;
--legacy-sidebar-foreground-rgb: 48 61 35;
--legacy-workspace-brand-rgb: 243 251 217;
}
@layer base {
* {
@apply border-border outline-ring/50;
@@ -1471,6 +1530,43 @@ html.iceblue .tiptap-writing-editor .ProseMirror ::selection {
background: rgb(155 206 241 / 0.5);
}
html.lightyellow .strategy-app-header {
background-color: #F3FBD9;
background-image: linear-gradient(105deg, #71864c 0%, #F3FBD9 52%, #fbfeec 100%);
}
html.lightyellow *::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, rgb(228 239 191 / 0.88), rgb(76 99 48 / 0.9))
padding-box;
}
html.lightyellow .workspace-panel {
border: 1px solid #dce8bc;
box-shadow:
0 32px 72px -46px rgb(78 99 47 / 0.28),
0 12px 28px -22px rgb(153 178 101 / 0.2);
}
html.lightyellow .workspace-user-bubble {
border: 1px solid rgb(255 255 255 / 0.22);
background: linear-gradient(135deg, #a9bd72 0%, #71864c 58%, #4c6330 100%);
box-shadow:
0 22px 40px -28px rgb(76 99 48 / 0.5),
0 10px 20px -16px rgb(52 69 31 / 0.34);
}
html.lightyellow .workspace-assistant-card {
border: 1px solid #e3edc8;
}
html.lightyellow .workspace-assistant-card::before {
background: linear-gradient(180deg, rgb(243 251 217 / 0.86), rgb(243 251 217 / 0.12));
}
html.lightyellow .tiptap-writing-editor .ProseMirror ::selection {
background: rgb(243 251 217 / 0.72);
}
/* ── 来源上传弹窗:A系统基因库的分段单选条(custom-radio) ─────────────── */
/* 外层容器,模拟 nz-radio-group */
.custom-radio-group {
@@ -1583,6 +1679,85 @@ html.iceblue .tiptap-writing-editor .ProseMirror ::selection {
border-color: rgb(61 110 150 / 0.5);
}
.lightyellow .agent-avatar {
background-color: #eef6d4;
color: #4c6330;
box-shadow: inset 0 0 0 1px rgb(76 99 48 / 0.16);
}
.lightyellow .agent-sidebar-card--active {
background-color: #eef6d4;
border-color: rgb(76 99 48 / 0.5);
}
/* Compact workspace navigation: the pale primary needs an olive foreground
on selected items instead of inheriting #F3FBD9 as text. */
html.lightyellow .workspace-compact-new-chat {
border-color: rgb(76 99 48 / 0.38) !important;
color: #4c6330 !important;
}
html.lightyellow .workspace-compact-new-chat:hover,
html.lightyellow .workspace-compact-new-chat[data-active="true"] {
border-color: rgb(76 99 48 / 0.58) !important;
background-color: #eef6d4 !important;
color: #4c6330 !important;
box-shadow: inset 0 0 0 1px rgb(76 99 48 / 0.1);
}
html.lightyellow .workspace-compact-new-chat :is(svg, span) {
color: #4c6330 !important;
}
/* Full workspace sidebar: its original selected state uses `text-primary`.
The pale yellow brand color is intentionally unsuitable for text on white,
so only this theme gets an olive selected foreground and a visible marker. */
html.lightyellow .workspace-nav-new-chat {
color: #4c6330 !important;
}
html.lightyellow .workspace-nav-new-chat :is(svg, span),
html.lightyellow .workspace-nav-item:hover :is(svg, span),
html.lightyellow .workspace-nav-item[data-active="true"] :is(svg, span) {
color: #4c6330 !important;
}
html.lightyellow .workspace-nav-new-chat:hover,
html.lightyellow .workspace-nav-new-chat[data-active="true"],
html.lightyellow .workspace-nav-item:hover,
html.lightyellow .workspace-nav-item[data-active="true"] {
background-color: #eef6d4 !important;
color: #4c6330 !important;
box-shadow: inset 3px 0 0 #4c6330;
}
html.lightyellow .gq-new-chat-button {
border-color: #4c6330 !important;
background-color: #eef6d4 !important;
color: #4c6330 !important;
}
html.lightyellow .gq-new-chat-button:hover {
background-color: #e4efbf !important;
}
html.lightyellow .gq-sidebar .agent-sidebar-card--active,
html.lightyellow .gq-history-item--active {
border-color: rgb(76 99 48 / 0.54) !important;
background-color: #eef6d4 !important;
color: #4c6330 !important;
}
html.lightyellow .gq-sidebar .agent-sidebar-card--active .text-primary,
html.lightyellow .gq-history-item--active :is(svg, span) {
color: #4c6330 !important;
}
html.lightyellow .gq-sidebar .agent-sidebar-card--active .bg-primary,
html.lightyellow .gq-history-item--active .bg-primary {
background-color: #4c6330 !important;
}
@supports not (color: oklch(1 0 0)) {
.bg-primary\/5 { background-color: rgba(190, 35, 35, 0.05); }
.bg-primary\/8 { background-color: rgba(190, 35, 35, 0.08); }
@@ -1657,4 +1832,16 @@ html.iceblue .tiptap-writing-editor .ProseMirror ::selection {
.iceblue .bg-primary\/60 { background-color: rgba(155, 206, 241, 0.60); }
.iceblue .bg-primary\/70 { background-color: rgba(155, 206, 241, 0.70); }
.iceblue .bg-primary\/90 { background-color: rgba(155, 206, 241, 0.90); }
.lightyellow .bg-primary\/5 { background-color: rgba(243, 251, 217, 0.05); }
.lightyellow .bg-primary\/8 { background-color: rgba(243, 251, 217, 0.08); }
.lightyellow .bg-primary\/10 { background-color: rgba(243, 251, 217, 0.10); }
.lightyellow .bg-primary\/14 { background-color: rgba(243, 251, 217, 0.14); }
.lightyellow .bg-primary\/15 { background-color: rgba(243, 251, 217, 0.15); }
.lightyellow .bg-primary\/20 { background-color: rgba(243, 251, 217, 0.20); }
.lightyellow .bg-primary\/25 { background-color: rgba(243, 251, 217, 0.25); }
.lightyellow .bg-primary\/30 { background-color: rgba(243, 251, 217, 0.30); }
.lightyellow .bg-primary\/60 { background-color: rgba(243, 251, 217, 0.60); }
.lightyellow .bg-primary\/70 { background-color: rgba(243, 251, 217, 0.70); }
.lightyellow .bg-primary\/90 { background-color: rgba(243, 251, 217, 0.90); }
}