pi-web-ui 0.108.0 → 0.110.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.
Files changed (83) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/README.md +21 -1
  3. package/README.zh-CN.md +21 -1
  4. package/README.zh-TW.md +201 -677
  5. package/dist/server/agent-service-daemon.js +2 -2
  6. package/dist/server/agent-service.js +47 -36
  7. package/dist/server/attachments.js +26 -6
  8. package/dist/server/client-state.js +4 -3
  9. package/dist/server/dispatch-domain-handlers.js +2 -0
  10. package/dist/server/dispatch-plugin-handlers.js +1 -0
  11. package/dist/server/dsh/dsh-agent-service.js +2 -2
  12. package/dist/server/durable/durable-driver.js +1 -1
  13. package/dist/server/durable/durable-tools.js +4 -1
  14. package/dist/server/files-service.js +23 -4
  15. package/dist/server/goal-service.js +12 -3
  16. package/dist/server/index.js +39 -10
  17. package/dist/server/locales.js +33 -0
  18. package/dist/server/marker-service.js +7 -13
  19. package/dist/server/markers/builtins/action.js +5 -6
  20. package/dist/server/markers/builtins/notify.js +2 -2
  21. package/dist/server/markers/builtins/rename.js +2 -2
  22. package/dist/server/markers/registry.js +5 -1
  23. package/dist/server/message-window.js +190 -0
  24. package/dist/server/model-admin.js +0 -4
  25. package/dist/server/plugin-catalog-sync.js +10 -2
  26. package/dist/server/plugin-catalog.js +63 -10
  27. package/dist/server/plugins.js +47 -6
  28. package/dist/server/preset-share.js +2 -3
  29. package/dist/server/process-utils.js +58 -24
  30. package/dist/server/protocol-version.js +1 -1
  31. package/dist/server/settings-service.js +8 -3
  32. package/dist/server/slash-commands.js +16 -4
  33. package/dist/server/text-sniff.js +10 -7
  34. package/dist/server/themes.js +36 -1
  35. package/dist/server/universal/drivers/dsh-driver.js +1 -1
  36. package/dist/server/universal/universal-session.js +12 -4
  37. package/dist/server/worktree-service.js +1 -1
  38. package/package.json +7 -2
  39. package/plugin-sdk/index.d.ts +20 -0
  40. package/plugin-sdk/index.mjs +14 -0
  41. package/plugins/catalog.json +22 -2
  42. package/themes/aetheris.css +155 -121
  43. package/themes/ayu-light.css +19 -15
  44. package/themes/bases/flow-base.css +1363 -0
  45. package/themes/bases/obsidian-base.css +679 -0
  46. package/themes/bases/zhujian-base.css +687 -0
  47. package/themes/bases/zhupi-base.css +659 -0
  48. package/themes/catppuccin-latte.css +17 -15
  49. package/themes/catppuccin.css +5 -2
  50. package/themes/claude-code-dark.css +2 -0
  51. package/themes/codex.css +16 -14
  52. package/themes/cyberpunk.css +4 -1
  53. package/themes/dark-teal.css +4 -1
  54. package/themes/dazzle.css +3 -0
  55. package/themes/everforest-light.css +17 -15
  56. package/themes/flow-light.css +10 -931
  57. package/themes/flow.css +13 -946
  58. package/themes/geist.css +16 -14
  59. package/themes/gruvbox-light.css +13 -11
  60. package/themes/kanagawa-lotus.css +16 -14
  61. package/themes/mist.css +18 -16
  62. package/themes/nord.css +16 -12
  63. package/themes/one-dark.css +9 -5
  64. package/themes/paper.css +9 -7
  65. package/themes/rose-pine-dawn.css +14 -12
  66. package/themes/sakura.css +15 -13
  67. package/themes/solarized-light.css +19 -17
  68. package/themes/tokyo-night.css +4 -2
  69. package/themes/vs-code-dark.css +4 -3
  70. package/themes/wallpaper-flow.css +73 -1031
  71. package/themes/wallpaper-obsidian.css +4 -673
  72. package/themes/white.css +8 -6
  73. package/themes/zhujian-dark.css +6 -608
  74. package/themes/zhujian.css +6 -657
  75. package/themes/zhupi-dark.css +6 -579
  76. package/themes/zhupi.css +6 -629
  77. package/web/dist/assets/{TerminalPanel-CslRhcS7.js → TerminalPanel-BHjM6pzY.js} +1 -1
  78. package/web/dist/assets/index-DwInT7-a.css +1 -0
  79. package/web/dist/assets/index-GfVFIgIL.js +693 -0
  80. package/web/dist/index.html +2 -2
  81. package/web/dist/sw.js +1 -1
  82. package/web/dist/assets/index-C_2Fl6f6.js +0 -690
  83. package/web/dist/assets/index-D0BtO5dn.css +0 -1
