pi-web-ui 0.113.1 → 0.114.1
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/CHANGELOG.md +71 -1
- package/README.md +187 -316
- package/README.zh-CN.md +227 -299
- package/README.zh-TW.md +227 -299
- package/bin/device-hub-cli.mjs +577 -0
- package/bin/frp-manager.mjs +1573 -1573
- package/bin/pi-device-hub.mjs +9 -0
- package/bin/pi-web-ui.mjs +4081 -4041
- package/deploy/nginx-subpath.conf +100 -100
- package/deploy/pi-web-ui.service +36 -36
- package/dist/server/agent-service-daemon.js +102 -24
- package/dist/server/agent-service.js +2419 -1174
- package/dist/server/approval-rules.js +29 -3
- package/dist/server/ask-user-question-tool.js +8 -8
- package/dist/server/atomic-file.js +35 -14
- package/dist/server/attachment-store.js +71 -35
- package/dist/server/attachments.js +69 -13
- package/dist/server/canvas/canvas-agent-tool.js +68 -18
- package/dist/server/canvas/canvas-cards.js +1 -1
- package/dist/server/canvas/canvas-dispatch.js +61 -20
- package/dist/server/canvas/canvas-orchestrator.js +519 -202
- package/dist/server/canvas/canvas-scheduled-task.js +45 -0
- package/dist/server/canvas/canvas-scheduler.js +99 -0
- package/dist/server/canvas/canvas-store.js +107 -54
- package/dist/server/canvas/canvas-validation.js +131 -0
- package/dist/server/canvas/canvas-workspace.js +284 -0
- package/dist/server/client-id-utils.js +8 -0
- package/dist/server/client-state.js +110 -24
- package/dist/server/communicate-tool.js +76 -0
- package/dist/server/compact-context-tool.js +2 -3
- package/dist/server/compaction-instructions.js +75 -0
- package/dist/server/compaction-markers.js +7 -2
- package/dist/server/compaction-state.js +84 -0
- package/dist/server/composer-drafts.js +43 -40
- package/dist/server/context-evidence.js +346 -0
- package/dist/server/conversation-communication.js +368 -0
- package/dist/server/conversation-read-tool.js +3 -4
- package/dist/server/conversation-tool-names.js +14 -0
- package/dist/server/conversation-tool.js +57 -0
- package/dist/server/delegate-mode.js +17 -4
- package/dist/server/device-center/bot-catalog.js +88 -0
- package/dist/server/device-center/bot-execution.js +106 -0
- package/dist/server/device-center/bots.js +170 -0
- package/dist/server/device-center/collab-service.js +153 -0
- package/dist/server/device-center/collab-tool.js +184 -0
- package/dist/server/device-center/connector.js +351 -0
- package/dist/server/device-center/desktop-linux.js +372 -0
- package/dist/server/device-center/desktop-native.js +413 -0
- package/dist/server/device-center/desktop-page.js +232 -0
- package/dist/server/device-center/desktop-setup.js +30 -0
- package/dist/server/device-center/desktop.js +387 -0
- package/dist/server/device-center/device-portals.js +241 -0
- package/dist/server/device-center/execution-failure.js +70 -0
- package/dist/server/device-center/executor.js +371 -0
- package/dist/server/device-center/file-sync.js +493 -0
- package/dist/server/device-center/hub-auth.js +69 -0
- package/dist/server/device-center/hub-page.js +68 -0
- package/dist/server/device-center/hub-setup.js +214 -0
- package/dist/server/device-center/hub.js +830 -0
- package/dist/server/device-center/local-hub.js +92 -0
- package/dist/server/device-center/local.js +529 -0
- package/dist/server/device-center/main.js +118 -0
- package/dist/server/device-center/native-desktop/macos.js +192 -0
- package/dist/server/device-center/native-desktop/windows.js +118 -0
- package/dist/server/device-center/path-portal.js +120 -0
- package/dist/server/device-center/relay.js +996 -0
- package/dist/server/device-center/runtime.js +253 -0
- package/dist/server/device-center/store.js +122 -0
- package/dist/server/device-center/task-error.js +14 -0
- package/dist/server/device-center/transfers.js +293 -0
- package/dist/server/device-center/workspaces.js +45 -0
- package/dist/server/dispatch-domain-handlers.js +84 -27
- package/dist/server/dsh/dsh-agent-service.js +282 -159
- package/dist/server/dsh/dsh-client.js +12 -2
- package/dist/server/dsh/runtime/cordis.yml +1 -1
- package/dist/server/dsh/runtime/custom-prompt.mjs +33 -33
- package/dist/server/dsh/runtime/goal-rpc.mjs +1309 -1309
- package/dist/server/dsh/runtime/launcher.mjs +235 -235
- package/dist/server/dsh/runtime/override.patch.yml +89 -89
- package/dist/server/dsh/runtime/runtime-root.mjs +405 -405
- package/dist/server/durable/durable-agent-service.js +1 -1
- package/dist/server/engine-probe.js +36 -6
- package/dist/server/eval-tool.js +135 -135
- package/dist/server/evidence-tool-hooks.js +49 -0
- package/dist/server/file-save.js +95 -0
- package/dist/server/file-transfer-routes.js +97 -47
- package/dist/server/files-service.js +38 -26
- package/dist/server/global-loader.js +40 -2
- package/dist/server/goal-review-gate.js +16 -6
- package/dist/server/goal-service.js +54 -30
- package/dist/server/http-proxy.js +120 -0
- package/dist/server/index.js +285 -255
- package/dist/server/load-timing.js +31 -0
- package/dist/server/mcp-bridge.js +219 -94
- package/dist/server/mcp-hot-reload.js +31 -5
- package/dist/server/mcp-manager.js +192 -93
- package/dist/server/mcp-oauth-login.js +169 -0
- package/dist/server/mcp-oauth-ui.js +137 -0
- package/dist/server/mcp-oauth.js +395 -0
- package/dist/server/mcp-project-runtime.js +207 -0
- package/dist/server/message-window.js +74 -21
- package/dist/server/net-guard.js +122 -20
- package/dist/server/patch-bash-process.js +125 -0
- package/dist/server/patch-tool.js +9 -9
- package/dist/server/patch-turn-end-boundary.js +3 -3
- package/dist/server/payload-limits.js +17 -0
- package/dist/server/pending-question.js +82 -0
- package/dist/server/persona-chain.js +8 -8
- package/dist/server/plan-mode.js +338 -137
- package/dist/server/plugin-assets.js +8 -4
- package/dist/server/plugin-chat-attachments.js +48 -0
- package/dist/server/plugin-facilities.js +67 -220
- package/dist/server/plugin-installer.js +2 -1
- package/dist/server/plugin-removal.js +49 -0
- package/dist/server/plugin-secrets.js +179 -0
- package/dist/server/plugins.js +288 -94
- package/dist/server/preset-fields.js +56 -0
- package/dist/server/preset-plugin-dependencies.js +57 -0
- package/dist/server/preset-share.js +113 -72
- package/dist/server/prompt-templates.js +106 -0
- package/dist/server/protocol-version.js +1 -1
- package/dist/server/queue-modes.js +10 -0
- package/dist/server/remote-ssh-service.js +199 -106
- package/dist/server/request-context.js +164 -0
- package/dist/server/resolve-global-sdk.js +2 -0
- package/dist/server/sandbox-data.js +655 -0
- package/dist/server/sandbox-engines.js +7 -0
- package/dist/server/sandbox-runtime-gate.js +41 -0
- package/dist/server/sandbox-service.js +139 -698
- package/dist/server/sandbox-tool.js +21 -4
- package/dist/server/schedule-agent-tool.js +39 -21
- package/dist/server/scheduler-tasks.js +106 -55
- package/dist/server/scm-commitmsg.js +10 -10
- package/dist/server/serialize.js +48 -19
- package/dist/server/session-branch.js +25 -3
- package/dist/server/session-parser.js +28 -18
- package/dist/server/session-scan.js +130 -0
- package/dist/server/session-search.js +51 -37
- package/dist/server/settings-service.js +273 -111
- package/dist/server/setup-config.js +58 -0
- package/dist/server/setup-page.js +620 -620
- package/dist/server/skill-maintenance.js +112 -24
- package/dist/server/subagent-helpers.js +4 -1
- package/dist/server/subagent-notify.js +4 -1
- package/dist/server/subagent-security-gate.js +52 -11
- package/dist/server/subagent-task.js +27 -0
- package/dist/server/subagents.js +217 -46
- package/dist/server/tabs.js +9 -1
- package/dist/server/terminals.js +467 -363
- package/dist/server/text-quote.js +9 -0
- package/dist/server/tool-guards.js +42 -6
- package/dist/server/tool-manager.js +48 -20
- package/dist/server/tool-overrides.js +13 -11
- package/dist/server/tool-prompt-overrides.js +32 -2
- package/dist/server/tool-prompts.js +1 -1
- package/dist/server/turn-timing.js +11 -0
- package/dist/server/universal/drivers/claude-code.js +5 -0
- package/dist/server/universal/drivers/codex.js +336 -0
- package/dist/server/universal/index.js +1 -0
- package/dist/server/universal/session-store.js +48 -6
- package/dist/server/universal/universal-attachments.js +24 -1
- package/dist/server/universal/universal-service.js +1 -1
- package/dist/server/universal/universal-session.js +357 -231
- package/dist/server/uploads.js +64 -5
- package/dist/server/vision-bridge.js +18 -18
- package/dist/server/worktree-service.js +32 -24
- package/dist/server/ws-pending-queue.js +73 -27
- package/docs/device-center.md +148 -0
- package/docs/device-desktop.md +48 -0
- package/docs/dsh-engine.md +493 -493
- package/extensions/webui.ts +335 -335
- package/package.json +5 -2
- package/plugin-sdk/README.md +174 -174
- package/plugin-sdk/client-utils.mjs +279 -279
- package/plugin-sdk/import-check.mjs +210 -210
- package/plugin-sdk/index.d.ts +698 -676
- package/plugin-sdk/index.mjs +696 -696
- package/plugin-sdk/package.json +13 -13
- package/plugin-sdk/ssh-host-trust.mjs +225 -0
- package/plugins/catalog.json +11 -1
- package/themes/aetheris.css +501 -607
- package/themes/ayu-light.css +116 -140
- package/themes/bases/flow-base.css +1357 -1363
- package/themes/bases/obsidian-base.css +895 -895
- package/themes/bases/statusbar-flat-base.css +112 -0
- package/themes/bases/zhujian-base.css +688 -687
- package/themes/bases/zhupi-base.css +660 -659
- package/themes/catppuccin-latte.css +119 -142
- package/themes/catppuccin.css +116 -147
- package/themes/claude-code-dark.css +147 -146
- package/themes/codex.css +114 -138
- package/themes/cyberpunk.css +50 -108
- package/themes/dark-teal.css +264 -265
- package/themes/dazzle.css +38 -108
- package/themes/everforest-light.css +115 -138
- package/themes/flow-light.css +164 -164
- package/themes/flow.css +161 -161
- package/themes/geist.css +114 -138
- package/themes/gruvbox-light.css +115 -138
- package/themes/kanagawa-lotus.css +115 -138
- package/themes/md-preview.css +24 -234
- package/themes/mist.css +166 -186
- package/themes/nord.css +107 -138
- package/themes/one-dark.css +106 -139
- package/themes/paper.css +174 -186
- package/themes/rose-pine-dawn.css +114 -138
- package/themes/sakura.css +166 -186
- package/themes/solarized-light.css +114 -137
- package/themes/tokyo-night.css +115 -146
- package/themes/translucent.css +85 -85
- package/themes/transparent.css +116 -116
- package/themes/vs-code-dark.css +147 -147
- package/themes/wallpaper-flow.css +382 -382
- package/themes/wallpaper-obsidian.css +74 -74
- package/themes/white.css +164 -186
- package/themes/zhujian-dark.css +115 -114
- package/themes/zhujian.css +114 -114
- package/themes/zhupi-dark.css +115 -114
- package/themes/zhupi.css +114 -114
- package/web/dist/.build-assets.json +1 -0
- package/web/dist/assets/BgTasksModal-BcXJ20RO.js +1 -0
- package/web/dist/assets/BgTasksModal-DjQmiKnE.js +1 -0
- package/web/dist/assets/CanvasStudio-PI9pid0Y.js +1579 -0
- package/web/dist/assets/CanvasStudio-nf5-HxLM.js +1579 -0
- package/web/dist/assets/DeviceCenter-CYttJw2a.js +3 -0
- package/web/dist/assets/DeviceCenter-DPe4sz74.js +3 -0
- package/web/dist/assets/DeviceGroups-D2rogxEN.js +1 -0
- package/web/dist/assets/Dropdown-ZLS04O8p.js +1 -0
- package/web/dist/assets/FilePreview-C9Ut4Lq6.js +2 -0
- package/web/dist/assets/FilePreview-CvK3ZzX5.js +2 -0
- package/web/dist/assets/GlobalSearchModal-C5e-OCw2.js +1 -0
- package/web/dist/assets/GlobalSearchModal-H7pFK2UC.js +1 -0
- package/web/dist/assets/GroupConversation-C2wNM0dQ.js +1 -0
- package/web/dist/assets/GroupConversation-ChN3TWQK.js +1 -0
- package/web/dist/assets/ModelConfigModal-DDZccDYt.js +2 -0
- package/web/dist/assets/PiSetupModal-DHbqfx8T.js +1 -0
- package/web/dist/assets/ProviderOAuthControls-C-MK36Dk.js +1 -0
- package/web/dist/assets/SCMPanel-buTGziDB.js +2 -0
- package/web/dist/assets/SCMPanel-kx-SCL2s.js +2 -0
- package/web/dist/assets/SettingsModal-BsUF8jqr.js +20 -0
- package/web/dist/assets/SettingsModal-D357Ky7P.js +20 -0
- package/web/dist/assets/TerminalPanel-BBuM_Sez.js +3 -0
- package/web/dist/assets/TerminalPanel-D6x6xz8Q.js +3 -0
- package/web/dist/assets/TuiOverlayModal-CdbGV3Za.js +1 -0
- package/web/dist/assets/TuiOverlayModal-d6x9u25n.js +1 -0
- package/web/dist/assets/app-globals-DcyO0UPi.js +1 -0
- package/web/dist/assets/desktop-YguLbrX1.js +1 -0
- package/web/dist/assets/es-DWMIuDU2.js +2 -0
- package/web/dist/assets/fi-DaSO0Q-m.js +325 -0
- package/web/dist/assets/index-BPvpea8t.js +85 -0
- package/web/dist/assets/index-D6u8xH0o.js +85 -0
- package/web/dist/assets/index-DDZMv6LO.css +1 -0
- package/web/dist/assets/markdown-BggnuQ4H.js +40 -0
- package/web/dist/assets/markdown-C8LL_u4z.css +1 -0
- package/web/dist/assets/math-1uRJCsA9.js +257 -0
- package/web/dist/assets/math-BorAY7qD.css +1 -0
- package/web/dist/assets/plugin-host-BRBg6zmQ.js +1 -0
- package/web/dist/assets/shortcut-stack-hhrDyRBn.js +1 -0
- package/web/dist/assets/theme-DDl-Oy1b.js +1 -0
- package/web/dist/assets/uuid-BzDIGCwP.js +1 -0
- package/web/dist/index.html +42 -35
- package/web/dist/sw.js +179 -179
- package/web/public/sw.js +179 -179
- package/dist/gh-comment-781.md +0 -5
- package/dist/server/durable/durable-capabilities.js +0 -11
- package/dist/server/markers/builtins/services.js +0 -123
- package/dist/server/markers/builtins/todo.js +0 -189
- package/dist/server/markers-list-tool.js +0 -34
- package/dist/server/orchestrator.js +0 -109
- package/dist/server/system-prompt-soul.js +0 -41
- package/dist/server/univer-service.js +0 -448
- package/dist/server/universal/drivers/dsh-driver.js +0 -379
- package/dist/test-artifact.md +0 -9
- package/dist/test-preview-modal.md +0 -11
- package/dist/test-report.html +0 -20
- package/web/dist/assets/TerminalPanel-Ci55JtJL.js +0 -3
- package/web/dist/assets/index-ByiO9f-N.js +0 -2008
- package/web/dist/assets/index-ycGLh4a4.css +0 -1
- package/web/dist/assets/markdown-BJZlfvdP.js +0 -296
- package/web/dist/assets/markdown-DSNUiDzp.css +0 -1
|
@@ -1,687 +1,688 @@
|
|
|
1
|
-
/* themes/bases/zhujian-base.css — 朱笺笺纸凹版排版语言基底
|
|
2
|
-
* 包含:基于宣纸稿纸美学演进的笺纸凹版卡片、独立边框与底色层次、
|
|
3
|
-
* 空思考自动撑开占位、命令栏左缘朱笔。
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/* =========================================================================
|
|
7
|
-
朱笺 · Vermilion Note
|
|
8
|
-
基于宣纸稿纸美学演进的笺纸凹版主题:
|
|
9
|
-
· 工具调用与思考流采用笺纸凹版卡片(独立边框与底色,层次分明)
|
|
10
|
-
· 空思考内容自动撑开高度并显示占位提示
|
|
11
|
-
· 输入框 = 命令栏,左缘一抹朱笔
|
|
12
|
-
· 色彩只有语义:墨、淡墨、朱(唯一强调)、印绿
|
|
13
|
-
========================================================================= */
|
|
14
|
-
|
|
15
|
-
/* ---- 0. 稿纸底色:旧纸的暗角与天头微光,纯渐变无图 ---- */
|
|
16
|
-
body,
|
|
17
|
-
.app-root {
|
|
18
|
-
background-color: var(--bg);
|
|
19
|
-
background-image:
|
|
20
|
-
radial-gradient(ellipse 90% 55% at 50% -8%, rgba(255, 253, 247, 0.85) 0%, rgba(255, 253, 247, 0) 70%),
|
|
21
|
-
radial-gradient(ellipse 100% 70% at 108% 112%, rgba(166, 140, 100, 0.1) 0%, rgba(166, 140, 100, 0) 70%);
|
|
22
|
-
background-attachment: fixed;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
::selection {
|
|
26
|
-
background: color-mix(in srgb, var(--accent) 25%, transparent);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* ---- 1. 顶栏隐形化:无底色层次,只一条 hairline,印章品牌 ---- */
|
|
30
|
-
.topbar {
|
|
31
|
-
background: var(--topbar-bg);
|
|
32
|
-
border-bottom: 1px solid var(--border-soft);
|
|
33
|
-
box-shadow: none;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.brand-name {
|
|
37
|
-
font-family: var(--serif);
|
|
38
|
-
font-weight: 700;
|
|
39
|
-
letter-spacing: 0.06em;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/* 顶栏控件全部素色化:无底无框,hover 才现 hairline。兜底所有 button /
|
|
43
|
-
* [role=button]——不管类名是谁(基线 chip / 插件注入 / capsule 等),顶栏里
|
|
44
|
-
* 一律裸图标,dropdown 触发器不许再带盒子。 */
|
|
45
|
-
.topbar button,
|
|
46
|
-
.topbar [role="button"],
|
|
47
|
-
.topbar a.chip,
|
|
48
|
-
.topbar .chip {
|
|
49
|
-
background: transparent;
|
|
50
|
-
border: 1px solid transparent;
|
|
51
|
-
border-radius: 3px;
|
|
52
|
-
box-shadow: none;
|
|
53
|
-
transition:
|
|
54
|
-
border-color 0.15s ease,
|
|
55
|
-
color 0.15s ease;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.topbar button:hover,
|
|
59
|
-
.topbar [role="button"]:hover,
|
|
60
|
-
.topbar a.chip:hover,
|
|
61
|
-
.topbar .chip:hover {
|
|
62
|
-
border-color: var(--border);
|
|
63
|
-
background: transparent;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* 与基线「顶栏归一」契约对齐(分层后的显式复刻):
|
|
67
|
-
基线 `@layer base` 里那三条顶栏归一规则(裸幽灵化常态 / .active 强调底 /
|
|
68
|
-
.newchat·.github 圆角组)原本靠优先级补丁压过主题的通用 `.chip`;分层后 baseline
|
|
69
|
-
不再能压 theme(普通声明层序恒由 theme 抬胜)。这里把它们在这些控件上**当时实际
|
|
70
|
-
生效的值**显式写出来,与重构前的渲染结果逐像素一致(例:`.chip` 的 11px 字号在
|
|
71
|
-
顶栏里从来没生效过,顶栏一直是基线的 12.5px)。 */
|
|
72
|
-
.topbar .chip,
|
|
73
|
-
.topbar .tb-tab,
|
|
74
|
-
.topbar button,
|
|
75
|
-
.topbar a.chip,
|
|
76
|
-
.topbar [role="button"],
|
|
77
|
-
.topbar [role="tab"] {
|
|
78
|
-
font-size: 12.5px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.topbar button,
|
|
82
|
-
.topbar .chip.github,
|
|
83
|
-
.topbar .chip.newchat,
|
|
84
|
-
.topbar .chip.ephemeral-chat-btn,
|
|
85
|
-
.topbar .chip.sandbox-chip {
|
|
86
|
-
border-radius: 8px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.topbar .chip.active,
|
|
90
|
-
.topbar .tb-tab.active {
|
|
91
|
-
background: var(--accent-soft);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.topbar .dropdown {
|
|
95
|
-
background: transparent;
|
|
96
|
-
border: none;
|
|
97
|
-
box-shadow: none;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/* ---- 2. 消息区:文档化排版 ----
|
|
101
|
-
* 消息区左右边缘与输入框/快捷短语行保持一致严丝合缝对齐(继承基线列几何)。 */
|
|
102
|
-
|
|
103
|
-
.msg {
|
|
104
|
-
position: relative;
|
|
105
|
-
padding: 2px 0 10px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.msg-user {
|
|
109
|
-
padding-bottom: 2px;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.msg-user .msg-actions {
|
|
113
|
-
margin-top: 2px;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.msg-user + .msg-assistant {
|
|
117
|
-
padding-top: 2px;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.msg-user + .msg-assistant .msg-body > :first-child {
|
|
121
|
-
margin-top: 2px;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/* 操作按钮:卡头只有自己的复制键(.chead-copy),消息级按钮(复制三件套 /
|
|
125
|
-
分叉 / 回滚 / 朗读)统一在底部 .msg-actions 行,流内排在消息气泡/正文下边,
|
|
126
|
-
桌面端与手机端保持一致。 */
|
|
127
|
-
|
|
128
|
-
/* 角色行:书目式小标 */
|
|
129
|
-
.msg-meta {
|
|
130
|
-
margin-bottom: 4px;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/* head 行左右内边距归零:折叠三角贴齐列左缘(文字同一条线),右侧复制
|
|
134
|
-
* 按钮贴右缘——head 无边框后,钮与缘之间不能悬空。三角形 28px 盒内 16px
|
|
135
|
-
* 图标居中内缩 6px,用负外边距做光学对齐。 */
|
|
136
|
-
.chead {
|
|
137
|
-
padding-left: 0;
|
|
138
|
-
padding-right: 0;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.chead-toggle {
|
|
142
|
-
margin-left: -6px;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/* 正文块上的单一复制键去重:卡头现在只有自己的复制键,消息级复制
|
|
146
|
-
(纯文本 / Markdown / 长图三件套)统一在底部 .msg-actions 行里。 */
|
|
147
|
-
.msg-text-copy {
|
|
148
|
-
display: none;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/* head 悬浮不再出现底色块:纸面保持完全平整(键盘 focus 的 outline 保留,
|
|
152
|
-
* 只服务键盘导航) */
|
|
153
|
-
div.chead[role="button"]:hover,
|
|
154
|
-
.chead-toggle:hover {
|
|
155
|
-
background: transparent;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.msg-role {
|
|
159
|
-
font-size: 10.5px;
|
|
160
|
-
font-weight: 600;
|
|
161
|
-
letter-spacing: 0.18em;
|
|
162
|
-
color: var(--text-faint);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.msg-time {
|
|
166
|
-
font-family: var(--mono);
|
|
167
|
-
font-size: 10.5px;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/* ---- 3. 用户输入:去气泡,「起手式,稿纸批注体 ---- */
|
|
171
|
-
.msg-user .msg-body {
|
|
172
|
-
position: relative;
|
|
173
|
-
background: transparent;
|
|
174
|
-
border: none;
|
|
175
|
-
border-radius: 0;
|
|
176
|
-
padding: 0 0 0 1.5em;
|
|
177
|
-
font-family: var(--serif);
|
|
178
|
-
font-size: 15.5px;
|
|
179
|
-
font-weight: 600;
|
|
180
|
-
line-height: 1.8;
|
|
181
|
-
color: var(--text);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.msg-user .msg-body::before {
|
|
185
|
-
content: "「";
|
|
186
|
-
position: absolute;
|
|
187
|
-
left: 0;
|
|
188
|
-
top: -0.12em;
|
|
189
|
-
font-family: var(--serif);
|
|
190
|
-
font-size: 1.3em;
|
|
191
|
-
font-weight: 700;
|
|
192
|
-
color: var(--accent);
|
|
193
|
-
line-height: 1;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/* ---- 4. 助手正文:衬线文档体,直接是书页 ---- */
|
|
197
|
-
.msg-assistant .msg-text {
|
|
198
|
-
font-family: var(--serif);
|
|
199
|
-
font-size: 15px;
|
|
200
|
-
line-height: 1.85;
|
|
201
|
-
color: var(--text);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.msg-assistant .msg-text p:first-child {
|
|
205
|
-
margin-top: 0;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.msg-assistant .msg-text h1,
|
|
209
|
-
.msg-assistant .msg-text h2,
|
|
210
|
-
.msg-assistant .msg-text h3,
|
|
211
|
-
.msg-assistant .msg-text h4 {
|
|
212
|
-
font-family: var(--serif);
|
|
213
|
-
font-weight: 700;
|
|
214
|
-
color: var(--md-strong);
|
|
215
|
-
letter-spacing: 0.02em;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.msg-assistant .msg-text blockquote {
|
|
219
|
-
border-left: 2px solid var(--accent-soft);
|
|
220
|
-
font-style: normal;
|
|
221
|
-
color: var(--text-dim);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.msg-assistant .msg-text a {
|
|
225
|
-
color: var(--link);
|
|
226
|
-
text-decoration: underline dotted;
|
|
227
|
-
text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent);
|
|
228
|
-
text-underline-offset: 3px;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.msg-assistant .msg-text hr {
|
|
232
|
-
border: none;
|
|
233
|
-
border-top: 1px dotted var(--border);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.msg-assistant .msg-text code {
|
|
237
|
-
background: var(--code-bg);
|
|
238
|
-
color: var(--code-text, var(--accent));
|
|
239
|
-
border-radius: 2px;
|
|
240
|
-
padding: 1px 5px;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/* ---- 5. 工具调用 = 笺纸凹版卡片(与代码块同色,点线引导符填空) ---- */
|
|
244
|
-
.toolcall {
|
|
245
|
-
margin: 6px 0;
|
|
246
|
-
border: 1px solid var(--border-soft);
|
|
247
|
-
border-radius: 4px;
|
|
248
|
-
background: var(--code-bg);
|
|
249
|
-
box-shadow: inset 0 1px 2px color-mix(in srgb, #000 15%, transparent);
|
|
250
|
-
overflow: hidden;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.toolcall-head {
|
|
254
|
-
display: flex;
|
|
255
|
-
align-items: center;
|
|
256
|
-
min-height: 28px;
|
|
257
|
-
padding: 4px 10px;
|
|
258
|
-
font-family: var(--mono);
|
|
259
|
-
font-size: 12px;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.toolcall-name {
|
|
263
|
-
font-family: var(--mono);
|
|
264
|
-
font-weight: 500;
|
|
265
|
-
font-size: 12px;
|
|
266
|
-
letter-spacing: 0.02em;
|
|
267
|
-
color: var(--text-dim);
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/* 点线引导符:账本目录式填空,落在名字与状态之间 */
|
|
271
|
-
.toolcall .toolcall-spacer {
|
|
272
|
-
border-bottom: 1px dotted var(--border);
|
|
273
|
-
height: 0.7em;
|
|
274
|
-
margin: 0 10px;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.toolcall-status {
|
|
278
|
-
color: var(--text-faint);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.toolcall.run {
|
|
282
|
-
border-color: color-mix(in srgb, var(--accent) 50%, transparent);
|
|
283
|
-
background: var(--code-bg);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.toolcall.run .toolcall-name {
|
|
287
|
-
color: var(--accent);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.toolcall.run .toolcall-status {
|
|
291
|
-
color: var(--accent);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.toolcall.run .toolcall-head {
|
|
295
|
-
background: transparent;
|
|
296
|
-
border-left: none;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.toolcall.ok .toolcall-status {
|
|
300
|
-
color: var(--green);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.toolcall.err {
|
|
304
|
-
border-color: color-mix(in srgb, var(--red) 50%, transparent);
|
|
305
|
-
background: var(--red-soft);
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.toolcall.err .toolcall-status {
|
|
309
|
-
color: var(--red);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.toolcall.err .toolcall-name {
|
|
313
|
-
color: var(--red);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/* 展开的参数/输出:并入台账,无框零内边距平面文本(--code-border/--code-pad
|
|
317
|
-
已按全透明主题机制置 transparent/0,连带 .termline 一并生效) */
|
|
318
|
-
.toolcall-args pre,
|
|
319
|
-
.toolcall-output pre {
|
|
320
|
-
background: transparent;
|
|
321
|
-
border: none;
|
|
322
|
-
border-radius: 0;
|
|
323
|
-
padding: 0;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
/* 工具卡体:带淡墨顶部分隔线与舒适内边距 */
|
|
327
|
-
.toolcall-body {
|
|
328
|
-
border-top: 1px solid var(--border-soft);
|
|
329
|
-
padding: 8px 12px;
|
|
330
|
-
background: transparent;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
/* 卡内重复的终端图标只剩噪音(卡头已有工具图标),参照全透明主题隐藏 */
|
|
334
|
-
.termline-icon {
|
|
335
|
-
display: none;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
.toolcall-output-label {
|
|
339
|
-
margin-top: 6px;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.toolcall-kill {
|
|
343
|
-
border-radius: 3px;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
/* ---- 6. 思考流 = 笺纸凹版卡片 + 空态高度修复(※ 起手,淡墨小字) ---- */
|
|
347
|
-
.thinking {
|
|
348
|
-
margin: 6px 0;
|
|
349
|
-
border: 1px solid var(--border-soft);
|
|
350
|
-
border-radius: 4px;
|
|
351
|
-
background: var(--code-bg);
|
|
352
|
-
box-shadow: inset 0 1px 2px color-mix(in srgb, #000 15%, transparent);
|
|
353
|
-
overflow: hidden;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.thinking-head {
|
|
357
|
-
font-size: 12px;
|
|
358
|
-
color: var(--text-faint);
|
|
359
|
-
padding: 4px 10px;
|
|
360
|
-
min-height: 28px;
|
|
361
|
-
display: flex;
|
|
362
|
-
align-items: center;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
.thinking-body {
|
|
366
|
-
border-top: 1px solid var(--border-soft);
|
|
367
|
-
font-style: normal;
|
|
368
|
-
font-size: 12.5px;
|
|
369
|
-
color: var(--text-dim);
|
|
370
|
-
background: transparent;
|
|
371
|
-
position: relative;
|
|
372
|
-
padding: 8px 14px 8px 2em;
|
|
373
|
-
min-height: 2.4em;
|
|
374
|
-
line-height: 1.6;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
.thinking-body::before {
|
|
378
|
-
content: "※";
|
|
379
|
-
position: absolute;
|
|
380
|
-
left: 8px;
|
|
381
|
-
top: 8px;
|
|
382
|
-
color: var(--text-faint);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
.thinking-body:empty::after {
|
|
386
|
-
content: "(无思考文本记录)";
|
|
387
|
-
color: var(--text-faint);
|
|
388
|
-
font-style: italic;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
.thinking-live {
|
|
392
|
-
border-color: color-mix(in srgb, var(--accent) 50%, transparent);
|
|
393
|
-
background: var(--code-bg);
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
.thinking-live .thinking-toggle,
|
|
397
|
-
.thinking-live-label {
|
|
398
|
-
color: var(--accent);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
/* ---- 7. 折叠摘要行 / 排队提示:并入台账体系 ---- */
|
|
402
|
-
.msg-collapsed {
|
|
403
|
-
background: transparent;
|
|
404
|
-
border: none;
|
|
405
|
-
border-bottom: 1px dotted var(--border-soft);
|
|
406
|
-
border-radius: 0;
|
|
407
|
-
box-shadow: none;
|
|
408
|
-
padding-left: 0;
|
|
409
|
-
padding-right: 0;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
.msg-collapsed-action::before {
|
|
413
|
-
margin-left: 0;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
.msg-error {
|
|
417
|
-
background: var(--red-soft);
|
|
418
|
-
border: none;
|
|
419
|
-
border-left: 3px solid var(--red);
|
|
420
|
-
border-radius: 0;
|
|
421
|
-
font-family: var(--serif);
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
/* ---- 8. 输入区 = 命令栏:与其他主题同构——只动颜色不动几何,
|
|
425
|
-
朱笔以 inset 阴影画在边框内侧,外缘与消息列/chips 恒对齐 ---- */
|
|
426
|
-
.inputbar {
|
|
427
|
-
background: transparent;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
.inputbox {
|
|
431
|
-
background: var(--inputbox-bg);
|
|
432
|
-
border: none;
|
|
433
|
-
border-radius: 3px;
|
|
434
|
-
box-shadow: inset 3px 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent);
|
|
435
|
-
transition:
|
|
436
|
-
border-color 0.2s ease,
|
|
437
|
-
box-shadow 0.2s ease;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
.inputbox:focus-within {
|
|
441
|
-
border: none;
|
|
442
|
-
box-shadow: inset 3px 0 0 0 var(--accent);
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
.btn.send {
|
|
446
|
-
background: var(--send-blue);
|
|
447
|
-
color: #f6f2e9;
|
|
448
|
-
border-radius: 50%;
|
|
449
|
-
box-shadow: none;
|
|
450
|
-
font-weight: 600;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
.btn.send:hover {
|
|
454
|
-
background: var(--send-blue-hover);
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
.composer-tools .
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
.composer-tools .
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
.composer-tools .chip-
|
|
505
|
-
.composer-tools .
|
|
506
|
-
.composer-tools .capsule-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
.
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
*
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
.
|
|
533
|
-
.
|
|
534
|
-
.
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
.
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
.
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
border
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
.
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
.
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
.hljs-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
.hljs-
|
|
580
|
-
.hljs-
|
|
581
|
-
.hljs-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
.hljs-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
.hljs-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
.hljs-title
|
|
597
|
-
.hljs-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
.hljs-
|
|
603
|
-
.hljs-
|
|
604
|
-
.hljs-
|
|
605
|
-
.hljs-
|
|
606
|
-
.hljs-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
.
|
|
626
|
-
.
|
|
627
|
-
.
|
|
628
|
-
.
|
|
629
|
-
.
|
|
630
|
-
.
|
|
631
|
-
.
|
|
632
|
-
|
|
633
|
-
border:
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
0
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
border
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
.dd-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
.
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
border
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
font-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
.
|
|
682
|
-
.notice-
|
|
683
|
-
.notice-
|
|
684
|
-
|
|
685
|
-
border-
|
|
686
|
-
border-
|
|
687
|
-
|
|
1
|
+
/* themes/bases/zhujian-base.css — 朱笺笺纸凹版排版语言基底
|
|
2
|
+
* 包含:基于宣纸稿纸美学演进的笺纸凹版卡片、独立边框与底色层次、
|
|
3
|
+
* 空思考自动撑开占位、命令栏左缘朱笔。
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* =========================================================================
|
|
7
|
+
朱笺 · Vermilion Note
|
|
8
|
+
基于宣纸稿纸美学演进的笺纸凹版主题:
|
|
9
|
+
· 工具调用与思考流采用笺纸凹版卡片(独立边框与底色,层次分明)
|
|
10
|
+
· 空思考内容自动撑开高度并显示占位提示
|
|
11
|
+
· 输入框 = 命令栏,左缘一抹朱笔
|
|
12
|
+
· 色彩只有语义:墨、淡墨、朱(唯一强调)、印绿
|
|
13
|
+
========================================================================= */
|
|
14
|
+
|
|
15
|
+
/* ---- 0. 稿纸底色:旧纸的暗角与天头微光,纯渐变无图 ---- */
|
|
16
|
+
body,
|
|
17
|
+
.app-root {
|
|
18
|
+
background-color: var(--bg);
|
|
19
|
+
background-image:
|
|
20
|
+
radial-gradient(ellipse 90% 55% at 50% -8%, rgba(255, 253, 247, 0.85) 0%, rgba(255, 253, 247, 0) 70%),
|
|
21
|
+
radial-gradient(ellipse 100% 70% at 108% 112%, rgba(166, 140, 100, 0.1) 0%, rgba(166, 140, 100, 0) 70%);
|
|
22
|
+
background-attachment: fixed;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
::selection {
|
|
26
|
+
background: color-mix(in srgb, var(--accent) 25%, transparent);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* ---- 1. 顶栏隐形化:无底色层次,只一条 hairline,印章品牌 ---- */
|
|
30
|
+
.topbar {
|
|
31
|
+
background: var(--topbar-bg);
|
|
32
|
+
border-bottom: 1px solid var(--border-soft);
|
|
33
|
+
box-shadow: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.brand-name {
|
|
37
|
+
font-family: var(--serif);
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
letter-spacing: 0.06em;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* 顶栏控件全部素色化:无底无框,hover 才现 hairline。兜底所有 button /
|
|
43
|
+
* [role=button]——不管类名是谁(基线 chip / 插件注入 / capsule 等),顶栏里
|
|
44
|
+
* 一律裸图标,dropdown 触发器不许再带盒子。 */
|
|
45
|
+
.topbar button,
|
|
46
|
+
.topbar [role="button"],
|
|
47
|
+
.topbar a.chip,
|
|
48
|
+
.topbar .chip {
|
|
49
|
+
background: transparent;
|
|
50
|
+
border: 1px solid transparent;
|
|
51
|
+
border-radius: 3px;
|
|
52
|
+
box-shadow: none;
|
|
53
|
+
transition:
|
|
54
|
+
border-color 0.15s ease,
|
|
55
|
+
color 0.15s ease;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.topbar button:hover,
|
|
59
|
+
.topbar [role="button"]:hover,
|
|
60
|
+
.topbar a.chip:hover,
|
|
61
|
+
.topbar .chip:hover {
|
|
62
|
+
border-color: var(--border);
|
|
63
|
+
background: transparent;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* 与基线「顶栏归一」契约对齐(分层后的显式复刻):
|
|
67
|
+
基线 `@layer base` 里那三条顶栏归一规则(裸幽灵化常态 / .active 强调底 /
|
|
68
|
+
.newchat·.github 圆角组)原本靠优先级补丁压过主题的通用 `.chip`;分层后 baseline
|
|
69
|
+
不再能压 theme(普通声明层序恒由 theme 抬胜)。这里把它们在这些控件上**当时实际
|
|
70
|
+
生效的值**显式写出来,与重构前的渲染结果逐像素一致(例:`.chip` 的 11px 字号在
|
|
71
|
+
顶栏里从来没生效过,顶栏一直是基线的 12.5px)。 */
|
|
72
|
+
.topbar .chip,
|
|
73
|
+
.topbar .tb-tab,
|
|
74
|
+
.topbar button,
|
|
75
|
+
.topbar a.chip,
|
|
76
|
+
.topbar [role="button"],
|
|
77
|
+
.topbar [role="tab"] {
|
|
78
|
+
font-size: 12.5px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.topbar button,
|
|
82
|
+
.topbar .chip.github,
|
|
83
|
+
.topbar .chip.newchat,
|
|
84
|
+
.topbar .chip.ephemeral-chat-btn,
|
|
85
|
+
.topbar .chip.sandbox-chip {
|
|
86
|
+
border-radius: 8px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.topbar .chip.active,
|
|
90
|
+
.topbar .tb-tab.active {
|
|
91
|
+
background: var(--accent-soft);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.topbar .dropdown {
|
|
95
|
+
background: transparent;
|
|
96
|
+
border: none;
|
|
97
|
+
box-shadow: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* ---- 2. 消息区:文档化排版 ----
|
|
101
|
+
* 消息区左右边缘与输入框/快捷短语行保持一致严丝合缝对齐(继承基线列几何)。 */
|
|
102
|
+
|
|
103
|
+
.msg {
|
|
104
|
+
position: relative;
|
|
105
|
+
padding: 2px 0 10px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.msg-user {
|
|
109
|
+
padding-bottom: 2px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.msg-user .msg-actions {
|
|
113
|
+
margin-top: 2px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.msg-user + .msg-assistant {
|
|
117
|
+
padding-top: 2px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.msg-user + .msg-assistant .msg-body > :first-child {
|
|
121
|
+
margin-top: 2px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* 操作按钮:卡头只有自己的复制键(.chead-copy),消息级按钮(复制三件套 /
|
|
125
|
+
分叉 / 回滚 / 朗读)统一在底部 .msg-actions 行,流内排在消息气泡/正文下边,
|
|
126
|
+
桌面端与手机端保持一致。 */
|
|
127
|
+
|
|
128
|
+
/* 角色行:书目式小标 */
|
|
129
|
+
.msg-meta {
|
|
130
|
+
margin-bottom: 4px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* head 行左右内边距归零:折叠三角贴齐列左缘(文字同一条线),右侧复制
|
|
134
|
+
* 按钮贴右缘——head 无边框后,钮与缘之间不能悬空。三角形 28px 盒内 16px
|
|
135
|
+
* 图标居中内缩 6px,用负外边距做光学对齐。 */
|
|
136
|
+
.chead {
|
|
137
|
+
padding-left: 0;
|
|
138
|
+
padding-right: 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.chead-toggle {
|
|
142
|
+
margin-left: -6px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* 正文块上的单一复制键去重:卡头现在只有自己的复制键,消息级复制
|
|
146
|
+
(纯文本 / Markdown / 长图三件套)统一在底部 .msg-actions 行里。 */
|
|
147
|
+
.msg-text-copy {
|
|
148
|
+
display: none;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* head 悬浮不再出现底色块:纸面保持完全平整(键盘 focus 的 outline 保留,
|
|
152
|
+
* 只服务键盘导航) */
|
|
153
|
+
div.chead[role="button"]:hover,
|
|
154
|
+
.chead-toggle:hover {
|
|
155
|
+
background: transparent;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.msg-role {
|
|
159
|
+
font-size: 10.5px;
|
|
160
|
+
font-weight: 600;
|
|
161
|
+
letter-spacing: 0.18em;
|
|
162
|
+
color: var(--text-faint);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.msg-time {
|
|
166
|
+
font-family: var(--mono);
|
|
167
|
+
font-size: 10.5px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* ---- 3. 用户输入:去气泡,「起手式,稿纸批注体 ---- */
|
|
171
|
+
.msg-user .msg-body {
|
|
172
|
+
position: relative;
|
|
173
|
+
background: transparent;
|
|
174
|
+
border: none;
|
|
175
|
+
border-radius: 0;
|
|
176
|
+
padding: 0 0 0 1.5em;
|
|
177
|
+
font-family: var(--serif);
|
|
178
|
+
font-size: 15.5px;
|
|
179
|
+
font-weight: 600;
|
|
180
|
+
line-height: 1.8;
|
|
181
|
+
color: var(--text);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.msg-user .msg-body::before {
|
|
185
|
+
content: "「";
|
|
186
|
+
position: absolute;
|
|
187
|
+
left: 0;
|
|
188
|
+
top: -0.12em;
|
|
189
|
+
font-family: var(--serif);
|
|
190
|
+
font-size: 1.3em;
|
|
191
|
+
font-weight: 700;
|
|
192
|
+
color: var(--accent);
|
|
193
|
+
line-height: 1;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* ---- 4. 助手正文:衬线文档体,直接是书页 ---- */
|
|
197
|
+
.msg-assistant .msg-text {
|
|
198
|
+
font-family: var(--serif);
|
|
199
|
+
font-size: 15px;
|
|
200
|
+
line-height: 1.85;
|
|
201
|
+
color: var(--text);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.msg-assistant .msg-text p:first-child {
|
|
205
|
+
margin-top: 0;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.msg-assistant .msg-text h1,
|
|
209
|
+
.msg-assistant .msg-text h2,
|
|
210
|
+
.msg-assistant .msg-text h3,
|
|
211
|
+
.msg-assistant .msg-text h4 {
|
|
212
|
+
font-family: var(--serif);
|
|
213
|
+
font-weight: 700;
|
|
214
|
+
color: var(--md-strong);
|
|
215
|
+
letter-spacing: 0.02em;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.msg-assistant .msg-text blockquote {
|
|
219
|
+
border-left: 2px solid var(--accent-soft);
|
|
220
|
+
font-style: normal;
|
|
221
|
+
color: var(--text-dim);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.msg-assistant .msg-text a {
|
|
225
|
+
color: var(--link);
|
|
226
|
+
text-decoration: underline dotted;
|
|
227
|
+
text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent);
|
|
228
|
+
text-underline-offset: 3px;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.msg-assistant .msg-text hr {
|
|
232
|
+
border: none;
|
|
233
|
+
border-top: 1px dotted var(--border);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.msg-assistant .msg-text code {
|
|
237
|
+
background: var(--code-bg);
|
|
238
|
+
color: var(--code-text, var(--accent));
|
|
239
|
+
border-radius: 2px;
|
|
240
|
+
padding: 1px 5px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* ---- 5. 工具调用 = 笺纸凹版卡片(与代码块同色,点线引导符填空) ---- */
|
|
244
|
+
.toolcall {
|
|
245
|
+
margin: 6px 0;
|
|
246
|
+
border: 1px solid var(--border-soft);
|
|
247
|
+
border-radius: 4px;
|
|
248
|
+
background: var(--code-bg);
|
|
249
|
+
box-shadow: inset 0 1px 2px color-mix(in srgb, #000 15%, transparent);
|
|
250
|
+
overflow: hidden;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.toolcall-head {
|
|
254
|
+
display: flex;
|
|
255
|
+
align-items: center;
|
|
256
|
+
min-height: 28px;
|
|
257
|
+
padding: 4px 10px;
|
|
258
|
+
font-family: var(--mono);
|
|
259
|
+
font-size: 12px;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.toolcall-name {
|
|
263
|
+
font-family: var(--mono);
|
|
264
|
+
font-weight: 500;
|
|
265
|
+
font-size: 12px;
|
|
266
|
+
letter-spacing: 0.02em;
|
|
267
|
+
color: var(--text-dim);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/* 点线引导符:账本目录式填空,落在名字与状态之间 */
|
|
271
|
+
.toolcall .toolcall-spacer {
|
|
272
|
+
border-bottom: 1px dotted var(--border);
|
|
273
|
+
height: 0.7em;
|
|
274
|
+
margin: 0 10px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.toolcall-status {
|
|
278
|
+
color: var(--text-faint);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.toolcall.run {
|
|
282
|
+
border-color: color-mix(in srgb, var(--accent) 50%, transparent);
|
|
283
|
+
background: var(--code-bg);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.toolcall.run .toolcall-name {
|
|
287
|
+
color: var(--accent);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.toolcall.run .toolcall-status {
|
|
291
|
+
color: var(--accent);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.toolcall.run .toolcall-head {
|
|
295
|
+
background: transparent;
|
|
296
|
+
border-left: none;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.toolcall.ok .toolcall-status {
|
|
300
|
+
color: var(--green);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.toolcall.err {
|
|
304
|
+
border-color: color-mix(in srgb, var(--red) 50%, transparent);
|
|
305
|
+
background: var(--red-soft);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.toolcall.err .toolcall-status {
|
|
309
|
+
color: var(--red);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.toolcall.err .toolcall-name {
|
|
313
|
+
color: var(--red);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/* 展开的参数/输出:并入台账,无框零内边距平面文本(--code-border/--code-pad
|
|
317
|
+
已按全透明主题机制置 transparent/0,连带 .termline 一并生效) */
|
|
318
|
+
.toolcall-args pre,
|
|
319
|
+
.toolcall-output pre {
|
|
320
|
+
background: transparent;
|
|
321
|
+
border: none;
|
|
322
|
+
border-radius: 0;
|
|
323
|
+
padding: 0;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/* 工具卡体:带淡墨顶部分隔线与舒适内边距 */
|
|
327
|
+
.toolcall-body {
|
|
328
|
+
border-top: 1px solid var(--border-soft);
|
|
329
|
+
padding: 8px 12px;
|
|
330
|
+
background: transparent;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/* 卡内重复的终端图标只剩噪音(卡头已有工具图标),参照全透明主题隐藏 */
|
|
334
|
+
.termline-icon {
|
|
335
|
+
display: none;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.toolcall-output-label {
|
|
339
|
+
margin-top: 6px;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.toolcall-kill {
|
|
343
|
+
border-radius: 3px;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/* ---- 6. 思考流 = 笺纸凹版卡片 + 空态高度修复(※ 起手,淡墨小字) ---- */
|
|
347
|
+
.thinking {
|
|
348
|
+
margin: 6px 0;
|
|
349
|
+
border: 1px solid var(--border-soft);
|
|
350
|
+
border-radius: 4px;
|
|
351
|
+
background: var(--code-bg);
|
|
352
|
+
box-shadow: inset 0 1px 2px color-mix(in srgb, #000 15%, transparent);
|
|
353
|
+
overflow: hidden;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.thinking-head {
|
|
357
|
+
font-size: 12px;
|
|
358
|
+
color: var(--text-faint);
|
|
359
|
+
padding: 4px 10px;
|
|
360
|
+
min-height: 28px;
|
|
361
|
+
display: flex;
|
|
362
|
+
align-items: center;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.thinking-body {
|
|
366
|
+
border-top: 1px solid var(--border-soft);
|
|
367
|
+
font-style: normal;
|
|
368
|
+
font-size: 12.5px;
|
|
369
|
+
color: var(--text-dim);
|
|
370
|
+
background: transparent;
|
|
371
|
+
position: relative;
|
|
372
|
+
padding: 8px 14px 8px 2em;
|
|
373
|
+
min-height: 2.4em;
|
|
374
|
+
line-height: 1.6;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.thinking-body::before {
|
|
378
|
+
content: "※";
|
|
379
|
+
position: absolute;
|
|
380
|
+
left: 8px;
|
|
381
|
+
top: 8px;
|
|
382
|
+
color: var(--text-faint);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.thinking-body:empty::after {
|
|
386
|
+
content: "(无思考文本记录)";
|
|
387
|
+
color: var(--text-faint);
|
|
388
|
+
font-style: italic;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.thinking-live {
|
|
392
|
+
border-color: color-mix(in srgb, var(--accent) 50%, transparent);
|
|
393
|
+
background: var(--code-bg);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.thinking-live .thinking-toggle,
|
|
397
|
+
.thinking-live-label {
|
|
398
|
+
color: var(--accent);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/* ---- 7. 折叠摘要行 / 排队提示:并入台账体系 ---- */
|
|
402
|
+
.msg-collapsed {
|
|
403
|
+
background: transparent;
|
|
404
|
+
border: none;
|
|
405
|
+
border-bottom: 1px dotted var(--border-soft);
|
|
406
|
+
border-radius: 0;
|
|
407
|
+
box-shadow: none;
|
|
408
|
+
padding-left: 0;
|
|
409
|
+
padding-right: 0;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.msg-collapsed-action::before {
|
|
413
|
+
margin-left: 0;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.msg-error {
|
|
417
|
+
background: var(--red-soft);
|
|
418
|
+
border: none;
|
|
419
|
+
border-left: 3px solid var(--red);
|
|
420
|
+
border-radius: 0;
|
|
421
|
+
font-family: var(--serif);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/* ---- 8. 输入区 = 命令栏:与其他主题同构——只动颜色不动几何,
|
|
425
|
+
朱笔以 inset 阴影画在边框内侧,外缘与消息列/chips 恒对齐 ---- */
|
|
426
|
+
.inputbar {
|
|
427
|
+
background: transparent;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.inputbox {
|
|
431
|
+
background: var(--inputbox-bg);
|
|
432
|
+
border: none;
|
|
433
|
+
border-radius: 3px;
|
|
434
|
+
box-shadow: inset 3px 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent);
|
|
435
|
+
transition:
|
|
436
|
+
border-color 0.2s ease,
|
|
437
|
+
box-shadow 0.2s ease;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.inputbox:focus-within {
|
|
441
|
+
border: none;
|
|
442
|
+
box-shadow: inset 3px 0 0 0 var(--accent);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.btn.send {
|
|
446
|
+
background: var(--send-blue);
|
|
447
|
+
color: #f6f2e9;
|
|
448
|
+
border-radius: 50%;
|
|
449
|
+
box-shadow: none;
|
|
450
|
+
font-weight: 600;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.btn.send:hover {
|
|
454
|
+
background: var(--send-blue-hover);
|
|
455
|
+
color: var(--on-send-blue-hover);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.btn.stop {
|
|
459
|
+
background: var(--stop-red);
|
|
460
|
+
color: #f6f2e9;
|
|
461
|
+
border-radius: 50%;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/* 输入框底部模型选择、思考强度、预设等按钮:去边框、透明底,hover 现 hairline */
|
|
465
|
+
.composer-tools {
|
|
466
|
+
border-top: none;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.composer-tools .chip,
|
|
470
|
+
.composer-tools .capsule-segment {
|
|
471
|
+
font-size: 13px;
|
|
472
|
+
padding: 4px 10px;
|
|
473
|
+
gap: 6px;
|
|
474
|
+
background: transparent;
|
|
475
|
+
border: 1px solid transparent;
|
|
476
|
+
box-shadow: none;
|
|
477
|
+
border-radius: 3px;
|
|
478
|
+
transition:
|
|
479
|
+
border-color 0.15s ease,
|
|
480
|
+
background 0.15s ease;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.composer-tools .model-thinking-capsule {
|
|
484
|
+
background: transparent;
|
|
485
|
+
border: none;
|
|
486
|
+
box-shadow: none;
|
|
487
|
+
padding: 0;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.composer-tools .model-thinking-capsule .capsule-divider {
|
|
491
|
+
display: none;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.composer-tools .chip:hover,
|
|
495
|
+
.composer-tools .capsule-segment:hover {
|
|
496
|
+
border-color: var(--border);
|
|
497
|
+
background: transparent;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.composer-tools-left {
|
|
501
|
+
gap: 6px;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.composer-tools .chip-model,
|
|
505
|
+
.composer-tools .chip-sub,
|
|
506
|
+
.composer-tools .capsule-model-name,
|
|
507
|
+
.composer-tools .capsule-thinking-text {
|
|
508
|
+
font-size: 12.5px;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
/* ---- 9. 底栏 / 状态栏:hairline 收边 ---- */
|
|
512
|
+
.statusbar {
|
|
513
|
+
background: var(--statusbar-bg);
|
|
514
|
+
border-top: 1px solid var(--border-soft);
|
|
515
|
+
box-shadow: none;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.goalbar {
|
|
519
|
+
background: transparent;
|
|
520
|
+
border-top: 1px solid var(--border-soft);
|
|
521
|
+
box-shadow: none;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/* ---- 10. 左右面板:素纸文件栏 ----
|
|
525
|
+
* 激活态不做红洗(accent-soft 洗在纸上是一块脏粉),改为中性墨面 5% +
|
|
526
|
+
* 左缘 2px 朱标;圆角统一 8px。 */
|
|
527
|
+
.panel {
|
|
528
|
+
background: var(--panel-bg);
|
|
529
|
+
border-color: var(--border-soft);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.session-item,
|
|
533
|
+
.project-item,
|
|
534
|
+
.file-item,
|
|
535
|
+
.scm-file {
|
|
536
|
+
border-radius: 8px;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.session-item.active,
|
|
540
|
+
.project-item.active {
|
|
541
|
+
background: rgba(38, 34, 24, 0.05);
|
|
542
|
+
border: none;
|
|
543
|
+
box-shadow: inset 2px 0 0 var(--accent);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.session-item.active {
|
|
547
|
+
padding: 8px 10px;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.project-item.active {
|
|
551
|
+
padding: 7px 10px;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/* ---- 11. 代码块与终端:纸凹版 + 暖墨终端 ---- */
|
|
555
|
+
.codeblock {
|
|
556
|
+
background: var(--code-bg);
|
|
557
|
+
border: 1px solid var(--border-soft);
|
|
558
|
+
border-radius: 3px;
|
|
559
|
+
box-shadow: none;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.codeblock pre,
|
|
563
|
+
.msg-text pre {
|
|
564
|
+
background: var(--code-bg);
|
|
565
|
+
color: var(--code-text);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/* ---- 11b. 语法高亮适配纸面(全局捆绑的是 github-dark,必须整套覆盖)---- */
|
|
569
|
+
.hljs {
|
|
570
|
+
color: #33301f;
|
|
571
|
+
background: transparent;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.hljs-comment,
|
|
575
|
+
.hljs-quote {
|
|
576
|
+
color: #948b78;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.hljs-keyword,
|
|
580
|
+
.hljs-selector-tag,
|
|
581
|
+
.hljs-doctag,
|
|
582
|
+
.hljs-formula {
|
|
583
|
+
color: #a03618;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.hljs-string,
|
|
587
|
+
.hljs-regexp {
|
|
588
|
+
color: #3f6c4f;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.hljs-number,
|
|
592
|
+
.hljs-literal {
|
|
593
|
+
color: #8a5c1e;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.hljs-title,
|
|
597
|
+
.hljs-title.function_,
|
|
598
|
+
.hljs-section {
|
|
599
|
+
color: #6b3fa0;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.hljs-attr,
|
|
603
|
+
.hljs-attribute,
|
|
604
|
+
.hljs-variable,
|
|
605
|
+
.hljs-template-variable,
|
|
606
|
+
.hljs-type,
|
|
607
|
+
.hljs-name {
|
|
608
|
+
color: #8a4a2e;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.hljs-built_in {
|
|
612
|
+
color: #2f5f8a;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.hljs-deletion {
|
|
616
|
+
color: #7a2718;
|
|
617
|
+
background: rgba(194, 64, 42, 0.12);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.hljs-addition {
|
|
621
|
+
color: #2f6b4f;
|
|
622
|
+
background: rgba(61, 122, 85, 0.14);
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/* ---- 12. 弹层与菜单:纸面实底 + hairline,方角家族 ---- */
|
|
626
|
+
.modal,
|
|
627
|
+
.tool-info-modal,
|
|
628
|
+
.settings-modal,
|
|
629
|
+
.model-modal,
|
|
630
|
+
.tpl-modal,
|
|
631
|
+
.dd-menu,
|
|
632
|
+
.dialog-inline {
|
|
633
|
+
border-radius: 4px;
|
|
634
|
+
border: 1px solid var(--border);
|
|
635
|
+
box-shadow:
|
|
636
|
+
0 1px 2px rgba(38, 34, 24, 0.06),
|
|
637
|
+
0 16px 40px -12px rgba(38, 34, 24, 0.25);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.dd-menu {
|
|
641
|
+
background: var(--menu-bg);
|
|
642
|
+
border: 1px solid var(--border);
|
|
643
|
+
border-radius: 4px;
|
|
644
|
+
box-shadow: 0 12px 32px -8px rgba(38, 34, 24, 0.28);
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.dd-item:hover,
|
|
648
|
+
.dd-all-item:hover {
|
|
649
|
+
background: var(--accent-soft);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/* ---- 13. chips / 徽标:账目标签体 ---- */
|
|
653
|
+
.chip {
|
|
654
|
+
background: var(--chip-bg);
|
|
655
|
+
border: 1px solid var(--border-soft);
|
|
656
|
+
border-radius: 2px;
|
|
657
|
+
box-shadow: none;
|
|
658
|
+
font-family: var(--mono);
|
|
659
|
+
font-size: 11px;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/* ---- 14. 滚动条:细墨线 ---- */
|
|
663
|
+
::-webkit-scrollbar {
|
|
664
|
+
width: 6px;
|
|
665
|
+
height: 6px;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
::-webkit-scrollbar-track {
|
|
669
|
+
background: transparent;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
::-webkit-scrollbar-thumb {
|
|
673
|
+
background: var(--scroll-thumb);
|
|
674
|
+
border-radius: 0;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
::-webkit-scrollbar-thumb:hover {
|
|
678
|
+
background: var(--scroll-thumb-hover);
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/* ---- 15. 通知条:hairline 左线式 ---- */
|
|
682
|
+
.notice-err,
|
|
683
|
+
.notice-warn,
|
|
684
|
+
.notice-info {
|
|
685
|
+
border-radius: 0;
|
|
686
|
+
border-width: 1px;
|
|
687
|
+
border-left-width: 3px;
|
|
688
|
+
}
|