@daluo/cli 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BUILD-STAMP +1 -1
- package/dist/run.js +29697 -25913
- package/dist/ui-web/assets/index-BsUQ8UFN.js +66 -0
- package/dist/ui-web/assets/index-bxja70L2.css +1 -0
- package/dist/ui-web/index.html +13 -0
- package/package.json +10 -3
- package/dist/page.css +0 -1828
- package/dist/page.js +0 -7642
package/dist/page.css
DELETED
|
@@ -1,1828 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* ─── 旧短名 → dsh 语义位(**过渡层**,2026-09-17)────────────────────────────────
|
|
3
|
-
本页 280 行组件样式此前直接写 Primer 色(--fg/--muted/--line/--soft/--accent…)。
|
|
4
|
-
这一层把旧名字重新指到 dsh 的 alias 上,于是**一次提交就把整页配色换成 dsh 的**
|
|
5
|
-
(不是每个组件各改一遍、也不是两套色并存)。语义位的选择逐条有据:
|
|
6
|
-
--soft 是侧栏/平台的底 = specific-sidebar-fill;--user 是用户气泡 = specific-bubble;
|
|
7
|
-
--hover/--active 是行悬停/选中 = alias-interactive-bg-hover/-active(dsh 侧栏行用的就是这两个)。 */
|
|
8
|
-
:root{
|
|
9
|
-
--fg:var(--daluo-alias-label-primary);
|
|
10
|
-
--muted:var(--daluo-alias-label-secondary);
|
|
11
|
-
--line:var(--daluo-alias-border-l2);
|
|
12
|
-
--soft:var(--daluo-specific-sidebar-fill);
|
|
13
|
-
--bg:var(--daluo-alias-bg-base);
|
|
14
|
-
--accent:var(--daluo-alias-link);
|
|
15
|
-
--warn:var(--daluo-alias-state-warn-primary);
|
|
16
|
-
--warnbg:var(--daluo-alias-state-warn-tertiary);
|
|
17
|
-
--danger:var(--daluo-alias-state-error-primary);
|
|
18
|
-
--hover:var(--daluo-alias-interactive-bg-hover);
|
|
19
|
-
--active:var(--daluo-alias-interactive-bg-active);
|
|
20
|
-
--user:var(--daluo-specific-bubble);
|
|
21
|
-
--hl-kw:var(--daluo-code-keyword);
|
|
22
|
-
--hl-str:var(--daluo-code-string);
|
|
23
|
-
--hl-com:var(--daluo-code-comment);
|
|
24
|
-
--hl-num:var(--daluo-code-constant);
|
|
25
|
-
}
|
|
26
|
-
/* ─── 会话区度量(逐条取自 dsh,2026-09-17)─────────────────────────────────────
|
|
27
|
-
内容列宽:dsh 是 clamp(680px, 列宽*0.64, 920px)(ConversationRoot.module.css 的 --dsh-chat-content-width,
|
|
28
|
-
用户气泡栈再乘 0.702 且不超 82%)。我们没有它那层「会话列」容器,取流区的 64% 作等价;
|
|
29
|
-
两档字号来自 MessageItem/ChatView:正文 content-font-size(已有)+ 次要 content-font-size-secondary。 */
|
|
30
|
-
:root{
|
|
31
|
-
--daluo-content-font-size-secondary:13px;
|
|
32
|
-
--daluo-content-font-delta-secondary:0px;
|
|
33
|
-
--daluo-chat-content-width:clamp(680px,64%,920px);
|
|
34
|
-
--daluo-composer-card-max-width:calc(var(--daluo-chat-content-width) + 32px);
|
|
35
|
-
}
|
|
36
|
-
/* ─── 界面缩放(spec/web-ui.md 决策 62,2026-09-18)──────────────────────────────
|
|
37
|
-
问题:本页每个 px 都是对着 dsh 的 **1280×800** 视口逐条比过的(那些数字不能重写),
|
|
38
|
-
于是在 2560×1440 上整页只有一半视觉尺寸——侧栏 280px 只占窗口 10.9%(用户实测「整体多小」)。
|
|
39
|
-
|
|
40
|
-
做法:**root 缩放**。`zoom` 把整页(字号、内边距、0.5px 线)一起放大,一个设计数字都不动——
|
|
41
|
-
这是选它而不选「把 px 全改成 rem」的理由:rem 化会推翻 8000 行里逐字验过的 dsh 值。
|
|
42
|
-
|
|
43
|
-
两个**必须**记住的实测事实(2026-09-18,活体在 2560×1271 视口上量的):
|
|
44
|
-
① 裸 `100vw/100vh` 会被 zoom 再乘一次 ⇒ `zoom:1.5` 时 `100vw` = **3840**(窗口才 2560)、
|
|
45
|
-
`documentElement.scrollWidth` 也跟着 3840 ⇒ 整页横向溢出。所以要视口尺寸的地方**一律**
|
|
46
|
-
走下面的 `--ui-vw/--ui-vh`(= 100vw ÷ 缩放,实测 = 2560 ✓)。
|
|
47
|
-
② 根元素的布局视口变成 `innerWidth/缩放`(`body` 实测 clientWidth 1699 = 2548/1.5)——
|
|
48
|
-
这也正是「100vw 撑破」的同一件事的另一面。 */
|
|
49
|
-
:root{
|
|
50
|
-
/* 当前缩放(页面 JS 的 applyUiScale 是**唯一**写它的地方:'auto' 档按窗口算)。 */
|
|
51
|
-
--ui-scale:1;
|
|
52
|
-
/* 缩放后的视口单位(布局空间的整屏宽/高)——视口尺寸一律走这两个。 */
|
|
53
|
-
--ui-vw:calc(100vw / var(--ui-scale));
|
|
54
|
-
--ui-vh:calc(100vh / var(--ui-scale));
|
|
55
|
-
zoom:var(--ui-scale);
|
|
56
|
-
}
|
|
57
|
-
/* ─── dsh 设计 token 层(**逐字移植**,2026-09-17)───────────────────────────────
|
|
58
|
-
来源:dsh 仓 packages/client/ui-theme/src/styles/design-platform.css(亮 4-78 / 暗 80-154 /
|
|
59
|
-
alias+specific 亮 156-247 / 暗 249-340)、base.css(字体与动效)、corner-shape.css、scrollbar.css。
|
|
60
|
-
移植方式**不是手抄**:.scratch/dsh-style-port/port-tokens.mjs 读源文件生成,只做两件机械改名——
|
|
61
|
-
前缀 --dsw- → --daluo-(另含 dsh 自己的 --ds-/--dsh- 两个零散前缀),选择器 body → :root、
|
|
62
|
-
body[data-ds-dark-theme] → :root[data-theme="dark"](与 daluo 既有主题接缝同一套选择器)。
|
|
63
|
-
三层结构照抄 dsh:static(色阶,只是颜色)/ alias(语义位,组件只该用这一层)/ specific(少数专用位)。
|
|
64
|
-
packages/server/tokens.dsh.json 是同一次生成的快照,ui.test.ts 逐条比对——漂移会被判据抓住。 */
|
|
65
|
-
/* 字体与动效(dsh base.css)。代码字体栈**刻意不带裸 monospace 尾巴**——Windows 中文会掉到 SimSun。 */
|
|
66
|
-
:root{--daluo-font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;--daluo-font-family-code:'SF Mono', 'JetBrains Mono', 'Fira Code', Consolas, 'Liberation Mono', Menlo, Courier, 'PingFang SC', 'Microsoft YaHei';--daluo-ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--daluo-transition-duration:0.2s;--daluo-transition-duration-fast:0.1s;--daluo-transition-duration-slow:0.3s;}
|
|
67
|
-
/* 静态色阶 —— 亮暗仅 neutral-bluish-60 一个值不同(dsh 设计如此)。 */
|
|
68
|
-
:root{
|
|
69
|
-
--daluo-static-amber-100:rgb(254, 245, 231);
|
|
70
|
-
--daluo-static-amber-400:rgb(247, 173, 49);
|
|
71
|
-
--daluo-static-amber-500:rgb(245, 158, 11);
|
|
72
|
-
--daluo-static-amber-600:rgb(221, 134, 41);
|
|
73
|
-
--daluo-static-amber-900:rgb(39, 36, 31);
|
|
74
|
-
--daluo-static-blue-100:rgb(219, 234, 254);
|
|
75
|
-
--daluo-static-blue-300:rgb(147, 197, 253);
|
|
76
|
-
--daluo-static-blue-400:rgb(96, 165, 250);
|
|
77
|
-
--daluo-static-blue-450:rgb(77, 147, 248);
|
|
78
|
-
--daluo-static-blue-500:rgb(59, 130, 246);
|
|
79
|
-
--daluo-static-blue-50:rgb(239, 246, 255);
|
|
80
|
-
--daluo-static-blue-50p:rgb(234, 243, 255);
|
|
81
|
-
--daluo-static-blue-600:rgb(37, 99, 235);
|
|
82
|
-
--daluo-static-blue-75:rgb(229, 240, 255);
|
|
83
|
-
--daluo-static-blue-800:rgb(30, 64, 175);
|
|
84
|
-
--daluo-static-blue-900:rgb(14, 48, 116);
|
|
85
|
-
--daluo-static-blue-950:rgb(23, 37, 84);
|
|
86
|
-
--daluo-static-deepseek-100:rgb(228, 237, 253);
|
|
87
|
-
--daluo-static-deepseek-200:rgb(211, 226, 255);
|
|
88
|
-
--daluo-static-deepseek-300:rgb(183, 200, 254);
|
|
89
|
-
--daluo-static-deepseek-400:rgb(103, 158, 254);
|
|
90
|
-
--daluo-static-deepseek-450:rgb(86, 134, 254);
|
|
91
|
-
--daluo-static-deepseek-500:rgb(65, 118, 230);
|
|
92
|
-
--daluo-static-deepseek-50:rgb(237, 243, 254);
|
|
93
|
-
--daluo-static-deepseek-600:rgb(72, 104, 178);
|
|
94
|
-
--daluo-static-deepseek-700-delete:rgb(47, 76, 143);
|
|
95
|
-
--daluo-static-deepseek-800:rgb(52, 65, 91);
|
|
96
|
-
--daluo-static-deepseek-900:rgb(40, 49, 66);
|
|
97
|
-
--daluo-static-green-100:rgb(230, 250, 237);
|
|
98
|
-
--daluo-static-green-400:rgb(78, 209, 126);
|
|
99
|
-
--daluo-static-green-500:rgb(34, 197, 94);
|
|
100
|
-
--daluo-static-green-900:rgb(35, 60, 44);
|
|
101
|
-
--daluo-static-neutral-00:rgb(255, 255, 255);
|
|
102
|
-
--daluo-static-neutral-1000:rgb(0, 0, 0);
|
|
103
|
-
--daluo-static-neutral-100:rgb(245, 245, 245);
|
|
104
|
-
--daluo-static-neutral-150:rgb(237, 237, 237);
|
|
105
|
-
--daluo-static-neutral-200:rgb(229, 229, 229);
|
|
106
|
-
--daluo-static-neutral-250:rgb(220, 220, 220);
|
|
107
|
-
--daluo-static-neutral-300:rgb(212, 212, 212);
|
|
108
|
-
--daluo-static-neutral-400:rgb(162, 164, 166);
|
|
109
|
-
--daluo-static-neutral-500:rgb(127, 130, 135);
|
|
110
|
-
--daluo-static-neutral-50:rgb(250, 250, 250);
|
|
111
|
-
--daluo-static-neutral-550:rgb(101, 103, 107);
|
|
112
|
-
--daluo-static-neutral-600:rgb(84, 85, 87);
|
|
113
|
-
--daluo-static-neutral-700:rgb(60, 60, 61);
|
|
114
|
-
--daluo-static-neutral-800:rgb(41, 41, 41);
|
|
115
|
-
--daluo-static-neutral-850:rgb(33, 33, 35);
|
|
116
|
-
--daluo-static-neutral-900:rgb(15, 15, 15);
|
|
117
|
-
--daluo-static-neutral-bluish-00:rgb(255, 255, 255);
|
|
118
|
-
--daluo-static-neutral-bluish-1000:rgb(15, 17, 21);
|
|
119
|
-
--daluo-static-neutral-bluish-100:rgb(235, 238, 242);
|
|
120
|
-
--daluo-static-neutral-bluish-150:rgb(233, 236, 242);
|
|
121
|
-
--daluo-static-neutral-bluish-200:rgb(225, 229, 238);
|
|
122
|
-
--daluo-static-neutral-bluish-300:rgb(207, 211, 214);
|
|
123
|
-
--daluo-static-neutral-bluish-400:rgb(173, 178, 184);
|
|
124
|
-
--daluo-static-neutral-bluish-500:rgb(151, 157, 166);
|
|
125
|
-
--daluo-static-neutral-bluish-50:rgb(249, 250, 251);
|
|
126
|
-
--daluo-static-neutral-bluish-600:rgb(129, 133, 140);
|
|
127
|
-
--daluo-static-neutral-bluish-60:rgb(245, 246, 247);
|
|
128
|
-
--daluo-static-neutral-bluish-700:rgb(97, 102, 107);
|
|
129
|
-
--daluo-static-neutral-bluish-750:rgb(67, 69, 74);
|
|
130
|
-
--daluo-static-neutral-bluish-75:rgb(241, 243, 245);
|
|
131
|
-
--daluo-static-neutral-bluish-800:rgb(53, 54, 56);
|
|
132
|
-
--daluo-static-neutral-bluish-850:rgb(44, 44, 46);
|
|
133
|
-
--daluo-static-neutral-bluish-875:rgb(35, 35, 36);
|
|
134
|
-
--daluo-static-neutral-bluish-900:rgb(27, 27, 28);
|
|
135
|
-
--daluo-static-neutral-bluish-950:rgb(21, 21, 23);
|
|
136
|
-
--daluo-static-red-100:rgb(254, 226, 226);
|
|
137
|
-
--daluo-static-red-400:rgb(242, 90, 90);
|
|
138
|
-
--daluo-static-red-500:rgb(239, 68, 68);
|
|
139
|
-
--daluo-static-red-50:rgb(254, 242, 242);
|
|
140
|
-
--daluo-static-red-600:rgb(236, 19, 19);
|
|
141
|
-
--daluo-static-red-900:rgb(87, 12, 12);
|
|
142
|
-
--daluo-alias-bg-base:var(--daluo-static-neutral-bluish-00);
|
|
143
|
-
--daluo-alias-bg-layer-1:var(--daluo-static-neutral-bluish-00);
|
|
144
|
-
--daluo-alias-bg-layer-2:var(--daluo-static-neutral-bluish-00);
|
|
145
|
-
--daluo-alias-bg-layer-3:var(--daluo-static-neutral-bluish-00);
|
|
146
|
-
--daluo-alias-bg-module-platform:var(--daluo-static-neutral-bluish-60);
|
|
147
|
-
--daluo-alias-bg-multi-select:var(--daluo-static-neutral-bluish-60);
|
|
148
|
-
--daluo-alias-bg-overlay:var(--daluo-static-neutral-bluish-150);
|
|
149
|
-
--daluo-alias-brand-primary-invert:var(--daluo-static-neutral-bluish-1000);
|
|
150
|
-
--daluo-alias-brand-primary:var(--daluo-static-neutral-bluish-1000);
|
|
151
|
-
--daluo-alias-brand-text:var(--daluo-static-neutral-bluish-1000);
|
|
152
|
-
--daluo-alias-button-contrast-fill:var(--daluo-static-neutral-bluish-700);
|
|
153
|
-
--daluo-alias-button-elevated-fill:var(--daluo-static-neutral-bluish-00);
|
|
154
|
-
--daluo-alias-button-floating-fill:var(--daluo-static-neutral-bluish-00);
|
|
155
|
-
--daluo-alias-button-floating-hover:var(--daluo-static-neutral-bluish-75);
|
|
156
|
-
--daluo-alias-button-ghost-active-border:var(--daluo-static-neutral-bluish-500);
|
|
157
|
-
--daluo-alias-button-ghost-active-fill:var(--daluo-static-neutral-bluish-100);
|
|
158
|
-
--daluo-alias-button-ghost-active-hover:var(--daluo-static-neutral-bluish-150);
|
|
159
|
-
--daluo-alias-button-info-fill:var(--daluo-static-deepseek-500);
|
|
160
|
-
--daluo-alias-button-info-hover:var(--daluo-static-deepseek-400);
|
|
161
|
-
--daluo-alias-button-primary-dimmed:var(--daluo-static-neutral-bluish-100);
|
|
162
|
-
--daluo-alias-button-primary-hover:var(--daluo-static-neutral-bluish-750);
|
|
163
|
-
--daluo-alias-interactive-bg-hover-solid:var(--daluo-static-neutral-bluish-75);
|
|
164
|
-
--daluo-alias-label-caption:var(--daluo-static-neutral-bluish-400);
|
|
165
|
-
--daluo-alias-label-dimmed:var(--daluo-static-neutral-bluish-200);
|
|
166
|
-
--daluo-alias-label-primary-bluish:var(--daluo-static-blue-900);
|
|
167
|
-
--daluo-alias-label-primary-dimmed:var(--daluo-static-neutral-bluish-950);
|
|
168
|
-
--daluo-alias-label-primary-foreground:var(--daluo-static-neutral-bluish-00);
|
|
169
|
-
--daluo-alias-label-primary-inverted:var(--daluo-static-neutral-bluish-00);
|
|
170
|
-
--daluo-alias-label-primary:var(--daluo-static-neutral-bluish-1000);
|
|
171
|
-
--daluo-alias-label-secondary:var(--daluo-static-neutral-bluish-700);
|
|
172
|
-
--daluo-alias-label-tertiary:var(--daluo-static-neutral-bluish-600);
|
|
173
|
-
--daluo-alias-link:var(--daluo-static-deepseek-500);
|
|
174
|
-
--daluo-alias-markdown-citation:var(--daluo-static-neutral-bluish-100);
|
|
175
|
-
--daluo-alias-markdown-code-block-banner:var(--daluo-static-neutral-bluish-50);
|
|
176
|
-
--daluo-alias-markdown-code-block:var(--daluo-static-neutral-bluish-50);
|
|
177
|
-
--daluo-alias-markdown-code-segment-selected:var(--daluo-static-neutral-bluish-00);
|
|
178
|
-
--daluo-alias-markdown-code-segment-unselected:var(--daluo-static-neutral-bluish-75);
|
|
179
|
-
--daluo-alias-markdown-inline-code:var(--daluo-static-neutral-50);
|
|
180
|
-
--daluo-alias-markdown-placeholder:var(--daluo-static-neutral-bluish-60);
|
|
181
|
-
--daluo-alias-markdown-tag:var(--daluo-static-neutral-bluish-75);
|
|
182
|
-
--daluo-alias-scrollbar-bg-l1:var(--daluo-static-neutral-200);
|
|
183
|
-
--daluo-alias-scrollbar-bg-l2:var(--daluo-static-neutral-200);
|
|
184
|
-
--daluo-alias-scrollbar-hover-l1:var(--daluo-static-neutral-300);
|
|
185
|
-
--daluo-alias-scrollbar-hover-l2:var(--daluo-static-neutral-300);
|
|
186
|
-
--daluo-alias-state-business-primary:var(--daluo-static-deepseek-500);
|
|
187
|
-
--daluo-alias-state-business-tertiary:var(--daluo-static-deepseek-100);
|
|
188
|
-
--daluo-alias-state-error-primary:var(--daluo-static-red-600);
|
|
189
|
-
--daluo-alias-state-error-secondary:var(--daluo-static-red-400);
|
|
190
|
-
--daluo-alias-state-success-primary:var(--daluo-static-green-500);
|
|
191
|
-
--daluo-alias-state-success-secondary:var(--daluo-static-green-400);
|
|
192
|
-
--daluo-alias-state-success-tertiary:var(--daluo-static-green-100);
|
|
193
|
-
--daluo-alias-state-warn-label:var(--daluo-static-amber-600);
|
|
194
|
-
--daluo-alias-state-warn-primary:var(--daluo-static-amber-500);
|
|
195
|
-
--daluo-alias-state-warn-secondary:var(--daluo-static-amber-400);
|
|
196
|
-
--daluo-alias-state-warn-tertiary:var(--daluo-static-amber-100);
|
|
197
|
-
--daluo-alias-toast-bg:var(--daluo-static-neutral-bluish-800);
|
|
198
|
-
--daluo-alias-tooltip-bg:var(--daluo-static-neutral-bluish-850);
|
|
199
|
-
--daluo-specific-bubble-highlight:var(--daluo-static-deepseek-200);
|
|
200
|
-
--daluo-specific-bubble:var(--daluo-static-deepseek-50);
|
|
201
|
-
--daluo-specific-input-major:var(--daluo-static-neutral-bluish-00);
|
|
202
|
-
--daluo-specific-login-input:var(--daluo-static-neutral-bluish-50);
|
|
203
|
-
--daluo-specific-selector:var(--daluo-static-neutral-bluish-60);
|
|
204
|
-
--daluo-specific-sidebar-fill:var(--daluo-static-neutral-bluish-50);
|
|
205
|
-
--daluo-specific-sidebar-nav-item-active-accent:var(--daluo-static-deepseek-100);
|
|
206
|
-
--daluo-specific-sidebar-nav-item-active:var(--daluo-static-neutral-bluish-100);
|
|
207
|
-
--daluo-specific-sidebar-nav-item-hover:var(--daluo-static-neutral-bluish-75);
|
|
208
|
-
--daluo-specific-tip:var(--daluo-static-neutral-bluish-60);
|
|
209
|
-
}
|
|
210
|
-
:root[data-theme="dark"]{
|
|
211
|
-
--daluo-static-amber-100:rgb(254, 245, 231);
|
|
212
|
-
--daluo-static-amber-400:rgb(247, 173, 49);
|
|
213
|
-
--daluo-static-amber-500:rgb(245, 158, 11);
|
|
214
|
-
--daluo-static-amber-600:rgb(221, 134, 41);
|
|
215
|
-
--daluo-static-amber-900:rgb(39, 36, 31);
|
|
216
|
-
--daluo-static-blue-100:rgb(219, 234, 254);
|
|
217
|
-
--daluo-static-blue-300:rgb(147, 197, 253);
|
|
218
|
-
--daluo-static-blue-400:rgb(96, 165, 250);
|
|
219
|
-
--daluo-static-blue-450:rgb(77, 147, 248);
|
|
220
|
-
--daluo-static-blue-500:rgb(59, 130, 246);
|
|
221
|
-
--daluo-static-blue-50:rgb(239, 246, 255);
|
|
222
|
-
--daluo-static-blue-50p:rgb(234, 243, 255);
|
|
223
|
-
--daluo-static-blue-600:rgb(37, 99, 235);
|
|
224
|
-
--daluo-static-blue-75:rgb(229, 240, 255);
|
|
225
|
-
--daluo-static-blue-800:rgb(30, 64, 175);
|
|
226
|
-
--daluo-static-blue-900:rgb(14, 48, 116);
|
|
227
|
-
--daluo-static-blue-950:rgb(23, 37, 84);
|
|
228
|
-
--daluo-static-deepseek-100:rgb(228, 237, 253);
|
|
229
|
-
--daluo-static-deepseek-200:rgb(211, 226, 255);
|
|
230
|
-
--daluo-static-deepseek-300:rgb(183, 200, 254);
|
|
231
|
-
--daluo-static-deepseek-400:rgb(103, 158, 254);
|
|
232
|
-
--daluo-static-deepseek-450:rgb(86, 134, 254);
|
|
233
|
-
--daluo-static-deepseek-500:rgb(65, 118, 230);
|
|
234
|
-
--daluo-static-deepseek-50:rgb(237, 243, 254);
|
|
235
|
-
--daluo-static-deepseek-600:rgb(72, 104, 178);
|
|
236
|
-
--daluo-static-deepseek-700-delete:rgb(47, 76, 143);
|
|
237
|
-
--daluo-static-deepseek-800:rgb(52, 65, 91);
|
|
238
|
-
--daluo-static-deepseek-900:rgb(40, 49, 66);
|
|
239
|
-
--daluo-static-green-100:rgb(230, 250, 237);
|
|
240
|
-
--daluo-static-green-400:rgb(78, 209, 126);
|
|
241
|
-
--daluo-static-green-500:rgb(34, 197, 94);
|
|
242
|
-
--daluo-static-green-900:rgb(35, 60, 44);
|
|
243
|
-
--daluo-static-neutral-00:rgb(255, 255, 255);
|
|
244
|
-
--daluo-static-neutral-1000:rgb(0, 0, 0);
|
|
245
|
-
--daluo-static-neutral-100:rgb(245, 245, 245);
|
|
246
|
-
--daluo-static-neutral-150:rgb(237, 237, 237);
|
|
247
|
-
--daluo-static-neutral-200:rgb(229, 229, 229);
|
|
248
|
-
--daluo-static-neutral-250:rgb(220, 220, 220);
|
|
249
|
-
--daluo-static-neutral-300:rgb(212, 212, 212);
|
|
250
|
-
--daluo-static-neutral-400:rgb(162, 164, 166);
|
|
251
|
-
--daluo-static-neutral-500:rgb(127, 130, 135);
|
|
252
|
-
--daluo-static-neutral-50:rgb(250, 250, 250);
|
|
253
|
-
--daluo-static-neutral-550:rgb(101, 103, 107);
|
|
254
|
-
--daluo-static-neutral-600:rgb(84, 85, 87);
|
|
255
|
-
--daluo-static-neutral-700:rgb(60, 60, 61);
|
|
256
|
-
--daluo-static-neutral-800:rgb(41, 41, 41);
|
|
257
|
-
--daluo-static-neutral-850:rgb(33, 33, 35);
|
|
258
|
-
--daluo-static-neutral-900:rgb(15, 15, 15);
|
|
259
|
-
--daluo-static-neutral-bluish-00:rgb(255, 255, 255);
|
|
260
|
-
--daluo-static-neutral-bluish-1000:rgb(15, 17, 21);
|
|
261
|
-
--daluo-static-neutral-bluish-100:rgb(235, 238, 242);
|
|
262
|
-
--daluo-static-neutral-bluish-150:rgb(233, 236, 242);
|
|
263
|
-
--daluo-static-neutral-bluish-200:rgb(225, 229, 238);
|
|
264
|
-
--daluo-static-neutral-bluish-300:rgb(207, 211, 214);
|
|
265
|
-
--daluo-static-neutral-bluish-400:rgb(173, 178, 184);
|
|
266
|
-
--daluo-static-neutral-bluish-500:rgb(151, 157, 166);
|
|
267
|
-
--daluo-static-neutral-bluish-50:rgb(249, 250, 251);
|
|
268
|
-
--daluo-static-neutral-bluish-600:rgb(129, 133, 140);
|
|
269
|
-
--daluo-static-neutral-bluish-60:rgb(249, 250, 251);
|
|
270
|
-
--daluo-static-neutral-bluish-700:rgb(97, 102, 107);
|
|
271
|
-
--daluo-static-neutral-bluish-750:rgb(67, 69, 74);
|
|
272
|
-
--daluo-static-neutral-bluish-75:rgb(241, 243, 245);
|
|
273
|
-
--daluo-static-neutral-bluish-800:rgb(53, 54, 56);
|
|
274
|
-
--daluo-static-neutral-bluish-850:rgb(44, 44, 46);
|
|
275
|
-
--daluo-static-neutral-bluish-875:rgb(35, 35, 36);
|
|
276
|
-
--daluo-static-neutral-bluish-900:rgb(27, 27, 28);
|
|
277
|
-
--daluo-static-neutral-bluish-950:rgb(21, 21, 23);
|
|
278
|
-
--daluo-static-red-100:rgb(254, 226, 226);
|
|
279
|
-
--daluo-static-red-400:rgb(242, 90, 90);
|
|
280
|
-
--daluo-static-red-500:rgb(239, 68, 68);
|
|
281
|
-
--daluo-static-red-50:rgb(254, 242, 242);
|
|
282
|
-
--daluo-static-red-600:rgb(236, 19, 19);
|
|
283
|
-
--daluo-static-red-900:rgb(87, 12, 12);
|
|
284
|
-
--daluo-alias-bg-base:var(--daluo-static-neutral-bluish-950);
|
|
285
|
-
--daluo-alias-bg-layer-1:var(--daluo-static-neutral-bluish-875);
|
|
286
|
-
--daluo-alias-bg-layer-2:var(--daluo-static-neutral-bluish-850);
|
|
287
|
-
--daluo-alias-bg-layer-3:var(--daluo-static-neutral-bluish-800);
|
|
288
|
-
--daluo-alias-bg-module-platform:var(--daluo-static-neutral-bluish-800);
|
|
289
|
-
--daluo-alias-bg-multi-select:var(--daluo-static-neutral-850);
|
|
290
|
-
--daluo-alias-bg-overlay:var(--daluo-static-neutral-bluish-700);
|
|
291
|
-
--daluo-alias-brand-primary-invert:var(--daluo-static-neutral-bluish-50);
|
|
292
|
-
--daluo-alias-brand-primary-new-colorprimary-new-color:var(--daluo-static-deepseek-450);
|
|
293
|
-
--daluo-alias-brand-primary:var(--daluo-static-neutral-bluish-50);
|
|
294
|
-
--daluo-alias-brand-text:var(--daluo-static-neutral-bluish-50);
|
|
295
|
-
--daluo-alias-button-contrast-fill:var(--daluo-static-neutral-bluish-50);
|
|
296
|
-
--daluo-alias-button-elevated-fill:var(--daluo-static-neutral-bluish-750);
|
|
297
|
-
--daluo-alias-button-floating-fill:var(--daluo-static-neutral-bluish-850);
|
|
298
|
-
--daluo-alias-button-floating-hover:var(--daluo-static-neutral-bluish-800);
|
|
299
|
-
--daluo-alias-button-ghost-active-border:var(--daluo-static-neutral-bluish-600);
|
|
300
|
-
--daluo-alias-button-ghost-active-fill:var(--daluo-static-neutral-bluish-750);
|
|
301
|
-
--daluo-alias-button-ghost-active-hover:var(--daluo-static-neutral-bluish-700);
|
|
302
|
-
--daluo-alias-button-info-fill:var(--daluo-static-deepseek-400);
|
|
303
|
-
--daluo-alias-button-info-hover:var(--daluo-static-deepseek-500);
|
|
304
|
-
--daluo-alias-button-primary-dimmed:var(--daluo-static-neutral-bluish-750);
|
|
305
|
-
--daluo-alias-button-primary-hover:var(--daluo-static-neutral-bluish-100);
|
|
306
|
-
--daluo-alias-interactive-bg-hover-solid:var(--daluo-static-neutral-bluish-800);
|
|
307
|
-
--daluo-alias-label-caption:var(--daluo-static-neutral-bluish-600);
|
|
308
|
-
--daluo-alias-label-dimmed:var(--daluo-static-neutral-bluish-750);
|
|
309
|
-
--daluo-alias-label-primary-bluish:var(--daluo-static-neutral-bluish-50);
|
|
310
|
-
--daluo-alias-label-primary-dimmed:var(--daluo-static-neutral-bluish-100);
|
|
311
|
-
--daluo-alias-label-primary-foreground:var(--daluo-static-neutral-bluish-1000);
|
|
312
|
-
--daluo-alias-label-primary-inverted:var(--daluo-static-neutral-bluish-800);
|
|
313
|
-
--daluo-alias-label-primary:var(--daluo-static-neutral-bluish-50);
|
|
314
|
-
--daluo-alias-label-secondary:var(--daluo-static-neutral-bluish-300);
|
|
315
|
-
--daluo-alias-label-tertiary:var(--daluo-static-neutral-bluish-400);
|
|
316
|
-
--daluo-alias-link:var(--daluo-static-deepseek-400);
|
|
317
|
-
--daluo-alias-markdown-citation:var(--daluo-static-neutral-bluish-800);
|
|
318
|
-
--daluo-alias-markdown-code-block-banner:var(--daluo-static-neutral-bluish-850);
|
|
319
|
-
--daluo-alias-markdown-code-block:var(--daluo-static-neutral-bluish-900);
|
|
320
|
-
--daluo-alias-markdown-code-segment-selected:var(--daluo-static-neutral-bluish-800);
|
|
321
|
-
--daluo-alias-markdown-code-segment-unselected:var(--daluo-static-neutral-bluish-900);
|
|
322
|
-
--daluo-alias-markdown-inline-code:var(--daluo-static-neutral-800);
|
|
323
|
-
--daluo-alias-markdown-placeholder:var(--daluo-static-neutral-bluish-850);
|
|
324
|
-
--daluo-alias-markdown-tag:var(--daluo-static-neutral-bluish-850);
|
|
325
|
-
--daluo-alias-scrollbar-bg-l1:var(--daluo-static-neutral-700);
|
|
326
|
-
--daluo-alias-scrollbar-bg-l2:var(--daluo-static-neutral-600);
|
|
327
|
-
--daluo-alias-scrollbar-hover-l1:var(--daluo-static-neutral-600);
|
|
328
|
-
--daluo-alias-scrollbar-hover-l2:var(--daluo-static-neutral-550);
|
|
329
|
-
--daluo-alias-state-business-primary:var(--daluo-static-deepseek-400);
|
|
330
|
-
--daluo-alias-state-business-tertiary:var(--daluo-static-deepseek-800);
|
|
331
|
-
--daluo-alias-state-error-primary:var(--daluo-static-red-400);
|
|
332
|
-
--daluo-alias-state-error-secondary:var(--daluo-static-red-400);
|
|
333
|
-
--daluo-alias-state-success-primary:var(--daluo-static-green-500);
|
|
334
|
-
--daluo-alias-state-success-secondary:var(--daluo-static-green-400);
|
|
335
|
-
--daluo-alias-state-success-tertiary:var(--daluo-static-green-900);
|
|
336
|
-
--daluo-alias-state-warn-label:var(--daluo-static-amber-600);
|
|
337
|
-
--daluo-alias-state-warn-primary:var(--daluo-static-amber-500);
|
|
338
|
-
--daluo-alias-state-warn-secondary:var(--daluo-static-amber-400);
|
|
339
|
-
--daluo-alias-state-warn-tertiary:var(--daluo-static-amber-900);
|
|
340
|
-
--daluo-alias-toast-bg:var(--daluo-static-neutral-bluish-750);
|
|
341
|
-
--daluo-alias-tooltip-bg:var(--daluo-static-neutral-bluish-750);
|
|
342
|
-
--daluo-specific-bubble-highlight:var(--daluo-static-neutral-bluish-750);
|
|
343
|
-
--daluo-specific-bubble:var(--daluo-static-neutral-bluish-850);
|
|
344
|
-
--daluo-specific-input-major:var(--daluo-static-neutral-bluish-850);
|
|
345
|
-
--daluo-specific-login-input:var(--daluo-static-neutral-bluish-900);
|
|
346
|
-
--daluo-specific-selector:var(--daluo-static-neutral-bluish-800);
|
|
347
|
-
--daluo-specific-sidebar-fill:var(--daluo-static-neutral-bluish-900);
|
|
348
|
-
--daluo-specific-sidebar-nav-item-active-accent:var(--daluo-static-neutral-bluish-800);
|
|
349
|
-
--daluo-specific-sidebar-nav-item-active:var(--daluo-static-neutral-bluish-750);
|
|
350
|
-
--daluo-specific-sidebar-nav-item-hover:var(--daluo-static-neutral-bluish-850);
|
|
351
|
-
--daluo-specific-tip:var(--daluo-static-neutral-bluish-800);
|
|
352
|
-
}
|
|
353
|
-
/* 语义别名 + 专用位(组件只消费这一层;值可以是 var(),也可以是字面 rgba)。 */
|
|
354
|
-
:root{
|
|
355
|
-
--daluo-alias-bg-mask-1:rgba(0, 0, 0, 0.24);
|
|
356
|
-
--daluo-alias-bg-mask-2:rgba(0, 0, 0, 0.12);
|
|
357
|
-
--daluo-alias-bg-mask-3:rgba(0, 0, 0, 0.48);
|
|
358
|
-
--daluo-alias-bg-mask-photo:rgba(0, 0, 0, 0.88);
|
|
359
|
-
--daluo-alias-bg-mask-drop:rgba(255, 255, 255, 0.7);
|
|
360
|
-
--daluo-alias-bg-skeleton:rgba(0, 0, 0, 0.04);
|
|
361
|
-
--daluo-alias-border-inverted2:rgba(0, 0, 0, 0);
|
|
362
|
-
--daluo-alias-border-inverted:rgba(0, 0, 0, 0);
|
|
363
|
-
--daluo-alias-border-l1:rgba(0, 0, 0, 0.04);
|
|
364
|
-
--daluo-alias-border-l2-darkmode-thin:rgba(0, 0, 0, 0.1);
|
|
365
|
-
--daluo-alias-border-l2:rgba(0, 0, 0, 0.1);
|
|
366
|
-
--daluo-alias-border-l3:rgba(0, 0, 0, 0.12);
|
|
367
|
-
--daluo-alias-border-l4:rgba(0, 0, 0, 0.16);
|
|
368
|
-
--daluo-alias-brand-primary-new-colorprimary-new-color:rgb(65, 118, 230);
|
|
369
|
-
--daluo-alias-button-primary-fill:var(--daluo-alias-brand-primary);
|
|
370
|
-
--daluo-alias-button-tool-bar-fill-invisible:rgba(31, 31, 31, 0.36);
|
|
371
|
-
--daluo-alias-button-tool-bar-fill:rgba(84, 85, 87, 0.5);
|
|
372
|
-
--daluo-alias-button-tool-bar-hover:rgba(84, 85, 87, 0.6);
|
|
373
|
-
--daluo-alias-interactive-bg-active:rgba(38, 49, 72, 0.1);
|
|
374
|
-
--daluo-alias-interactive-bg-hover-accent:rgba(38, 49, 72, 0.14);
|
|
375
|
-
--daluo-alias-interactive-bg-hover-danger:rgba(236, 19, 19, 0.05);
|
|
376
|
-
--daluo-alias-interactive-bg-hover:rgba(38, 49, 72, 0.06);
|
|
377
|
-
--daluo-specific-menu:var(--daluo-alias-bg-layer-3);
|
|
378
|
-
}
|
|
379
|
-
:root[data-theme="dark"]{
|
|
380
|
-
--daluo-alias-bg-mask-1:rgba(0, 0, 0, 0.5);
|
|
381
|
-
--daluo-alias-bg-mask-2:rgba(0, 0, 0, 0.2);
|
|
382
|
-
--daluo-alias-bg-mask-3:rgba(0, 0, 0, 0.48);
|
|
383
|
-
--daluo-alias-bg-mask-photo:rgba(0, 0, 0, 0.88);
|
|
384
|
-
--daluo-alias-bg-mask-drop:rgba(39, 39, 48, 0.7);
|
|
385
|
-
--daluo-alias-bg-skeleton:rgba(255, 255, 255, 0.08);
|
|
386
|
-
--daluo-alias-border-inverted2:rgba(255, 255, 255, 0.08);
|
|
387
|
-
--daluo-alias-border-inverted:rgba(255, 255, 255, 0.06);
|
|
388
|
-
--daluo-alias-border-l1:rgba(255, 255, 255, 0.06);
|
|
389
|
-
--daluo-alias-border-l2-darkmode-thin:rgba(255, 255, 255, 0.06);
|
|
390
|
-
--daluo-alias-border-l2:rgba(255, 255, 255, 0.12);
|
|
391
|
-
--daluo-alias-border-l3:rgba(255, 255, 255, 0.16);
|
|
392
|
-
--daluo-alias-border-l4:rgba(255, 255, 255, 0.2);
|
|
393
|
-
--daluo-alias-button-primary-fill:var(--daluo-alias-brand-primary);
|
|
394
|
-
--daluo-alias-button-tool-bar-fill-invisible:rgba(31, 31, 31, 0.36);
|
|
395
|
-
--daluo-alias-button-tool-bar-fill:rgba(84, 85, 87, 0.5);
|
|
396
|
-
--daluo-alias-button-tool-bar-hover:rgba(84, 85, 87, 0.6);
|
|
397
|
-
--daluo-alias-interactive-bg-active:rgba(255, 255, 255, 0.14);
|
|
398
|
-
--daluo-alias-interactive-bg-hover-accent:rgba(255, 255, 255, 0.24);
|
|
399
|
-
--daluo-alias-interactive-bg-hover-danger:rgba(242, 90, 90, 0.15);
|
|
400
|
-
--daluo-alias-interactive-bg-hover:rgba(255, 255, 255, 0.08);
|
|
401
|
-
--daluo-specific-menu:var(--daluo-alias-bg-layer-3);
|
|
402
|
-
}
|
|
403
|
-
/* 圆角曲率:圆 → 超椭圆(1.5)(介于圆弧与 squircle 之间)。引擎不支持时 token 与规则都不存在 ⇒ 退回圆角。 */
|
|
404
|
-
@supports (corner-shape: superellipse(1.5)){
|
|
405
|
-
:root{--daluo-corner-shape:superellipse(1.5)}
|
|
406
|
-
*,*::before,*::after{corner-shape:var(--daluo-corner-shape)}
|
|
407
|
-
}
|
|
408
|
-
/* 排印 token(同一份表):dsh 的 markdown 标题/正文/代码字号行高**全是** 'calc(Npx + delta)' 的简写,
|
|
409
|
-
所以对话字号偏好一动,标题与正文一起缩放(这正是它排版稳的原因)。我们照抄,组件按角色取。 */
|
|
410
|
-
:root{
|
|
411
|
-
--daluo-font-markdown-h1:700 calc(21px + var(--daluo-content-font-delta)) / calc(30px + var(--daluo-content-font-delta)) var(--daluo-font-family);
|
|
412
|
-
--daluo-font-markdown-h1-font-family:var(--daluo-font-family);
|
|
413
|
-
--daluo-font-markdown-h1-font-weight:700;
|
|
414
|
-
--daluo-font-markdown-h1-line-height:calc(30px + var(--daluo-content-font-delta));
|
|
415
|
-
--daluo-font-markdown-h1-font-size:calc(21px + var(--daluo-content-font-delta));
|
|
416
|
-
--daluo-font-markdown-h1-font-style:normal;
|
|
417
|
-
--daluo-font-markdown-h2:700 calc(19px + var(--daluo-content-font-delta)) / calc(28px + var(--daluo-content-font-delta)) var(--daluo-font-family);
|
|
418
|
-
--daluo-font-markdown-h2-font-family:var(--daluo-font-family);
|
|
419
|
-
--daluo-font-markdown-h2-font-weight:700;
|
|
420
|
-
--daluo-font-markdown-h2-line-height:calc(28px + var(--daluo-content-font-delta));
|
|
421
|
-
--daluo-font-markdown-h2-font-size:calc(19px + var(--daluo-content-font-delta));
|
|
422
|
-
--daluo-font-markdown-h2-font-style:normal;
|
|
423
|
-
--daluo-font-markdown-h3:700 calc(18px + var(--daluo-content-font-delta)) / calc(26px + var(--daluo-content-font-delta)) var(--daluo-font-family);
|
|
424
|
-
--daluo-font-markdown-h3-font-family:var(--daluo-font-family);
|
|
425
|
-
--daluo-font-markdown-h3-font-weight:700;
|
|
426
|
-
--daluo-font-markdown-h3-line-height:calc(26px + var(--daluo-content-font-delta));
|
|
427
|
-
--daluo-font-markdown-h3-font-size:calc(18px + var(--daluo-content-font-delta));
|
|
428
|
-
--daluo-font-markdown-h3-font-style:normal;
|
|
429
|
-
--daluo-font-markdown-h4:600 var(--daluo-content-font-size, 14px) / calc(24px + var(--daluo-content-font-delta)) var(--daluo-font-family);
|
|
430
|
-
--daluo-font-markdown-h4-font-family:var(--daluo-font-family);
|
|
431
|
-
--daluo-font-markdown-h4-font-weight:600;
|
|
432
|
-
--daluo-font-markdown-h4-line-height:calc(24px + var(--daluo-content-font-delta));
|
|
433
|
-
--daluo-font-markdown-h4-font-size:var(--daluo-content-font-size, 14px);
|
|
434
|
-
--daluo-font-markdown-h4-font-style:normal;
|
|
435
|
-
--daluo-font-markdown-base:var(--daluo-content-font-size, 14px) / calc(24px + var(--daluo-content-font-delta)) var(--daluo-font-family);
|
|
436
|
-
--daluo-font-markdown-base-font-family:var(--daluo-font-family);
|
|
437
|
-
--daluo-font-markdown-base-font-weight:400;
|
|
438
|
-
--daluo-font-markdown-base-line-height:calc(24px + var(--daluo-content-font-delta));
|
|
439
|
-
--daluo-font-markdown-base-font-size:var(--daluo-content-font-size, 14px);
|
|
440
|
-
--daluo-font-markdown-base-font-style:normal;
|
|
441
|
-
--daluo-font-markdown-base-strong:600 var(--daluo-content-font-size, 14px) / calc(24px + var(--daluo-content-font-delta)) var(--daluo-font-family);
|
|
442
|
-
--daluo-font-markdown-base-strong-font-family:var(--daluo-font-family);
|
|
443
|
-
--daluo-font-markdown-base-strong-font-weight:600;
|
|
444
|
-
--daluo-font-markdown-base-strong-line-height:calc(24px + var(--daluo-content-font-delta));
|
|
445
|
-
--daluo-font-markdown-base-strong-font-size:var(--daluo-content-font-size, 14px);
|
|
446
|
-
--daluo-font-markdown-base-strong-font-style:normal;
|
|
447
|
-
--daluo-font-markdown-base-italic:italic var(--daluo-content-font-size, 14px) / calc(24px + var(--daluo-content-font-delta)) var(--daluo-font-family);
|
|
448
|
-
--daluo-font-markdown-base-italic-font-family:var(--daluo-font-family);
|
|
449
|
-
--daluo-font-markdown-base-italic-font-weight:400;
|
|
450
|
-
--daluo-font-markdown-base-italic-line-height:calc(24px + var(--daluo-content-font-delta));
|
|
451
|
-
--daluo-font-markdown-base-italic-font-size:var(--daluo-content-font-size, 14px);
|
|
452
|
-
--daluo-font-markdown-base-italic-font-style:italic;
|
|
453
|
-
--daluo-font-markdown-base-strong-italic:italic 600 var(--daluo-content-font-size, 14px) / calc(24px + var(--daluo-content-font-delta)) var(--daluo-font-family);
|
|
454
|
-
--daluo-font-markdown-base-strong-italic-font-family:var(--daluo-font-family);
|
|
455
|
-
--daluo-font-markdown-base-strong-italic-font-weight:600;
|
|
456
|
-
--daluo-font-markdown-base-strong-italic-line-height:calc(24px + var(--daluo-content-font-delta));
|
|
457
|
-
--daluo-font-markdown-base-strong-italic-font-size:var(--daluo-content-font-size, 14px);
|
|
458
|
-
--daluo-font-markdown-base-strong-italic-font-style:italic;
|
|
459
|
-
--daluo-font-markdown-table:var(--daluo-content-font-size-secondary, 13px)/calc(22px + var(--daluo-content-font-delta-secondary, 0px)) var(--daluo-font-family);
|
|
460
|
-
--daluo-font-markdown-table-font-family:var(--daluo-font-family);
|
|
461
|
-
--daluo-font-markdown-table-font-weight:400;
|
|
462
|
-
--daluo-font-markdown-table-line-height:calc(22px + var(--daluo-content-font-delta-secondary, 0px));
|
|
463
|
-
--daluo-font-markdown-table-font-size:var(--daluo-content-font-size-secondary, 13px);
|
|
464
|
-
--daluo-font-markdown-table-font-style:normal;
|
|
465
|
-
--daluo-font-markdown-table-head:500 var(--daluo-content-font-size-secondary, 13px)/calc(22px + var(--daluo-content-font-delta-secondary, 0px)) var(--daluo-font-family);
|
|
466
|
-
--daluo-font-markdown-table-head-font-family:var(--daluo-font-family);
|
|
467
|
-
--daluo-font-markdown-table-head-font-weight:500;
|
|
468
|
-
--daluo-font-markdown-table-head-line-height:calc(22px + var(--daluo-content-font-delta-secondary, 0px));
|
|
469
|
-
--daluo-font-markdown-table-head-font-size:var(--daluo-content-font-size-secondary, 13px);
|
|
470
|
-
--daluo-font-markdown-table-head-font-style:normal;
|
|
471
|
-
--daluo-font-markdown-small:12px/20px var(--daluo-font-family);
|
|
472
|
-
--daluo-font-markdown-small-font-family:var(--daluo-font-family);
|
|
473
|
-
--daluo-font-markdown-small-font-weight:400;
|
|
474
|
-
--daluo-font-markdown-small-line-height:20px;
|
|
475
|
-
--daluo-font-markdown-small-font-size:12px;
|
|
476
|
-
--daluo-font-markdown-small-font-style:normal;
|
|
477
|
-
--daluo-font-markdown-small-strong:600 12px/20px var(--daluo-font-family);
|
|
478
|
-
--daluo-font-markdown-small-strong-font-family:var(--daluo-font-family);
|
|
479
|
-
--daluo-font-markdown-small-strong-font-weight:600;
|
|
480
|
-
--daluo-font-markdown-small-strong-line-height:20px;
|
|
481
|
-
--daluo-font-markdown-small-strong-font-size:12px;
|
|
482
|
-
--daluo-font-markdown-small-strong-font-style:normal;
|
|
483
|
-
--daluo-font-markdown-small-italic:italic 12px/20px var(--daluo-font-family);
|
|
484
|
-
--daluo-font-markdown-small-italic-font-family:var(--daluo-font-family);
|
|
485
|
-
--daluo-font-markdown-small-italic-font-weight:400;
|
|
486
|
-
--daluo-font-markdown-small-italic-line-height:20px;
|
|
487
|
-
--daluo-font-markdown-small-italic-font-size:12px;
|
|
488
|
-
--daluo-font-markdown-small-italic-font-style:italic;
|
|
489
|
-
--daluo-font-markdown-small-strong-italic:italic 600 12px/20px var(--daluo-font-family);
|
|
490
|
-
--daluo-font-markdown-small-strong-italic-font-family:var(--daluo-font-family);
|
|
491
|
-
--daluo-font-markdown-small-strong-italic-font-weight:600;
|
|
492
|
-
--daluo-font-markdown-small-strong-italic-line-height:20px;
|
|
493
|
-
--daluo-font-markdown-small-strong-italic-font-size:12px;
|
|
494
|
-
--daluo-font-markdown-small-strong-italic-font-style:italic;
|
|
495
|
-
--daluo-font-markdown-code:12px/19px var(--daluo-font-family-code);
|
|
496
|
-
--daluo-font-markdown-code-font-family:var(--daluo-font-family-code);
|
|
497
|
-
--daluo-font-markdown-code-font-weight:400;
|
|
498
|
-
--daluo-font-markdown-code-line-height:19px;
|
|
499
|
-
--daluo-font-markdown-code-font-size:12px;
|
|
500
|
-
--daluo-font-markdown-code-font-style:normal;
|
|
501
|
-
--daluo-font-markdown-code-block:11px/19px var(--daluo-font-family-code);
|
|
502
|
-
--daluo-font-markdown-code-block-font-family:var(--daluo-font-family-code);
|
|
503
|
-
--daluo-font-markdown-code-block-font-weight:400;
|
|
504
|
-
--daluo-font-markdown-code-block-line-height:19px;
|
|
505
|
-
--daluo-font-markdown-code-block-font-size:11px;
|
|
506
|
-
--daluo-font-markdown-code-block-font-style:normal;
|
|
507
|
-
--daluo-font-markdown-code-block-small:11px/16px var(--daluo-font-family-code);
|
|
508
|
-
--daluo-font-markdown-code-block-small-font-family:var(--daluo-font-family-code);
|
|
509
|
-
--daluo-font-markdown-code-block-small-font-weight:400;
|
|
510
|
-
--daluo-font-markdown-code-block-small-line-height:16px;
|
|
511
|
-
--daluo-font-markdown-code-block-small-font-size:11px;
|
|
512
|
-
--daluo-font-markdown-code-block-small-font-style:normal;
|
|
513
|
-
--daluo-font-xl-24:600 24px/32px var(--daluo-font-family);
|
|
514
|
-
--daluo-font-xl-24-font-family:var(--daluo-font-family);
|
|
515
|
-
--daluo-font-xl-24-font-weight:600;
|
|
516
|
-
--daluo-font-xl-24-line-height:32px;
|
|
517
|
-
--daluo-font-xl-24-font-size:24px;
|
|
518
|
-
--daluo-font-xl-24-font-style:normal;
|
|
519
|
-
--daluo-font-l-20:500 20px/28px var(--daluo-font-family);
|
|
520
|
-
--daluo-font-l-20-font-family:var(--daluo-font-family);
|
|
521
|
-
--daluo-font-l-20-font-weight:500;
|
|
522
|
-
--daluo-font-l-20-line-height:28px;
|
|
523
|
-
--daluo-font-l-20-font-size:20px;
|
|
524
|
-
--daluo-font-l-20-font-style:normal;
|
|
525
|
-
--daluo-font-m-18:500 16px/28px var(--daluo-font-family);
|
|
526
|
-
--daluo-font-m-18-font-family:var(--daluo-font-family);
|
|
527
|
-
--daluo-font-m-18-font-weight:500;
|
|
528
|
-
--daluo-font-m-18-line-height:28px;
|
|
529
|
-
--daluo-font-m-18-font-size:16px;
|
|
530
|
-
--daluo-font-m-18-font-style:normal;
|
|
531
|
-
--daluo-font-base-16:16px/24px var(--daluo-font-family);
|
|
532
|
-
--daluo-font-base-16-font-family:var(--daluo-font-family);
|
|
533
|
-
--daluo-font-base-16-font-weight:400;
|
|
534
|
-
--daluo-font-base-16-line-height:24px;
|
|
535
|
-
--daluo-font-base-16-font-size:16px;
|
|
536
|
-
--daluo-font-base-16-font-style:normal;
|
|
537
|
-
--daluo-font-base-strong-16:500 16px/24px var(--daluo-font-family);
|
|
538
|
-
--daluo-font-base-strong-16-font-family:var(--daluo-font-family);
|
|
539
|
-
--daluo-font-base-strong-16-font-weight:500;
|
|
540
|
-
--daluo-font-base-strong-16-line-height:24px;
|
|
541
|
-
--daluo-font-base-strong-16-font-size:16px;
|
|
542
|
-
--daluo-font-base-strong-16-font-style:normal;
|
|
543
|
-
--daluo-font-s-14:14px/22px var(--daluo-font-family);
|
|
544
|
-
--daluo-font-s-14-font-family:var(--daluo-font-family);
|
|
545
|
-
--daluo-font-s-14-font-weight:400;
|
|
546
|
-
--daluo-font-s-14-line-height:22px;
|
|
547
|
-
--daluo-font-s-14-font-size:14px;
|
|
548
|
-
--daluo-font-s-14-font-style:normal;
|
|
549
|
-
--daluo-font-s-strong-14:500 14px/22px var(--daluo-font-family);
|
|
550
|
-
--daluo-font-s-strong-14-font-family:var(--daluo-font-family);
|
|
551
|
-
--daluo-font-s-strong-14-font-weight:500;
|
|
552
|
-
--daluo-font-s-strong-14-line-height:22px;
|
|
553
|
-
--daluo-font-s-strong-14-font-size:14px;
|
|
554
|
-
--daluo-font-s-strong-14-font-style:normal;
|
|
555
|
-
--daluo-font-xs-13:13px/20px var(--daluo-font-family);
|
|
556
|
-
--daluo-font-xs-13-font-family:var(--daluo-font-family);
|
|
557
|
-
--daluo-font-xs-13-font-weight:400;
|
|
558
|
-
--daluo-font-xs-13-line-height:20px;
|
|
559
|
-
--daluo-font-xs-13-font-size:13px;
|
|
560
|
-
--daluo-font-xs-13-font-style:normal;
|
|
561
|
-
--daluo-font-xs-strong-13:500 13px/20px var(--daluo-font-family);
|
|
562
|
-
--daluo-font-xs-strong-13-font-family:var(--daluo-font-family);
|
|
563
|
-
--daluo-font-xs-strong-13-font-weight:500;
|
|
564
|
-
--daluo-font-xs-strong-13-line-height:20px;
|
|
565
|
-
--daluo-font-xs-strong-13-font-size:13px;
|
|
566
|
-
--daluo-font-xs-strong-13-font-style:normal;
|
|
567
|
-
--daluo-font-xxs-12:12px/18px var(--daluo-font-family);
|
|
568
|
-
--daluo-font-xxs-12-font-family:var(--daluo-font-family);
|
|
569
|
-
--daluo-font-xxs-12-font-weight:400;
|
|
570
|
-
--daluo-font-xxs-12-line-height:18px;
|
|
571
|
-
--daluo-font-xxs-12-font-size:12px;
|
|
572
|
-
--daluo-font-xxs-12-font-style:normal;
|
|
573
|
-
--daluo-font-xxs-strong-12:500 12px/18px var(--daluo-font-family);
|
|
574
|
-
--daluo-font-xxs-strong-12-font-family:var(--daluo-font-family);
|
|
575
|
-
--daluo-font-xxs-strong-12-font-weight:500;
|
|
576
|
-
--daluo-font-xxs-strong-12-line-height:18px;
|
|
577
|
-
--daluo-font-xxs-strong-12-font-size:12px;
|
|
578
|
-
--daluo-font-xxs-strong-12-font-style:normal;
|
|
579
|
-
--daluo-font-xxxs-11:11px/14px var(--daluo-font-family);
|
|
580
|
-
--daluo-font-xxxs-11-font-family:var(--daluo-font-family);
|
|
581
|
-
--daluo-font-xxxs-11-font-weight:400;
|
|
582
|
-
--daluo-font-xxxs-11-line-height:14px;
|
|
583
|
-
--daluo-font-xxxs-11-font-size:11px;
|
|
584
|
-
--daluo-font-xxxs-11-font-style:normal;
|
|
585
|
-
--daluo-font-xxxs-strong-11:500 11px/14px var(--daluo-font-family);
|
|
586
|
-
--daluo-font-xxxs-strong-11-font-family:var(--daluo-font-family);
|
|
587
|
-
--daluo-font-xxxs-strong-11-font-weight:500;
|
|
588
|
-
--daluo-font-xxxs-strong-11-line-height:14px;
|
|
589
|
-
--daluo-font-xxxs-strong-11-font-size:11px;
|
|
590
|
-
--daluo-font-xxxs-strong-11-font-style:normal;
|
|
591
|
-
}
|
|
592
|
-
/* 高度/阴影/渐变(dsh gradient-shadow-text.css):composer 卡片与浮层的分离靠「0.5px 描边 + 柔光」,
|
|
593
|
-
而不是粗阴影。派生档 dsh 是**逐元素**声明的(继承会把 body 上替换好的值传下去,组件就重绑不了描边色)——
|
|
594
|
-
我们没有重绑需求,但仍按它的形状声明在 ':root,:root *' 上,保持这份契约可复用。 */
|
|
595
|
-
:root{
|
|
596
|
-
--daluo-shadow-lv1:0 2px 4px 0 rgba(0, 0, 0, 0.05);
|
|
597
|
-
--daluo-shadow-lv1-blur:0 4px 12px 0 rgba(0, 0, 0, 0.02);
|
|
598
|
-
--daluo-shadow-lv2:0 4px 12px 0 rgba(0, 0, 0, 0.02), 0 2px 8px 0 rgba(0, 0, 0, 0.04);
|
|
599
|
-
--daluo-shadow-lv3:0 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 4px 0 rgba(0, 0, 0, 0.02), 0 12px 32px 0 rgba(0, 0, 0, 0.08);
|
|
600
|
-
--daluo-elevation-stroke-color:var(--daluo-alias-border-l4);
|
|
601
|
-
--daluo-mask-blur:blur(2px);
|
|
602
|
-
}
|
|
603
|
-
:root[data-theme="dark"]{
|
|
604
|
-
|
|
605
|
-
}
|
|
606
|
-
:root,:root *{
|
|
607
|
-
--daluo-elevation-stroke:0 0 0 0.5px var(--daluo-elevation-stroke-color);
|
|
608
|
-
--daluo-elevation-panel:var(--daluo-elevation-stroke), 0 3px 8px 0 rgba(0, 0, 0, 0.03), 0 0 16px 0 rgba(0, 0, 0, 0.02);
|
|
609
|
-
--daluo-elevation-prominent:var(--daluo-elevation-stroke), 0 3px 8px 0 rgba(0, 0, 0, 0.04), 0 0 20px 0 rgba(0, 0, 0, 0.05);
|
|
610
|
-
--daluo-elevation-soft:var(--daluo-elevation-stroke), 0 4px 16px 0 rgba(0, 0, 0, 0.03), 0 0 24px 0 rgba(0, 0, 0, 0.03);
|
|
611
|
-
}
|
|
612
|
-
/* 代码高亮调色板(dsh shiki.css —— shiki 的 css-variables 主题吐的就是这些变量)。
|
|
613
|
-
前后景**刻意别名到 markdown 代码块 token**:高亮块与纯代码块的底色才不会两样。 */
|
|
614
|
-
:root{
|
|
615
|
-
--daluo-code-fg:var(--daluo-alias-label-primary);
|
|
616
|
-
--daluo-code-bg:var(--daluo-alias-markdown-code-block);
|
|
617
|
-
--daluo-code-constant:#1c7ed6;
|
|
618
|
-
--daluo-code-string:#2f9e44;
|
|
619
|
-
--daluo-code-comment:#868e96;
|
|
620
|
-
--daluo-code-keyword:#d6336c;
|
|
621
|
-
--daluo-code-parameter:#e8590c;
|
|
622
|
-
--daluo-code-function:#6741d9;
|
|
623
|
-
--daluo-code-string-expression:#2b8a3e;
|
|
624
|
-
--daluo-code-punctuation:#495057;
|
|
625
|
-
--daluo-code-link:#1971c2;
|
|
626
|
-
}
|
|
627
|
-
:root[data-theme="dark"]{
|
|
628
|
-
--daluo-code-constant:#4dabf7;
|
|
629
|
-
--daluo-code-string:#69db7c;
|
|
630
|
-
--daluo-code-comment:#adb5bd;
|
|
631
|
-
--daluo-code-keyword:#faa2c1;
|
|
632
|
-
--daluo-code-parameter:#ffa94d;
|
|
633
|
-
--daluo-code-function:#b197fc;
|
|
634
|
-
--daluo-code-string-expression:#8ce99a;
|
|
635
|
-
--daluo-code-punctuation:#ced4da;
|
|
636
|
-
--daluo-code-link:#74c0fc;
|
|
637
|
-
}
|
|
638
|
-
/* 滚动条皮肤(dsh scrollbar.css 唯一消费这四个 alias 的地方):不铺它,暗色下就是系统亮色条。 */
|
|
639
|
-
:root{
|
|
640
|
-
--daluo-scrollbar-thumb:var(--daluo-alias-scrollbar-bg-l1);
|
|
641
|
-
--daluo-scrollbar-thumb-hover:var(--daluo-alias-scrollbar-hover-l1);
|
|
642
|
-
--daluo-scrollbar-thumb-border:0px;
|
|
643
|
-
--daluo-scrollbar-track-margin:0px;
|
|
644
|
-
--daluo-scrollbar-width:8px;
|
|
645
|
-
}
|
|
646
|
-
/* 两条路**互斥且门是承重的**(dsh 实测:非 auto 的 scrollbar-width/color 会让 Chromium/Safari
|
|
647
|
-
丢弃该元素上所有 ::-webkit-scrollbar* 规则,**包括 thumb:hover**——而实现 hover 伪元素的引擎
|
|
648
|
-
恰恰就是被标准属性噤声的那些)。故这里用 @supports not selector(::-webkit-scrollbar) 门住标准路,
|
|
649
|
-
只让没实现该伪元素的引擎(Firefox)走它。 */
|
|
650
|
-
@supports not selector(::-webkit-scrollbar){
|
|
651
|
-
body,body *{scrollbar-width:thin;scrollbar-color:var(--daluo-scrollbar-thumb) transparent}
|
|
652
|
-
}
|
|
653
|
-
::-webkit-scrollbar{width:var(--daluo-scrollbar-width);height:var(--daluo-scrollbar-width)}
|
|
654
|
-
::-webkit-scrollbar-track{margin-block:var(--daluo-scrollbar-track-margin);background:transparent}
|
|
655
|
-
::-webkit-scrollbar-thumb{border:var(--daluo-scrollbar-thumb-border) solid transparent;border-radius:999px;corner-shape:round;background:var(--daluo-scrollbar-thumb);background-clip:content-box}
|
|
656
|
-
::-webkit-scrollbar-thumb:hover{background-color:var(--daluo-scrollbar-thumb-hover)}
|
|
657
|
-
::-webkit-scrollbar-corner{background:transparent}
|
|
658
|
-
/* hidden 是页面里**唯一**的显示开关(元素靠 el.hidden 收起/展开,不切样式类)——但浏览器给
|
|
659
|
-
[hidden] 配的那条 display:none 在 **UA 样式**里,而级联中**作者样式永远赢过 UA 样式**
|
|
660
|
-
(与特异性无关)。于是任何一条带 display 的作者规则都会**静默废掉** hidden:实测中招两处——
|
|
661
|
-
.modal 上的 display:block 让项目选择器常驻、aside 上的 display:flex 让文件面板关不掉,
|
|
662
|
-
而 JS 那边 el.hidden = true 一路「成功」,看不出任何异常。这条守卫把开关钉成权威
|
|
663
|
-
(!important ⇒ 任何非 !important 的 display 一律让路),新增元素不会再踩同一个坑。 */
|
|
664
|
-
[hidden]{display:none!important}
|
|
665
|
-
/* 按钮语言(dsh ui-primitives/Button.module.css):胶囊圆角、ghost/outline 档、主键用
|
|
666
|
-
alias-button-primary-fill(近黑/近白,**不是**强调蓝)+ label-primary-foreground 文字。 */
|
|
667
|
-
.btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;height:28px;border:0.5px solid var(--daluo-alias-border-l3);background:transparent;color:var(--daluo-alias-label-primary);border-radius:14px;padding:0 10px;font-size:12px;line-height:18px;cursor:pointer;text-decoration:none}
|
|
668
|
-
.btn:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
669
|
-
.btn:active{background:var(--daluo-alias-interactive-bg-active)}
|
|
670
|
-
.btn[disabled]{opacity:.45;cursor:default}
|
|
671
|
-
.spacer{flex:1}
|
|
672
|
-
.brand{display:flex;align-items:center;gap:.3rem;color:var(--accent)}
|
|
673
|
-
.brand b{font-size:14px;letter-spacing:.02em;color:var(--fg)}
|
|
674
|
-
header .btn svg{vertical-align:-2px;margin-right:.25rem}
|
|
675
|
-
/* 空状态 hero:**不用背景图**(CSP 禁外部资源,内联大图又会把单文件撑爆)——用渐变 + 一句人话交代下一步 */
|
|
676
|
-
/* 空态 hero(对齐 dsh 的三件:品牌 + 一句话 + 上下文 chip)。底是一层极浅径向渐变(纯 CSS,零请求)。 */
|
|
677
|
-
.hero{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;flex:1;text-align:center;color:var(--daluo-alias-label-secondary);padding:2rem 1rem;background:radial-gradient(60% 50% at 50% 42%,color-mix(in srgb,var(--daluo-alias-bg-module-platform) 55%,transparent),transparent 100%)}
|
|
678
|
-
/* 品牌标记(大罗):页内一处色 = --daluo-alias-brand-primary(亮 #0f1115 / 暗 #f9fafb),
|
|
679
|
-
与 favicon 的两个色值同源;形状走 currentColor,不另配一套色。 */
|
|
680
|
-
.brandMark{flex:none;display:block;color:var(--daluo-alias-brand-primary)}
|
|
681
|
-
.hero .brandMark{width:3rem;height:3rem}
|
|
682
|
-
.hero h2{margin:0;font-size:1.05rem;color:var(--daluo-alias-label-primary);font-weight:600}
|
|
683
|
-
.hero .hero-chips{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}
|
|
684
|
-
/* ── 空态居中(对 dsh ConversationRoot 的 '[data-phase='hero'] .scrollBody{justify-content:center}',
|
|
685
|
-
2026-09-17):没选会话时 composer 与 hero 一起**垂直居中**(不是 hero 在左上、卡片钉在底部)。
|
|
686
|
-
'padding-bottom:32px' 让整组浮在中心上方一点(dsh 的 .composerHero 同款)。 */
|
|
687
|
-
section[data-hero="1"]{justify-content:center;gap:8px;padding-bottom:32px}
|
|
688
|
-
section[data-hero="1"] .streamwrap{flex:0 0 auto}
|
|
689
|
-
section[data-hero="1"] #stream{overflow:visible;padding:0}
|
|
690
|
-
section[data-hero="1"] .hero{flex:none;padding:0 1rem}
|
|
691
|
-
/* 芯片(工作区名 / 模型名 + ▾)= dsh InputBar 的芯片状闭合控件(2026-09-20 决策 68 逐值):
|
|
692
|
-
'.select' 给形状与排印——**无边框**、圆角 8px、高 28px、13/20 **500** secondary;
|
|
693
|
-
'.add' 给悬停档(interactive-bg-hover-**solid**,不是半透明那支)。
|
|
694
|
-
底色 specific-selector 是决策 26 定的(与 dsh '.add' 同底),本轮只换形状与排印。
|
|
695
|
-
改前:1px 实体描边 + 999px 胶囊 + 12px 等宽——三样都不是 dsh 的形状。 */
|
|
696
|
-
button.chip{display:inline-flex;align-items:center;max-width:24rem;height:28px;padding:0 8px;border:0;border-radius:8px;background:var(--daluo-specific-selector);color:var(--daluo-alias-label-secondary);cursor:pointer;font-size:var(--daluo-content-font-size-secondary,13px);line-height:calc(20px + var(--daluo-content-font-delta-secondary,0px));font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
697
|
-
button.chip:hover{background:var(--daluo-alias-interactive-bg-hover-solid);color:var(--daluo-alias-label-primary)}
|
|
698
|
-
select.chip{max-width:16rem;height:28px;padding:0 8px;border:0;border-radius:8px;background:var(--daluo-specific-selector);color:var(--daluo-alias-label-secondary);cursor:pointer;font-size:var(--daluo-content-font-size-secondary,13px);line-height:calc(20px + var(--daluo-content-font-delta-secondary,0px));font-weight:500}
|
|
699
|
-
select.chip:hover{color:var(--daluo-alias-label-primary)}
|
|
700
|
-
/* 项目选择器(spec/settings.md 决策 4):一层目录列表 + 选中即切换 reload——最省状态、
|
|
701
|
-
最不容易出现「界面说切了、底下没切」。
|
|
702
|
-
**不是全屏模态**:全屏遮罩会把正文和输入框全挡住,用户点什么都穿不过去
|
|
703
|
-
(实测:连点输入框都会被判「被遮挡」)。改成贴住头部的浮层 + 点外面收起。
|
|
704
|
-
收起靠 hidden 属性(见顶部那条 [hidden] 守卫——这里**不许**再写 display)。 */
|
|
705
|
-
/* ── 设置面板(逐条对 dsh 设置模态框,2026-09-17):**800×800 居中 + 左侧 188px 导航**。
|
|
706
|
-
遮罩带 backdrop 模糊;面板 radius 32px、bg-layer-2、elevation-prominent(描边起头的柔光);
|
|
707
|
-
导航 22px 12px 0 内边距、条目 40px 高/12px 圆角(悬停/选中走 specific-sidebar-nav-item-*);
|
|
708
|
-
右侧内容区的头 54px、关闭钮贴右。**只做我们真有内容的页**(通用设置/模型/插件)——
|
|
709
|
-
原型还有「智能体预设」,我们没有这个能力,不摆一页空壳。 */
|
|
710
|
-
.setoverlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center}
|
|
711
|
-
.setmask{position:absolute;inset:0;background:var(--daluo-alias-bg-mask-1);backdrop-filter:var(--daluo-mask-blur);-webkit-backdrop-filter:var(--daluo-mask-blur)}
|
|
712
|
-
.setpanel{position:relative;z-index:1;display:flex;width:800px;height:min(800px,calc(var(--ui-vh) - 48px));max-width:calc(var(--ui-vw) - 48px);border-radius:32px;overflow:hidden;background:var(--daluo-alias-bg-layer-2);box-shadow:var(--daluo-elevation-prominent);--daluo-scrollbar-thumb:var(--daluo-alias-scrollbar-bg-l2);--daluo-scrollbar-thumb-hover:var(--daluo-alias-scrollbar-hover-l2)}
|
|
713
|
-
.setnav{flex:none;display:flex;flex-direction:column;gap:18px;width:188px;padding:22px 12px 0;box-sizing:border-box}
|
|
714
|
-
.setnavtitle{padding:0 12px;font-size:16px;line-height:24px;font-weight:500;color:var(--daluo-alias-label-primary)}
|
|
715
|
-
.setnavlist{display:flex;flex-direction:column;gap:4px}
|
|
716
|
-
.navcell{display:flex;align-items:center;gap:8px;height:40px;padding:9px 16px 9px 12px;box-sizing:border-box;border:none;border-radius:12px;background:transparent;cursor:pointer;font-family:inherit;font-size:14px;line-height:22px;color:var(--daluo-alias-label-primary);text-align:left}
|
|
717
|
-
.navcell:hover{background:var(--daluo-specific-sidebar-nav-item-hover)}
|
|
718
|
-
.navcell[aria-selected="true"]{background:var(--daluo-specific-sidebar-nav-item-active)}
|
|
719
|
-
.navcell span{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
|
|
720
|
-
.setcontent{flex:1;min-width:0;display:flex;flex-direction:column}
|
|
721
|
-
/* 头部 54px、左 10 右 14、上 20 下 8(dsh SettingsRoot.module.css:185-193 的 '.header',
|
|
722
|
-
审计 P2#9)。改前上内边距 14px——关闭钮那一行比参考高 6px。 */
|
|
723
|
-
.setheader{flex:none;display:flex;align-items:center;justify-content:flex-end;gap:8px;height:54px;padding:20px 14px 8px 10px;box-sizing:border-box}
|
|
724
|
-
/* 设置页里的输入控件(与文件面板过滤框同一套语言:0.5px l1、6px 圆角、layer-1 底) */
|
|
725
|
-
/* 提供方列表容器(行样式见下面的 .pvsideitem——决策 64 把「一行带按钮」换成了「左栏可选行」) */
|
|
726
|
-
.pvlist{display:flex;flex-direction:column;gap:4px;margin:4px 0 8px}
|
|
727
|
-
.pvempty{padding:8px 10px;font-size:12px;color:var(--daluo-alias-label-tertiary)}
|
|
728
|
-
/* ─── 模型设置页(spec/web-ui.md 决策 64,2026-09-19 用户指定参考图)─────────────────────────
|
|
729
|
-
形态:**上面一条工具条**(标题/说明 + 刷新 + 添加供应商)+ **左右两栏**(左 = 提供方列表、
|
|
730
|
-
右 = 选中那条的详情卡)。与参考图同一套结构;配色沿用本页已有的 token,不新引色。 */
|
|
731
|
-
.pvtoolbar{flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 14px}
|
|
732
|
-
.pvtoolbar .pvtitle{font:var(--daluo-font-l-20);font-weight:600;color:var(--daluo-alias-label-primary);margin:0 0 4px}
|
|
733
|
-
.pvtoolbar .pvsub{margin:0;font-size:13px;line-height:20px;color:var(--daluo-alias-label-tertiary)}
|
|
734
|
-
.pvtoolbar .pvactions{flex:none;display:flex;align-items:center;gap:8px}
|
|
735
|
-
.pvsplits{display:flex;gap:20px;align-items:flex-start;min-height:0}
|
|
736
|
-
/* 左栏:提供方列表(参考图里是一张卡里一列,当前那条高亮 + 状态点) */
|
|
737
|
-
.pvside{flex:none;width:240px;display:flex;flex-direction:column;gap:2px}
|
|
738
|
-
.pvsidegroup{padding:6px 10px;font-size:12px;line-height:18px;color:var(--daluo-alias-label-tertiary)}
|
|
739
|
-
.pvsideitem{display:flex;align-items:center;gap:8px;box-sizing:border-box;width:100%;height:38px;padding:0 10px;border:none;border-radius:9px;background:transparent;color:var(--daluo-alias-label-primary);font:inherit;font-size:14px;text-align:left;cursor:pointer}
|
|
740
|
-
.pvsideitem:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
741
|
-
.pvsideitem[aria-selected="true"]{background:var(--daluo-alias-interactive-bg-active)}
|
|
742
|
-
.pvsideitem .pvsiglyph{flex:none;display:inline-flex;align-items:center;color:var(--daluo-alias-label-secondary)}
|
|
743
|
-
.pvsideitem .pvsidename{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
744
|
-
/* 状态点(**如实**:只有测过才有颜色,没测过是中性的灰——不拿"看起来通"糊弄)
|
|
745
|
-
绿 = 上一次测试通了;红 = 上次测不通;灰 = 还没测过。 */
|
|
746
|
-
.pvdot{flex:none;width:7px;height:7px;border-radius:50%;corner-shape:round;background:var(--daluo-alias-label-tertiary)}
|
|
747
|
-
.pvdot[data-state="ok"]{background:var(--daluo-alias-state-success-primary)}
|
|
748
|
-
.pvdot[data-state="fail"]{background:var(--daluo-alias-state-error-primary)}
|
|
749
|
-
.pvdot[data-state="running"]{background:var(--daluo-alias-state-warn-primary)}
|
|
750
|
-
/* 右栏:详情卡 */
|
|
751
|
-
.pvdetail{flex:1;min-width:0}
|
|
752
|
-
.pvcard{box-sizing:border-box;padding:18px 20px 20px;border:0.5px solid var(--daluo-alias-border-l1);border-radius:14px;background:var(--daluo-alias-bg-layer-1)}
|
|
753
|
-
.pvcardhead{display:flex;align-items:center;gap:10px;margin:0 0 18px}
|
|
754
|
-
.pvcardhead .pvcardglyph{flex:none;display:inline-flex;align-items:center;color:var(--daluo-alias-label-secondary)}
|
|
755
|
-
.pvcardhead .pvcardname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:600;color:var(--daluo-alias-label-primary)}
|
|
756
|
-
.pvfield{display:flex;flex-direction:column;gap:6px;margin:0 0 16px}
|
|
757
|
-
.pvfield .pvlabel{font-size:13px;line-height:20px;color:var(--daluo-alias-label-secondary)}
|
|
758
|
-
.pvfield .pvinputrow{display:flex;align-items:center;gap:6px}
|
|
759
|
-
.pvinput{box-sizing:border-box;flex:1;min-width:0;height:34px;padding:0 10px;border:0.5px solid var(--daluo-alias-border-l1);border-radius:8px;background:var(--daluo-alias-bg-base);color:var(--daluo-alias-label-primary);font-size:13px}
|
|
760
|
-
.pvinput::placeholder{color:var(--daluo-alias-label-tertiary)}
|
|
761
|
-
/* 「接口格式」:**只读事实**(不是下拉)——传输层目前只有 OpenAI 兼容一种,见决策 64 的如实记 */
|
|
762
|
-
.pvreadonly{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:34px;padding:0 10px;border:0.5px solid var(--daluo-alias-border-l1);border-radius:8px;background:var(--daluo-alias-bg-layer-2);color:var(--daluo-alias-label-secondary);font-size:13px}
|
|
763
|
-
/* 模型列表:段头(标题 + 添加模型)+ 行 */
|
|
764
|
-
.pvmodelshead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:20px 0 8px}
|
|
765
|
-
.pvmodelshead .pvlabel{font-size:13px;color:var(--daluo-alias-label-secondary)}
|
|
766
|
-
.pvmodel{border:0.5px solid var(--daluo-alias-border-l1);border-radius:10px;overflow:hidden}
|
|
767
|
-
.pvmodelrow{display:flex;align-items:center;gap:8px;box-sizing:border-box;padding:9px 10px;border-bottom:0.5px solid var(--daluo-alias-border-l1)}
|
|
768
|
-
.pvmodelrow:last-child{border-bottom:none}
|
|
769
|
-
.pvmodelrow .pvmname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--daluo-alias-label-primary)}
|
|
770
|
-
/* 窗口徽章(1M / 128K)——**它不是装饰**:声明的窗口真的驱动压缩阈值(决策 64) */
|
|
771
|
-
.pvbadge{flex:none;padding:0 6px;border:0.5px solid var(--daluo-alias-border-l1);border-radius:5px;font-size:11px;line-height:18px;color:var(--daluo-alias-label-tertiary)}
|
|
772
|
-
.pvbadge[data-tone="off"]{opacity:.55}
|
|
773
|
-
.pvmodelacts{flex:none;display:flex;align-items:center;gap:2px;color:var(--daluo-alias-label-tertiary)}
|
|
774
|
-
.pvmempty{padding:10px;font-size:12px;color:var(--daluo-alias-label-tertiary)}
|
|
775
|
-
/* 开关(对齐参考图的轨道+圆钮):`role="switch"` 语义先行,样式只是外衣 */
|
|
776
|
-
.pvswitch{position:relative;flex:none;width:34px;height:20px;border:none;border-radius:10px;background:var(--daluo-alias-interactive-bg-active);cursor:pointer;padding:0}
|
|
777
|
-
.pvswitch::after{content:'';position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;corner-shape:round;background:var(--daluo-alias-bg-base);transition:transform .16s ease}
|
|
778
|
-
.pvswitch[aria-checked="true"]{background:var(--daluo-alias-state-success-primary)}
|
|
779
|
-
.pvswitch[aria-checked="true"]::after{transform:translateX(14px)}
|
|
780
|
-
.pvcardfoot{display:flex;align-items:center;gap:8px;margin:20px 0 0}
|
|
781
|
-
.pvcardfoot .pvfootnote{flex:1;min-width:0;font-size:12px;color:var(--daluo-alias-label-tertiary);text-align:right}
|
|
782
|
-
/* 设置页里的输入控件在 .pvinput(决策 64 把提供方表单换成左右两栏后,旧的 .setinput 没有消费者了) */
|
|
783
|
-
.setselect{box-sizing:border-box;max-width:16rem;height:28px;padding:0 8px;border:0.5px solid var(--daluo-alias-border-l1);border-radius:6px;background:var(--daluo-alias-bg-layer-1);color:var(--daluo-alias-label-primary);font-size:13px;cursor:pointer}
|
|
784
|
-
.setpages{flex:1;min-height:0;overflow:auto;padding:0 24px 24px}
|
|
785
|
-
/* 面板内的回执(决策 64):一条会消失的横幅,落在**用户正操作的那个面**上。
|
|
786
|
-
它不占位([hidden] 时零高),所以没回执时面板看起来没有任何多余的东西。 */
|
|
787
|
-
.setnote{flex:none;margin:0 24px 10px;padding:8px 12px;border:0.5px solid var(--daluo-alias-border-l1);border-radius:8px;background:var(--daluo-alias-bg-layer-2);color:var(--daluo-alias-label-secondary);font-size:13px;line-height:20px}
|
|
788
|
-
.setnote[hidden]{display:none}
|
|
789
|
-
.setpage{display:flex;flex-direction:column}
|
|
790
|
-
.setpage[hidden]{display:none}
|
|
791
|
-
.setpagetitle{font-size:14px;line-height:22px;font-weight:500;color:var(--daluo-alias-label-primary);margin:0 0 8px}
|
|
792
|
-
.setpage .fnote{font-size:12px;line-height:18px;color:var(--daluo-alias-label-tertiary)}
|
|
793
|
-
.modal{position:fixed;top:3rem;left:1rem;z-index:20;background:none}
|
|
794
|
-
/* 目录选择器 = dsh 的 Modal 原语 + DirectoryBrowser(2026-09-20 决策 68 逐值对齐)。
|
|
795
|
-
卡片 r24 取自 Modal 原语 '.dialog'(border-radius:24px + elevation-prominent + bg-layer-2);
|
|
796
|
-
DirectoryBrowser 又覆盖了它的 width min(680px,100%)、height min(500px,100dvh-32px)、padding 0、gap 0——
|
|
797
|
-
我们这张是 fixed 定位的小卡,取同一组数与「头/尾固定、中间滚」的同构形状。 */
|
|
798
|
-
.modal .box{width:min(680px,calc(var(--ui-vw) * 0.92));max-height:min(500px,calc(var(--ui-vh) - 32px));display:flex;flex-direction:column;background:var(--daluo-alias-bg-layer-2);border:0;border-radius:24px;overflow:hidden;box-shadow:var(--daluo-elevation-prominent);--daluo-elevation-stroke-color:var(--daluo-alias-border-l1);--daluo-scrollbar-thumb:var(--daluo-alias-scrollbar-bg-l2);--daluo-scrollbar-thumb-hover:var(--daluo-alias-scrollbar-hover-l2)}
|
|
799
|
-
/* 头 = 题行 + 路径行,两行之间 8px(DirectoryBrowser '.header' 的 gap:8px),整块底下**一条**
|
|
800
|
-
0.5px l3——dsh 的 header 也只有一条(题行与 crumb 行收在同一块里,线在块尾)。
|
|
801
|
-
题 16px/24px/500(Modal '.title'),路径 13px/20px/500 tertiary(DirectoryBrowser '.crumb')。 */
|
|
802
|
-
.modal .phead{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;padding:16px 14px 0 24px}
|
|
803
|
-
.modal .phead>span:first-child{font-size:16px;line-height:24px;font-weight:500;color:var(--daluo-alias-label-primary)}
|
|
804
|
-
.modal .ppath{min-height:24px;padding:8px 14px 8px 24px;border-bottom:0.5px solid var(--daluo-alias-border-l3);font-size:13px;line-height:20px;font-weight:500;color:var(--daluo-alias-label-tertiary);word-break:break-all}
|
|
805
|
-
/* 列 = '.content' 的 16/16/16/24 内边距 + '.column' 的 2px 行距;行 = '.row'(28px / 4px / r6 / 13px-500),
|
|
806
|
-
悬停走 interactive-bg-hover;「上一层」是导航行 ⇒ 取 '.rowIcon' 的 label-secondary(不是强调蓝)。 */
|
|
807
|
-
.modal .plist{flex:1;overflow:auto;display:flex;flex-direction:column;gap:2px;padding:16px 16px 16px 24px}
|
|
808
|
-
.modal .prow{width:100%;flex:none;display:flex;align-items:center;gap:4px;height:28px;padding:4px;border:0;border-radius:6px;background:none;text-align:left;cursor:pointer;font-size:13px;line-height:20px;font-weight:500;color:var(--daluo-alias-label-primary)}
|
|
809
|
-
.modal .prow:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
810
|
-
.modal .prow.up{color:var(--daluo-alias-label-secondary)}
|
|
811
|
-
/* 尾 = '.footerBar'(16px 24px / gap 8 / 0.5px l3 顶线 / 窄卡折行,dsh 是为了 Open/Cancel 永远够得着)
|
|
812
|
-
+ '.footerAction' 的 min-width:72px;状态行 = '.status'(12/18 label-secondary,padding 4px)。 */
|
|
813
|
-
.modal .pfoot{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:16px 24px;border-top:0.5px solid var(--daluo-alias-border-l3)}
|
|
814
|
-
.modal .pfoot .btn{min-width:72px}
|
|
815
|
-
.modal .pfoot .fnote,.modal .plist .fnote{padding:4px;font-size:12px;line-height:18px;color:var(--daluo-alias-label-secondary)}
|
|
816
|
-
/* ─── 轨迹区(逐条取自 dsh 'ui-trajectory/src/client/TrajectoryTable.module.css',2026-09-17)───
|
|
817
|
-
dsh 的轨迹是**一张平表**:'table-layout:fixed' + 'border-spacing:0'、行高 **30px**、
|
|
818
|
-
左列 122px('padding:0 4px 0 36px'——36px 留给导轨与 Turn 标签)、右边内容单行截断、
|
|
819
|
-
行间 **0.5px** 'border-l1'、回合首行一条 2px 分隔线 + 左上角 Turn 标签(8px/10px code、'border-radius:0 0 2px')、
|
|
820
|
-
表格字体走它排印表的 'xxs-12' 档、kind 徽章 10px/650/字距 .035em、高 19px、'padding:0 5px'、圆角 4px。
|
|
821
|
-
原来的三层缩进树(回合→步→格)没有一处数据支撑它比平表更好看/更好用——同一份投影,改成平表。 */
|
|
822
|
-
#stream.traj-mode{padding:0;gap:0}
|
|
823
|
-
.trajpane{flex:1;display:flex;flex-direction:column;min-height:0;background:var(--daluo-alias-bg-layer-1);--daluo-scrollbar-thumb:var(--daluo-alias-scrollbar-bg-l2);--daluo-scrollbar-thumb-hover:var(--daluo-alias-scrollbar-hover-l2)}
|
|
824
|
-
/* 轨迹工具栏:**一行、不折**(用户实测:窄列下四个投影按钮里的字各自换行成两行)。
|
|
825
|
-
两处一起:①所有子元素 nowrap;②搜索框可缩(flex 基准 18rem、下限 6rem),统计文字可省略。 */
|
|
826
|
-
.trajtool{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;box-sizing:border-box;height:30px;padding:0 8px;border-bottom:0.5px solid var(--daluo-alias-border-l2);background:var(--daluo-specific-sidebar-fill);color:var(--daluo-alias-label-tertiary);font:var(--daluo-font-xxs-12);white-space:nowrap}
|
|
827
|
-
.trajtool .trajstat{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
|
|
828
|
-
.trajtool .segbox,.trajtool .seg{flex:none;white-space:nowrap}
|
|
829
|
-
/* 导轨(dsh TrajectoryTimeline.module.css):**50px 高的三泳道缩略图**——左 44px 标签列
|
|
830
|
-
(输入/模型/工具,10px、label-caption、右侧 0.5px 分隔),右侧轨道里每条事件画一根 **8px 高、
|
|
831
|
-
圆角 1px、opacity .78** 的条,泳道间距 14px;回合边界一条 0.5px 竖线。
|
|
832
|
-
它的用途是"这段轨迹的分布一眼可见"(哪一段全是工具、哪一段是模型在写),不是装饰。 */
|
|
833
|
-
.trajplot{position:relative;flex:none;display:grid;grid-template-columns:44px minmax(0,1fr);height:50px;overflow:hidden;background:var(--daluo-alias-bg-layer-2);border-bottom:0.5px solid var(--daluo-alias-border-l2)}
|
|
834
|
-
.trajlanes{position:relative;border-right:0.5px solid var(--daluo-alias-border-l1);color:var(--daluo-alias-label-caption);font-size:10px;line-height:1}
|
|
835
|
-
.trajlanes span{position:absolute;right:3px;display:flex;align-items:center;justify-content:flex-end;height:8px;text-align:right}
|
|
836
|
-
.trajlanes span:nth-child(1){top:7px}
|
|
837
|
-
.trajlanes span:nth-child(2){top:21px}
|
|
838
|
-
.trajlanes span:nth-child(3){top:35px}
|
|
839
|
-
.trajtrack{position:relative;overflow:hidden;cursor:pointer}
|
|
840
|
-
.trajturnline{position:absolute;top:0;bottom:0;width:0.5px;background:var(--daluo-alias-border-l2)}
|
|
841
|
-
.trajbar{position:absolute;height:8px;min-width:2px;border-radius:1px;opacity:.78;background:var(--daluo-alias-label-secondary)}
|
|
842
|
-
.trajbar.k0{background:var(--daluo-alias-label-secondary)}
|
|
843
|
-
.trajbar.k1{background:var(--daluo-alias-state-business-primary)}
|
|
844
|
-
.trajbar.k2{background:color-mix(in srgb, var(--daluo-alias-state-success-primary) 68%, var(--daluo-alias-label-secondary))}
|
|
845
|
-
.trajbar.k3{background:color-mix(in srgb, var(--daluo-alias-brand-primary-new-colorprimary-new-color) 60%, var(--daluo-alias-state-error-secondary))}
|
|
846
|
-
.trajbar.k4{background:var(--daluo-alias-state-warn-primary)}
|
|
847
|
-
.trajbar.focus{opacity:1;outline:1px solid var(--daluo-alias-label-primary)}
|
|
848
|
-
/* 焦点窗口之外的行淡出(dsh 'tr[data-timeline-focus='outside']{opacity:.24}'):点导轨上的条=聚焦那一段 */
|
|
849
|
-
.trajrow[data-focus="outside"]{opacity:.24}
|
|
850
|
-
/* 就地展开的 IO 卡片**退场**(2026-09-17):行内展开换成右侧详情面板(dsh 的 .details)——
|
|
851
|
-
同一件事不留两套交互;「→ 对话」那个动作挪进详情面板头部。 */
|
|
852
|
-
.trajsearch{box-sizing:border-box;flex:0 1 18rem;min-width:6rem;height:22px;padding:0 6px;border:0.5px solid var(--daluo-alias-border-l3);border-radius:6px;background:var(--daluo-alias-bg-base);color:var(--daluo-alias-label-primary);font:var(--daluo-font-xxs-12)}
|
|
853
|
-
/* ── 轨迹详情面板(逐条对 dsh 'ui-trajectory/src/client/TrajectoryTable.module.css' 的
|
|
854
|
-
.details/.detailsHeader/.detailTabs,2026-09-17):点一行 ⇒ 右侧开一张详情面板(不是就地展开)。
|
|
855
|
-
面板 'clamp(320px,38%,440px)'、右侧至少给表留 280px、左缘 0.5px l2、bg-layer-1;
|
|
856
|
-
左缘一条 8px 拖拽条('left:-4px',可拖 320–720);头部 42px(点 + 名 + 位置 + 关闭);
|
|
857
|
-
页签行 34px(横向可滚、滚动条不画),选中走 business-primary 蓝字 + 2px 下划线。 */
|
|
858
|
-
.trajsplit{position:relative;flex:1;display:flex;min-height:0}
|
|
859
|
-
.trajdetails{position:relative;display:flex;flex:none;flex-direction:column;width:clamp(320px,38%,440px);max-width:calc(100% - 280px);min-width:0;min-height:0;border-left:0.5px solid var(--daluo-alias-border-l2);background:var(--daluo-alias-bg-layer-1)}
|
|
860
|
-
.trajresize{position:absolute;z-index:6;top:0;bottom:0;left:-4px;width:8px;padding:0;border:0;background:transparent;cursor:col-resize;touch-action:none;user-select:none}
|
|
861
|
-
.trajdhead{display:flex;flex:none;align-items:center;justify-content:space-between;box-sizing:border-box;height:42px;padding:0 8px 0 12px;border-bottom:0.5px solid var(--daluo-alias-border-l2)}
|
|
862
|
-
.trajdtitle{display:flex;align-items:center;min-width:0;gap:8px;color:var(--daluo-alias-label-primary)}
|
|
863
|
-
.trajddot{flex:none;width:5px;height:5px;border-radius:50%;corner-shape:round;background:var(--daluo-alias-label-secondary)}
|
|
864
|
-
.trajdname{flex:none;font:500 12px/16px var(--daluo-font-family-code)}
|
|
865
|
-
.trajdloc{min-width:0;overflow:hidden;color:var(--daluo-alias-label-tertiary);font:11px/16px var(--daluo-font-family-code);text-overflow:ellipsis;white-space:nowrap}
|
|
866
|
-
.trajdclose{display:inline-flex;flex:none;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:6px;color:var(--daluo-alias-label-secondary);background:transparent;cursor:pointer;font-size:18px;line-height:18px}
|
|
867
|
-
.trajdclose:hover{color:var(--daluo-alias-label-primary);background:var(--daluo-alias-interactive-bg-hover)}
|
|
868
|
-
.trajdtabs{display:flex;flex:none;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:34px;padding:0 8px;overflow-x:auto;overflow-y:hidden;gap:1px;border-bottom:0.5px solid var(--daluo-alias-border-l2);overscroll-behavior-x:contain;scrollbar-width:none}
|
|
869
|
-
.trajdtabs::-webkit-scrollbar{display:none}
|
|
870
|
-
.trajdtab{position:relative;flex:none;padding:0 9px;border:0;color:var(--daluo-alias-label-tertiary);background:transparent;cursor:pointer;font:var(--daluo-font-xs-13)}
|
|
871
|
-
.trajdtab:hover{color:var(--daluo-alias-label-primary);background:var(--daluo-alias-interactive-bg-hover)}
|
|
872
|
-
.trajdtab[aria-selected="true"]{color:var(--daluo-alias-state-business-primary)}
|
|
873
|
-
.trajdtab[aria-selected="true"]::after{content:'';position:absolute;right:9px;bottom:0;left:9px;height:2px;background:var(--daluo-alias-state-business-primary)}
|
|
874
|
-
.trajdbody{flex:1;min-height:0;overflow:auto;padding:12px;color:var(--daluo-alias-label-secondary);font:var(--daluo-font-xs-13)}
|
|
875
|
-
.trajdbody pre{margin:0;white-space:pre-wrap;word-break:break-word;font:400 12px/18px var(--daluo-font-family-code);color:var(--daluo-alias-label-primary)}
|
|
876
|
-
.trajdbody .kv{display:flex;gap:8px;margin-bottom:6px}
|
|
877
|
-
.trajdbody .kv .k{flex:none;color:var(--daluo-alias-label-tertiary)}
|
|
878
|
-
.trajdbody .kv .v{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--daluo-alias-label-primary)}.trajscroll{flex:1;overflow:auto}
|
|
879
|
-
.trajtable{width:100%;border-spacing:0;table-layout:fixed;color:var(--daluo-alias-label-primary);background:var(--daluo-alias-bg-layer-1);font:var(--daluo-font-xxs-12)}
|
|
880
|
-
.trajtable td{box-sizing:border-box;height:30px;padding:0 8px;overflow:hidden;border-bottom:0.5px solid var(--daluo-alias-border-l1);text-overflow:ellipsis;white-space:nowrap}
|
|
881
|
-
/* 左列的 padding/overflow **必须**写成 '.trajtable .trajlab'(两级):上面 '.trajtable td' 是
|
|
882
|
-
'padding:0 8px;overflow:hidden',特异性 0-1-1 压得过单类的 '.trajlab'(0-1-0)——实测就是这样:
|
|
883
|
-
CSS 里写着 36px,计算值是 8px,Turn 标签还被裁掉。文本判据看不出这种「写得对但被压掉」。 */
|
|
884
|
-
.trajtable .trajlab{position:relative;width:122px;overflow:visible;padding-left:36px}
|
|
885
|
-
.trajtext{color:var(--daluo-alias-label-secondary);cursor:pointer}
|
|
886
|
-
.trajtext.mono{font:400 12px/18px var(--daluo-font-family-code)}
|
|
887
|
-
.trajrow[data-turn-start="true"] .trajlab::before{content:'';position:absolute;z-index:1;top:0;left:0;right:0;height:2px;background:var(--daluo-alias-border-l1);transform:translateY(-50%)}
|
|
888
|
-
.turntag{position:absolute;z-index:3;top:0;left:0;box-sizing:border-box;padding:1px 5px;border-radius:0 0 2px;color:var(--daluo-alias-label-tertiary);background:var(--daluo-alias-bg-module-platform);font:8px/10px var(--daluo-font-family-code);font-variant-numeric:tabular-nums;white-space:nowrap}
|
|
889
|
-
.kindtag{display:inline-flex;align-items:center;box-sizing:border-box;height:19px;padding:0 5px;border:1px solid transparent;border-radius:4px;font-size:10px;line-height:16px;font-weight:650;letter-spacing:.035em;user-select:none}
|
|
890
|
-
.kindtag.kt-user{color:var(--daluo-alias-state-business-primary);background:var(--daluo-alias-state-business-tertiary)}
|
|
891
|
-
.kindtag.kt-assistant{color:color-mix(in srgb, var(--daluo-alias-brand-primary-new-colorprimary-new-color) 60%, var(--daluo-alias-state-error-secondary));background:color-mix(in srgb, color-mix(in srgb, var(--daluo-alias-brand-primary-new-colorprimary-new-color) 55%, var(--daluo-alias-state-error-secondary)) 15%, var(--daluo-alias-bg-layer-1))}
|
|
892
|
-
.kindtag.kt-tool{color:var(--daluo-alias-state-warn-label);background:var(--daluo-alias-state-warn-tertiary)}
|
|
893
|
-
.kindtag.kt-sub{color:color-mix(in srgb, var(--daluo-alias-state-warn-label) 62%, var(--daluo-alias-label-tertiary));background:color-mix(in srgb, var(--daluo-alias-state-warn-tertiary) 58%, var(--daluo-alias-bg-layer-1))}
|
|
894
|
-
.kindtag.kt-sys{color:var(--daluo-alias-label-secondary);background:var(--daluo-alias-bg-module-platform)}
|
|
895
|
-
.trajrow:hover{background:var(--daluo-alias-interactive-bg-hover)}*{box-sizing:border-box}
|
|
896
|
-
body{margin:0;height:var(--ui-vh);display:flex;flex-direction:column;font:14px/1.6 var(--daluo-font-family);color:var(--fg)}
|
|
897
|
-
main{flex:1;display:flex;min-height:0;overflow:hidden}
|
|
898
|
-
/* ── 页面骨架(逐条对 dsh 'ui-layout/src/client/AppFrame.module.css' +
|
|
899
|
-
'ui-sidebar/src/client/SidebarRoot.module.css',2026-09-17)─────────────────────
|
|
900
|
-
侧栏是**全高列**(280px、sidebar-fill 底、右缘 0.5px l3),中列自己管头部与滚动——
|
|
901
|
-
不是「顶一条全局头部、下面再分栏」。改前那条 48px 全局 header(品牌/工作区/模型/主题/文件/设置
|
|
902
|
-
挤一排)是页面骨架与 dsh 差距最大的一块:控件各归各位(品牌+收起→侧栏 logo 行、模型→composer、
|
|
903
|
-
设置→侧栏底、文件→会话头角部),头部不再存在。 */
|
|
904
|
-
aside{--rail-w:280px;flex:none;width:var(--rail-w);display:flex;flex-direction:column;height:100%;padding:6px 12px;overflow:hidden;background:var(--daluo-specific-sidebar-fill);border-right:0.5px solid var(--daluo-alias-border-l3);color:var(--daluo-alias-label-primary);font-size:14px}
|
|
905
|
-
/* logo 行(dsh .logoRow):60px 高,品牌 18px/600/letter-spacing .04em 在左,收起钮 28px 圆在右 */
|
|
906
|
-
.logoRow{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;height:60px;padding:8px 0 8px 4px;margin-bottom:8px;overflow:hidden}
|
|
907
|
-
.logoRow .brand{flex:1;min-width:0;display:inline-flex;align-items:center;gap:8px;height:24px;font-size:18px;font-weight:600;line-height:24px;letter-spacing:.04em;color:var(--fg)}
|
|
908
|
-
/* 圆图标钮(dsh .iconButton):28px 正圆、透明底、悬停 interactive-bg-hover——会话头角部的文件钮同款 */
|
|
909
|
-
.iconButton{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:50%;corner-shape:round;padding:0;background:transparent;cursor:pointer;color:var(--daluo-alias-label-secondary)}
|
|
910
|
-
.iconButton:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
911
|
-
/* 顶部动作列(spec/web-ui.md 决策 63,2026-09-19 用户指定参考图的形态):
|
|
912
|
-
一行 = 16px 字形 + 标签 + 右贴快捷键提示(32px 行、8px 圆角、悬停 interactive-bg-hover)。
|
|
913
|
-
**为什么换掉原先那条 38px 的「新会话」大按钮**:参考图里顶部是一列**并列的动作**,不是一个主按钮;
|
|
914
|
-
daluo 真有的动作有三个(新建/搜索/插件)——大按钮只装得下第一个。 */
|
|
915
|
-
.navList{flex:none;display:flex;flex-direction:column;gap:2px;margin:0 2px 10px}
|
|
916
|
-
.navRow{display:flex;align-items:center;gap:8px;width:100%;height:32px;padding:0 8px;border:none;border-radius:8px;background:transparent;color:var(--daluo-alias-label-primary);font:inherit;font-size:14px;line-height:22px;text-align:left;cursor:pointer}
|
|
917
|
-
.navRow:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
918
|
-
.navglyph{flex:none;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;color:var(--daluo-alias-label-secondary)}
|
|
919
|
-
.navlabel{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
920
|
-
/* 快捷键提示(12/20 tertiary、贴右):它是**真的按得动**的键(Ctrl+N / Ctrl+K 见快捷键接线),
|
|
921
|
-
不是装饰——写在这里是为了让人知道那个键存在。 */
|
|
922
|
-
.navkey{flex:none;font-size:12px;line-height:20px;color:var(--daluo-alias-label-tertiary)}
|
|
923
|
-
/* 视图页签(对齐参考图的「分组 | 项目」分段控件):30px 槽 + 26px 选中片、圆角 9,
|
|
924
|
-
底槽走 interactive-bg-hover、选中片浮上来(layer-2)——与设置面板 .segbox 同一套语言。 */
|
|
925
|
-
.viewTabs{flex:none;display:flex;align-items:center;gap:2px;height:30px;padding:2px;margin:0 0 6px;border-radius:9px;background:var(--daluo-alias-interactive-bg-hover)}
|
|
926
|
-
.viewTab{flex:1;min-width:0;height:26px;border:none;border-radius:7px;background:transparent;color:var(--daluo-alias-label-secondary);font:inherit;font-size:13px;line-height:20px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
927
|
-
.viewTab[aria-selected="true"]{background:var(--daluo-alias-bg-layer-2);color:var(--daluo-alias-label-primary);font-weight:500}
|
|
928
|
-
/* 底部任务段(参考图的「任务」段):数据是**已有**的 GET /tasks,此前只在会话头那颗钮的菜单里。
|
|
929
|
-
36px 段头 + 行复用会话头菜单的 .taskrow/.tcmd/.tmeta 一族(同一份数据两处画,样式共用一套)。 */
|
|
930
|
-
.taskArea{flex:none;display:flex;flex-direction:column;margin-top:6px;padding-top:4px;border-top:0.5px solid var(--daluo-alias-border-l3)}
|
|
931
|
-
.taskHead{display:flex;align-items:center;gap:6px;height:28px;padding:0 8px;color:var(--daluo-alias-label-tertiary);font-size:13px;line-height:20px}
|
|
932
|
-
.taskHead .taskTitle{flex:1;min-width:0}
|
|
933
|
-
.taskHead .taskCount{flex:none}
|
|
934
|
-
#tasklist{display:flex;flex-direction:column;max-height:calc(var(--ui-vh) * 0.3);overflow-y:auto}
|
|
935
|
-
/* 空态:一行如实说(不画空框、不留空高度) */
|
|
936
|
-
.taskEmpty{height:28px;padding:0 8px;color:var(--daluo-alias-label-tertiary);font-size:12px;line-height:28px}
|
|
937
|
-
/* 会话树区(dsh .regionArea):吃掉侧栏内边距让滚动条贴边;收起态整块不画 */
|
|
938
|
-
.regionArea{flex:1;min-height:0;display:flex;flex-direction:column;margin-left:-4px;margin-right:-12px;padding-left:4px;overflow:hidden}
|
|
939
|
-
/* 收起 = **折成 56px rail**(dsh SidebarRoot.module.css 的 .collapsed 一族,2026-09-17 用户实测):
|
|
940
|
-
列宽 56 = 36px 控件 + 2×10px 内边距;控件排 36×36、12px 竖节奏;字标与新会话文字退场。
|
|
941
|
-
**改前只藏了 .regionArea** ⇒ 侧栏仍是 280px 一条白板,用户原话「点击收起,但侧边栏还在」。
|
|
942
|
-
(dsh 收起时还会把品牌标记换成 hover 才现的展开钮;我们**保留那颗面板图标**——它是唯一的展开入口,
|
|
943
|
-
藏起来会让人找不到回来的路。这条差异是有意的。) */
|
|
944
|
-
aside.collapsed{--rail-w:56px;width:var(--rail-w);padding:18px 10px 6px}
|
|
945
|
-
aside.collapsed .logoRow{height:36px;padding:0;margin-bottom:12px;justify-content:flex-start}
|
|
946
|
-
aside.collapsed .logoRow .brand b{display:none}
|
|
947
|
-
aside.collapsed .iconButton{width:36px;height:36px;color:var(--daluo-alias-label-primary)}
|
|
948
|
-
aside.collapsed .navList{margin:0 0 12px}
|
|
949
|
-
aside.collapsed .navRow{align-self:flex-start;width:36px;height:36px;padding:0;justify-content:center;gap:0}
|
|
950
|
-
aside.collapsed .navRow .navlabel,aside.collapsed .navRow .navkey{max-width:0;display:none}
|
|
951
|
-
aside.collapsed .panelRow{width:36px;height:36px;padding:0;justify-content:center}
|
|
952
|
-
aside.collapsed .panelRow>span{display:none}
|
|
953
|
-
aside.collapsed .regionArea,aside.collapsed .taskArea{display:none}
|
|
954
|
-
/* 收起时那三枚字形要撑满 36px 方块(图标自身 16px,悬停就是整块底色) */
|
|
955
|
-
aside.collapsed .navglyph{width:20px;height:20px;color:var(--daluo-alias-label-primary)}
|
|
956
|
-
/* 底部设置座(dsh .footArea/.settingsArea + 入口那行):**42px 行、12px 圆角、
|
|
957
|
-
'0 10px 0 8px' 内边距**、悬停底(dsh ui-settings-general/SettingsRoot.module.css:16-36 的 '.trigger',
|
|
958
|
-
审计 P2#8)。改前 36px/8px/'7px 8px':矮一档、圆角小一档,左右内边距方向也反了
|
|
959
|
-
(dsh 是「左窄右宽」——左边贴图标、右边给文字留口)。 */
|
|
960
|
-
.footArea{flex:none;display:flex;flex-direction:column;margin-top:2px}
|
|
961
|
-
.panelRow{display:flex;align-items:center;gap:8px;width:100%;height:42px;padding:0 10px 0 8px;box-sizing:border-box;border:none;border-radius:12px;background:transparent;color:var(--daluo-alias-label-secondary);font:inherit;line-height:22px;text-align:left;cursor:pointer}
|
|
962
|
-
.panelRow:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
963
|
-
#sessions{flex:1;min-height:0;overflow-y:auto}
|
|
964
|
-
/* 侧栏会话区**段头**(逐字对 dsh ui-workspace WorkspaceBrowser.module.css 的 .sectionHeader/.sectionLabel,
|
|
965
|
-
2026-09-17 第三轮改判):36px 一行、gap 4px、padding-left 4px、非 rail 下 margin 2px -4px 4px 0。
|
|
966
|
-
**标签自己没有字号**——上游 .sectionLabel 只给 line-height:20px(实测活体 dsh:14px/20px),
|
|
967
|
-
色走 tertiary;改前写的 12/18/500 是照原型抄的,与上游源文件对不上,本轮按源文件翻正。
|
|
968
|
-
右侧动作簇 gap 4px:归档开关 + +(都是 28px 圆图标钮)。**标签不是控件,两个钮都是真动作**。 */
|
|
969
|
-
/* 段头(dsh WorkspaceBrowser.module.css 的 .sectionHeader/.sectionLabel/.searchSlot/.headerActions):
|
|
970
|
-
**36px 一行**、右对齐、gap 4、圆角 12、tertiary 墨;标签最多占 45%。
|
|
971
|
-
**搜索默认收成一枚 28px 图标**,点了原地展开成输入框——展开时标签与动作簇各自收成 0 宽(180ms 缓动),
|
|
972
|
-
于是「搜索占满这一行」而不是另起一行(这正是 dsh 的形态;我们原来是常显一整行搜索框)。 */
|
|
973
|
-
.wsSection{flex:none;display:flex;align-items:center;justify-content:flex-end;gap:4px;height:36px;padding-left:4px;margin:2px -4px 4px 0;border-radius:12px;overflow:hidden;color:var(--daluo-alias-label-tertiary)}
|
|
974
|
-
.wsSection .wsSectionLabel{transition:max-width 180ms ease-in-out,opacity 120ms ease-in-out,visibility 0s linear}
|
|
975
|
-
.wsSection.open .wsSectionLabel{max-width:0;opacity:0;visibility:hidden;transition-delay:0s,0s,180ms}
|
|
976
|
-
.wsSection .wsSectionActions{transition:max-width 180ms ease-in-out,opacity 120ms ease-in-out,visibility 0s linear}
|
|
977
|
-
.wsSection.open .wsSectionActions{max-width:0;opacity:0;visibility:hidden;pointer-events:none;transition-delay:0s,0s,180ms}
|
|
978
|
-
/* 搜索槽:收起时就是那枚 28px 图标(输入框 0 宽),展开时吃掉整行 */
|
|
979
|
-
.searchSlot{flex:1;display:flex;align-items:center;margin-left:auto;min-width:0;padding-left:0}
|
|
980
|
-
.wsSection .searchSlot{max-width:28px;transition:max-width 180ms ease-in-out}
|
|
981
|
-
.wsSection.open .searchSlot{max-width:100%}
|
|
982
|
-
.wsSection .searchSlot .filter{width:0;min-width:0;opacity:0;visibility:hidden;transition:opacity 120ms ease-in-out}
|
|
983
|
-
.wsSection.open .searchSlot .filter{width:100%;opacity:1;visibility:visible}
|
|
984
|
-
.wsSectionActions{flex:none;display:flex;align-items:center;gap:4px}
|
|
985
|
-
.wsSectionLabel{flex:1;min-width:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:20px;color:var(--daluo-alias-label-tertiary)}
|
|
986
|
-
/* 工作区行(逐字对 dsh ui-workspace Rows.module.css 的 .projectRow):**34px**(与 32px 的会话行不同高)、
|
|
987
|
-
圆角 8、0 8px 内边距、gap 6px、label-primary。 */
|
|
988
|
-
.wsgroup{display:flex;align-items:center;justify-content:space-between;height:34px;padding:0 8px;border:none;border-radius:8px;background:transparent;color:var(--daluo-alias-label-primary);font:inherit;line-height:22px;cursor:pointer}
|
|
989
|
-
.wsgroup>.wslead{display:flex;align-items:center;gap:6px;min-width:0}
|
|
990
|
-
/* 当前项目行那枚文件夹字形(决策 63:与别的根的行同一个字形)。`.wslead` 是 flex,字形不许被压扁。 */
|
|
991
|
-
.wsgroup .wsrglyph{flex:none;display:inline-flex;align-items:center;color:var(--daluo-alias-label-secondary)}
|
|
992
|
-
.wsgroup:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
993
|
-
.wsgroup .caret{color:var(--daluo-alias-label-tertiary);font-size:12px}
|
|
994
|
-
.wstitle{font-weight:500;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
995
|
-
/* 工作区菜单(对齐 dsh 的 Workspaces 菜单):已登记的根一步切换;「浏览目录…」才是picker */
|
|
996
|
-
.wsmenu{margin:.2rem 0 .4rem;border:0;border-radius:20px;background:var(--daluo-specific-menu);padding:4px;display:flex;flex-direction:column;gap:.1rem;--daluo-elevation-stroke-color:var(--daluo-alias-border-l1);box-shadow:var(--daluo-elevation-prominent);--daluo-scrollbar-thumb:var(--daluo-alias-scrollbar-bg-l2);--daluo-scrollbar-thumb-hover:var(--daluo-alias-scrollbar-hover-l2)}
|
|
997
|
-
.wsmenu button{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:8px 10px;border:0;border-radius:10px;background:none;color:var(--daluo-alias-label-primary);cursor:pointer;text-align:left;font-size:14px;line-height:22px}
|
|
998
|
-
.wsmenu button:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
999
|
-
.wsmenu button .wsm-sub{font-size:12px;line-height:18px;color:var(--daluo-alias-label-tertiary);margin-left:auto}
|
|
1000
|
-
.wsmenu button[aria-current="true"]{color:var(--accent);font-weight:600}
|
|
1001
|
-
.wsmenu button.gone{color:var(--muted);text-decoration:line-through}
|
|
1002
|
-
/* 「目录不在了」的**收拢行**(2026-09-17):一行、28px、计数如实;它是按钮(可展开/收起),
|
|
1003
|
-
键盘也能到。**为什么必须有**:本机侧栏曾被 139 个死根铺满一屏(测试残留 + 挪走的项目)。 */
|
|
1004
|
-
.wsdead{display:block;width:100%;height:28px;padding:0 8px;border:0;border-radius:8px;background:none;color:var(--daluo-alias-label-tertiary);font:inherit;font-size:12px;line-height:28px;text-align:left;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1005
|
-
.wsdead:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1006
|
-
/* 工作区菜单的一行:条目 + **悬停才出现**的「移除登记」(不占位——同会话行的 ⋯)。
|
|
1007
|
-
注意要写成 .wsmenu button.wsmdel(上面那条 .wsmenu button 更特指,光写 .wsmdel 压不过它)。 */
|
|
1008
|
-
.wsmenu .wsmrow{display:flex;align-items:center;gap:2px}
|
|
1009
|
-
.wsmenu .wsmrow>button:first-child{flex:1;min-width:0}
|
|
1010
|
-
.wsmenu button.wsmdel{flex:none;display:none;width:auto;min-height:0;color:var(--daluo-alias-label-tertiary)}
|
|
1011
|
-
.wsmenu .wsmrow:hover button.wsmdel,.wsmenu .wsmrow:focus-within button.wsmdel{display:flex}
|
|
1012
|
-
.wsmenu button.wsmdel:hover{color:var(--daluo-alias-state-error-primary)}
|
|
1013
|
-
/* 注:**.wsmenu button{width:100%} 只针对「菜单行」按钮**(起名/切换工作区那类整行入口),
|
|
1014
|
-
但 .wsmdel 是同一根目录里的 button——所以要给 wsmdel 明确写 width:auto 兜住(
|
|
1015
|
-
否则 flex:none 的基准尺寸取 width:100% ⇒ hover 时「移除」吃满整行、压住项目名,
|
|
1016
|
-
2026-09-20 客户实测+DOM 几何钉死)。这条的判据在 server/test/ui-layout.test.ts。 */
|
|
1017
|
-
/* 别的根 = 项目行(dsh .projectRow:34px、圆角 8、0 8px、gap 6、悬停 interactive-bg-hover) */
|
|
1018
|
-
.wsrootrow{display:flex;align-items:center;gap:6px;width:100%;min-width:0;height:34px;padding:0 8px;border:none;border-radius:8px;background:transparent;color:var(--daluo-alias-label-primary);font:inherit;line-height:22px;text-align:left;cursor:pointer}
|
|
1019
|
-
.wsrootrow:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1020
|
-
.wsrootrow .wsrglyph{flex:none;display:inline-flex;align-items:center}
|
|
1021
|
-
.wsrootrow .wsrname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1022
|
-
.wsrow-ro{opacity:.72}
|
|
1023
|
-
/* 行尾计数 / 空态提示:dsh 的行内次要文本档是 **12px/20px tertiary**(Rows.module.css
|
|
1024
|
-
'.meta' / '.time' / '.searchResultSnippet')——改前这里是 11px + '--muted'(= label-secondary,
|
|
1025
|
-
比档位还深一档),字号与色位两处都偏。 */
|
|
1026
|
-
.wscount{font-size:12px;line-height:20px;color:var(--daluo-alias-label-tertiary)}
|
|
1027
|
-
/* 搜索框(逐字对原型 Sidebar.module.css 的 .searchBox/.searchInput + dsh 的 .searchInput 字号):
|
|
1028
|
-
32px 一条、圆角 8、0.5px l3 描边、elevated-fill 底、0 8px 内边距、gap 6px + 一枚 14px 放大镜;
|
|
1029
|
-
输入本身**无边框无底色**(边框属于外框——两处都画会看到双线),13/18、placeholder tertiary。 */
|
|
1030
|
-
.filter{flex:1;min-width:0;width:100%;border:0;background:transparent;outline:none;font:inherit;font-size:13px;line-height:18px;color:var(--daluo-alias-label-primary)}
|
|
1031
|
-
.filter::placeholder{color:var(--daluo-alias-label-tertiary)}
|
|
1032
|
-
.sesspath{font-size:12px;line-height:20px;color:var(--daluo-alias-label-tertiary);padding:4px 8px}
|
|
1033
|
-
/* 会话行(逐字对 dsh ui-workspace Rows.module.css 的 .sessionRow/.slot/.title/.time,2026-09-17 第三轮):
|
|
1034
|
-
32px **单行**、圆角 8、0 8px 内边距;状态槽 16×20;标题 14/20(0 6px 0 4px);时间 12/20 tertiary 贴右。
|
|
1035
|
-
**行里不显示文件名**——上游行内只有标题与时间(文件名留在 title 提示与行菜单里)。
|
|
1036
|
-
选中态与悬停同底(上游 .sessionRow.selected 就是 interactive-bg-hover),不再另加粗。 */
|
|
1037
|
-
.sessrow{position:relative;display:flex;align-items:center;height:32px}
|
|
1038
|
-
aside button.sess{display:flex;align-items:center;width:100%;min-width:0;height:32px;padding:0 8px;border:0;border-radius:8px;background:none;color:var(--daluo-alias-label-primary);font:inherit;font-size:14px;line-height:20px;text-align:left;cursor:pointer;overflow:hidden}
|
|
1039
|
-
aside button.sess:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1040
|
-
aside button.sess.active{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1041
|
-
.sessrow .slot{flex:none;display:inline-flex;align-items:center;justify-content:center;width:16px;height:20px;margin-right:4px;color:var(--daluo-alias-label-tertiary)}
|
|
1042
|
-
.sessrow .stitle{flex:1;min-width:0;margin-right:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1043
|
-
.sessrow .age{flex:none;font-size:12px;line-height:20px;color:var(--daluo-alias-label-tertiary)}
|
|
1044
|
-
/* 平铺视图行里的**工作区标签**(决策 63):不分组就得说清这条是哪儿的;它排在标题与时间之间,可截断。 */
|
|
1045
|
-
.sessrow .sws{flex:none;max-width:38%;margin-right:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:20px;color:var(--daluo-alias-label-tertiary)}
|
|
1046
|
-
/* 会话行操作(对齐 dsh 的 Session actions):悬停才出现「⋯」,点开一个小菜单;改名在行内做 */
|
|
1047
|
-
/* 状态点:6px 圆点 + 只有颜色是不够的(title/aria-label 给文字线索);运行中做个缓慢呼吸,
|
|
1048
|
-
prefers-reduced-motion 下不动(同本页其它动画的约定)。点画在行首 16px 的 .slot 里居中,
|
|
1049
|
-
所以点自己**不再带外边距**(间距由槽给——两处都给会偏右 5.6px)。 */
|
|
1050
|
-
.dot{width:6px;height:6px;border-radius:50%;corner-shape:round;display:inline-block;flex:0 0 auto}
|
|
1051
|
-
.dot.wait{background:var(--warn)}
|
|
1052
|
-
.dot.run{background:var(--accent);animation:dotpulse 1.6s ease-in-out infinite}
|
|
1053
|
-
@keyframes dotpulse{0%,100%{opacity:1}50%{opacity:.45}}
|
|
1054
|
-
@media (prefers-reduced-motion: reduce){.dot.run{animation:none}}
|
|
1055
|
-
/* 拖拽排序(spec/web-ui.md 决策 23):拖起来的那行淡出、落点那行显示一条插入线(上/下) */
|
|
1056
|
-
.sessrow[data-dragging]{opacity:.45}
|
|
1057
|
-
.sessrow[data-drop="above"]{box-shadow:inset 0 2px 0 var(--accent)}
|
|
1058
|
-
.sessrow[data-drop="below"]{box-shadow:inset 0 -2px 0 var(--accent)}
|
|
1059
|
-
.sessrow button.sess{min-width:0}
|
|
1060
|
-
/* 行操作(dsh .rowActions):**悬停才出现**。用 display:none 而不是 visibility——visibility 会让
|
|
1061
|
-
⋯ 一直占着 17px,时间被挤离右缘(实测行宽 239 vs 上游 256)。裸 16px 字形、tertiary。 */
|
|
1062
|
-
.sessmore{flex:none;display:none;align-items:center;justify-content:center;width:16px;height:20px;border:0;background:none;color:var(--daluo-alias-label-tertiary);cursor:pointer;font:16px var(--daluo-font-family-code);padding:0}
|
|
1063
|
-
.sessrow:hover .sessmore,.sessrow.menuopen .sessmore,.sessrow:focus-within .sessmore{display:inline-flex}
|
|
1064
|
-
.sessmore:hover{color:var(--daluo-alias-label-primary)}
|
|
1065
|
-
.sessmenu{position:absolute;right:.2rem;top:100%;z-index:12;background:var(--daluo-specific-menu);border:0;border-radius:20px;box-shadow:var(--daluo-elevation-prominent);padding:4px;display:flex;flex-direction:column;min-width:8rem;--daluo-elevation-stroke-color:var(--daluo-alias-border-l1);--daluo-scrollbar-thumb:var(--daluo-alias-scrollbar-bg-l2);--daluo-scrollbar-thumb-hover:var(--daluo-alias-scrollbar-hover-l2)}
|
|
1066
|
-
.sessmenu button{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:8px 10px;border:0;border-radius:10px;background:none;color:var(--daluo-alias-label-primary);cursor:pointer;text-align:left;font-size:14px;line-height:22px}
|
|
1067
|
-
.sessmenu button:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1068
|
-
.sessmenu button.danger{color:var(--daluo-alias-state-error-primary)}
|
|
1069
|
-
.sessmenu button.danger:hover{background:var(--daluo-alias-interactive-bg-hover-danger)}
|
|
1070
|
-
.sessrow input.sessname{flex:1;min-width:0;padding:0 2px;border:0.5px solid var(--daluo-alias-border-l4);border-radius:4px;background:var(--daluo-alias-button-elevated-fill);color:inherit;outline:none;font-size:14px;line-height:20px}
|
|
1071
|
-
/* 归档徽章:归到本页已有的**徽章族**(.pvbadge/.mmbadge,形状本身取自 dsh 轨迹表的 kind 徽章)——
|
|
1072
|
-
改前是 10px 等宽 + 1px 描边 + 999px 胶囊,是三处里唯一不在族里的一条。 */
|
|
1073
|
-
.badge-archived{flex:none;padding:0 5px;border:0.5px solid var(--daluo-alias-border-l1);border-radius:5px;font-size:11px;line-height:17px;color:var(--daluo-alias-label-tertiary);margin-left:4px}
|
|
1074
|
-
/* 对话列**不许被挤破**:里面那些东西有最小宽度(composer 的 clamp(680px,…)、轨迹表),
|
|
1075
|
-
列宽被压到它们以下时它们会**画到右栏上**(用户实测的截图)。裁剪一层,让它自己收着。
|
|
1076
|
-
右栏那边同时有上限(--dock-chat-floor):两处一起才既不溢出也不重叠。 */
|
|
1077
|
-
section{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden}
|
|
1078
|
-
/* ── 会话头(逐条对 dsh 'ui-conversation/src/client/skeleton/ConversationRoot.module.css',2026-09-17)──
|
|
1079
|
-
**76px 双行**:上 30px 标题行(标题簇 + 右侧动作,'padding:10px 28px 0 20px' 整体),
|
|
1080
|
-
下页签行('margin-top:10px'、'gap:36px'、'padding-left:8px'、13px/16px 500;
|
|
1081
|
-
选中走 business-primary 蓝字 + 2px 蓝条压在 0.5px 分隔线上——'bottom:-1px' 让它盖住线)。
|
|
1082
|
-
76px 不是随手的数:dsh 注释写明它与右栏 tabStrip 38px + 头 38px 的和取齐,两道线在列边相遇。 */
|
|
1083
|
-
.sesshead{flex:none;display:flex;flex-direction:column;box-sizing:border-box;min-height:76px;padding:10px 28px 0 20px;border-bottom:0.5px solid var(--daluo-alias-border-l3)}
|
|
1084
|
-
.titleRow{display:flex;align-items:center;min-height:30px}
|
|
1085
|
-
.titleCluster{display:flex;flex:1;align-items:center;gap:10px;min-width:0}
|
|
1086
|
-
/* 标题(dsh .crumbCurrent):14/20、500、primary——不再是 12px 等宽的 .meta */
|
|
1087
|
-
#title{font-size:14px;line-height:20px;font-weight:500;color:var(--daluo-alias-label-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1088
|
-
.headerUtilities{position:relative;display:flex;flex:none;align-items:center;gap:8px;margin-left:20px}
|
|
1089
|
-
.tabs{position:relative;z-index:1;display:flex;gap:36px;margin-top:10px;padding-left:8px}
|
|
1090
|
-
/* 页签用 aria-selected 表达"当前是哪一个"——**语义先于样式**(读屏与键盘同样能读到) */
|
|
1091
|
-
.tab{position:relative;padding:0 0 9px;border:none;background:transparent;color:var(--daluo-alias-label-tertiary);font-size:13px;line-height:16px;font-weight:500;cursor:pointer}
|
|
1092
|
-
.tab::after{content:'';position:absolute;right:0;bottom:-1px;left:0;height:2px;border-radius:2px;background:transparent}
|
|
1093
|
-
.tab[aria-selected="true"]{color:var(--daluo-alias-state-business-primary)}
|
|
1094
|
-
.tab[aria-selected="true"]::after{background:var(--daluo-alias-state-business-primary)}
|
|
1095
|
-
.streamwrap{position:relative;flex:1;display:flex;min-height:0}
|
|
1096
|
-
/* 消息间节奏 = dsh '--dsh-chat-flow-gap' 的**默认值 16px**(ChatView.module.css:49-52:
|
|
1097
|
-
'.column > :not([hidden]) ~ :not([hidden]){margin-top:var(--dsh-chat-flow-gap,16px)}'),
|
|
1098
|
-
容器内边距 16px(dsh 同值)。**改前写 8px 是把特例当默认**:dsh 里 8px 只给
|
|
1099
|
-
'.flowItem[data-turn-process-answer]'(:62-64,收起的「过程→答复」对)。daluo 的 DOM 比 dsh 扁
|
|
1100
|
-
——工具组('.tgroup')/回执都是 '#stream' 的直接孩子,dsh 里它们包在同一个 flowItem 内——
|
|
1101
|
-
没有那个配对单位可挂 ⇒ 取默认值、一律 16px(2026-09-20 样式差异审计 P1#1;spec/web-ui.md 决策 66)。
|
|
1102
|
-
**横向内边距 = max(32px, (流区 − 内容列宽)/2)**(决策 65 定的居中手法 + 决策 66 补的下限)——
|
|
1103
|
-
32px 是 dsh 的下限:'.scroll{padding:16px calc(var(--dsh-composer-side-clearance) + 16px)}'
|
|
1104
|
-
(side-clearance=16px,ConversationRoot.module.css:363)⇒ 窄视口下 dsh 的正文恒比视口窄 32px。
|
|
1105
|
-
改前是 'max(0px,…)',流区比内容列窄时内边距归零、正文贴边(审计 P3#14)。
|
|
1106
|
-
居中收在**容器**这一层,所有孩子(含 '.msg.user' 的 'margin-left:auto')自动落进同一条列,
|
|
1107
|
-
不必给每个消息类各写一遍。hero / traj 两态各自把 padding 归零(要满宽),特异性更高,不受影响。 */
|
|
1108
|
-
#stream{flex:1;overflow:auto;padding:1rem max(32px, calc((100% - var(--daluo-chat-content-width)) / 2));display:flex;flex-direction:column;gap:16px}
|
|
1109
|
-
/* 短会话**贴着输入框往上长**(2026-09-19,用户实测"这布局你自己看着对吗"):改前内容顶在上面、
|
|
1110
|
-
下方空出一大片(1280×800 实测最后一条消息底边 y≈375 而输入框顶边 y≈655 ⇒ ~280px 纯空;
|
|
1111
|
-
2560×1271 上半屏以上),短会话看着像"没加载完"。
|
|
1112
|
-
**为什么不是 `justify-content:flex-end`**:那会让溢出的内容跑到滚动原点之上、**滚不回去**
|
|
1113
|
-
(`overflow:auto` 下的经典坑)。给首个孩子 `margin-top:auto` 是等价且安全的写法——
|
|
1114
|
-
内容不满时那片 auto 吃掉余量把它压到底;内容一溢出,auto 归零,滚动行为与改前逐字相同。 */
|
|
1115
|
-
#stream > :first-child{margin-top:auto}
|
|
1116
|
-
/* 回合导航条 = dsh 的 Turn rail(TurnNavigator.module.css 逐值,2026-09-20 决策 68):
|
|
1117
|
-
刻度**贴右缘**(dsh '.mark{inset:0 0 0 auto}')、静止 12×2 圆角 2 **border-l4**
|
|
1118
|
-
(改前 8×2 圆角 1 border-l2:一档偏短、一档偏深);
|
|
1119
|
-
当前格是**加宽**不是加高(dsh '.markActive::before{width:20px;background:label-primary}'),
|
|
1120
|
-
悬停取 dsh 的 preview 档(18px + label-tertiary);焦点环同 dsh(business-primary)。
|
|
1121
|
-
槽宽 = dsh '.mark' 的 20px,右缘 12px 内缩(dsh '.frame{right:calc(12px - …)}')。 */
|
|
1122
|
-
.rail{position:absolute;right:12px;top:.5rem;bottom:.5rem;width:20px;display:flex;flex-direction:column;gap:3px;align-items:flex-end;padding:2px 0;overflow:hidden}
|
|
1123
|
-
.railmark{width:12px;height:2px;border:0;padding:0;background:var(--daluo-alias-border-l4);border-radius:2px;cursor:pointer}
|
|
1124
|
-
.railmark:hover{background:var(--daluo-alias-label-tertiary);width:18px}
|
|
1125
|
-
.railmark[aria-current="true"]{background:var(--daluo-alias-label-primary);width:20px}
|
|
1126
|
-
.railmark:focus-visible{outline:1px solid var(--daluo-alias-state-business-primary)}
|
|
1127
|
-
/* 回到最新:滚上去之后才出现(没滚上去就不该占地方) */
|
|
1128
|
-
.tobottom{corner-shape:round;position:absolute;right:1.2rem;bottom:1rem;border:0.5px solid var(--daluo-alias-border-l2);background:var(--daluo-alias-bg-layer-1);color:var(--daluo-alias-label-primary);border-radius:999px;padding:.2rem .7rem;font:var(--daluo-font-xxs-12);cursor:pointer;box-shadow:var(--daluo-elevation-soft)}
|
|
1129
|
-
.tobottom:hover{background:var(--soft)}
|
|
1130
|
-
.msg{max-width:var(--daluo-chat-content-width);padding:.5rem .75rem;border-radius:8px;white-space:pre-wrap;word-break:break-word}
|
|
1131
|
-
/* 用户消息 = **栈**(气泡 + 动作行),逐条对 dsh MessageItem 的 .userStack:flex column、
|
|
1132
|
-
align-items:flex-end、gap 8px,气泡栈宽 = min(内容列*0.702, 82%)。
|
|
1133
|
-
**动作行在气泡外面**(旧版把时间/复制塞进气泡里,看着像正文的一部分——dsh 是气泡下方独立一行)。 */
|
|
1134
|
-
.msg.user{display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:min(calc(var(--daluo-chat-content-width) * 0.702),82%);margin-left:auto;padding:0;border-radius:0;background:none}
|
|
1135
|
-
/* 气泡本体(dsh .bubble):22px 圆角、10/16 内边距、bubble 专用色、行高 = 22px + delta
|
|
1136
|
-
**min-width(2026-09-19)**:圆角 22px + 上下内边距 10px ⇒ 气泡高度 42px;单字符消息(如"1")
|
|
1137
|
-
宽度只有 ~46px 就成了**近圆形**,看着像侧栏那种计数徽章、不像一条消息。给个下限让它保持横长比例;
|
|
1138
|
-
长消息完全不受影响(下限只在内容更窄时起作用)。 */
|
|
1139
|
-
.msg.user .ububble{background:var(--daluo-specific-bubble);color:var(--daluo-alias-label-primary);border-radius:22px;padding:10px 16px;min-width:4.5em;line-height:calc(22px + var(--daluo-content-font-delta,0px));white-space:pre-wrap;word-break:break-word}
|
|
1140
|
-
/* assistant 正文**不装气泡**(对齐 dsh 的文档式排版):回答直接排在页面底色上,过程(工具卡/思维链)才是有框的东西。
|
|
1141
|
-
旧版给每条消息套灰底+边框,结果是长会话读起来像一堆聊天记录而不是一篇文档(spec/web-ui.md 决策 11)。 */
|
|
1142
|
-
.msg.assistant{background:none;border:0;padding:0}
|
|
1143
|
-
/* 系统注入的用户消息(harness 自己追加的,如完成门的 [system 纠正]):不是人说的话,别占用户气泡的位置 */
|
|
1144
|
-
.sysline{max-width:52rem;border-left:2px solid var(--daluo-alias-label-caption);padding:.15rem 0 .15rem .6rem}
|
|
1145
|
-
.sysline .syslabel{display:block;font:11px var(--daluo-font-family-code);color:var(--muted);margin-bottom:.15rem}
|
|
1146
|
-
.sysline .systext{display:block;color:var(--muted);white-space:pre-wrap;word-break:break-word}
|
|
1147
|
-
/* 对话区(对齐 dsh):assistant 文本走 Markdown 子集;工具调用降级为**次要卡片**(一行摘要 + 可展开)。
|
|
1148
|
-
工具是过程,不该淹掉答复——旧版把每次调用的入参 JSON 与输出全摊开,一眼看不到回答在哪。 */
|
|
1149
|
-
/* 消息内排版(逐条对 dsh 'ui-primitives/src/markdown/MarkdownText.module.css' + 它的排印 token 表,2026-09-17):
|
|
1150
|
-
基础行高走 markdown-base(14px/24px+delta,**不是**流区那档 22px);段落 16px;标题用 h1..h4 的 token
|
|
1151
|
-
(所以标题会跟着 'ui.fontSize' 偏好一起缩放——dsh 排版稳的机制就在这儿);列表 16px/左缩进 18px、
|
|
1152
|
-
列表项之间 6px;引用 16px 0 0 / 左缩进 14px;分隔线 32px;行内代码 0.875em + 左右 5px。 */
|
|
1153
|
-
.md{font:var(--daluo-font-markdown-base);white-space:pre-wrap;word-break:break-word}
|
|
1154
|
-
.md>*:first-child{margin-top:0}
|
|
1155
|
-
.md>*:last-child{margin-bottom:0}
|
|
1156
|
-
.md h1{font:var(--daluo-font-markdown-h1);margin:32px 0 16px}
|
|
1157
|
-
.md h2{font:var(--daluo-font-markdown-h2);margin:32px 0 16px}
|
|
1158
|
-
.md h3{font:var(--daluo-font-markdown-h3);margin:32px 0 16px}
|
|
1159
|
-
.md h4{font:var(--daluo-font-markdown-h4);margin:16px 0}
|
|
1160
|
-
.md h5,.md h6{font:var(--daluo-font-markdown-base-strong);margin:16px 0}
|
|
1161
|
-
.md p{margin:16px 0}
|
|
1162
|
-
.md ul,.md ol{margin:16px 0;padding-left:18px}
|
|
1163
|
-
.md li:not(:first-child){margin-top:6px}
|
|
1164
|
-
/* 引用条 2px + label-caption(dsh MarkdownText.module.css:151-155:'border-left:2px solid
|
|
1165
|
-
var(--dsw-alias-label-caption)')。改前 3px + '--line'——粗 1px,且颜色走的是「边框灰」,
|
|
1166
|
-
比参考淡一档(审计 P2#7)。 */
|
|
1167
|
-
.md blockquote{margin:16px 0 0;padding-left:14px;border-left:2px solid var(--daluo-alias-label-caption);color:var(--muted)}
|
|
1168
|
-
/* 分隔线 0.5px + border-l2(dsh MarkdownText.module.css:143-149:'border:none;height:0.5px;
|
|
1169
|
-
background:var(--dsw-alias-border-l2)')。改前 1px——同色、粗细差一倍(审计 P2#12)。 */
|
|
1170
|
-
.md hr{border:none;height:0.5px;margin:32px 0;background:var(--daluo-alias-border-l2)}
|
|
1171
|
-
.md a{color:var(--accent);font-weight:500}
|
|
1172
|
-
/* 行内码 0.5px + 6px 圆角 + markdown-inline-code 底(dsh MarkdownText.module.css:163-174)。
|
|
1173
|
-
改前 1px + 4px 圆角 + '--soft' 底——边框粗一倍、圆角小一档,底色也不是那个 token
|
|
1174
|
-
('--soft' 是侧栏底 bluish-50,行内码该走 neutral-50)(审计 P2#11)。 */
|
|
1175
|
-
.md code{background:var(--daluo-alias-markdown-inline-code);border:0.5px solid var(--daluo-alias-border-l1);border-radius:6px;padding:0 5px;font:var(--daluo-font-markdown-code);font-size:.875em}
|
|
1176
|
-
/* GFM 表格(spec/web-ui.md 决策 17):模型经常吐表格,此前原样显示竖线——那是"看内容"的天花板。
|
|
1177
|
-
宽表格自己横向滚动(display:block + overflow),别把对话区撑宽。 */
|
|
1178
|
-
.md .mtable{border-collapse:collapse;margin:.5rem 0;font-size:13px;display:block;max-width:100%;overflow:auto}
|
|
1179
|
-
.md .mtable th,.md .mtable td{border:1px solid var(--line);padding:.25rem .5rem;text-align:left;vertical-align:top}
|
|
1180
|
-
.md .mtable th{background:var(--soft);font-weight:600}
|
|
1181
|
-
.md .mtable .al-c{text-align:center}
|
|
1182
|
-
.md .mtable .al-r{text-align:right}
|
|
1183
|
-
/* 代码块一族(dsh ui-primitives/markdown/CodeBlock.module.css,审计 P1#2/#3/#4):
|
|
1184
|
-
'.block' = 12px 圆角 + markdown-code-block 底 + **全文件没有 border**(改前 6px 圆角 + 一圈 1px 描边,
|
|
1185
|
-
比参考「硬」);'.block :where(pre)' = 'padding:16px' + 'font: var(--dsl-code-block-content-font)'
|
|
1186
|
-
(= --dsw-font-markdown-code-block = 11px/19px,改前 8px 9.6px / 12px);'.banner' = 'padding:9px 14px'
|
|
1187
|
-
+ 'font: 11px/18px'(改前 2.4px 9.6px / 11px 无行高 ⇒ 语言条被压扁)。 */
|
|
1188
|
-
.md .codeblock{margin:16px 0;border-radius:12px;background:var(--daluo-alias-markdown-code-block);overflow:hidden}
|
|
1189
|
-
.md .code-lang{font:11px/18px var(--daluo-font-family-code);color:var(--muted);padding:9px 14px;border-bottom:0.5px solid var(--daluo-alias-border-l2)}
|
|
1190
|
-
.md pre.code{margin:0;border:0;border-radius:0;background:none;max-height:24rem;overflow:auto}
|
|
1191
|
-
.md pre.code code{display:block;padding:16px;background:none;border:0;border-radius:0;font:var(--daluo-font-markdown-code-block);white-space:pre}
|
|
1192
|
-
/* 语法高亮(spec/web-ui.md 决策 21):**自写词法、零外部依赖**(CSP 只允许同源脚本,也不许引 CDN)。
|
|
1193
|
-
四类够用:关键字 / 字符串 / 注释 / 数字;认不出的语言一律不着色(不假装会)。 */
|
|
1194
|
-
.hl-kw{color:var(--hl-kw)}
|
|
1195
|
-
.hl-str{color:var(--hl-str)}
|
|
1196
|
-
.hl-com{color:var(--hl-com);font-style:italic}
|
|
1197
|
-
.hl-num{color:var(--hl-num)}
|
|
1198
|
-
/* 工具调用**只占一行**(对齐 dsh):过程不该淹没答复——旧版每次都套一张带边框的卡 + 「参数」「结果」两个 pre,
|
|
1199
|
-
一条长会话里答复被顶得看不见。现在:一行(caret + 工具名 + 人话标题 + 状态),点开才出参数与结果。
|
|
1200
|
-
**没有框**是刻意的:有框的东西留给"这是内容"(代码块、审批条),过程用缩进与底线表示从属关系。 */
|
|
1201
|
-
.tool{margin:.1rem 0}
|
|
1202
|
-
/* 工具行摘要的字体 = **次要字号档 + 正文字体族**(dsh ToolRow.module.css:81-90 的 '.summary':
|
|
1203
|
-
'font-size:var(--dsh-content-font-size-secondary,13px); line-height:calc(24px + delta)',**未设
|
|
1204
|
-
font-family** ⇒ 走正文的 sans)。改前是 'font:12px var(--daluo-font-family-code)'——字号小一档
|
|
1205
|
-
**且**字体族是等宽,工具行与正文观感分家(审计 P2#5);行高也要跟着立起来('font:' 简写会把
|
|
1206
|
-
line-height 重置成 normal ≈14px,dsh 是「24px 单行」)。圆角 6px 对 dsh '.callRow'
|
|
1207
|
-
(ChatView.module.css:73-75,审计 P3#13)。 */
|
|
1208
|
-
.tool-head{display:flex;gap:.4rem;align-items:baseline;padding:.12rem .35rem;cursor:pointer;font-size:var(--daluo-content-font-size-secondary,13px);line-height:calc(24px + var(--daluo-content-font-delta,0px));color:var(--muted);border-radius:6px}
|
|
1209
|
-
.tool-head:hover{background:var(--soft)}
|
|
1210
|
-
.tool-head:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
|
|
1211
|
-
.tool-head .caret{color:var(--muted)}
|
|
1212
|
-
.tool-head .tname{color:var(--fg);font-weight:600}
|
|
1213
|
-
.tool-head .tsum{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
|
|
1214
|
-
.tool[data-state="err"] .tname,.tool[data-state="err"] .tstat{color:var(--danger)}
|
|
1215
|
-
/* 运行中的扫光(dsh ToolRow:'root[data-state='running'] .row::after' 一条 300px 宽的线性渐变扫过,
|
|
1216
|
-
2.6s ease-out 无限循环)。它给的是"还在跑"的**动感线索**(颜色之外的第二条线索);reduced-motion 下不动。 */
|
|
1217
|
-
.tool-head{position:relative;overflow:hidden}
|
|
1218
|
-
.tool[data-state="running"] .tool-head::after{content:'';position:absolute;top:0;bottom:0;left:0;width:300px;pointer-events:none;background:linear-gradient(90deg,transparent 0,color-mix(in srgb,var(--daluo-alias-bg-base) 60%,transparent) 55%,transparent 100%);animation:toolsweep 2.6s ease-out infinite}
|
|
1219
|
-
@keyframes toolsweep{from{transform:translateX(-300px)}to{transform:translateX(100%)}}
|
|
1220
|
-
@media (prefers-reduced-motion: reduce){.tool[data-state="running"] .tool-head::after{display:none}}
|
|
1221
|
-
/* 悬停才出现的「检视」胶囊(dsh ToolRow.inspectButton:0.5px 描边 + 999px 圆角 + 11px,
|
|
1222
|
-
平时 opacity:0,悬停/聚焦才 1 —— 它把「展开全部参数」这个动作留给需要的人,不占常态视觉)。 */
|
|
1223
|
-
.tool-inspect{display:inline-flex;align-items:center;gap:4px;margin:4px 0 2px 4px;padding:2px 8px;border:0.5px solid var(--daluo-alias-border-l3);border-radius:999px;corner-shape:round;background:var(--daluo-alias-bg-base);color:var(--daluo-alias-label-secondary);font-size:11px;line-height:16px;opacity:0;cursor:pointer;transition:opacity 100ms ease}
|
|
1224
|
-
.tool:hover .tool-inspect,.tool-inspect:focus-visible{opacity:1}
|
|
1225
|
-
.tool-stop{flex:none;border:0.5px solid var(--daluo-alias-border-l3);border-radius:999px;corner-shape:round;background:var(--daluo-alias-bg-base);color:var(--daluo-alias-label-secondary);font-size:11px;line-height:16px;padding:2px 8px;cursor:pointer}
|
|
1226
|
-
.tool-stop:hover{background:var(--daluo-alias-interactive-bg-hover-solid);color:var(--daluo-alias-label-primary)}
|
|
1227
|
-
.tool-stop:disabled{opacity:.5;cursor:default}
|
|
1228
|
-
/* 命令实时区(G2-44):**不展开也看得见** —— 长命令的价值就在这个位置(展开才看得到等于没做)。
|
|
1229
|
-
只留尾巴(`命令尾部` 裁到 4000 字符),且用等宽 + 单行滚动,别把卡片撑成一堵墙。 */
|
|
1230
|
-
.tool .tcmdlive{margin:.1rem 0 .2rem 1.4rem;border-left:2px solid var(--line);padding:.1rem 0 .1rem .6rem;max-height:6rem;overflow:auto;white-space:pre-wrap;font:12px var(--daluo-font-family-code);color:var(--daluo-alias-label-secondary);background:transparent;border-top:0;border-right:0;border-bottom:0}
|
|
1231
|
-
.tool-inspect:hover{background:var(--daluo-alias-interactive-bg-hover-solid);color:var(--daluo-alias-label-primary)}
|
|
1232
|
-
/* 展开体:dsh 的 'ioCard' + 'ioSection'(ui-tool/ToolRow.module.css)——**一张 IO 卡片**:
|
|
1233
|
-
0.5px 的 border-l1 边框、12px 圆角、底色走 markdown-code-block(与代码块同一底色),
|
|
1234
|
-
内边距 12/16、'max-height:150px' 每段自己滚;标签用 label-caption(它是"这段是什么",不是内容)。
|
|
1235
|
-
与左侧那条 2px 竖线并存:竖线表示**从属关系**(dsh 的工具行也缩进),卡片表示"这是内容"。 */
|
|
1236
|
-
.tool-body{margin:.1rem 0 .45rem 1rem;border-left:2px solid var(--line);padding:.2rem 0 .2rem .6rem}
|
|
1237
|
-
.tool-body .lbl{font:11px var(--daluo-font-family-code);color:var(--daluo-alias-label-caption);margin:.3rem 0 .1rem}
|
|
1238
|
-
.tool-body pre{margin:4px 0 4px 4px;border:0.5px solid var(--daluo-alias-border-l1);border-radius:12px;background:var(--daluo-alias-markdown-code-block);padding:12px 16px;max-height:150px;overflow:auto}
|
|
1239
|
-
pre{margin:.2rem 0;padding:.4rem;border:1px solid var(--line);border-radius:6px;overflow:auto;font:12px var(--daluo-font-family-code);max-height:14rem;white-space:pre-wrap}
|
|
1240
|
-
.meta,.note{font-size:12px;color:var(--muted)}
|
|
1241
|
-
/* 回执行:**与正文同一条居中列**(`#stream` 是 flex column,内容列宽由 `.msg` 自己夹;
|
|
1242
|
-
回执不跟上就贴在流的最左边——空会话里那一条压在侧栏边界上,看着像跑出去的碎字。
|
|
1243
|
-
2026-09-19 活体:换模型那条回执就是这么飘着的)。 */
|
|
1244
|
-
.note{font-style:italic;max-width:var(--daluo-chat-content-width);width:100%;margin:0 auto;padding:0 .75rem;box-sizing:border-box}
|
|
1245
|
-
#ask{border-top:1px solid var(--daluo-alias-state-warn-secondary);background:var(--daluo-alias-state-warn-tertiary);padding:.6rem;display:none;gap:.6rem;align-items:center}
|
|
1246
|
-
#ask.on{display:flex}
|
|
1247
|
-
#ask.stale{border-top-color:var(--line);background:var(--soft)}
|
|
1248
|
-
#ask.stale button{display:none}
|
|
1249
|
-
#ask .q{flex:1;font-size:13px}
|
|
1250
|
-
/* 风险分层(spec/permission-response.md 演进 S-03):请求方声明的档——高危确认**长得不一样**。
|
|
1251
|
-
medium 是既有底色(不额外标);low 压灰;high/critical 连条带底换 error 系。徽章只标事实,不解释。 */
|
|
1252
|
-
/* 来源徽章(spec/permission-provenance.md 决策 4):子代理 / 工作流节点 / 团队成员发起的确认——
|
|
1253
|
-
提示里就写着「这次是谁在问」(否则只看到一个工具名,分不清主代理还是它派的活)。
|
|
1254
|
-
主代理自己的询问**没有**来源 ⇒ 无徽章(不猜)。长任务摘要截断,别把审批条挤变形。 */
|
|
1255
|
-
#ask .originbadge{flex:0 0 auto;font-size:11px;line-height:1;padding:.3rem .5rem;border-radius:6px;border:1px solid var(--line);color:var(--muted);max-width:14rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1256
|
-
#ask .riskbadge{flex:0 0 auto;font-size:11px;line-height:1;padding:.3rem .5rem;border-radius:6px;border:1px solid var(--line);color:var(--muted)}
|
|
1257
|
-
#ask[data-risk="low"] .riskbadge{border-color:var(--line);color:var(--muted)}
|
|
1258
|
-
#ask[data-risk="medium"] .riskbadge{border-color:var(--daluo-alias-state-warn-secondary);color:var(--daluo-alias-state-warn-label)}
|
|
1259
|
-
#ask[data-risk="high"]{border-top-color:var(--daluo-alias-state-error-secondary)}
|
|
1260
|
-
#ask[data-risk="high"] .riskbadge{border-color:var(--daluo-alias-state-error-secondary);color:var(--daluo-alias-state-error-primary)}
|
|
1261
|
-
#ask[data-risk="critical"]{border-top-color:var(--daluo-alias-state-error-primary);background:var(--daluo-alias-state-error-tertiary,#fff5f5)}
|
|
1262
|
-
#ask[data-risk="critical"] .riskbadge{border-color:var(--daluo-alias-state-error-primary);background:var(--daluo-alias-state-error-primary);color:#fff}
|
|
1263
|
-
/* 提问模式(kind='question'):审批那两个按钮**换成**一个文本输入 + 提交。
|
|
1264
|
-
靠 data-mode 切换而不是各自一套 DOM——同一条 bar、同一份"等你拍板"的语义。 */
|
|
1265
|
-
#ask[data-mode="question"] #ask-allow,#ask[data-mode="question"] #ask-deny{display:none}
|
|
1266
|
-
#ask #ask-text{flex:1;min-width:8rem;border:1px solid var(--line);border-radius:6px;padding:.25rem .5rem;font:inherit}
|
|
1267
|
-
#ask[data-mode="question"] #ask-q{flex:0 0 auto;max-width:38%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1268
|
-
#ask button:disabled{opacity:.5;cursor:default}
|
|
1269
|
-
#ask button{border:1px solid var(--line);border-radius:6px;padding:.25rem .8rem;cursor:pointer}
|
|
1270
|
-
/* 权限选项(spec/permission-response.md 决策 1):按钮**由请求方给的选项表**渲染——
|
|
1271
|
-
事件带了 permissionOptions 就用它,那两枚固定按钮收起来(同一件事不许有两套入口);
|
|
1272
|
-
没带(旧会话的事件)⇒ 容器为空,固定那两枚照旧兜底。 */
|
|
1273
|
-
#ask #ask-opts{display:flex;gap:.4rem;flex-wrap:wrap}
|
|
1274
|
-
#ask #ask-opts:empty{display:none}
|
|
1275
|
-
#ask[data-opts="1"] #ask-allow,#ask[data-opts="1"] #ask-deny{display:none}
|
|
1276
|
-
/* 改后批准(决策 2):同一条 bar 再加一个输入框。与问答那档的差别是**原问题与选项都还在**——
|
|
1277
|
-
改了主意能直接点「拒绝」,不会被这一个输入框困住(这也是它不回落到只读提示的原因)。 */
|
|
1278
|
-
#ask[data-mode="modify"]{flex-wrap:wrap}
|
|
1279
|
-
#ask[data-mode="modify"] #ask-q{flex:1 1 100%;max-width:100%}
|
|
1280
|
-
/* 本会话已授予的「总是允许」(决策 3):一枚工具一片、撤销一键可达。空表整块 hidden——
|
|
1281
|
-
「没授予」是一件无需占用版面的事(与 /grants 回空表同一条口径)。 */
|
|
1282
|
-
.askgrants{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;padding:.4rem .75rem;border-top:1px solid var(--line);background:var(--soft);font-size:12px}
|
|
1283
|
-
.askgrants .ghead{color:var(--muted)}
|
|
1284
|
-
.askgrants .gchip{display:inline-flex;align-items:center;gap:.35rem;border:1px solid var(--line);border-radius:999px;corner-shape:round;padding:.1rem .15rem .1rem .55rem;background:var(--bg)}
|
|
1285
|
-
.askgrants .gname{color:var(--fg)}
|
|
1286
|
-
.askgrants .grevoke{border:0;background:transparent;color:var(--muted);cursor:pointer;font:inherit;padding:.1rem .4rem;border-radius:999px;corner-shape:round}
|
|
1287
|
-
.askgrants .grevoke:hover{color:var(--fg);background:var(--soft)}
|
|
1288
|
-
/* composer 卡片(dsh InputBar.card):22px 圆角 + input-major 底 + elevation-soft(描边起头的柔光),
|
|
1289
|
-
顶部 8px 内边距、行距 12px、宽度 = 内容列宽 + 32px。 */
|
|
1290
|
-
form{display:flex;flex-direction:column;gap:12px;width:100%;max-width:var(--daluo-composer-card-max-width);margin:0 auto 8px;padding:8px 0 0;border-radius:22px;background:var(--daluo-specific-input-major);box-shadow:var(--daluo-elevation-soft);font-size:var(--daluo-content-font-size,14px);line-height:calc(24px + var(--daluo-content-font-delta,0px));position:relative}
|
|
1291
|
-
/* ── 会话统计(逐条对 dsh 'ui-chat/src/client/chat/StatsPills.module.css',2026-09-17)────
|
|
1292
|
-
卡片下方一行**两枚胶囊**(不是一条线):13/20 tertiary、tabular-nums、圆角 24、'padding:1px 8px',
|
|
1293
|
-
整行居中、宽 = 内容列('max-width:var(--daluo-chat-content-width)')、'padding:4px 32px 0'。 */
|
|
1294
|
-
/* 上下文用量芯片(dsh 的 "7% of context used" 位,2026-09-17):**取不到就不画**——
|
|
1295
|
-
分母是 provider 的 contextWindowTokens(GET /provider),分子是**最近一次请求的 prompt tokens**
|
|
1296
|
-
(不是累计:累计是所有请求之和,拿它说"上下文占用"就是错的)。两者任一缺 → 整枚不画。 */
|
|
1297
|
-
/* System prompt 开关(决策 49):对话顶部一行——折叠态一行字 + 元信息,展开是等宽全文(可滚)。
|
|
1298
|
-
位置与形态对齐 dsh 的 "System prompt"(它在会话顶部,不在设置里)。 */
|
|
1299
|
-
/* 「用其他应用打开」的候选菜单:与工作区菜单同皮(白底/0.5px 描边/8px 圆角),
|
|
1300
|
-
贴着那颗钮往下弹。**只在有清单时才出现那颗钮**(非 macOS 清单为空 ⇒ 整条动作不摆)。 */
|
|
1301
|
-
/* 会话头「更多」菜单:与侧栏行菜单同皮,按定位祖先(headerUtilities)落点 */
|
|
1302
|
-
.sessmenu.headmenu{position:absolute;z-index:13;min-width:12rem;right:auto;top:auto}
|
|
1303
|
-
/* 标题行内改名:**长得像标题**(不是显眼的输入框)——改名是一次就地编辑,不是表单 */
|
|
1304
|
-
.titlerename{font:inherit;color:var(--daluo-alias-label-primary);background:var(--daluo-alias-bg-module-platform);border:0.5px solid var(--daluo-alias-border-l3);border-radius:8px;padding:2px 8px;min-width:12rem;outline:none}
|
|
1305
|
-
.titlerename:focus{border-color:var(--daluo-alias-label-secondary)}
|
|
1306
|
-
.appmenu{position:absolute;z-index:12;max-height:320px;overflow:auto;min-width:10rem;padding:4px;background:var(--daluo-specific-menu);border:0;border-radius:20px;--daluo-elevation-stroke-color:var(--daluo-alias-border-l1);box-shadow:var(--daluo-elevation-prominent);--daluo-scrollbar-thumb:var(--daluo-alias-scrollbar-bg-l2);--daluo-scrollbar-thumb-hover:var(--daluo-alias-scrollbar-hover-l2)}
|
|
1307
|
-
.appmenu button{display:block;width:100%;border:0;background:none;border-radius:6px;padding:6px 8px;text-align:left;font:inherit;font-size:13px;color:var(--daluo-alias-label-primary);cursor:pointer}
|
|
1308
|
-
.appmenu button:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1309
|
-
/* + 菜单(dock 那张类型表):贴按钮下方开、视口坐标(.appmenu 默认是相对定位祖先,这里得 fixed)。 */
|
|
1310
|
-
.dockmenu{position:fixed;z-index:13}
|
|
1311
|
-
.dockmenu button.on{color:var(--accent)}
|
|
1312
|
-
.sysprompt{max-width:var(--daluo-chat-content-width);width:100%;margin:0 auto 8px;box-sizing:border-box}
|
|
1313
|
-
.sphead{display:flex;align-items:center;gap:6px;width:100%;border:0;background:none;padding:2px 0;color:var(--daluo-alias-label-secondary);font:inherit;font-size:13px;line-height:20px;text-align:left;cursor:pointer}
|
|
1314
|
-
.sphead:hover{color:var(--daluo-alias-label-primary)}
|
|
1315
|
-
.spcaret{flex:none;color:var(--daluo-alias-label-tertiary)}
|
|
1316
|
-
.splabel{flex:none}
|
|
1317
|
-
.spmeta{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--daluo-alias-label-tertiary);font-size:12px}
|
|
1318
|
-
.spbody{margin:6px 0 0;padding:10px 12px;max-height:420px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:var(--daluo-alias-markdown-code-block);border-radius:12px;font:12px/1.6 var(--daluo-font-family-code);color:var(--daluo-alias-label-primary)}
|
|
1319
|
-
/* 权限档芯片(dsh 的 Access mode 位,spec/policy.md 决策 9):**可双向切**的是用户,
|
|
1320
|
-
模型自己的升级申请仍只能往高(那条约束在工具侧)。文案只有两个字 + 当前档,点开是三项菜单。 */
|
|
1321
|
-
.accesschip{flex:none;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:0;border-radius:14px;background:var(--daluo-alias-bg-module-platform);color:var(--daluo-alias-label-secondary);font:inherit;font-size:13px;line-height:20px;cursor:pointer;white-space:nowrap}
|
|
1322
|
-
.accesschip:hover{background:var(--daluo-alias-interactive-bg-hover);color:var(--daluo-alias-label-primary)}
|
|
1323
|
-
.accessmenu{position:fixed;z-index:12;min-width:13rem;padding:4px;background:var(--daluo-specific-menu);border:0;border-radius:20px;--daluo-elevation-stroke-color:var(--daluo-alias-border-l1);box-shadow:var(--daluo-elevation-prominent);--daluo-scrollbar-thumb:var(--daluo-alias-scrollbar-bg-l2);--daluo-scrollbar-thumb-hover:var(--daluo-alias-scrollbar-hover-l2)}
|
|
1324
|
-
.accessmenu button{display:block;width:100%;border:0;background:none;border-radius:6px;padding:6px 8px;text-align:left;font:inherit;font-size:13px;color:var(--daluo-alias-label-primary);cursor:pointer}
|
|
1325
|
-
.accessmenu button:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1326
|
-
.accessmenu button[aria-current="true"]{color:var(--daluo-alias-link);font-weight:500}
|
|
1327
|
-
.accessmenu .amnote{padding:4px 8px 2px;font-size:12px;line-height:18px;color:var(--daluo-alias-label-tertiary)}
|
|
1328
|
-
.ctxchip{flex:none;border:0;background:none;color:var(--daluo-alias-label-tertiary);font:inherit;font-size:13px;line-height:20px;padding:0 6px;border-radius:6px;cursor:pointer;white-space:nowrap}
|
|
1329
|
-
.ctxchip:hover{background:var(--daluo-alias-interactive-bg-hover);color:var(--daluo-alias-label-primary)}
|
|
1330
|
-
.stats{display:flex;justify-content:center;gap:12px;max-width:var(--daluo-chat-content-width);width:100%;margin:0 auto;box-sizing:border-box;padding:4px 32px 0;font-size:var(--daluo-content-font-size-secondary,13px);line-height:calc(20px + var(--daluo-content-font-delta-secondary,0px));color:var(--daluo-alias-label-tertiary)}
|
|
1331
|
-
.stats .pill{display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;max-width:100%;padding:1px 8px;border:none;border-radius:24px;background:transparent;color:var(--daluo-alias-label-tertiary);font:inherit;font-variant-numeric:tabular-nums;line-height:inherit;white-space:nowrap}
|
|
1332
|
-
/* 待发队列(spec/input-queue.md):跑着的时候还能说话——排队/插话、编辑、删除、切档都在这一条上 */
|
|
1333
|
-
.qpanel{border-top:1px solid var(--line);padding:.35rem .6rem;display:flex;flex-direction:column;gap:.25rem;background:var(--soft)}
|
|
1334
|
-
/* 待发队列 dock(逐条对 dsh 'ui-conversation/src/client/queue/QueueDock.module.css',2026-09-17):
|
|
1335
|
-
面板**只圆上两角**('12px 12px 0 0')+ 顶/侧 0.5px 描边**不带下边** ⇒ 看着是嵌在输入卡片下沿的一道 dock;
|
|
1336
|
-
底走 'specific-tip'。头部 36px('padding:4px 12px'、计数 13px/24px、右侧 14px 折叠箭头,**可收起**);
|
|
1337
|
-
列表 'max-height:180px' 自己滚;行 36px('padding:4px 5px 4px 12px'、'gap:10px'、圆角 8px),
|
|
1338
|
-
行间分隔用 'inset 0 1px 0' 的阴影(不是 border——这样每行高度仍是精确的 36px);
|
|
1339
|
-
行内操作**悬停才出现**(dsh 的 '.rowActions' 族:'display:none' → hover/focus 才 inline-flex)。 */
|
|
1340
|
-
/* ── 任务面板(逐条对 dsh 'ui-conversation/src/client/skeleton/TodoPanel.module.css',2026-09-17)──
|
|
1341
|
-
卡片'border:0.5px l1' + 'border-radius:12px' + 'specific-tip' 底,宽 = 输入卡宽 - 4×8px dock 内缩
|
|
1342
|
-
(dock 卡比输入卡窄一圈);'body' 是 '6px 12px' + 'gap:8px'。
|
|
1343
|
-
头部一行:清单图标 + 「任务」13/24/500 + 进度计数 13/20 tertiary(flex:1 省略)+ 箭头(**缺省收起**);
|
|
1344
|
-
展开后列表 'gap:8px'、'max-height:180px' 自己滚,条目 13/20 secondary、形/字两列 ('gap:10px')。
|
|
1345
|
-
三种状态形(14px 画在 16px 格里):完成=绿实圈+对勾、进行中=蓝圈带渐变缺口+1s 旋转、待处理=虚线圈。 */
|
|
1346
|
-
/* 任务面板:**嵌在输入卡上方的一块**(逐字对 dsh QueueDock.module.css 的 .dock/.panel,2026-09-18):
|
|
1347
|
-
只圆上两角(12px 12px 0 0)、**不带下边描边**、margin-bottom:-3px 塞到输入卡下面
|
|
1348
|
-
——上游注释原文 tuck 3px under the input card (square bottom), reading as one attached surface。
|
|
1349
|
-
改前是四角全圆的独立浮卡 + 整圈描边 ⇒ 被更宽的输入卡吞掉下半截,看着就是"半张卡卡在那儿"
|
|
1350
|
-
(用户实测「这里的样式很违和」)。待发队列早就是这个形状,这一条是它俩没对齐。 */
|
|
1351
|
-
.tododock{box-sizing:border-box;width:100%;max-width:calc(var(--daluo-composer-card-max-width) - 32px);margin:0 auto -3px;border:0.5px solid var(--daluo-alias-border-l1);border-bottom:0;border-radius:12px 12px 0 0;background:var(--daluo-specific-tip);overflow:hidden;--daluo-scrollbar-thumb:var(--daluo-alias-scrollbar-bg-l2);--daluo-scrollbar-thumb-hover:var(--daluo-alias-scrollbar-hover-l2)}
|
|
1352
|
-
.tododock .tdbody{display:flex;flex-direction:column;gap:8px;padding:6px 12px}
|
|
1353
|
-
.tododock .tdhead{display:flex;align-items:center;gap:10px;width:100%;padding:0;border:none;background:transparent;text-align:left;cursor:pointer}
|
|
1354
|
-
.tododock .tdlead{display:grid;flex:none;place-items:center;color:var(--daluo-alias-label-tertiary)}
|
|
1355
|
-
.tododock .tdtitle{flex:none;font-size:13px;line-height:24px;font-weight:500;color:var(--daluo-alias-label-primary)}
|
|
1356
|
-
.tododock .tdprogress{flex:1 1 auto;min-width:0;overflow:hidden;font-size:13px;line-height:20px;color:var(--daluo-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap}
|
|
1357
|
-
.tododock .tdchev{display:grid;flex:none;place-items:center;color:var(--daluo-alias-label-tertiary)}
|
|
1358
|
-
.tododock .tdlist{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;max-height:180px;overflow-y:auto}
|
|
1359
|
-
.tododock .tditem{display:flex;align-items:center;gap:10px;min-width:0;font-size:13px;line-height:20px;color:var(--daluo-alias-label-secondary)}
|
|
1360
|
-
.tododock .tdglyph{display:grid;flex:none;place-items:center;width:16px;height:16px}
|
|
1361
|
-
.tododock .tditem[data-status="completed"] .tdglyph{color:var(--daluo-alias-state-success-primary)}
|
|
1362
|
-
.tododock .tditem[data-status="pending"] .tdglyph{color:var(--daluo-alias-label-caption)}
|
|
1363
|
-
.tododock .tditem[data-status="in_progress"] .tdglyph{color:var(--daluo-alias-state-business-primary);animation:tdspin 1s linear infinite}
|
|
1364
|
-
@keyframes tdspin{to{transform:rotate(360deg)}}
|
|
1365
|
-
@media (prefers-reduced-motion: reduce){.tododock .tditem[data-status="in_progress"] .tdglyph{animation:none}}
|
|
1366
|
-
.tododock .tdcontent{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1367
|
-
.qpanel{width:100%;max-width:var(--daluo-composer-card-max-width);margin:0 auto -3px;padding:0 4px}
|
|
1368
|
-
.qdock{position:relative;width:100%;padding:2px 0;border-radius:12px 12px 0 0;background:var(--daluo-specific-tip);overflow:hidden;--daluo-scrollbar-thumb:var(--daluo-alias-scrollbar-bg-l2);--daluo-scrollbar-thumb-hover:var(--daluo-alias-scrollbar-hover-l2)}
|
|
1369
|
-
.qdock::after{content:'';position:absolute;inset:0;border:0.5px solid var(--daluo-alias-border-l1);border-bottom:none;border-radius:inherit;pointer-events:none}
|
|
1370
|
-
.qhead{display:flex;align-items:center;gap:10px;box-sizing:border-box;width:100%;height:36px;padding:4px 12px;border:0;border-radius:8px;background:transparent;color:var(--daluo-alias-label-primary);text-align:left;cursor:pointer}
|
|
1371
|
-
.qhead .qcount{flex:1;min-width:0;font-size:13px;font-weight:500;line-height:24px}
|
|
1372
|
-
.qhead .qchev{flex:none;width:14px;height:14px;color:var(--daluo-alias-label-tertiary)}
|
|
1373
|
-
.qlist{max-height:180px;overflow-y:auto;margin:0;padding:0}
|
|
1374
|
-
.qrow{display:flex;align-items:center;gap:10px;box-sizing:border-box;width:100%;height:36px;padding:4px 5px 4px 12px;border-radius:8px;font-size:var(--daluo-content-font-size,14px)}
|
|
1375
|
-
.qrow+.qrow{box-shadow:inset 0 1px 0 var(--daluo-alias-border-l1)}
|
|
1376
|
-
.qrow .qkind{flex:none;padding:0 5px;border-radius:4px;background:var(--daluo-alias-bg-module-platform);color:var(--daluo-alias-label-secondary);font-size:11px;line-height:18px}
|
|
1377
|
-
.qrow .qkind.steer{background:var(--daluo-alias-state-business-tertiary);color:var(--daluo-alias-state-business-primary)}
|
|
1378
|
-
.qrow .qtext{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1379
|
-
.qrow input{flex:1;min-width:0;font:inherit;padding:2px 6px;border:1px solid var(--daluo-alias-border-l2);border-radius:6px;background:var(--daluo-alias-bg-base);color:var(--daluo-alias-label-primary)}
|
|
1380
|
-
.qrow .qact{flex:none;display:none;align-items:center;gap:4px}
|
|
1381
|
-
.qrow:hover .qact,.qrow:focus-within .qact{display:inline-flex}
|
|
1382
|
-
.qrow button{border:0;background:none;color:var(--daluo-alias-label-tertiary);cursor:pointer;font-size:12px;padding:2px 6px;border-radius:6px}
|
|
1383
|
-
.qrow button:hover{background:var(--daluo-alias-interactive-bg-hover);color:var(--daluo-alias-label-primary)}
|
|
1384
|
-
/* 引用补全弹层(spec/file-reference.md 决策 2):贴在输入框**上方**(bottom:100%),不按像素猜高度
|
|
1385
|
-
——输入框会随内容/换行变高。 */
|
|
1386
|
-
/* @ 提及菜单(逐条对 dsh 'ui-input-trigger/src/client/MenuView.module.css',2026-09-17):
|
|
1387
|
-
容器 'bottom: calc(100% + 4px)'、左右贴齐输入卡片、'max-height:400px'、**4px 内边距**、圆角 **20px**、
|
|
1388
|
-
底走 'specific-menu'、分离靠 'elevation-prominent'(描边起头的柔光,不是粗阴影)、**没有边框**;
|
|
1389
|
-
行 'min-height:40px' / 'padding:8px 10px' / 'gap:8px' / 圆角 10px / **14px 正文字体**(改前是 12px 等宽),
|
|
1390
|
-
选中行底色 'interactive-bg-hover';图标 16px(我们用**文件类型配色**那套),路径靠右、dimmed、省略号。 */
|
|
1391
|
-
.refs{position:absolute;bottom:calc(100% + 4px);left:0;right:0;box-sizing:border-box;max-height:400px;overflow:auto;padding:4px;display:flex;flex-direction:column;background:var(--daluo-specific-menu);border:0;border-radius:20px;box-shadow:var(--daluo-elevation-prominent);z-index:5;--daluo-elevation-stroke-color:var(--daluo-alias-border-l1);--daluo-scrollbar-thumb:var(--daluo-alias-scrollbar-bg-l2);--daluo-scrollbar-thumb-hover:var(--daluo-alias-scrollbar-hover-l2)}
|
|
1392
|
-
.refrow{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;box-sizing:border-box;padding:8px 10px;border-radius:10px;background:transparent;cursor:pointer;font-size:14px;line-height:22px;color:var(--daluo-alias-label-primary)}
|
|
1393
|
-
.refrow:hover,.refrow.sel{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1394
|
-
.refrow .ricon{flex:none;display:inline-flex;align-items:center;width:16px;height:16px;color:var(--daluo-alias-label-tertiary)}
|
|
1395
|
-
.refrow .rname{flex:none;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1396
|
-
.refrow .rpath{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;color:var(--daluo-alias-label-tertiary)}
|
|
1397
|
-
/* 提示只在**选中行**出现(dsh '.item.active .drillHint' 的机制):平时不占视觉 */
|
|
1398
|
-
.refrow .rhint{display:none;padding:0 5px;border-radius:4px;background:var(--daluo-alias-interactive-bg-hover);color:var(--daluo-alias-label-caption);font-size:11px;line-height:18px}
|
|
1399
|
-
.refrow.sel .rhint{display:inline-flex}
|
|
1400
|
-
/* 斜杠命令候选:名字走代码字体(它是要**敲**的东西),说明贴右、tertiary(dsh 的 MenuView 同款分栏) */
|
|
1401
|
-
.refrow .cname{flex:none;font:13px var(--daluo-font-family-code);color:var(--daluo-alias-label-primary)}
|
|
1402
|
-
.refrow .cdesc{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;color:var(--daluo-alias-label-tertiary)}
|
|
1403
|
-
/* 输入区(dsh InputBar.module.css:172-188 的 '.input',审计 P2#6):无边框、'min-height:36px'
|
|
1404
|
-
——「一行 24px + 4px 顶距 = 28 内容高,36 给那行下面留 8px 呼吸」(原注)、4/8/0/14 内边距、
|
|
1405
|
-
光标用 state-business-primary;高度随内容自增(JS 侧 autoGrow),上限
|
|
1406
|
-
'--dsh-composer-text-max-height: 336px'(ConversationRoot.module.css:331)。
|
|
1407
|
-
**改前是 min-height 52px / max-height 12rem=192px**:52px 是 **hero 相位**的下限
|
|
1408
|
-
('.hero .input',InputBar.module.css:236-240)不是坐底态的;192px 让长文本提前 144px 截断。
|
|
1409
|
-
hero 那档见紧随其后的那条。 */
|
|
1410
|
-
/* 输入区:**没有原生焦点环**(dsh .input 同款 outline:none)。
|
|
1411
|
-
为什么必须显式写:浏览器的 outline:auto 在这个环境下解析成 **1px 琥珀色**(实测
|
|
1412
|
-
auto 1px rgb(229, 151, 0) —— 用户当场问「选中为什么有黄框」),与全页的焦点语言(token 化的
|
|
1413
|
-
:focus-visible 环)不是一回事。焦点线索改由**卡片边缘**承担(下面那条 :focus-within)。 */
|
|
1414
|
-
textarea{width:100%;resize:none;min-height:36px;max-height:336px;box-sizing:border-box;padding:4px 8px 0 14px;border:0;background:none;outline:none;color:var(--daluo-alias-label-primary);caret-color:var(--daluo-alias-state-business-primary);font:inherit}
|
|
1415
|
-
/* hero(空态居中)保留两行下限 52px:dsh '.hero .input{min-height:52px}'(InputBar.module.css:238-240,
|
|
1416
|
-
注释原话「fits two lines」)。特异性高过上面那条,只在空态生效。 */
|
|
1417
|
-
section[data-hero="1"] textarea{min-height:52px}
|
|
1418
|
-
/* 焦点在输入区里 ⇒ 卡片边缘跟上(0.5px 的 label-tertiary;键盘/鼠标都看得见,也不是那道原生亮框)。
|
|
1419
|
-
这条是**对 dsh 的一处有意偏离**:它 outline:none 之后就不再给焦点线索(只有光标),
|
|
1420
|
-
而本页全页的约定是"焦点要看得见"(.act/.tool-head/.fresize 都有 :focus-visible 环)。 */
|
|
1421
|
-
#composer:focus-within{box-shadow:var(--daluo-elevation-soft), 0 0 0 0.5px var(--daluo-alias-label-tertiary)}
|
|
1422
|
-
/* ── composer 按钮行(逐条对 dsh InputBar.module.css 的 .row/.tools/.trailing/.add/.select/.primary,2026-09-17)──
|
|
1423
|
-
左右分组:左 = +圆钮(附件)与运行态动作;右 = 模型 + 发送。行本身 'padding:2px 8px 6px'、'gap:12px'。
|
|
1424
|
-
附件 = dsh .add:28px 正圆、selector 底(不是文字钮);模型 = dsh .select:**原生 select 的芯片皮**
|
|
1425
|
-
('appearance:none' + data-uri 箭头、13/20/500、8px 圆角、无描边、悬停才出底);
|
|
1426
|
-
发送 = dsh .primary:34px 正圆、button-info-fill、白箭头、'transform:translateY(-2px)'
|
|
1427
|
-
(dsh 把行的 2px 下移还给发送钮——小芯片坐低一点、发送钮留在原位)。 */
|
|
1428
|
-
/* 'container-type:inline-size' 是给芯片用的**尺寸容器**(dsh InputBar.module.css:265-269 在 '.row' 上
|
|
1429
|
-
干同一件事,注释原话「Size container so the chips inside can collapse to icon-only」)。
|
|
1430
|
-
本页只有一处消费它:模型座位的 '45cqw' 上限(见下)——没有这个容器,'cqw' 会落到视口上。
|
|
1431
|
-
**安全性**:菜单('.modelmenu'/'.accessmenu')是顶层节点、不在 '.crow' 里,所以这里引入的
|
|
1432
|
-
layout 包含不会改掉它们的 'position:fixed' 包含块。 */
|
|
1433
|
-
#composer .crow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:2px 8px 6px;min-width:0;container-type:inline-size}
|
|
1434
|
-
.crow .tools,.crow .trailing{display:flex;align-items:center;min-width:0}
|
|
1435
|
-
.crow .tools{gap:12px}
|
|
1436
|
-
.crow .trailing{flex:none;margin-left:auto;gap:12px}
|
|
1437
|
-
.crow .add{display:grid;place-items:center;flex:none;width:28px;height:28px;border:none;border-radius:999px;corner-shape:round;background:var(--daluo-specific-selector);color:var(--daluo-alias-label-primary);cursor:pointer;padding:0}
|
|
1438
|
-
.crow .add:hover:not(:disabled){background:var(--daluo-alias-interactive-bg-hover-solid)}
|
|
1439
|
-
.crow .add:disabled{opacity:.5;cursor:default}
|
|
1440
|
-
/* 模型座位(自绘,2026-09-19 用户实测「样式不行」驱动):原生 <select> 在 200+ 项时是一长条
|
|
1441
|
-
系统平列表——没有分组标题、没有搜索、宽度也由系统定。改成按钮 + 浮动面板,形态对齐 dsh 的
|
|
1442
|
-
ModelSelect(根 pane 是「标签 + 当前值 + ›」的行,模型 pane 是分组列表),并加一个**过滤框**
|
|
1443
|
-
(dsh 的目录只有几个模型、用不着;我们两条提供方就 210 个,没有搜索没法用)。 */
|
|
1444
|
-
/* 座位皮的度量逐值对 dsh ModelSelect.module.css:15-28 的 '.trigger'(审计 P3#15 + 实施时补核):
|
|
1445
|
-
上限先给一条 legacy 兜底 220px,再给**行相对**的上限 'min(360px, 45cqw)'(长模型名多给点余量、
|
|
1446
|
-
又不让它吃掉整个 composer;cqw 靠上面 '.crow' 的尺寸容器);gap 4px;'0 4px 0 8px' 内边距;
|
|
1447
|
-
圆角 14px(dsh 写 24px,但 28px 高的盒子上相邻圆角不得重叠 ⇒ 被夹到 28/2 = **14px**,
|
|
1448
|
-
与 '.accesschip' 同一个「写实际值」的口径)。改前 260px / gap 2px / '0 6px 0 8px' / 8px 圆角。 */
|
|
1449
|
-
.modelseat{display:inline-flex;align-items:center;gap:4px;max-width:220px;max-width:min(360px,45cqw);height:28px;padding:0 4px 0 8px;border:none;border-radius:14px;background-color:transparent;color:var(--daluo-alias-label-secondary);font:inherit;font-size:13px;line-height:20px;font-weight:500;white-space:nowrap;cursor:pointer;overflow:hidden}
|
|
1450
|
-
.modelseat:hover:not(:disabled){background-color:var(--daluo-alias-interactive-bg-hover)}
|
|
1451
|
-
.modelseat:disabled{opacity:.5;cursor:default}
|
|
1452
|
-
.modelseat .mslabel{overflow:hidden;text-overflow:ellipsis}
|
|
1453
|
-
.modelseat .mscaret{flex:none;color:var(--daluo-alias-label-tertiary);font-size:11px}
|
|
1454
|
-
/* 面板:fixed + 向上开(与权限档芯片同一个 .menu 语言)。宽度钉住,别让长模型名把面板拉宽。 */
|
|
1455
|
-
/* 菜单卡片(第二轮样式审计 D 批,2026-09-20):**所有下拉/弹层读起来是同一块材料**
|
|
1456
|
-
——dsh 的规矩写在 ui-model-selection/ModelSelect.module.css:114-128 原话「Surface tokens match the
|
|
1457
|
-
Menu primitive card (ui-primitives Menu.module.css) so every dropdown reads as the same material」。
|
|
1458
|
-
那套材料是:**圆角 20px、无实体边框**、底走 specific-menu、分离靠 elevation-prominent
|
|
1459
|
-
(它自带 0.5px 柔光描边,故再画一圈实体 border 就是双线),描边色显式钉 l1
|
|
1460
|
-
(Menu.module.css:19 的 --dsw-elevation-stroke-color: var(--dsw-alias-border-l1)),
|
|
1461
|
-
以及**抬升面的滚动条拇指重绑到 l2**(同文件 :26-27)。
|
|
1462
|
-
改前:圆角 10px + 0.5px l3 实体描边 + 无重绑 ⇒ 比参考"方"且多一圈硬线。
|
|
1463
|
-
高度上限也对齐 ModelSelect.module.css:111 的 min(360px, calc(100vh - 96px))(本页 vh 用 --ui-vh)。 */
|
|
1464
|
-
.modelmenu{position:fixed;z-index:14;display:flex;flex-direction:column;width:320px;max-height:min(360px,calc(var(--ui-vh) - 96px));padding:4px;background:var(--daluo-specific-menu);border:0;border-radius:20px;--daluo-elevation-stroke-color:var(--daluo-alias-border-l1);box-shadow:var(--daluo-elevation-prominent);--daluo-scrollbar-thumb:var(--daluo-alias-scrollbar-bg-l2);--daluo-scrollbar-thumb-hover:var(--daluo-alias-scrollbar-hover-l2);overflow:hidden}
|
|
1465
|
-
.modelmenu[hidden]{display:none}
|
|
1466
|
-
/* 根 pane 的行(dsh .cell):标签左、当前值右、再一枚 › */
|
|
1467
|
-
.mmcell{display:flex;align-items:center;gap:8px;width:100%;height:40px;padding:0 10px;border:0;border-radius:10px;background:none;color:var(--daluo-alias-label-primary);font:inherit;font-size:14px;line-height:22px;text-align:left;cursor:pointer}
|
|
1468
|
-
.mmcell:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1469
|
-
.mmcell .mmlabel{flex:none;color:var(--daluo-alias-label-secondary)}
|
|
1470
|
-
.mmcell .mmvalue{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;color:var(--daluo-alias-label-primary)}
|
|
1471
|
-
.mmcell .mmchev{flex:none;color:var(--daluo-alias-label-tertiary);font-size:11px}
|
|
1472
|
-
/* 模型 pane:搜索 + 分组 + 行 */
|
|
1473
|
-
.mmsearch{flex:none;margin:2px 2px 4px;padding:5px 8px;border:0.5px solid var(--daluo-alias-border-l1);border-radius:10px;background:var(--daluo-alias-bg-base);color:var(--daluo-alias-label-primary);font:inherit;font-size:13px;outline:none}
|
|
1474
|
-
.mmsearch::placeholder{color:var(--daluo-alias-label-tertiary)}
|
|
1475
|
-
.mmlist{flex:1;min-height:0;overflow-y:auto}
|
|
1476
|
-
.mmhead{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:6px;padding:5px 8px 3px;background:var(--daluo-specific-menu);color:var(--daluo-alias-label-tertiary);font-size:12px;line-height:18px;font-weight:500}
|
|
1477
|
-
.mmhead .mmpv{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1478
|
-
.mmrow{box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;min-height:38px;padding:6px 8px;border:0;border-radius:10px;background:none;color:var(--daluo-alias-label-primary);font:inherit;font-size:14px;line-height:20px;text-align:left;cursor:pointer}
|
|
1479
|
-
.mmrow:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1480
|
-
.mmrow .mmname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1481
|
-
.mmrow .mmbadge{flex:none;padding:0 5px;border:0.5px solid var(--daluo-alias-border-l1);border-radius:5px;font-size:11px;line-height:17px;color:var(--daluo-alias-label-tertiary)}
|
|
1482
|
-
.mmrow .mmcheck{flex:none;width:12px;color:var(--daluo-alias-link)}
|
|
1483
|
-
.mmempty{padding:8px;color:var(--daluo-alias-label-tertiary);font-size:12px}
|
|
1484
|
-
/* 逐条提供方的失败如实摆在这儿(dsh 的 warning 行同款)——一行说清哪条探不到、原话是什么 */
|
|
1485
|
-
.mmwarn{display:flex;gap:6px;margin:2px 2px 4px;padding:6px 8px;border-radius:7px;background:var(--daluo-alias-state-warn-tertiary);color:var(--daluo-alias-state-warn-primary);font-size:12px;line-height:17px}
|
|
1486
|
-
.mmwarn span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
|
|
1487
|
-
#model:hover:not(:disabled){background-color:var(--daluo-alias-interactive-bg-hover)}
|
|
1488
|
-
#model:disabled{opacity:.5;cursor:default}
|
|
1489
|
-
textarea.drop{border-color:var(--accent);background:var(--soft)}
|
|
1490
|
-
/* 主键(发送):dsh InputBar .primary——34px 正圆、info-fill(不是 button-primary 那档 ink)、白箭头。
|
|
1491
|
-
跑着的时候它变「排队/插话」:文本标签替代箭头、宽度放开(syncSend 挂 .busy)。 */
|
|
1492
|
-
button.primary{display:grid;place-items:center;flex:none;width:34px;height:34px;border:none;border-radius:999px;corner-shape:round;background:var(--daluo-alias-button-info-fill);color:#fff;cursor:pointer;transition:background-color 100ms ease;transform:translateY(-2px);padding:0;font:inherit}
|
|
1493
|
-
button.primary:hover:not(:disabled){background:var(--daluo-alias-button-info-hover)}
|
|
1494
|
-
button.primary[disabled]{opacity:.4;cursor:default}
|
|
1495
|
-
button.primary .plabel:empty{display:none}
|
|
1496
|
-
button.primary.busy{width:auto;min-width:34px;padding:0 12px}
|
|
1497
|
-
/* 忙时**文字替代箭头**(上面注释那句的实现):grid 自动流会把 SVG 与标签排成两行,
|
|
1498
|
-
34px 高装不下 ⇒ 文字溢出被卡片下沿切掉(客户走查实拍)。dsh 的发送键永远只有图标、
|
|
1499
|
-
忙时措辞只进 tooltip;我们保留「忙时变文字胶囊」这个更直白的设计,但箭头必须让位。 */
|
|
1500
|
-
button.primary.busy svg{display:none}
|
|
1501
|
-
button:disabled{opacity:.5;cursor:default}
|
|
1502
|
-
/* ─── 右侧栏 = dock(spec/web-ui.md 决策 24 于 2026-09-18 翻面;对齐 dsh ui-dockkit)────────────
|
|
1503
|
-
结构:**标签条 + 正文**,正文按当前标签换(一标签一页,页随标签活着)。标签类型由注册表给
|
|
1504
|
-
(文件 / 文本预览 / 引导 / 终端)——这正是当初「只有一个面板,搬 dock 是空壳」的触发条件解除之处。
|
|
1505
|
-
仍未做:dsh 的多面板拆分树、浮窗、拖拽放置(spec/web-ui.md 的三态表里记着理由)。
|
|
1506
|
-
**标签条逐条对 dockkit.module.css 的 .tabStrip/.stripTabs/.slot/.tab/.tabActive/.addTab**:
|
|
1507
|
-
一行 **38px = 顶部 10px 空隙 + 28px 胶囊带**(dsh 是 content-box,写 'height:28px;padding-top:10px';
|
|
1508
|
-
我们全站 border-box ⇒ 这里写 'height:38px'——**不变量是 38/28 这组数**,不是字面写法);
|
|
1509
|
-
胶囊 28px 高、圆角 12px、'padding:0 10px'、13px 二级墨、**最小 80px / 最大 170px**;
|
|
1510
|
-
两胶囊之间是 **10px 的槽**、槽心一道 0.5px border-l4 竖线;**当前胶囊是唯一填色块**(markdown-tag),
|
|
1511
|
-
且紧邻它的两个槽的竖线消失——这行因此读起来是「一块胶囊躺在裸标签之间」。
|
|
1512
|
-
关闭钮**不在流里**(绝对定位在胶囊尾部一个 20px 圆),悬停/聚焦/当前才现 ⇒ 胶囊宽度不因悬停变化。 */
|
|
1513
|
-
aside.rightdock{--dock-chat-floor:320px;display:flex;flex-direction:column;width:var(--dock-w,22rem);max-width:calc(var(--ui-vw) - var(--rail-w, 280px) - var(--dock-chat-floor));min-width:0;border-right:0;border-left:0.5px solid var(--daluo-alias-border-l4);background:var(--daluo-alias-bg-base);padding:0;overflow:hidden}
|
|
1514
|
-
/* 全屏档(dsh 的 push 模式):对话列被推出去 ⇒ 上限那条要让开(宽度由 --dock-w 自己算) */
|
|
1515
|
-
aside.rightdock.full{max-width:none}
|
|
1516
|
-
.fresize{width:5px;margin-left:-5px;cursor:col-resize;flex:0 0 auto;background:none;border:0;padding:0}
|
|
1517
|
-
.fresize:hover,.fresize[data-dragging]{background:var(--accent)}
|
|
1518
|
-
.fresize:focus-visible{outline:2px solid var(--accent)}
|
|
1519
|
-
.docktabs{display:flex;flex:none;gap:4px;align-items:center;height:38px;padding:10px 6px 0 10px}
|
|
1520
|
-
.dockstrip{display:flex;flex:0 1 auto;align-items:center;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;touch-action:none}
|
|
1521
|
-
.dockstrip::-webkit-scrollbar{display:none}
|
|
1522
|
-
/* 吃掉剩余宽度、且第一个让位:宽度不够先牺牲标签盒,绝不挤掉后面的控制钮(dsh 的 .stripFill 同义) */
|
|
1523
|
-
.dockfill{flex:1 1 0;min-width:0}
|
|
1524
|
-
.dockslot{display:flex;flex:none;align-items:center;justify-content:center;width:10px;height:28px}
|
|
1525
|
-
.dockslot::before{content:'';width:0.5px;height:14px;background:var(--daluo-alias-border-l4)}
|
|
1526
|
-
.docktab.cur+.dockslot::before,.dockslot:has(+.docktab.cur)::before{background:transparent}
|
|
1527
|
-
.docktab{position:relative;display:flex;flex:0 1 auto;align-items:center;min-width:80px;max-width:170px;height:28px;padding:0 10px;border:0;border-radius:12px;background:transparent;color:var(--daluo-alias-label-secondary);font-family:inherit;font-size:13px;line-height:1;white-space:nowrap;cursor:pointer;touch-action:none;user-select:none}
|
|
1528
|
-
.docktab:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1529
|
-
.docktab.cur{color:var(--daluo-alias-label-primary);background:var(--daluo-alias-markdown-tag)}
|
|
1530
|
-
.docktabtitle{display:flex;flex:1 1 auto;gap:5px;align-items:center;min-width:0;overflow:hidden;line-height:1.4}
|
|
1531
|
-
.docktabtitle[data-clipped]{mask-image:linear-gradient(to right,black calc(100% - 16px),transparent)}
|
|
1532
|
-
.docktab:not(.quiet):hover .docktabtitle,.docktab:not(.quiet):focus-within .docktabtitle,.docktab.cur .docktabtitle{mask-image:linear-gradient(to right,black calc(100% - 30px),transparent calc(100% - 14px))}
|
|
1533
|
-
.dockx{position:absolute;top:4px;right:4px;display:flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:none;border-radius:20px;background:transparent;color:var(--daluo-alias-label-tertiary);line-height:1;cursor:pointer;opacity:0;pointer-events:none}
|
|
1534
|
-
.docktab:hover .dockx,.docktab:focus-within .dockx,.docktab.cur .dockx{opacity:1;pointer-events:auto}
|
|
1535
|
-
.dockx:hover{color:var(--daluo-alias-label-primary);background:var(--daluo-alias-interactive-bg-hover)}
|
|
1536
|
-
/* 唯一且不可关的那个标签(引导页单独留着时)**是一个标签、不是一个选择**:无胶囊、无悬停底、
|
|
1537
|
-
标题也不给关闭钮让位(dsh 的 .tabQuiet 同义)。 */
|
|
1538
|
-
.docktab.quiet,.docktab.quiet:hover{color:var(--daluo-alias-label-primary);background:transparent;cursor:default}
|
|
1539
|
-
.docktab.quiet .docktabtitle{mask-image:none}
|
|
1540
|
-
.dockadd{display:flex;flex:none;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:12px;background:transparent;color:var(--daluo-alias-label-secondary);line-height:1;cursor:pointer}
|
|
1541
|
-
.dockadd:hover{color:var(--daluo-alias-label-primary);background:var(--daluo-alias-interactive-bg-hover)}
|
|
1542
|
-
.dockchrome{display:flex;flex:none;gap:8px;align-items:center;height:28px;margin-left:4px}
|
|
1543
|
-
.dockpages{display:flex;flex:1;min-height:0}
|
|
1544
|
-
.dockpage{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;--daluo-scrollbar-thumb:var(--daluo-alias-scrollbar-bg-l2);--daluo-scrollbar-thumb-hover:var(--daluo-alias-scrollbar-hover-l2)}
|
|
1545
|
-
/* ─── 文件页 + 预览页(逐条取自 dsh FilesBody.module.css + TextPreview.module.css,2026-09-17)──
|
|
1546
|
-
页头 **38px 高**、'padding:0 6px 0 16px'、'border-bottom:0.5px border-l3'。
|
|
1547
|
-
树行:**13px 正文字体(不是等宽!)**、'line-height:1.5'、'padding:5px 10px'、'gap:6px'、'border-radius:10px'、
|
|
1548
|
-
悬停 'interactive-bg-hover';缩进是**每层 18px**(dsh 用嵌套 '.level .level{padding-left:18px}'),
|
|
1549
|
-
图标 tertiary、目录名与文件名同色(不再把目录染成强调蓝)。
|
|
1550
|
-
**树与预览现在是两个页**(dsh 也是两个标签类型,点文件开一个预览标签),所以树占满整页,
|
|
1551
|
-
不再像以前那样给自己留 45% 去陪预览。 */
|
|
1552
|
-
.fhead{display:flex;align-items:center;gap:4px;box-sizing:border-box;height:38px;padding:0 6px 0 16px;border-bottom:0.5px solid var(--daluo-alias-border-l3)}
|
|
1553
|
-
/* 标题与根名**不参与挤**(flex:none + nowrap):让位的是中间那个可伸的搜索框。
|
|
1554
|
-
活体实测(352px 宽的面板):不写这两条时标题被压成两行「工作区文 / 件」、根名被压成「daluo-dock- / ws」——
|
|
1555
|
-
文本判据看不见这种折行(它是布局算出来的),只有截图看得见。 */
|
|
1556
|
-
.fhead .ftitle{flex:none;white-space:nowrap;font-size:13px;color:var(--daluo-alias-label-primary)}
|
|
1557
|
-
.fhead .fnote{flex:none;white-space:nowrap}
|
|
1558
|
-
.ffilter{box-sizing:border-box;flex:1 1 auto;align-self:center;min-width:0;height:28px;margin:0 8px;padding:0 8px;border:0.5px solid var(--daluo-alias-border-l2);border-radius:6px;background:var(--daluo-alias-bg-layer-1);color:var(--daluo-alias-label-primary);font:var(--daluo-font-xxs-12)}
|
|
1559
|
-
.ffilter::placeholder{color:var(--daluo-alias-label-tertiary)}
|
|
1560
|
-
.ftree{flex:1;min-height:0;overflow:auto;padding:8px 0 8px 8px}
|
|
1561
|
-
/* 全量搜索结果容器(与 .ftree 同一个盒位):搜索时树让位、清空还原——两个容器是兄弟,
|
|
1562
|
-
树的展开态不被销毁。行是「图标 + 名字 + dim 目录前缀(右对齐)」,点文件开预览、点目录下钻。 */
|
|
1563
|
-
.fsearch{flex:1;min-height:0;overflow:auto;padding:8px 0 8px 8px}
|
|
1564
|
-
/* 后台任务浮层(spec/web-jobs.md):与 appmenu 同皮;一行 = 命令 + 状态 + 用时(+ 运行中的停止钮)。 */
|
|
1565
|
-
.taskmenu{position:fixed;z-index:13;width:min(30rem,calc(var(--ui-vw) - 2rem));max-height:22rem;overflow:auto;padding:4px;background:var(--daluo-specific-menu);border:0;border-radius:20px;--daluo-elevation-stroke-color:var(--daluo-alias-border-l1);box-shadow:var(--daluo-elevation-prominent);--daluo-scrollbar-thumb:var(--daluo-alias-scrollbar-bg-l2);--daluo-scrollbar-thumb-hover:var(--daluo-alias-scrollbar-hover-l2)}
|
|
1566
|
-
.taskrow{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer}
|
|
1567
|
-
.taskrow:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1568
|
-
.taskrow .tcmd{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--daluo-font-family-code);font-size:12px;color:var(--daluo-alias-label-primary)}
|
|
1569
|
-
.taskrow .tmeta{flex:none;font-size:12px;color:var(--daluo-alias-label-tertiary)}
|
|
1570
|
-
.taskrow[data-state="running"] .tmeta{color:var(--daluo-alias-state-business-primary)}
|
|
1571
|
-
.taskrow[data-state="error"] .tmeta{color:var(--daluo-alias-state-error-primary)}
|
|
1572
|
-
.taskout{margin:0 8px 6px;padding:8px 10px;max-height:12rem;overflow:auto;border-radius:8px;background:var(--daluo-alias-markdown-code-block);font:var(--daluo-font-markdown-code-block);white-space:pre-wrap;word-break:break-word;color:var(--daluo-alias-label-secondary)}
|
|
1573
|
-
|
|
1574
|
-
/* 分支芯片(会话头,spec/web-git.md 的「① 顶部那条」缺口):与 ctxchip 同皮,
|
|
1575
|
-
分支名长了省略(芯片不该把标题挤走)。**不是 git 仓库时不画**(假芯片是明令禁止的)。 */
|
|
1576
|
-
.branchchip{flex:none;max-width:14rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:none;color:var(--daluo-alias-label-tertiary);font:inherit;font-size:13px;line-height:20px;padding:0 6px;border-radius:6px;cursor:pointer}
|
|
1577
|
-
.branchchip:hover{background:var(--daluo-alias-interactive-bg-hover);color:var(--daluo-alias-label-primary)}
|
|
1578
|
-
/* 计划模式指示:**不是按钮**(真状态、纯指示——退出由模型交出计划后自己走,网页里不切这个档),
|
|
1579
|
-
所以没有悬停底、光标也是默认;底色用 warn 档的淡色(它是一条「现在处于受限模式」的提示,不是普通元信息)。 */
|
|
1580
|
-
.planchip{flex:none;padding:0 8px;border-radius:6px;background:color-mix(in srgb,var(--daluo-alias-state-warn-primary) 14%,transparent);color:var(--daluo-alias-state-warn-primary);cursor:default}
|
|
1581
|
-
|
|
1582
|
-
/* ─── 变更页 + 改动页(spec/web-git.md)──────────────────────────────────────────────────────
|
|
1583
|
-
列表一行 = 「状态 + 路径 + 计数」,点开进改动页(unified diff,按行的角色上色)。
|
|
1584
|
-
配色用现成的语义 token:新增走 success、删除走 error、hunk 头走二级墨、文件头走 caption——
|
|
1585
|
-
**不自己造色**(与文件类型图标那条同规矩)。 */
|
|
1586
|
-
.gitwrap{display:flex;flex-direction:column;flex:1;min-height:0}
|
|
1587
|
-
.ghead{display:flex;align-items:center;gap:6px;box-sizing:border-box;height:38px;padding:0 8px 0 16px;border-bottom:0.5px solid var(--daluo-alias-border-l3)}
|
|
1588
|
-
.ghead .gbranch{flex:none;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--daluo-alias-label-primary)}
|
|
1589
|
-
.ghead .gtrack{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--daluo-alias-label-tertiary)}
|
|
1590
|
-
.gchanges{flex:1;min-height:0;overflow:auto;padding:8px}
|
|
1591
|
-
.grow{display:flex;align-items:center;gap:8px;box-sizing:border-box;width:100%;padding:5px 10px;border:0;border-radius:10px;background:transparent;color:var(--daluo-alias-label-primary);font:inherit;font-size:13px;line-height:1.5;text-align:left;cursor:pointer}
|
|
1592
|
-
.grow:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1593
|
-
.grow .gstat{flex:none;width:3.2rem;color:var(--daluo-alias-label-tertiary);font-size:12px}
|
|
1594
|
-
.grow .gpath{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1595
|
-
.grow[data-state="added"] .gstat{color:var(--daluo-alias-state-success-primary)}
|
|
1596
|
-
.grow[data-state="removed"] .gstat{color:var(--daluo-alias-state-error-primary)}
|
|
1597
|
-
.grow[data-state="conflict"] .gstat{color:var(--daluo-alias-state-error-primary)}
|
|
1598
|
-
.dhead{display:flex;align-items:center;gap:8px;box-sizing:border-box;height:38px;padding:0 16px;border-bottom:0.5px solid var(--daluo-alias-border-l3);font-size:13px}
|
|
1599
|
-
.dhead .dpath{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--daluo-alias-label-primary)}
|
|
1600
|
-
.dhead .dstat{flex:none;color:var(--daluo-alias-label-tertiary);font-size:12px}
|
|
1601
|
-
.dbody{flex:1;min-height:0;overflow:auto;margin:0;padding:8px 0;background:var(--daluo-alias-markdown-code-block);font:var(--daluo-font-markdown-code-block);white-space:pre-wrap;word-break:break-word}
|
|
1602
|
-
.dline{display:block;padding:0 10px}
|
|
1603
|
-
.dline[data-role="add"]{color:var(--daluo-alias-state-success-primary)}
|
|
1604
|
-
.dline[data-role="del"]{color:var(--daluo-alias-state-error-primary)}
|
|
1605
|
-
.dline[data-role="hunk"]{color:var(--daluo-alias-state-business-primary)}
|
|
1606
|
-
.dline[data-role="meta"]{color:var(--daluo-alias-label-caption)}
|
|
1607
|
-
|
|
1608
|
-
/* 终端正文的行与光标(spec/web-terminal.md 的「真终端」那一片):
|
|
1609
|
-
已完结的行是一个 .tdone,**没换行的那一行**是活行 .tline-live(进度条靠回车原地重画,必须重画它);
|
|
1610
|
-
光标是一个半角宽的方块 + 闪烁(prefers-reduced-motion 下不闪)。 */
|
|
1611
|
-
.tout.tscreen{padding:6px 8px;white-space:pre}
|
|
1612
|
-
.trow{display:block;white-space:pre}
|
|
1613
|
-
.tcur{background:var(--daluo-alias-label-primary);color:var(--daluo-alias-bg-base);animation:tblink 1.1s steps(1,end) infinite}
|
|
1614
|
-
@media (prefers-reduced-motion: reduce){.tcur{animation:none}}
|
|
1615
|
-
.tdone{display:inline}
|
|
1616
|
-
.tline-live{display:inline;white-space:pre-wrap}
|
|
1617
|
-
.tcursor{display:inline-block;width:0.5em;height:1.05em;margin:0 1px;vertical-align:text-bottom;background:var(--daluo-alias-label-primary);animation:tblink 1.1s steps(1,end) infinite}
|
|
1618
|
-
@keyframes tblink{0%,49%{opacity:1}50%,100%{opacity:0}}
|
|
1619
|
-
@media (prefers-reduced-motion: reduce){.tcursor{animation:none}}
|
|
1620
|
-
|
|
1621
|
-
/* ─── 终端页(spec/web-terminal.md)────────────────────────────────────────────────────────
|
|
1622
|
-
输出是一块代码面:**圆角 12px、行高 22px、底色 markdown-code-block、代码字体**——这三个数
|
|
1623
|
-
逐条对 dsh 'ui-primitives/src/TerminalBlock.module.css' 的 --dsl-terminal-* 三件
|
|
1624
|
-
(它自己也把这三件当终端面的定义)。输入行照本页输入区那条约定:**焦点线索走边框,不画原生焦点环**。 */
|
|
1625
|
-
.termwrap{display:flex;flex-direction:column;flex:1;min-height:0;gap:8px;padding:8px}
|
|
1626
|
-
.thead{display:flex;align-items:center;gap:6px;flex:none;font-size:12px;color:var(--daluo-alias-label-tertiary)}
|
|
1627
|
-
.thead .ftitle{font-size:13px;color:var(--daluo-alias-label-primary)}
|
|
1628
|
-
.thead .tstatus{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1629
|
-
.tout{flex:1;min-height:0;overflow:auto;margin:0;padding:10px 12px;border-radius:12px;background:var(--daluo-alias-markdown-code-block);color:var(--daluo-alias-label-primary);font-family:var(--daluo-font-family-code);font-size:var(--daluo-font-markdown-code-block-font-size);line-height:22px;white-space:pre-wrap;word-break:break-word}
|
|
1630
|
-
.tform{display:flex;align-items:center;gap:6px;flex:none}
|
|
1631
|
-
.tprompt{flex:none;color:var(--daluo-alias-label-tertiary);font-family:var(--daluo-font-family-code);font-size:13px}
|
|
1632
|
-
.tline{flex:1;min-width:0;height:32px;padding:0 10px;border:1px solid var(--daluo-alias-border-l1);border-radius:10px;background:var(--daluo-alias-bg-layer-1);color:var(--daluo-alias-label-primary);font-family:var(--daluo-font-family-code);font-size:13px}
|
|
1633
|
-
.tline:focus{outline:none;border-color:var(--daluo-alias-label-tertiary)}
|
|
1634
|
-
.tline:disabled{opacity:.5}
|
|
1635
|
-
|
|
1636
|
-
/* ─── 引导页(逐条对 dsh GuideBody.module.css):一枚灰罗盘 + 注册表里每个类型一枚入口胶囊,
|
|
1637
|
-
居中、无标题(像浏览器起始页,门摆在那儿不用配一句话)。点一枚 = 在引导标签的位置打开那个类型
|
|
1638
|
-
(dsh 的 replaceTab:引导是**门**,不是常驻页)。 */
|
|
1639
|
-
.guide{display:flex;flex-direction:column;gap:14px;align-items:center;justify-content:center;box-sizing:border-box;min-height:100%;padding:0 24px}
|
|
1640
|
-
.guide::after{content:'';flex:0 1 10%}
|
|
1641
|
-
.guidehero{display:flex;margin-bottom:16px;color:var(--daluo-static-neutral-200)}
|
|
1642
|
-
:root[data-theme="dark"] .guidehero{color:var(--daluo-static-neutral-700)}
|
|
1643
|
-
.guideentry{display:flex;gap:14px;align-items:center;box-sizing:border-box;width:380px;max-width:100%;min-height:56px;padding:14px 20px;color:var(--daluo-alias-label-primary);font:inherit;text-align:left;background:var(--daluo-alias-bg-layer-1);border:0.5px solid var(--daluo-alias-border-l4);border-radius:24px;cursor:pointer}
|
|
1644
|
-
.guideentry:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1645
|
-
.guideicon{display:flex;flex:none;align-items:center;justify-content:center;width:26px;height:26px;color:var(--daluo-alias-label-secondary)}
|
|
1646
|
-
.guidetext{display:flex;flex-direction:column;gap:3px;min-width:0}
|
|
1647
|
-
.guidetitle{overflow:hidden;font-size:15px;line-height:1.4;white-space:nowrap;text-overflow:ellipsis}
|
|
1648
|
-
.guidedesc{overflow:hidden;color:var(--daluo-alias-label-caption);font-size:13px;line-height:1.4;white-space:nowrap;text-overflow:ellipsis}
|
|
1649
|
-
.fsrow{display:flex;align-items:center;gap:6px;box-sizing:border-box;padding:5px 10px;border-radius:10px;font-size:13px;line-height:1.5;cursor:pointer}
|
|
1650
|
-
.fsrow:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1651
|
-
.fsrow.sel{background:var(--daluo-alias-interactive-bg-active)}
|
|
1652
|
-
.fsrow .fname{flex:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--daluo-alias-label-primary)}
|
|
1653
|
-
.fsrow .fspath{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;color:var(--daluo-alias-label-tertiary);font-size:12px}
|
|
1654
|
-
.fview{flex:1;overflow:auto;padding:8px;min-height:0;color:var(--daluo-alias-label-primary);font-family:var(--daluo-font-family-code);font-size:var(--daluo-content-font-size-secondary);line-height:1.6}
|
|
1655
|
-
.frow{display:flex;align-items:center;gap:6px;box-sizing:border-box;padding:5px 10px;border-radius:10px;cursor:pointer;font-size:var(--daluo-content-font-size-secondary);line-height:1.5;color:inherit;overflow:hidden;background:transparent}
|
|
1656
|
-
.frow:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1657
|
-
/* 文件类型配色(dsh 'ui-primitives/src/FileTypeIcon.module.css' 的色值逐条搬):
|
|
1658
|
-
目录=**琥珀**、代码/HTML/Markdown=deepseek-500、表格=绿、图片/视频=紫(它写的是字面量)、
|
|
1659
|
-
PDF=红、PPT=琥珀-500、Word=deepseek-450、其余=neutral-bluish-300。 */
|
|
1660
|
-
.frow .fcaret{flex:none;width:10px;display:inline-flex;justify-content:center;align-items:center;color:var(--daluo-alias-label-tertiary);font-size:10px}
|
|
1661
|
-
.frow .fficon{flex:none;display:inline-flex;align-items:center;color:var(--daluo-alias-label-tertiary)}
|
|
1662
|
-
.ft-dir{color:var(--daluo-static-amber-400)}
|
|
1663
|
-
.ft-code,.ft-html,.ft-markdown{color:var(--daluo-static-deepseek-500)}
|
|
1664
|
-
.ft-excel{color:var(--daluo-static-green-500)}
|
|
1665
|
-
.ft-image,.ft-video{color:rgb(139, 118, 246)}
|
|
1666
|
-
.ft-pdf{color:var(--daluo-static-red-600)}
|
|
1667
|
-
.ft-ppt{color:var(--daluo-static-amber-500)}
|
|
1668
|
-
.ft-word{color:var(--daluo-static-deepseek-450)}
|
|
1669
|
-
.ft-other{color:var(--daluo-static-neutral-bluish-300)}
|
|
1670
|
-
.frow .fname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1671
|
-
.frow .fsize{margin-left:auto;flex:none;color:var(--daluo-alias-label-tertiary);font-size:11px}
|
|
1672
|
-
.frow.dir>.fname{color:var(--daluo-alias-label-primary)}
|
|
1673
|
-
.frow.sel{background:var(--daluo-alias-interactive-bg-active)}
|
|
1674
|
-
.frow.other{color:var(--daluo-alias-label-tertiary);cursor:default}
|
|
1675
|
-
.frow.other:hover{background:transparent}
|
|
1676
|
-
.fnote,.ferr{font-size:12px;color:var(--daluo-alias-label-tertiary);padding:3px 10px}
|
|
1677
|
-
.ferr{color:var(--daluo-alias-state-error-secondary)}
|
|
1678
|
-
/* 正文检索命中(spec/session-search.md 呈现侧):与「标题匹配的会话」同屏但视觉上分开,
|
|
1679
|
-
命中正文按 3 行截断——列表是用来「认出是哪一条」的,不是用来读完的。 */
|
|
1680
|
-
.hithead{font-size:11px;color:var(--muted);padding:.45rem .35rem .15rem;border-top:1px solid var(--line);margin-top:.35rem}
|
|
1681
|
-
button.hit{display:block;width:100%;text-align:left;border:0.5px solid var(--daluo-alias-border-l1);background:var(--daluo-alias-bg-layer-1);border-radius:10px;padding:.3rem .45rem;margin:.15rem 0;cursor:pointer;font-size:12px;color:var(--daluo-alias-label-primary)}
|
|
1682
|
-
button.hit:hover{background:var(--soft)}
|
|
1683
|
-
button.hit .hitsnip{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;word-break:break-word}
|
|
1684
|
-
button.hit .hitmeta{font:11px var(--daluo-font-family-code);color:var(--muted);margin-top:.2rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1685
|
-
@keyframes flashbg{from{background:var(--daluo-alias-state-warn-tertiary)}to{background:transparent}}
|
|
1686
|
-
.flash{animation:flashbg 1.6s ease-out 1;border-radius:6px}
|
|
1687
|
-
/* 进行中的流式气泡(spec/streaming.md 演进节决策 2):**纯文本**(Markdown 只在最终消息上渲染——
|
|
1688
|
-
边收边解析会让半截语法闪烁);最终消息一到就**替换**它(增量是最终文本的前缀,叠加会重复) */
|
|
1689
|
-
.msg.streaming{opacity:.92;border-style:dashed}
|
|
1690
|
-
.msg.streaming .note{margin-bottom:.25rem}
|
|
1691
|
-
/* 推理行(逐条对 dsh 'ui-chat/src/client/chat/ReasoningRow.module.css',2026-09-17):
|
|
1692
|
-
**默认折叠成一行 24px**(标题 + 一行 13px 摘要预览,右侧 chevron),展开才是 13px/20px 正文、
|
|
1693
|
-
左缩进 'calc(22px + delta)'、色 'label-tertiary'。运行中整行一道 300px 扫光(2.6s ease-out,与工具行同族)。
|
|
1694
|
-
改前我们是个带边框的软盒子 + 11px 等宽标题——形状与 dsh 完全不同。
|
|
1695
|
-
|
|
1696
|
-
**摘要改左对齐(2026-09-19,用户实测"这布局你自己看着对吗")**:dsh 那份是 `text-align:right`
|
|
1697
|
-
(摘要吃满剩余宽度、贴右缘)。照抄之后,**宽屏下标签与摘要的间距会大到失去关联**——实测
|
|
1698
|
-
2560 宽时间距 ~830px(标签结束 x=570、摘要文字起点 x≈1402),1063 宽时 77px;
|
|
1699
|
-
于是那行读起来像"右侧那一列的东西"(而右侧正好是用户气泡),不像"这句在思考"。
|
|
1700
|
-
改成左对齐紧跟标签(+10px 间距)。**这是对 dsh 那一条 metric 的有意偏离**,
|
|
1701
|
-
`ui-dsh-metrics.test.ts` 里那条断言跟着改(原先钉 `text-align:right`),理由记在这里。 */
|
|
1702
|
-
.think{margin:0}
|
|
1703
|
-
.think-head{display:flex;align-items:center;gap:6px;box-sizing:border-box;width:100%;height:calc(24px + var(--daluo-content-font-delta,0px));border:0;background:none;padding:0;text-align:left;color:var(--daluo-alias-label-secondary);font-size:var(--daluo-content-font-size,14px);line-height:24px;cursor:pointer;position:relative;overflow:hidden}
|
|
1704
|
-
.think-head .think-title{flex:none;font-weight:400}
|
|
1705
|
-
.think-head .think-summary{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;padding-left:10px;font-size:var(--daluo-content-font-size-secondary);line-height:calc(20px + var(--daluo-content-font-delta-secondary));color:var(--daluo-alias-label-tertiary)}
|
|
1706
|
-
.think-head .chevron{flex:none;color:var(--daluo-alias-label-secondary);font-size:11px}
|
|
1707
|
-
.think.streaming-think .think-head::after{content:'';position:absolute;top:0;bottom:0;left:0;width:300px;pointer-events:none;background:linear-gradient(90deg,transparent 0,color-mix(in srgb,var(--daluo-alias-bg-base) 60%,transparent) 55%,transparent 100%);animation:toolsweep 2.6s ease-out infinite}
|
|
1708
|
-
.think-body{padding:4px 0 4px calc(22px + var(--daluo-content-font-delta,0px));color:var(--daluo-alias-label-tertiary);font-size:var(--daluo-content-font-size-secondary);line-height:calc(20px + var(--daluo-content-font-delta-secondary));white-space:pre-wrap;word-break:break-word}
|
|
1709
|
-
/* 流式状态行(逐条对 dsh 'ui-chat/src/client/chat/ChatView.module.css' 的 .turnStatus/.turnStatusClock):
|
|
1710
|
-
一条**渐变文字**(deepseek-500 → deepseek-200 → deepseek-500,250% 宽,1.8s linear 无限把背景推过去 =
|
|
1711
|
-
"还在写"的动感线索;文字本身用 background-clip:text + 透明色,所以它同时给了颜色与流动)。
|
|
1712
|
-
时钟是表格数字、label-caption 色,**必须显式重设 -webkit-text-fill-color**(父级把它设成透明了,
|
|
1713
|
-
不重设时钟就看不见——dsh 自己那行也是这么写的)。 */
|
|
1714
|
-
.statusline{display:inline-flex;align-items:center;height:calc(26px + var(--daluo-content-font-delta,0px));font-size:var(--daluo-content-font-size,14px);line-height:calc(22px + var(--daluo-content-font-delta,0px));background:linear-gradient(90deg,var(--daluo-static-deepseek-500) 0%,var(--daluo-static-deepseek-500) 40%,var(--daluo-static-deepseek-200) 50%,var(--daluo-static-deepseek-500) 60%,var(--daluo-static-deepseek-500) 100%);background-position:100% 0;background-size:250% 100%;background-clip:text;color:transparent;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:statusshimmer 1.8s linear infinite}
|
|
1715
|
-
@keyframes statusshimmer{to{background-position:0 0}}
|
|
1716
|
-
@media (prefers-reduced-motion: reduce){.statusline{background-position:0 0;background-size:100% 100%;animation:none}}
|
|
1717
|
-
.statusclock{margin-left:8px;font-size:var(--daluo-content-font-size-secondary);line-height:calc(20px + var(--daluo-content-font-delta-secondary));font-variant-numeric:tabular-nums;color:var(--daluo-alias-label-caption);-webkit-text-fill-color:var(--daluo-alias-label-caption)}
|
|
1718
|
-
button.think-head:hover{color:var(--fg)}
|
|
1719
|
-
.think .think-body{padding:4px 0 4px calc(22px + var(--daluo-content-font-delta,0px));font-size:var(--daluo-content-font-size-secondary,13px);line-height:calc(20px + var(--daluo-content-font-delta-secondary,0px));color:var(--daluo-alias-label-tertiary);white-space:pre-wrap;word-break:break-word;max-height:14rem;overflow:auto}
|
|
1720
|
-
/* 回合过程折叠(对齐 dsh 的 Compact 档):完成回合里的工具卡收进一行可展开的摘要。
|
|
1721
|
-
只藏卡片、**不搬节点**——顺序与气泡结构不动,展开时它们就长回原位。 */
|
|
1722
|
-
/* 回合过程折叠 = dsh 的 Compact 档(TurnProcessNodeView.module.css 逐值,2026-09-20 决策 68):
|
|
1723
|
-
这一行**不是盒子**——它是摘要行 + 底下一条 0.5px l2 的发丝线(dsh 的 .root 是 border:none +
|
|
1724
|
-
border-bottom:0.5px l2 且带 box-sizing:border-box,33px 里含底部 8px 的留白);
|
|
1725
|
-
改前画的是 1px **虚线框** + 12px 等宽,两样都不是 dsh 的形状。文字 14px/24px、chevron 16px 左距 6px、
|
|
1726
|
-
收起时整行再往下留 8px(dsh 的 .root:not([data-open]) 那条)。 */
|
|
1727
|
-
.tgroup{margin:.35rem 0}
|
|
1728
|
-
.tgroup-head{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:33px;padding:0 0 8px;border:0;border-bottom:0.5px solid var(--daluo-alias-border-l2);background:none;color:var(--daluo-alias-label-secondary);cursor:pointer;text-align:left;font-size:14px;line-height:24px}
|
|
1729
|
-
.tgroup[data-open="0"] .tgroup-head{margin-bottom:8px}
|
|
1730
|
-
.tgroup-head:hover{color:var(--daluo-alias-label-primary)}
|
|
1731
|
-
.tgroup-head .caret{flex:none;width:16px;margin-left:6px;color:var(--daluo-alias-label-tertiary)}
|
|
1732
|
-
.tglabel{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1733
|
-
/* 设置面板:同 picker 的浮层形态(贴住头部、点外面收起、靠 hidden 开关——见顶部 [hidden] 守卫) */
|
|
1734
|
-
/* 设置行(逐字对**活体 dsh** 的 .row/.rowText/.title/.desc,2026-09-17 第三轮):
|
|
1735
|
-
padding 16px 0、gap 8px、border-bottom 0.5px(最后一行的线去掉,同 dsh 那条
|
|
1736
|
-
「.section > [data-slot] > :last-child{border-bottom:none}」);文字列 gap 4px + **右留 48px**(给控件让位);
|
|
1737
|
-
标题 **14/22 primary**、说明 **12/18 tertiary**。
|
|
1738
|
-
改前:.setrow 是 padding .32rem 0 + **1px** 线,.setlabel 是 **8.5rem 宽的 12px muted 标签**,
|
|
1739
|
-
说明(.fnote)挂在**控件那一侧**——三处都与上游对不上(上游说明在标题**下面**)。
|
|
1740
|
-
线的颜色 2026-09-20 再修一次(审计 P2#10):上游各 section 行用 **border-l2**(活体核
|
|
1741
|
-
locale/LanguageRow.module.css:9 '0.5px solid var(--dsw-alias-border-l2)'),本页此前写的 l1 淡一档。 */
|
|
1742
|
-
.setrow{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 0;border-bottom:0.5px solid var(--daluo-alias-border-l2)}
|
|
1743
|
-
.setrow:last-child{border-bottom:0}
|
|
1744
|
-
/* 文字列**必须有下限**:.setctl 里的值是模型页那种长 URL 时,flex 会把没有下限的文字列压成
|
|
1745
|
-
「上/下/文/窗/口」一字一列(活体实测,改前靠 .setlabel 的固定 8.5rem 挡着才没露)。
|
|
1746
|
-
取 9rem = 标题最长那档仍能一行放下。控制侧 **不收缩 + 封顶 60%**:短值(danger-full 这类)保自然宽
|
|
1747
|
-
不换行,长值到 60% 封顶后就地换行。三条路都试过(活体各抓一次):不设下限 ⇒ 长值把文字列挤扁;
|
|
1748
|
-
有下限但控制侧可收缩 ⇒ 短值被压成两行(danger-/full);本式两处都对。 */
|
|
1749
|
-
.settext{flex:1 1 auto;min-width:9rem;display:flex;flex-direction:column;gap:4px;padding-right:48px}
|
|
1750
|
-
.setlabel{font-size:14px;line-height:22px;color:var(--daluo-alias-label-primary)}
|
|
1751
|
-
.setdesc{font-size:12px;line-height:18px;color:var(--daluo-alias-label-tertiary)}
|
|
1752
|
-
.setctl{flex:0 0 auto;display:flex;gap:.5rem;align-items:center;justify-content:flex-end;flex-wrap:wrap;min-width:0;max-width:60%}
|
|
1753
|
-
.setctl b{font-size:13px;color:var(--daluo-alias-label-primary);overflow-wrap:anywhere}
|
|
1754
|
-
.setctl code{font:11px var(--daluo-font-family-code);color:var(--daluo-alias-label-tertiary);word-break:break-all}
|
|
1755
|
-
/* 分段控件(逐字对原型 SettingsRows.module.css 的 .segmented/.segment):容器 3px 内边距 / 圆角 12 /
|
|
1756
|
-
bg-module-platform / gap 2;段 28px 高、圆角 9、13px secondary;选中 elevated-fill + primary + 500 + shadow-lv1。
|
|
1757
|
-
**改前是 1px 描边的 999px 药丸 + 12px 等宽字**——药丸语言是旧调色那套,与 dsh 的分段控件不是一回事。 */
|
|
1758
|
-
.segbox{display:flex;gap:2px;padding:3px;border-radius:12px;background:var(--daluo-alias-bg-module-platform)}
|
|
1759
|
-
button.seg{height:28px;padding:0 14px;border:0;border-radius:9px;background:transparent;color:var(--daluo-alias-label-secondary);font:inherit;font-size:13px;line-height:22px;cursor:pointer}
|
|
1760
|
-
button.seg:hover{color:var(--daluo-alias-label-primary)}
|
|
1761
|
-
button.seg[aria-pressed="true"]{background:var(--daluo-alias-button-elevated-fill);color:var(--daluo-alias-label-primary);font-weight:500;box-shadow:var(--daluo-shadow-lv1)}
|
|
1762
|
-
/* 步进器(逐字对原型 .stepper/.stepBtn/.stepValue/.stepUnit):32px 高 / 圆角 9 / bg-module-platform;
|
|
1763
|
-
步按钮 32px 宽占满高、值居中 48px 起、单位 11px tertiary。 */
|
|
1764
|
-
.stepper{display:flex;align-items:center;height:32px;border-radius:9px;background:var(--daluo-alias-bg-module-platform)}
|
|
1765
|
-
.stepper button{width:32px;height:100%;border:0;border-radius:9px;background:transparent;color:var(--daluo-alias-label-secondary);font-size:16px;cursor:pointer}
|
|
1766
|
-
.stepper button:hover{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1767
|
-
.stepper .stepvalue{min-width:48px;text-align:center;font-size:13px;color:var(--daluo-alias-label-primary)}
|
|
1768
|
-
.stepper .stepunit{margin-left:2px;margin-right:6px;font-size:11px;color:var(--daluo-alias-label-tertiary)}
|
|
1769
|
-
/* 对话字号只挂在这里:**只影响对话内容**(侧栏/头部的密度是设计,不是偏好) */
|
|
1770
|
-
#stream{font-size:var(--daluo-content-font-size,14px);line-height:calc(22px + var(--daluo-content-font-delta,0px))}
|
|
1771
|
-
/* ── 消息动作行(逐条对 dsh 'ui-chat/src/client/chat/MessageIconActions.module.css' +
|
|
1772
|
-
'TurnUsagePanel.module.css',2026-09-17)────────────────────────────────────────────
|
|
1773
|
-
行:'gap:8px'、高 'calc(28px + delta)'。**动作一律是图标**(28px 圆、6px 内边距、15px 字形、
|
|
1774
|
-
tertiary→secondary + interactive-bg-hover),不写字——文字留给了 tooltip 与无障碍名。
|
|
1775
|
-
用量/用时是**带图标的 pill**(数据库/时钟 + 标签,'padding:6px 8px'、'gap:4px'、13px/tabular-nums、
|
|
1776
|
-
相邻两枚 'margin-left:-6px' 读成一簇);时间是纯文本(用户消息在图标**之前**,助手在**之后**)。 */
|
|
1777
|
-
.actions{display:flex;align-items:center;gap:8px;height:calc(28px + var(--daluo-content-font-delta,0px))}
|
|
1778
|
-
.actions .tstart{padding-right:12px;font-size:var(--daluo-content-font-size-secondary,13px);line-height:calc(24px + var(--daluo-content-font-delta,0px));color:var(--daluo-alias-label-tertiary);white-space:nowrap}
|
|
1779
|
-
.actions .tend{font-size:var(--daluo-content-font-size-secondary,13px);line-height:calc(24px + var(--daluo-content-font-delta,0px));color:var(--daluo-alias-label-tertiary);white-space:nowrap}
|
|
1780
|
-
.actions .act{display:inline-flex;align-items:center;justify-content:center;width:calc(28px + var(--daluo-content-font-delta,0px));height:calc(28px + var(--daluo-content-font-delta,0px));padding:6px;border:none;border-radius:28px;background:transparent;color:var(--daluo-alias-label-tertiary);cursor:pointer}
|
|
1781
|
-
.actions .act svg{width:calc(15px + var(--daluo-content-font-delta,0px));height:calc(15px + var(--daluo-content-font-delta,0px))}
|
|
1782
|
-
/* 反馈态(「已复制」):临时从 28px 圆钮变成能放下三个字的小药丸——**不撑破动作行**,
|
|
1783
|
-
宽度随文字走(不加 transition:一闪而过的东西不该有动画尾巴)。 */
|
|
1784
|
-
.actions .act.saying{width:auto;min-width:calc(28px + var(--daluo-content-font-delta,0px));padding:0 8px}
|
|
1785
|
-
/* 反馈态把图标收起来(**必须走 CSS**:SVGElement 没有 hidden 的 IDL 属性,svg.hidden = true 不生效) */
|
|
1786
|
-
.actions .act.saying svg{display:none}
|
|
1787
|
-
.actions .act .actsay{font-size:var(--daluo-content-font-size-secondary,13px);line-height:calc(24px + var(--daluo-content-font-delta,0px));white-space:nowrap}
|
|
1788
|
-
/* 悬停/按下/键盘焦点**三态都要有反馈**(2026-09-18 用户实测「点击没有反馈」——
|
|
1789
|
-
原来只有 :hover,鼠标点下去、键盘 Tab 过去都一样没动静)。按下走 interactive-bg-active,
|
|
1790
|
-
焦点环用 label-secondary(与全页焦点环同一档)。 */
|
|
1791
|
-
.actions .act:hover{background:var(--daluo-alias-interactive-bg-hover);color:var(--daluo-alias-label-secondary)}
|
|
1792
|
-
.actions .act:active{background:var(--daluo-alias-interactive-bg-active);color:var(--daluo-alias-label-primary)}
|
|
1793
|
-
.actions .act:focus-visible{outline:2px solid var(--daluo-alias-label-secondary);outline-offset:2px}
|
|
1794
|
-
.actions .pill{display:inline-flex;align-items:center;gap:4px;min-width:0;height:calc(28px + var(--daluo-content-font-delta,0px));padding:6px 8px;border:none;border-radius:28px;background:transparent;color:var(--daluo-alias-label-tertiary);font-size:var(--daluo-content-font-size-secondary,13px);font-variant-numeric:tabular-nums;line-height:calc(24px + var(--daluo-content-font-delta,0px));white-space:nowrap}
|
|
1795
|
-
.actions .pill svg{width:calc(15px + var(--daluo-content-font-delta,0px));height:calc(15px + var(--daluo-content-font-delta,0px));flex:none}
|
|
1796
|
-
.actions .pill+.pill{margin-left:-6px}
|
|
1797
|
-
.actions .plabel{min-width:0;overflow:hidden;text-overflow:ellipsis}
|
|
1798
|
-
/* 只有**最新一回合**的动作行常显;更早的那些悬停/聚焦才现(dsh '[data-actions-reveal=hover]':
|
|
1799
|
-
长会话里每行都挂一串图标会淹掉正文)。opacity 而不是 display——布局不跳。
|
|
1800
|
-
触屏(无 hover)保底全显,与 dsh 同一条 @media 门。 */
|
|
1801
|
-
@media (hover: hover){
|
|
1802
|
-
.actions[data-reveal="hover"]{opacity:0;transition:opacity 80ms ease}
|
|
1803
|
-
.msg:hover .actions[data-reveal="hover"],.msg:focus-within .actions[data-reveal="hover"]{opacity:1}
|
|
1804
|
-
.msg.user:has(~ .msg.user) .actions{opacity:0;transition:opacity 80ms ease}
|
|
1805
|
-
.msg.user:has(~ .msg.user):hover .actions,.msg.user:has(~ .msg.user):focus-within .actions{opacity:1}
|
|
1806
|
-
}
|
|
1807
|
-
.ferr{color:var(--danger)}
|
|
1808
|
-
/* 路径行:**目录 dimmed + 文件名亮**(dsh TextPreview 的 pathDirectory/pathName 两色),12px、右侧省略 */
|
|
1809
|
-
.fview .fpath2{display:flex;font-size:12px;margin:0 12px 8px 0;overflow:hidden;white-space:nowrap;mask-image:linear-gradient(to right, transparent, black 28px)}
|
|
1810
|
-
.fview .fpath2 .fpdir{color:var(--daluo-alias-label-tertiary)}
|
|
1811
|
-
.fview .fpath2 .fpname{color:var(--daluo-alias-label-primary)}
|
|
1812
|
-
/* 预览体:**不是一张带框的盒子**——预览区本身就是正文(dsh '.textDocument' 只有 8px 内边距、
|
|
1813
|
-
行内 'padding:0 10px',字体 mono + 1.6 行高由 .fview 给)。 */
|
|
1814
|
-
.fview pre.ftext{margin:0;max-height:none;border:0;border-radius:0;padding:0;white-space:pre;overflow:visible;font:inherit}
|
|
1815
|
-
/* 逐行渲染(dsh TextPreview 的 .line/.lineTarget):行内 10px 缩进在**每一行**上(不是整块),
|
|
1816
|
-
目标行(从工具行「看文件」跳过来时带的行号)给一层 interactive-bg-hover 底。 */
|
|
1817
|
-
.fview .fline{display:block;padding:0 10px}
|
|
1818
|
-
/* ── 变更条(逐条对 dsh 'ui-sidebar-documentpreview/src/client/TextPreview.module.css' 的
|
|
1819
|
-
.changed / .action,2026-09-17):announce 不 apply——读者手里那份不动,重不重载由他点。 */
|
|
1820
|
-
.fchanged{display:flex;flex:0 0 auto;gap:10px;align-items:center;margin:0;padding:6px 10px;color:var(--daluo-alias-label-secondary);font-size:12px;background:var(--daluo-alias-bg-layer-2);border-bottom:0.5px solid var(--daluo-alias-border-l1)}
|
|
1821
|
-
.fchanged span:first-child{flex:1;min-width:0}
|
|
1822
|
-
.fchanged .action{flex:none;padding:4px 10px;color:var(--daluo-alias-label-primary);font-size:var(--daluo-content-font-size-secondary,13px);white-space:normal;background:var(--daluo-alias-bg-layer-2);border:0.5px solid var(--daluo-alias-border-l2);border-radius:6px;cursor:pointer}
|
|
1823
|
-
.fchanged .action:hover{background:var(--daluo-alias-bg-layer-3)}
|
|
1824
|
-
.fview .fline.target{background:var(--daluo-alias-interactive-bg-hover)}
|
|
1825
|
-
/* 暗色:一套 token 覆盖即可换肤(主题接缝只覆盖 token——见 theme.ts 的安全边界) */
|
|
1826
|
-
/* 暗色**不再需要单独的短名覆盖**:上面那套 token 自己带 :root[data-theme="dark"] 块,
|
|
1827
|
-
短名只是别名 ⇒ 主题一翻,别名跟着翻(这就是有 token 层与没有的区别)。 */
|
|
1828
|
-
body{background:var(--daluo-alias-bg-base)}
|