package/themes/white.css CHANGED
@@ -12,12 +12,14 @@
12
12
  --text-faint: #818b98;
13
13
  --accent: #0969da;
14
14
  --accent-soft: rgba(9, 105, 218, 0.1);
15
- --green: #059669;
15
+ --green: #04825b;
16
+ --on-green: #ffffff;
16
17
  --green-soft: rgba(5, 150, 105, 0.12);
17
18
  --red: #dc2626;
19
+ --on-red: #ffffff;
18
20
  --red-soft: rgba(220, 38, 38, 0.1);
19
- --amber: #d97706;
20
- --blue: #3b82f6;
21
+ --amber: #a75c05;
22
+ --blue: #1469f4;
21
23
  --blue-soft: rgba(59, 130, 246, 0.12);
22
24
  --term-bg: #ffffff;
23
25
  --term-fg: #1f2328;
@@ -57,8 +59,8 @@
57
59
  --link-soft: #0969da;
58
60
  --md-strong: #111827;
59
61
  --skill-blue: #2563eb;
60
- --plugin-purple: #b58cff;
61
- --auth-green: #059669;
62
+ --plugin-purple: #8745ff;
63
+ --auth-green: #04825b;
62
64
  --scroll-thumb: #c7ccd8;
63
65
  --scroll-thumb-hover: #aab2c0;
64
66
  --notice-err-bg: #eadadf;
@@ -73,7 +75,7 @@
73
75
  --stop-red-hover: #dc2626;
74
76
  --brand-grad-a: #8b5cf6;
75
77
  --brand-grad-b: #6366f1;
76
- --on-amber: #1a1a1a;
78
+ --on-amber: #ffffff;
77
79
  --search-active-fg: #1a1d26;
78
80
  --switch-knob: #ffffff;
79
81
  --bg-elev3: rgba(0, 0, 0, 0.03);
@@ -11,15 +11,17 @@
11
11
  --border-soft: #2b2b2b;
12
12
  --text: #eaeaea;
13
13
  --text-dim: #a0a0a0;
14
- --text-faint: #6e6e6e;
14
+ --text-faint: #717171;
15
15
  --accent: #e05a35;
16
16
  --accent-soft: rgba(224, 90, 53, 0.14);
17
17
  --green: #64a874;
18
18
  --green-soft: rgba(100, 168, 116, 0.14);
19
- --red: #e0654e;
19
+ --red: #e16952;
20
+ --on-red: #1a1a1a;
20
21
  --red-soft: rgba(224, 101, 78, 0.14);
21
22
  --amber: #d4a24a;
22
23
  --blue: #7a9cc9;
24
+ --on-blue: #1a1a1a;
23
25
  --blue-soft: rgba(122, 156, 201, 0.14);
24
26
  --term-bg: #0f0f0f;
25
27
  --term-fg: #eaeaea;
@@ -79,7 +81,7 @@
79
81
  --stop-red-hover: #e05a35;
80
82
  --brand-grad-a: #e05a35;
81
83
  --brand-grad-b: #d4a24a;
82
- --on-amber: #131313;
84
+ --on-amber: #1a1a1a;
83
85
  --search-active-fg: #131313;
84
86
  --switch-knob: #eaeaea;
85
87
  --sunken-bg: rgba(0, 0, 0, 0.25);
@@ -109,608 +111,4 @@
109
111
  --menu-bg: #2a2a2a;
110
112
  }
111
113
 
112
- /* =========================================================================
113
- 朱笺·夜 · Vermilion Note Dark
114
- 「朱笺」的暖墨夜用版:工具调用与思考流采用夜纸凹版卡片,
115
- 色板换成深暖墨底 + 纸色文字,朱红提亮保对比。
116
- ========================================================================= */
117
-
118
- /* ---- 0. 夜纸底色:墨面的天头微光与角落沉暗 ---- */
119
- body,
120
- .app-root {
121
- background-color: var(--bg);
122
- background-image:
123
- radial-gradient(ellipse 90% 55% at 50% -8%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 70%),
124
- radial-gradient(ellipse 100% 70% at 108% 112%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
125
- background-attachment: fixed;
126
- }
127
-
128
- ::selection {
129
- background: rgba(224, 90, 53, 0.32);
130
- }
131
-
132
- /* ---- 1. 顶栏隐形化:无底色层次,只一条 hairline,印章品牌 ---- */
133
- .topbar {
134
- background: var(--topbar-bg) !important;
135
- border-bottom: 1px solid var(--border-soft) !important;
136
- box-shadow: none !important;
137
- }
138
-
139
- .brand-name {
140
- font-family: var(--serif);
141
- font-weight: 700;
142
- letter-spacing: 0.06em;
143
- }
144
-
145
- /* 顶栏控件全部素色化:无底无框,hover 才现 hairline。兜底所有 button /
146
- * [role=button]——不管类名是谁(基线 chip / 插件注入 / capsule 等),顶栏里
147
- * 一律裸图标,dropdown 触发器不许再带盒子。 */
148
- .topbar button,
149
- .topbar [role="button"],
150
- .topbar a.chip,
151
- .topbar .chip {
152
- background: transparent !important;
153
- border: 1px solid transparent !important;
154
- border-radius: 3px !important;
155
- box-shadow: none !important;
156
- transition:
157
- border-color 0.15s ease,
158
- color 0.15s ease !important;
159
- }
160
-
161
- .topbar button:hover,
162
- .topbar [role="button"]:hover,
163
- .topbar a.chip:hover,
164
- .topbar .chip:hover {
165
- border-color: var(--border) !important;
166
- background: transparent !important;
167
- }
168
-
169
- .topbar .dropdown {
170
- background: transparent !important;
171
- border: none !important;
172
- box-shadow: none !important;
173
- }
174
-
175
- /* ---- 2. 消息区:文档化排版 ----
176
- * 消息区左右边缘与输入框/快捷短语行保持一致严丝合缝对齐(继承基线列几何)。 */
177
-
178
- .msg {
179
- position: relative;
180
- padding: 2px 0 10px;
181
- }
182
-
183
- .msg-user {
184
- padding-bottom: 2px !important;
185
- }
186
-
187
- .msg-user .msg-actions {
188
- margin-top: 2px !important;
189
- }
190
-
191
- .msg-user + .msg-assistant {
192
- padding-top: 2px !important;
193
- }
194
-
195
- .msg-user + .msg-assistant .msg-body > :first-child {
196
- margin-top: 2px !important;
197
- }
198
-
199
- /* 操作按钮:卡头只有自己的复制键(.chead-copy),消息级按钮(复制三件套 /
200
- 分叉 / 回滚 / 朗读)统一在底部 .msg-actions 行,流内排在消息气泡/正文下边,
201
- 桌面端与手机端保持一致。 */
202
-
203
- /* 角色行:书目式小标 */
204
- .msg-meta {
205
- margin-bottom: 4px;
206
- }
207
-
208
- /* head 行左右内边距归零:折叠三角贴齐列左缘(文字同一条线),右侧复制
209
- * 按钮贴右缘——head 无边框后,钮与缘之间不能悬空。三角形 28px 盒内 16px
210
- * 图标居中内缩 6px,用负外边距做光学对齐。 */
211
- .chead {
212
- padding-left: 0;
213
- padding-right: 0;
214
- }
215
-
216
- .chead-toggle {
217
- margin-left: -6px;
218
- }
219
-
220
- /* 正文块上的单一复制键去重:卡头现在只有自己的复制键,消息级复制
221
- (纯文本 / Markdown / 长图三件套)统一在底部 .msg-actions 行里。 */
222
- .msg-text-copy {
223
- display: none !important;
224
- }
225
-
226
- /* head 悬浮不再出现底色块:纸面保持完全平整(键盘 focus 的 outline 保留,
227
- * 只服务键盘导航) */
228
- div.chead[role="button"]:hover,
229
- .chead-toggle:hover {
230
- background: transparent !important;
231
- }
232
-
233
- .msg-role {
234
- font-size: 10.5px;
235
- font-weight: 600;
236
- letter-spacing: 0.18em;
237
- color: var(--text-faint);
238
- }
239
-
240
- .msg-time {
241
- font-family: var(--mono);
242
- font-size: 10.5px;
243
- }
244
-
245
- /* ---- 3. 用户输入:去气泡,「起手式,夜纸批注体 ---- */
246
- .msg-user .msg-body {
247
- position: relative;
248
- background: transparent !important;
249
- border: none !important;
250
- border-radius: 0 !important;
251
- padding: 0 0 0 1.5em !important;
252
- font-family: var(--serif);
253
- font-size: 15.5px;
254
- font-weight: 600;
255
- line-height: 1.8;
256
- color: var(--text);
257
- }
258
-
259
- .msg-user .msg-body::before {
260
- content: "「";
261
- position: absolute;
262
- left: 0;
263
- top: -0.12em;
264
- font-family: var(--serif);
265
- font-size: 1.3em;
266
- font-weight: 700;
267
- color: var(--accent);
268
- line-height: 1;
269
- }
270
-
271
- /* ---- 4. 助手正文:衬线文档体 ---- */
272
- .msg-assistant .msg-text {
273
- font-family: var(--serif);
274
- font-size: 15px;
275
- line-height: 1.85;
276
- color: var(--text);
277
- }
278
-
279
- .msg-assistant .msg-text p:first-child {
280
- margin-top: 0;
281
- }
282
-
283
- .msg-assistant .msg-text h1,
284
- .msg-assistant .msg-text h2,
285
- .msg-assistant .msg-text h3,
286
- .msg-assistant .msg-text h4 {
287
- font-family: var(--serif);
288
- font-weight: 700;
289
- color: var(--md-strong);
290
- letter-spacing: 0.02em;
291
- }
292
-
293
- .msg-assistant .msg-text blockquote {
294
- border-left: 2px solid var(--accent-soft);
295
- font-style: normal;
296
- color: var(--text-dim);
297
- }
298
-
299
- .msg-assistant .msg-text a {
300
- color: var(--link);
301
- text-decoration: underline dotted;
302
- text-decoration-color: rgba(224, 90, 53, 0.5);
303
- text-underline-offset: 3px;
304
- }
305
-
306
- .msg-assistant .msg-text hr {
307
- border: none;
308
- border-top: 1px dotted var(--border);
309
- }
310
-
311
- .msg-assistant .msg-text code {
312
- background: #2a2a2a;
313
- color: #e5957a;
314
- border-radius: 2px;
315
- padding: 1px 5px;
316
- }
317
-
318
- /* ---- 5. 工具调用 = 笺纸凹版卡片(与代码块同色,点线引导符填空) ---- */
319
- .toolcall {
320
- margin: 6px 0 !important;
321
- border: 1px solid var(--border-soft) !important;
322
- border-radius: 4px !important;
323
- background: var(--code-bg) !important;
324
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25) !important;
325
- overflow: hidden !important;
326
- }
327
-
328
- .toolcall-head {
329
- display: flex;
330
- align-items: center;
331
- min-height: 28px;
332
- padding: 4px 10px !important;
333
- font-family: var(--mono);
334
- font-size: 12px;
335
- }
336
-
337
- .toolcall-name {
338
- font-family: var(--mono) !important;
339
- font-weight: 500 !important;
340
- font-size: 12px !important;
341
- letter-spacing: 0.02em;
342
- color: var(--text-dim) !important;
343
- }
344
-
345
- /* 点线引导符:账本目录式填空 */
346
- .toolcall .toolcall-spacer {
347
- border-bottom: 1px dotted #3f3f3f;
348
- height: 0.7em;
349
- margin: 0 10px;
350
- }
351
-
352
- .toolcall-status {
353
- color: var(--text-faint) !important;
354
- }
355
-
356
- .toolcall.run {
357
- border-color: rgba(224, 90, 53, 0.5) !important;
358
- background: var(--code-bg) !important;
359
- }
360
-
361
- .toolcall.run .toolcall-name {
362
- color: var(--accent) !important;
363
- }
364
-
365
- .toolcall.run .toolcall-status {
366
- color: var(--accent) !important;
367
- }
368
-
369
- .toolcall.ok .toolcall-status {
370
- color: var(--green) !important;
371
- }
372
-
373
- .toolcall.err {
374
- border-color: rgba(224, 101, 78, 0.5) !important;
375
- background: var(--red-soft) !important;
376
- }
377
-
378
- .toolcall.err .toolcall-status {
379
- color: var(--red) !important;
380
- }
381
-
382
- .toolcall.err .toolcall-name {
383
- color: var(--red) !important;
384
- }
385
-
386
- /* 展开的参数/输出:并入台账,无框零内边距平面文本(--code-border/--code-pad
387
- 已按全透明主题机制置 transparent/0,连带 .termline 一并生效) */
388
- .toolcall-args pre,
389
- .toolcall-output pre {
390
- background: transparent !important;
391
- border: none !important;
392
- border-radius: 0 !important;
393
- padding: 0 !important;
394
- }
395
-
396
- /* 工具卡体:带淡墨顶部分隔线与舒适内边距 */
397
- .toolcall-body {
398
- border-top: 1px solid var(--border-soft) !important;
399
- padding: 8px 12px !important;
400
- background: transparent !important;
401
- }
402
-
403
- /* 卡内重复的终端图标只剩噪音(卡头已有工具图标),参照全透明主题隐藏 */
404
- .termline-icon {
405
- display: none;
406
- }
407
-
408
- .toolcall-output-label {
409
- margin-top: 6px;
410
- }
411
-
412
- .toolcall-kill {
413
- border-radius: 3px;
414
- }
415
-
416
- /* ---- 6. 思考流 = 笺纸凹版卡片 + 空态高度修复(※ 起手,淡墨小字) ---- */
417
- .thinking {
418
- margin: 6px 0 !important;
419
- border: 1px solid var(--border-soft) !important;
420
- border-radius: 4px !important;
421
- background: var(--code-bg) !important;
422
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25) !important;
423
- overflow: hidden !important;
424
- }
425
-
426
- .thinking-head {
427
- font-size: 12px;
428
- color: var(--text-faint);
429
- padding: 4px 10px !important;
430
- min-height: 28px;
431
- display: flex;
432
- align-items: center;
433
- }
434
-
435
- .thinking-body {
436
- border-top: 1px solid var(--border-soft) !important;
437
- font-style: normal !important;
438
- font-size: 12.5px !important;
439
- color: var(--text-dim) !important;
440
- background: transparent !important;
441
- position: relative;
442
- padding: 8px 14px 8px 2em !important;
443
- min-height: 2.4em;
444
- line-height: 1.6;
445
- }
446
-
447
- .thinking-body::before {
448
- content: "※";
449
- position: absolute;
450
- left: 8px;
451
- top: 8px;
452
- color: var(--text-faint);
453
- }
454
-
455
- .thinking-body:empty::after {
456
- content: "(无思考文本记录)";
457
- color: var(--text-faint);
458
- font-style: italic;
459
- }
460
-
461
- .thinking-live {
462
- border-color: rgba(224, 90, 53, 0.5) !important;
463
- background: var(--code-bg) !important;
464
- }
465
-
466
- .thinking-live .thinking-toggle,
467
- .thinking-live-label {
468
- color: var(--accent) !important;
469
- }
470
-
471
- /* ---- 7. 折叠摘要行 / 报错:并入台账体系 ---- */
472
- .msg-collapsed {
473
- background: transparent !important;
474
- border: none !important;
475
- border-bottom: 1px dotted var(--border-soft) !important;
476
- border-radius: 0 !important;
477
- box-shadow: none !important;
478
- padding-left: 0 !important;
479
- padding-right: 0 !important;
480
- }
481
-
482
- .msg-collapsed-action::before {
483
- margin-left: 0 !important;
484
- }
485
-
486
- .msg-error {
487
- background: var(--red-soft) !important;
488
- border: none !important;
489
- border-left: 3px solid var(--red) !important;
490
- border-radius: 0 !important;
491
- font-family: var(--serif);
492
- }
493
-
494
- /* ---- 8. 输入区 = 命令栏:与其他主题同构——只动颜色不动几何,
495
- 朱笔以 inset 阴影画在边框内侧,外缘与消息列/chips 恒对齐 ---- */
496
- .inputbar {
497
- background: transparent !important;
498
- }
499
-
500
- .inputbox {
501
- background: var(--inputbox-bg) !important;
502
- border: none !important;
503
- border-radius: 3px !important;
504
- box-shadow: inset 3px 0 0 0 rgba(224, 90, 53, 0.4) !important;
505
- transition:
506
- border-color 0.2s ease,
507
- box-shadow 0.2s ease !important;
508
- }
509
-
510
- .inputbox:focus-within {
511
- border: none !important;
512
- box-shadow: inset 3px 0 0 0 var(--accent) !important;
513
- }
514
-
515
- .btn.send {
516
- background: var(--send-blue) !important;
517
- color: #131313 !important;
518
- border-radius: 50% !important;
519
- box-shadow: none !important;
520
- font-weight: 600;
521
- }
522
-
523
- .btn.send:hover {
524
- background: var(--send-blue-hover) !important;
525
- }
526
-
527
- .btn.stop {
528
- background: var(--stop-red) !important;
529
- color: #131313 !important;
530
- border-radius: 50% !important;
531
- }
532
-
533
- /* 输入框底部模型选择、思考强度、预设等按钮:去边框、透明底,hover 现 hairline */
534
- .composer-tools {
535
- border-top: none !important;
536
- }
537
-
538
- .composer-tools .chip,
539
- .composer-tools .capsule-segment {
540
- font-size: 13px !important;
541
- padding: 4px 10px !important;
542
- gap: 6px !important;
543
- background: transparent !important;
544
- border: 1px solid transparent !important;
545
- box-shadow: none !important;
546
- border-radius: 3px !important;
547
- transition:
548
- border-color 0.15s ease,
549
- background 0.15s ease !important;
550
- }
551
-
552
- .composer-tools .model-thinking-capsule {
553
- background: transparent !important;
554
- border: none !important;
555
- box-shadow: none !important;
556
- padding: 0 !important;
557
- }
558
-
559
- .composer-tools .model-thinking-capsule .capsule-divider {
560
- display: none !important;
561
- }
562
-
563
- .composer-tools .chip:hover,
564
- .composer-tools .capsule-segment:hover {
565
- border-color: var(--border) !important;
566
- background: transparent !important;
567
- }
568
-
569
- .composer-tools-left {
570
- gap: 6px !important;
571
- }
572
-
573
- .composer-tools .chip-model,
574
- .composer-tools .chip-sub,
575
- .composer-tools .capsule-model-name,
576
- .composer-tools .capsule-thinking-text {
577
- font-size: 12.5px !important;
578
- }
579
-
580
- /* ---- 9. 底栏 / 状态栏:hairline 收边 ---- */
581
- .statusbar {
582
- background: var(--statusbar-bg) !important;
583
- border-top: 1px solid var(--border-soft) !important;
584
- box-shadow: none !important;
585
- }
586
-
587
- .goalbar {
588
- background: transparent !important;
589
- border-top: 1px solid var(--border-soft) !important;
590
- box-shadow: none !important;
591
- }
592
-
593
- /* ---- 10. 左右面板:素纸文件栏 ----
594
- * 激活态不做红洗(accent-soft 洗在墨底上是一块脏褐),改为中性纸面 7% +
595
- * 左缘 2px 朱标;圆角统一 8px。 */
596
- .panel {
597
- background: var(--panel-bg) !important;
598
- border-color: var(--border-soft) !important;
599
- }
600
-
601
- .session-item,
602
- .project-item,
603
- .file-item,
604
- .scm-file {
605
- border-radius: 8px;
606
- }
607
-
608
- .session-item.active,
609
- .project-item.active {
610
- background: rgba(255, 255, 255, 0.07);
611
- border: none;
612
- box-shadow: inset 2px 0 0 var(--accent);
613
- }
614
-
615
- .session-item.active {
616
- padding: 8px 10px;
617
- }
618
-
619
- .project-item.active {
620
- padding: 7px 10px;
621
- }
622
-
623
- /* ---- 11. 代码块:墨面凹版 ---- */
624
- .codeblock {
625
- background: var(--code-bg) !important;
626
- border: 1px solid var(--border-soft) !important;
627
- border-radius: 3px !important;
628
- box-shadow: none !important;
629
- }
630
-
631
- .codeblock pre,
632
- .msg-text pre {
633
- background: var(--code-bg) !important;
634
- color: var(--code-text) !important;
635
- }
636
-
637
- /* ---- 11b. 语法高亮去蓝底,转暖墨 ---- */
638
- .hljs {
639
- color: #d8d0bd;
640
- background: transparent !important;
641
- }
642
-
643
- .hljs-deletion {
644
- color: #f0a896;
645
- background: rgba(224, 106, 80, 0.16);
646
- }
647
-
648
- .hljs-addition {
649
- color: #a8d4a8;
650
- background: rgba(111, 174, 127, 0.16);
651
- }
652
-
653
- /* ---- 12. 弹层与菜单:实底 + hairline,方角家族 ---- */
654
- .modal,
655
- .tool-info-modal,
656
- .settings-modal,
657
- .model-modal,
658
- .tpl-modal,
659
- .dd-menu,
660
- .dialog-inline {
661
- border-radius: 4px !important;
662
- border: 1px solid var(--border) !important;
663
- box-shadow:
664
- 0 1px 2px rgba(0, 0, 0, 0.3),
665
- 0 16px 40px -12px rgba(0, 0, 0, 0.55) !important;
666
- }
667
-
668
- .dd-menu {
669
- background: var(--menu-bg) !important;
670
- border: 1px solid var(--border) !important;
671
- border-radius: 4px !important;
672
- box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6) !important;
673
- }
674
-
675
- .dd-item:hover,
676
- .dd-all-item:hover {
677
- background: var(--accent-soft) !important;
678
- }
679
-
680
- /* ---- 13. chips / 徽标:账目标签体 ---- */
681
- .chip {
682
- background: var(--chip-bg) !important;
683
- border: 1px solid var(--border-soft) !important;
684
- border-radius: 2px !important;
685
- box-shadow: none !important;
686
- font-family: var(--mono);
687
- font-size: 11px;
688
- }
689
-
690
- /* ---- 14. 滚动条:细墨线 ---- */
691
- ::-webkit-scrollbar {
692
- width: 6px;
693
- height: 6px;
694
- }
695
-
696
- ::-webkit-scrollbar-track {
697
- background: transparent;
698
- }
699
-
700
- ::-webkit-scrollbar-thumb {
701
- background: var(--scroll-thumb);
702
- border-radius: 0;
703
- }
704
-
705
- ::-webkit-scrollbar-thumb:hover {
706
- background: var(--scroll-thumb-hover);
707
- }
708
-
709
- /* ---- 15. 通知条:hairline 左线式 ---- */
710
- .notice-err,
711
- .notice-warn,
712
- .notice-info {
713
- border-radius: 0 !important;
714
- border-width: 1px !important;
715
- border-left-width: 3px !important;
716
- }
114
+ @import "./bases/zhujian-base.css";