@vite-hub/ui 0.1.0 → 0.3.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/README.md +244 -18
- package/dist/attachments-BzTwqRTU.js +90 -0
- package/dist/choices-input-ByXJvDn1.d.ts +94 -0
- package/dist/{code-view-J4OsgEdh.js → code-view-D0bqhogi.js} +20 -4
- package/dist/colors-BghReA9C-CjF9gnmy.js +28 -0
- package/dist/comment-composer-Cc8Jvu6u.d.ts +243 -0
- package/dist/comment-composer-jYv2ULNP.js +591 -0
- package/dist/comment-layer-ClH4MLj4.d.ts +165 -0
- package/dist/comment-list-B8hphLfS.d.ts +62 -0
- package/dist/comment-marks.css +234 -0
- package/dist/comment-panel-fcKSKwLC.d.ts +197 -0
- package/dist/comment-person-CLPlW_SS.js +40 -0
- package/dist/comment-pin-CvwgRSDR.d.ts +68 -0
- package/dist/comment-row-Bbm9WwuF.js +39 -0
- package/dist/comment-thread-CoTLrdal.d.ts +368 -0
- package/dist/comment-visibility-DsVuVndP.d.ts +40 -0
- package/dist/{comments-ChNJkV1d.d.ts → comments-Bx2WRsYy.d.ts} +69 -7
- package/dist/{comments-C08J3z4e.js → comments-CkWc2Khc.js} +155 -60
- package/dist/comments-context-C2lOZyQ5.js +38 -0
- package/dist/config-DgxBW013.d.ts +80 -0
- package/dist/config-Dk67emQt.js +63 -0
- package/dist/copy-button-CRN3kmSD.js +253 -0
- package/dist/draw-DzSmD7uo-Dwz8zoH2.js +72976 -0
- package/dist/editor-C_wt4RRV.js +582 -0
- package/dist/error-diagnostics-SXtnk6bz.js +38 -0
- package/dist/{file-tree-C1pv4_AI.js → file-tree-C4OYgbV-.js} +292 -145
- package/dist/{file-tree-Ctb8hZ_g.d.ts → file-tree-DlT9RGhu.d.ts} +51 -15
- package/dist/format-Du58PlsG.js +18 -0
- package/dist/handlers-DMl-Na3x.js +182 -0
- package/dist/headless.d.ts +5 -176
- package/dist/headless.js +5 -3
- package/dist/icon-swap.css +69 -0
- package/dist/{image-preview-VfknBEFu.js → image-preview-C9tdkmEj.js} +8 -5
- package/dist/{index-DcH0QSI5.d.ts → index-BD1e8vx5.d.ts} +8 -0
- package/dist/{code-view-vDM-hph-.d.ts → index-CNY1uNTh.d.ts} +14 -228
- package/dist/index.d.ts +53 -56
- package/dist/index.js +677 -25
- package/dist/markdown-editor-CMbNZOdN.js +2394 -0
- package/dist/markdown-editor-DqdZfIEn.d.ts +195 -0
- package/dist/markdown-editor.d.ts +108 -0
- package/dist/markdown-editor.js +3 -0
- package/dist/message-scroller-Bm1YWTeY.d.ts +175 -0
- package/dist/nuxt-ui-DSQFzq3s.js +38 -0
- package/dist/nuxt.d.ts +84 -2
- package/dist/nuxt.js +237 -35
- package/dist/parts/components/agent-session.d.ts +254 -0
- package/dist/parts/components/agent-session.js +640 -0
- package/dist/{attachment-BBndG9_P.d.ts → parts/components/attachment.d.ts} +13 -14
- package/dist/{attachment-B3dXC7jM.js → parts/components/attachment.js} +6 -4
- package/dist/{avatar-stack.d.ts → parts/components/avatar-stack.d.ts} +1 -1
- package/dist/{avatar-stack-DM6HRnc0.js → parts/components/avatar-stack.js} +2 -5
- package/dist/{bubble-BJH2rfii.d.ts → parts/components/bubble.d.ts} +8 -9
- package/dist/{bubble-BPyFQlW7.js → parts/components/bubble.js} +2 -2
- package/dist/{chat-message-mpDmZbIC.d.ts → parts/components/chat-message.d.ts} +2 -3
- package/dist/{chat-message-BNK9G7xF.js → parts/components/chat-message.js} +4 -4
- package/dist/{chat-session-D6C7VJBR.d.ts → parts/components/chat-session.d.ts} +3 -4
- package/dist/{chat-session-DYEHB1HC.js → parts/components/chat-session.js} +2 -2
- package/dist/{chat-B9HlZWA2.d.ts → parts/components/chat.d.ts} +8 -4
- package/dist/{chat-BoFHlu9V.js → parts/components/chat.js} +42 -9
- package/dist/{highlighted-code-Dzf6o54i.d.ts → parts/components/code-block.d.ts} +16 -24
- package/dist/{code-block-Br-02hn-.js → parts/components/code-block.js} +9 -38
- package/dist/parts/components/code-view.d.ts +270 -0
- package/dist/parts/components/code-view.js +2 -0
- package/dist/parts/components/comment-composer.d.ts +2 -0
- package/dist/parts/components/comment-composer.js +2 -0
- package/dist/parts/components/comment-layer.d.ts +2 -0
- package/dist/parts/components/comment-layer.js +618 -0
- package/dist/parts/components/comment-list.d.ts +2 -0
- package/dist/parts/components/comment-list.js +167 -0
- package/dist/parts/components/comment-panel.d.ts +2 -0
- package/dist/parts/components/comment-panel.js +299 -0
- package/dist/parts/components/comment-pin.d.ts +2 -0
- package/dist/parts/components/comment-pin.js +75 -0
- package/dist/parts/components/comment-thread.d.ts +2 -0
- package/dist/parts/components/comment-thread.js +571 -0
- package/dist/parts/components/comments.d.ts +7 -0
- package/dist/parts/components/comments.js +8 -0
- package/dist/{connection-status-DjGBw6xX.d.ts → parts/components/connection-status.d.ts} +6 -7
- package/dist/{connection-status-CzuWBENf.js → parts/components/connection-status.js} +1 -1
- package/dist/parts/components/copy-button.d.ts +118 -0
- package/dist/parts/components/copy-button.js +2 -0
- package/dist/parts/components/device-frame.d.ts +130 -0
- package/dist/parts/components/device-frame.js +471 -0
- package/dist/parts/components/file-tree.d.ts +2 -0
- package/dist/parts/components/file-tree.js +2 -0
- package/dist/parts/components/filter-search.d.ts +47 -0
- package/dist/parts/components/filter-search.js +58 -0
- package/dist/parts/components/markdown-editor.d.ts +2 -0
- package/dist/parts/components/markdown-editor.js +2 -0
- package/dist/parts/components/markdown-renderer.d.ts +52 -0
- package/dist/parts/components/markdown-renderer.js +23077 -0
- package/dist/{markdown-Dse5ldJe.d.ts → parts/components/markdown.d.ts} +7 -7
- package/dist/parts/components/markdown.js +47 -0
- package/dist/{marker-ea-tvx-J.d.ts → parts/components/marker.d.ts} +5 -6
- package/dist/{marker-Di2ZG_k1.js → parts/components/marker.js} +2 -2
- package/dist/{message-parts-BBFUkluC.d.ts → parts/components/message-parts.d.ts} +2 -3
- package/dist/{message-parts-DQnfioAH.js → parts/components/message-parts.js} +6 -6
- package/dist/{message-CW_paC1k.d.ts → parts/components/message.d.ts} +8 -9
- package/dist/{message-DiyBthIq.js → parts/components/message.js} +2 -2
- package/dist/parts/components/patch-parsers.d.ts +2 -0
- package/dist/parts/components/patch-parsers.js +2 -0
- package/dist/{prompt-input-Cy_Ue6B5.d.ts → parts/components/prompt-input.d.ts} +54 -11
- package/dist/{prompt-input-BbnCb80O.js → parts/components/prompt-input.js} +66 -111
- package/dist/parts/components/relative-time.d.ts +73 -0
- package/dist/parts/components/relative-time.js +2 -0
- package/dist/parts/components/status.d.ts +60 -0
- package/dist/parts/components/status.js +48 -0
- package/dist/{sync-status-refELOZn.d.ts → parts/components/sync-status.d.ts} +5 -6
- package/dist/{sync-status-BpxYdZIJ.js → parts/components/sync-status.js} +1 -1
- package/dist/{tool-list-E7CA52rz.d.ts → parts/components/tool-list.d.ts} +3 -4
- package/dist/{tool-list-BdSr5CT4.js → parts/components/tool-list.js} +7 -38
- package/dist/{trace-run-COeXn46Z.d.ts → parts/components/trace-run.d.ts} +3 -4
- package/dist/{trace-run-BIQ17CED.js → parts/components/trace-run.js} +15 -23
- package/dist/{trace-V7rM3Pyd.d.ts → parts/components/trace.d.ts} +10 -11
- package/dist/{trace-llBCDiSW.js → parts/components/trace.js} +20 -13
- package/dist/parts/composables/attachments.d.ts +32 -0
- package/dist/parts/composables/attachments.js +2 -0
- package/dist/parts/composables/highlighted-code.d.ts +9 -0
- package/dist/{highlighted-code-Ck4zexJX.js → parts/composables/highlighted-code.js} +5 -2
- package/dist/parts/headless/choices-input.d.ts +2 -0
- package/dist/parts/headless/choices-input.js +162 -0
- package/dist/parts/headless/comment-visibility.d.ts +2 -0
- package/dist/parts/headless/comment-visibility.js +128 -0
- package/dist/parts/headless/comments.d.ts +2 -0
- package/dist/parts/headless/comments.js +2 -0
- package/dist/parts/headless/message-scroller.d.ts +2 -0
- package/dist/{message-scroller-CX6NJTdm.js → parts/headless/message-scroller.js} +2 -2
- package/dist/parts/playground/highlight.d.ts +5 -0
- package/dist/parts/playground/highlight.js +23 -0
- package/dist/parts/playground/paths.d.ts +4 -0
- package/dist/parts/playground/paths.js +7 -0
- package/dist/parts/playground/playground-render.d.ts +126 -0
- package/dist/parts/playground/playground-render.js +356 -0
- package/dist/parts/playground/share.d.ts +2 -0
- package/dist/parts/playground/share.js +92 -0
- package/dist/parts/playground/zip.d.ts +6 -0
- package/dist/parts/playground/zip.js +76 -0
- package/dist/parts/workspace/browser-support-notice.d.ts +76 -0
- package/dist/parts/workspace/browser-support-notice.js +105 -0
- package/dist/parts/workspace/codemirror.d.ts +16 -0
- package/dist/parts/workspace/codemirror.js +243 -0
- package/dist/parts/workspace/connect-panel.d.ts +129 -0
- package/dist/parts/workspace/connect-panel.js +285 -0
- package/dist/parts/workspace/connect-store.d.ts +26 -0
- package/dist/parts/workspace/connect-store.js +59 -0
- package/dist/parts/workspace/icons.d.ts +34 -0
- package/dist/parts/workspace/icons.js +46 -0
- package/dist/parts/workspace/playground-container.d.ts +192 -0
- package/dist/parts/workspace/playground-container.js +603 -0
- package/dist/parts/workspace/workspace-boot-status.d.ts +75 -0
- package/dist/parts/workspace/workspace-boot-status.js +207 -0
- package/dist/parts/workspace/workspace-editor.d.ts +43 -0
- package/dist/parts/workspace/workspace-editor.js +54 -0
- package/dist/parts/workspace/workspace-file-tree.d.ts +53 -0
- package/dist/parts/workspace/workspace-file-tree.js +68 -0
- package/dist/parts/workspace/workspace-preview.d.ts +72 -0
- package/dist/parts/workspace/workspace-preview.js +307 -0
- package/dist/parts/workspace/workspace-shell.d.ts +88 -0
- package/dist/parts/workspace/workspace-shell.js +291 -0
- package/dist/parts/workspace/workspace-terminal.d.ts +39 -0
- package/dist/parts/workspace/workspace-terminal.js +130 -0
- package/dist/payload-text-sjkYAwvw.js +32 -0
- package/dist/{pierre-code-view-T7V67hwT.js → pierre-code-view-xgBL6DO7.js} +209 -86
- package/dist/{pierre-dark-DDWDl8g6.js → pierre-dark-CzUmjETS.js} +3 -1
- package/dist/{pierre-light-CWhW4NrH.js → pierre-light-Dn6E0sWv.js} +3 -1
- package/dist/playground.d.ts +4 -0
- package/dist/playground.js +4 -0
- package/dist/relative-time-BVmjOsYG.js +309 -0
- package/dist/rolldown-runtime-C9mWXvCC.js +29 -0
- package/dist/runtime/nuxt-plugin.js +23 -4
- package/dist/sankey-CAYwt82B-D4uDQoMR.js +2887 -0
- package/dist/share-DM4eNy4q.d.ts +37 -0
- package/dist/{slot-part-C7Ocxn3b.js → slot-part-Doic71uh.js} +7 -1
- package/dist/styles.css +2465 -594
- package/dist/temml-BilSAAws.js +12362 -0
- package/dist/theme-focus-ring.css +42 -0
- package/dist/theme.css +376 -0
- package/dist/theme.d.ts +355 -0
- package/dist/theme.js +265 -0
- package/dist/{types-CqDwuJAm.d.ts → types-Dyr6CfBW.d.ts} +1 -1
- package/dist/vue-BDmSCtay.js +30779 -0
- package/dist/vue-DGstVdGn.js +2492 -0
- package/dist/workspace.d.ts +15 -0
- package/dist/workspace.js +12 -0
- package/package.json +136 -150
- package/dist/andromeeda-BASpqCeJ.js +0 -4
- package/dist/attachment.d.ts +0 -2
- package/dist/attachment.js +0 -2
- package/dist/aurora-x-DugsLcii.js +0 -4
- package/dist/avatar-stack.js +0 -2
- package/dist/ayu-dark-BT3qdi3o.js +0 -4
- package/dist/ayu-light-BVZyHoh9.js +0 -4
- package/dist/ayu-mirage-XFwUVZQZ.js +0 -4
- package/dist/bubble.d.ts +0 -2
- package/dist/bubble.js +0 -2
- package/dist/catppuccin-frappe-D20KODDN.js +0 -4
- package/dist/catppuccin-latte-eGLVHIUJ.js +0 -4
- package/dist/catppuccin-macchiato-bQGch4PY.js +0 -4
- package/dist/catppuccin-mocha-Bes8-0Mr.js +0 -4
- package/dist/chat-message.d.ts +0 -2
- package/dist/chat-message.js +0 -2
- package/dist/chat-session.d.ts +0 -2
- package/dist/chat-session.js +0 -2
- package/dist/chat.d.ts +0 -2
- package/dist/chat.js +0 -2
- package/dist/code-block.d.ts +0 -2
- package/dist/code-block.js +0 -3
- package/dist/code-view.d.ts +0 -2
- package/dist/code-view.js +0 -2
- package/dist/comment-layer-CBlxJ8eK.js +0 -1113
- package/dist/comments-Cq5eewsu.d.ts +0 -537
- package/dist/comments.d.ts +0 -2
- package/dist/comments.js +0 -2
- package/dist/config-Bux_AJzm.d.ts +0 -29
- package/dist/config-bHqE4JOs.js +0 -38
- package/dist/connection-status.d.ts +0 -2
- package/dist/connection-status.js +0 -2
- package/dist/dark-plus-BGuiqa1B.js +0 -4
- package/dist/dracula-0CVA2XY5.js +0 -4
- package/dist/dracula-soft-Dk9bpbVU.js +0 -4
- package/dist/error-diagnostics-B4hMpJRL.js +0 -13
- package/dist/everforest-dark-CRjTbhh5.js +0 -4
- package/dist/everforest-light-CEeYFLn8.js +0 -4
- package/dist/file-diff.d.ts +0 -2
- package/dist/file-diff.js +0 -2
- package/dist/file-tree.d.ts +0 -2
- package/dist/file-tree.js +0 -2
- package/dist/file-view.d.ts +0 -2
- package/dist/file-view.js +0 -2
- package/dist/github-dark-BXgKmOw_.js +0 -4
- package/dist/github-dark-default-DzJQXksd.js +0 -4
- package/dist/github-dark-dimmed-B1pEmGtS.js +0 -4
- package/dist/github-dark-high-contrast-BkHIa6jc.js +0 -4
- package/dist/github-light-BKRlUbaB.js +0 -4
- package/dist/github-light-default-BU3eYkzs.js +0 -4
- package/dist/github-light-high-contrast-B3MumDcI.js +0 -4
- package/dist/gruvbox-dark-hard-B0ecF443.js +0 -4
- package/dist/gruvbox-dark-medium-BQnpC39k.js +0 -4
- package/dist/gruvbox-dark-soft-DFZUgESr.js +0 -4
- package/dist/gruvbox-light-hard-CuB_LOJr.js +0 -4
- package/dist/gruvbox-light-medium-idDHgxjs.js +0 -4
- package/dist/gruvbox-light-soft-CfWH49MY.js +0 -4
- package/dist/horizon-bright-Ba6M8QSV.js +0 -4
- package/dist/horizon-h92C5OlZ.js +0 -4
- package/dist/houston-EQnPegWq.js +0 -4
- package/dist/kanagawa-dragon-DgDvwi3B.js +0 -4
- package/dist/kanagawa-lotus-BgoQro20.js +0 -4
- package/dist/kanagawa-wave-DgXEowHs.js +0 -4
- package/dist/laserwave-IxBH_3yW.js +0 -4
- package/dist/light-plus-S8JBx6is.js +0 -4
- package/dist/markdown-BoLBN0qH.js +0 -197
- package/dist/markdown.d.ts +0 -2
- package/dist/markdown.js +0 -2
- package/dist/marker.d.ts +0 -2
- package/dist/marker.js +0 -2
- package/dist/material-theme-D1f3HBq-.js +0 -4
- package/dist/material-theme-darker-ExzYhT0j.js +0 -4
- package/dist/material-theme-lighter-D6gH9nnA.js +0 -4
- package/dist/material-theme-ocean-D1w5BPAa.js +0 -4
- package/dist/material-theme-palenight-CkqWmVpF.js +0 -4
- package/dist/message-parts.d.ts +0 -2
- package/dist/message-parts.js +0 -2
- package/dist/message.d.ts +0 -2
- package/dist/message.js +0 -2
- package/dist/min-dark-npsJH98j.js +0 -4
- package/dist/min-light-DUk1XsVt.js +0 -4
- package/dist/monokai-CfFRWUNl.js +0 -4
- package/dist/multi-file-diff.d.ts +0 -2
- package/dist/multi-file-diff.js +0 -2
- package/dist/night-owl-BS7V-av_.js +0 -4
- package/dist/night-owl-light-CZtRawYE.js +0 -4
- package/dist/nord-BFh54Nqz.js +0 -4
- package/dist/one-dark-pro-zDovGosB.js +0 -4
- package/dist/one-light-gmHK3iK6.js +0 -4
- package/dist/patch-diff.d.ts +0 -2
- package/dist/patch-diff.js +0 -2
- package/dist/plastic-DtdaCjub.js +0 -4
- package/dist/poimandres-Hdda6aHK.js +0 -4
- package/dist/primitive-rail.d.ts +0 -222
- package/dist/primitive-rail.js +0 -348
- package/dist/prompt-input.d.ts +0 -2
- package/dist/prompt-input.js +0 -2
- package/dist/red-VqZFRByZ.js +0 -4
- package/dist/rose-pine-DiTkEueR.js +0 -4
- package/dist/rose-pine-dawn-tfo5y2X0.js +0 -4
- package/dist/rose-pine-moon-C0gON9XN.js +0 -4
- package/dist/runtime-type-DlCscMfw.js +0 -59
- package/dist/slack-dark-v8P_eXr6.js +0 -4
- package/dist/slack-ochin-D8SyEdKz.js +0 -4
- package/dist/snazzy-light-BtkQkvXb.js +0 -4
- package/dist/solarized-dark-B8nAdMfM.js +0 -4
- package/dist/solarized-light-B-3F1INj.js +0 -4
- package/dist/sync-status.d.ts +0 -2
- package/dist/sync-status.js +0 -2
- package/dist/synthwave-84-DcsXCF_c.js +0 -4
- package/dist/tokyo-night-Bvpqduda.js +0 -4
- package/dist/tool-list.d.ts +0 -2
- package/dist/tool-list.js +0 -2
- package/dist/trace-run.d.ts +0 -2
- package/dist/trace-run.js +0 -2
- package/dist/trace.d.ts +0 -2
- package/dist/trace.js +0 -2
- package/dist/unresolved-file.d.ts +0 -2
- package/dist/unresolved-file.js +0 -2
- package/dist/vesper-CfxmMOy3.js +0 -4
- package/dist/vitesse-black-D9-_1mjV.js +0 -4
- package/dist/vitesse-dark-DlSMLlr9.js +0 -4
- package/dist/vitesse-light-KRWWWztf.js +0 -4
package/dist/styles.css
CHANGED
|
@@ -2,27 +2,42 @@
|
|
|
2
2
|
@layer theme, base, comark, components, utilities;
|
|
3
3
|
/* comark-chat also adds these on mount; importing them keeps server-rendered messages from shifting. */
|
|
4
4
|
@import "comark-chat/style.css";
|
|
5
|
+
/* xterm.js needs its own rules for the WorkspaceTerminal rows, cursor, and helper textarea. */
|
|
6
|
+
@import "@xterm/xterm/css/xterm.css" layer(components);
|
|
7
|
+
/* Share the theme's wrapper focus ring without requiring its palette or fonts. */
|
|
8
|
+
@import "./theme-focus-ring.css";
|
|
9
|
+
/* Comment pins, areas, and highlights. The ViteHub pill and Drop's page frame load the same file without a framework. */
|
|
10
|
+
@import "./comment-marks.css" layer(components);
|
|
11
|
+
/* The cross-fade of CopyButton's icons. Drop's page frame loads the same file without a framework. */
|
|
12
|
+
@import "./icon-swap.css" layer(components);
|
|
5
13
|
|
|
6
|
-
|
|
14
|
+
/*
|
|
15
|
+
* Theme tokens. Set `--vh-ui-*` on any element to change the parts inside it; the package sets none of them. The parts
|
|
16
|
+
* read `--vh-*`, which each element of a part resolves from `--vh-ui-*` and else from Nuxt UI's `--ui-*` as that element
|
|
17
|
+
* sees them. So a surface that resets `--ui-*`, such as `<div class="dark">` on a light page, needs nothing else.
|
|
18
|
+
* The selector covers the elements of the parts: their `data-slot` attributes and `vh-*` classes.
|
|
19
|
+
*/
|
|
20
|
+
:where(:root, [data-slot], [class^="vh-"], [class*=" vh-"]) {
|
|
7
21
|
/* Nuxt UI's --ui-radius is its smallest step (rounded-sm). Every radius here derives from rounded-lg, twice that step, so a part follows the app's --ui-radius. */
|
|
8
|
-
--vh-ui-radius
|
|
9
|
-
--vh-ui-border
|
|
10
|
-
--vh-
|
|
11
|
-
--vh-ui-
|
|
12
|
-
--vh-ui-
|
|
13
|
-
--vh-ui-
|
|
14
|
-
--vh-
|
|
15
|
-
--vh-ui-bg-
|
|
16
|
-
--vh-ui-bg-
|
|
17
|
-
--vh-
|
|
18
|
-
--vh-ui-
|
|
19
|
-
--vh-ui-
|
|
20
|
-
--vh-ui-
|
|
21
|
-
--vh-
|
|
22
|
-
|
|
23
|
-
--vh-ui-
|
|
24
|
-
--vh-ui-
|
|
25
|
-
--vh-ui-
|
|
22
|
+
--vh-radius: var(--vh-ui-radius, calc(var(--ui-radius, 0.25rem) * 2));
|
|
23
|
+
--vh-border: var(--vh-ui-border, var(--ui-border, color-mix(in oklab, currentColor 14%, transparent)));
|
|
24
|
+
--vh-border-accented: var(--vh-ui-border-accented, var(--ui-border-accented, color-mix(in oklab, currentColor 24%, transparent)));
|
|
25
|
+
--vh-muted: var(--vh-ui-muted, var(--ui-text-muted, color-mix(in oklab, currentColor 68%, transparent)));
|
|
26
|
+
--vh-dimmed: var(--vh-ui-dimmed, var(--ui-text-dimmed, color-mix(in oklab, currentColor 68%, transparent)));
|
|
27
|
+
--vh-text: var(--vh-ui-text, var(--ui-text, currentColor));
|
|
28
|
+
--vh-bg: var(--vh-ui-bg, var(--ui-bg, Canvas));
|
|
29
|
+
--vh-bg-muted: var(--vh-ui-bg-muted, var(--ui-bg-muted, color-mix(in oklab, Canvas 94%, currentColor)));
|
|
30
|
+
--vh-bg-elevated: var(--vh-ui-bg-elevated, var(--ui-bg-elevated, color-mix(in oklab, Canvas 96%, currentColor)));
|
|
31
|
+
--vh-bg-accented: var(--vh-ui-bg-accented, var(--ui-bg-accented, color-mix(in oklab, Canvas 90%, currentColor)));
|
|
32
|
+
--vh-highlighted: var(--vh-ui-highlighted, var(--ui-text-highlighted, currentColor));
|
|
33
|
+
--vh-inverted: var(--vh-ui-inverted, var(--ui-text-inverted, Canvas));
|
|
34
|
+
--vh-primary: var(--vh-ui-primary, var(--ui-primary, var(--vh-highlighted)));
|
|
35
|
+
--vh-ring: var(--vh-ui-ring, color-mix(in oklab, var(--vh-primary) 50%, transparent));
|
|
36
|
+
/* Without Nuxt UI there are no status colors, so a status falls back to the ink and its text names the state. */
|
|
37
|
+
--vh-error: var(--vh-ui-error, var(--ui-error, var(--vh-highlighted)));
|
|
38
|
+
--vh-info: var(--vh-ui-info, var(--ui-info, var(--vh-highlighted)));
|
|
39
|
+
--vh-success: var(--vh-ui-success, var(--ui-success, var(--vh-highlighted)));
|
|
40
|
+
--vh-warning: var(--vh-ui-warning, var(--ui-warning, var(--vh-highlighted)));
|
|
26
41
|
}
|
|
27
42
|
|
|
28
43
|
/*
|
|
@@ -36,12 +51,12 @@
|
|
|
36
51
|
|
|
37
52
|
.vh-chat__scroll-button {
|
|
38
53
|
align-items: center;
|
|
39
|
-
background: var(--vh-
|
|
40
|
-
border:
|
|
54
|
+
background: var(--vh-bg-elevated);
|
|
55
|
+
border: 0;
|
|
41
56
|
border-radius: 999px;
|
|
42
57
|
bottom: 1rem;
|
|
43
|
-
box-shadow: 0 1px
|
|
44
|
-
color: var(--vh-
|
|
58
|
+
box-shadow: var(--vh-shadow-floating, 0 0 0 1px var(--vh-border));
|
|
59
|
+
color: var(--vh-muted);
|
|
45
60
|
cursor: pointer;
|
|
46
61
|
display: flex;
|
|
47
62
|
gap: 0.375rem;
|
|
@@ -57,7 +72,7 @@
|
|
|
57
72
|
|
|
58
73
|
@media (hover: hover) {
|
|
59
74
|
.vh-chat__scroll-button:hover {
|
|
60
|
-
color: var(--vh-
|
|
75
|
+
color: var(--vh-text);
|
|
61
76
|
}
|
|
62
77
|
}
|
|
63
78
|
|
|
@@ -105,22 +120,22 @@
|
|
|
105
120
|
.vh-typeset :where(code):not(pre code) {
|
|
106
121
|
background: color-mix(in oklab, currentColor 8%, transparent);
|
|
107
122
|
border: 1px solid color-mix(in oklab, currentColor 10%, transparent);
|
|
108
|
-
border-radius: calc(var(--vh-
|
|
123
|
+
border-radius: calc(var(--vh-radius) * 0.65);
|
|
109
124
|
font-size: 0.875em;
|
|
110
125
|
padding: 0.1em 0.35em;
|
|
111
126
|
}
|
|
112
127
|
|
|
113
128
|
.vh-typeset :where(pre) {
|
|
114
|
-
border: 1px solid var(--vh-
|
|
115
|
-
border-radius: var(--vh-
|
|
129
|
+
border: 1px solid var(--vh-border);
|
|
130
|
+
border-radius: var(--vh-radius);
|
|
116
131
|
max-width: 100%;
|
|
117
132
|
overflow: auto;
|
|
118
133
|
padding: 0.875rem 1rem;
|
|
119
134
|
}
|
|
120
135
|
|
|
121
136
|
.vh-typeset :where(blockquote) {
|
|
122
|
-
border-inline-start: 2px solid var(--vh-
|
|
123
|
-
color: var(--vh-
|
|
137
|
+
border-inline-start: 2px solid var(--vh-border);
|
|
138
|
+
color: var(--vh-muted);
|
|
124
139
|
padding-inline-start: 1rem;
|
|
125
140
|
}
|
|
126
141
|
|
|
@@ -130,6 +145,22 @@
|
|
|
130
145
|
text-underline-offset: 0.2em;
|
|
131
146
|
}
|
|
132
147
|
|
|
148
|
+
.vh-agent-session .vh-typeset :where(code):not(pre code) {
|
|
149
|
+
-webkit-box-decoration-break: clone;
|
|
150
|
+
background: color-mix(in oklab, currentColor 10%, transparent);
|
|
151
|
+
border: 0;
|
|
152
|
+
border-radius: 0.25rem;
|
|
153
|
+
box-decoration-break: clone;
|
|
154
|
+
font-size: 0.85em;
|
|
155
|
+
}
|
|
156
|
+
.vh-agent-session .vh-typeset :where(h1, h2, h3, h4) {
|
|
157
|
+
font-size: 1em;
|
|
158
|
+
font-weight: 600;
|
|
159
|
+
}
|
|
160
|
+
.vh-agent-session .vh-typeset :where(h1) {
|
|
161
|
+
font-size: 1.125em;
|
|
162
|
+
}
|
|
163
|
+
|
|
133
164
|
.vh-typeset-chat > :first-child {
|
|
134
165
|
margin-block-start: 0;
|
|
135
166
|
}
|
|
@@ -144,8 +175,12 @@
|
|
|
144
175
|
vertical-align: top;
|
|
145
176
|
}
|
|
146
177
|
|
|
178
|
+
/*
|
|
179
|
+
* The image dialog darkens the page with the media scrim of the theme, at 80% so the toolbar text stays readable. Without
|
|
180
|
+
* the theme it uses the Nuxt UI overlay, and the toolbar takes the ink color instead of white.
|
|
181
|
+
*/
|
|
147
182
|
.vh-image-overlay {
|
|
148
|
-
background: rgb(
|
|
183
|
+
background: rgb(from var(--vh-media-scrim, var(--vh-bg-elevated)) r g b / 80%);
|
|
149
184
|
z-index: 59;
|
|
150
185
|
}
|
|
151
186
|
|
|
@@ -161,12 +196,12 @@
|
|
|
161
196
|
}
|
|
162
197
|
|
|
163
198
|
.vh-image-dialog__action {
|
|
164
|
-
color:
|
|
199
|
+
color: var(--vh-on-media, var(--vh-highlighted));
|
|
165
200
|
flex: none;
|
|
166
201
|
}
|
|
167
202
|
|
|
168
203
|
.vh-image-dialog__action:hover {
|
|
169
|
-
background:
|
|
204
|
+
background: color-mix(in oklab, var(--vh-on-media, var(--vh-highlighted)) 10%, transparent);
|
|
170
205
|
}
|
|
171
206
|
|
|
172
207
|
/*
|
|
@@ -189,8 +224,8 @@
|
|
|
189
224
|
}
|
|
190
225
|
|
|
191
226
|
.vh-primitive-rail__surface {
|
|
192
|
-
background: var(--vh-
|
|
193
|
-
border-inline-end: 1px solid var(--vh-
|
|
227
|
+
background: var(--vh-bg-muted);
|
|
228
|
+
border-inline-end: 1px solid var(--vh-border);
|
|
194
229
|
box-sizing: border-box;
|
|
195
230
|
display: flex;
|
|
196
231
|
flex-direction: column;
|
|
@@ -207,10 +242,6 @@
|
|
|
207
242
|
width: 13.5rem;
|
|
208
243
|
}
|
|
209
244
|
|
|
210
|
-
.dark .vh-primitive-rail__surface {
|
|
211
|
-
background: #000;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
245
|
.vh-primitive-rail__header,
|
|
215
246
|
.vh-primitive-rail__footer {
|
|
216
247
|
display: flex;
|
|
@@ -248,7 +279,7 @@
|
|
|
248
279
|
|
|
249
280
|
/* The rule stays centered under the icons when the rail expands. */
|
|
250
281
|
.vh-primitive-rail__group + .vh-primitive-rail__group::before {
|
|
251
|
-
background: var(--vh-
|
|
282
|
+
background: var(--vh-border);
|
|
252
283
|
content: "";
|
|
253
284
|
height: 1px;
|
|
254
285
|
inset-block-start: 0;
|
|
@@ -263,9 +294,9 @@
|
|
|
263
294
|
appearance: none;
|
|
264
295
|
background: transparent;
|
|
265
296
|
border: 0;
|
|
266
|
-
border-radius: calc(var(--vh-
|
|
297
|
+
border-radius: calc(var(--vh-radius) * 0.75);
|
|
267
298
|
box-sizing: border-box;
|
|
268
|
-
color: var(--vh-
|
|
299
|
+
color: var(--vh-muted);
|
|
269
300
|
cursor: pointer;
|
|
270
301
|
display: flex;
|
|
271
302
|
flex: none;
|
|
@@ -323,15 +354,9 @@
|
|
|
323
354
|
transition: none;
|
|
324
355
|
}
|
|
325
356
|
|
|
326
|
-
.vh-primitive-rail__item:focus-visible {
|
|
327
|
-
color: var(--vh-ui-highlighted);
|
|
328
|
-
outline: 2px solid var(--vh-ui-highlighted);
|
|
329
|
-
outline-offset: -2px;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
357
|
.vh-primitive-rail__item[aria-current="page"] {
|
|
333
|
-
background: var(--vh-
|
|
334
|
-
color: var(--vh-
|
|
358
|
+
background: var(--vh-bg-accented);
|
|
359
|
+
color: var(--vh-highlighted);
|
|
335
360
|
}
|
|
336
361
|
|
|
337
362
|
.vh-primitive-rail__item:disabled {
|
|
@@ -341,12 +366,12 @@
|
|
|
341
366
|
|
|
342
367
|
@media (hover: hover) {
|
|
343
368
|
.vh-primitive-rail__item:hover {
|
|
344
|
-
background: var(--vh-
|
|
345
|
-
color: var(--vh-
|
|
369
|
+
background: var(--vh-bg-elevated);
|
|
370
|
+
color: var(--vh-highlighted);
|
|
346
371
|
}
|
|
347
372
|
|
|
348
373
|
.vh-primitive-rail__item[aria-current="page"]:hover {
|
|
349
|
-
background: var(--vh-
|
|
374
|
+
background: var(--vh-bg-accented);
|
|
350
375
|
}
|
|
351
376
|
}
|
|
352
377
|
|
|
@@ -364,20 +389,20 @@
|
|
|
364
389
|
width: 1.125rem;
|
|
365
390
|
}
|
|
366
391
|
|
|
367
|
-
.vh-primitive-
|
|
392
|
+
.vh-primitive-icon [data-motion] {
|
|
368
393
|
transform-box: view-box;
|
|
369
394
|
transform-origin: var(--vh-primitive-icon-origin, 12px 12px);
|
|
370
395
|
}
|
|
371
396
|
|
|
372
397
|
/* Each icon moves once when a pointer enters or keyboard focus arrives. Nothing moves while idle. */
|
|
373
398
|
@media (prefers-reduced-motion: no-preference) {
|
|
374
|
-
.vh-primitive-rail__item:focus-visible .vh-primitive-
|
|
399
|
+
.vh-primitive-rail__item:focus-visible .vh-primitive-icon [data-motion] {
|
|
375
400
|
animation: vh-primitive-icon 320ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
376
401
|
}
|
|
377
402
|
}
|
|
378
403
|
|
|
379
404
|
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
|
|
380
|
-
.vh-primitive-rail__item:hover .vh-primitive-
|
|
405
|
+
.vh-primitive-rail__item:hover .vh-primitive-icon [data-motion] {
|
|
381
406
|
animation: vh-primitive-icon 320ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
382
407
|
}
|
|
383
408
|
}
|
|
@@ -391,7 +416,7 @@
|
|
|
391
416
|
|
|
392
417
|
.vh-primitive-icon[data-icon="agent"] {
|
|
393
418
|
--vh-primitive-icon-motion: scaleY(0.2);
|
|
394
|
-
--vh-primitive-icon-origin: 12px
|
|
419
|
+
--vh-primitive-icon-origin: 12px 14px;
|
|
395
420
|
}
|
|
396
421
|
|
|
397
422
|
.vh-primitive-icon[data-icon="auth"] {
|
|
@@ -406,11 +431,35 @@
|
|
|
406
431
|
--vh-primitive-icon-motion: translate(1.5px, 1.5px);
|
|
407
432
|
}
|
|
408
433
|
|
|
409
|
-
.vh-primitive-icon[data-icon="
|
|
434
|
+
.vh-primitive-icon[data-icon="bundle"] {
|
|
435
|
+
--vh-primitive-icon-motion: translateY(-1px);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.vh-primitive-icon[data-icon="cache"] {
|
|
439
|
+
--vh-primitive-icon-motion: translateY(-1.5px);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.vh-primitive-icon[data-icon="channels"] {
|
|
443
|
+
--vh-primitive-icon-motion: translateX(1.5px);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.vh-primitive-icon[data-icon="cms"] {
|
|
447
|
+
--vh-primitive-icon-motion: translate(-1px, -1px);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.vh-primitive-icon[data-icon="codemods"] {
|
|
451
|
+
--vh-primitive-icon-motion: translateX(1.5px);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.vh-primitive-icon[data-icon="comments"] {
|
|
410
455
|
--vh-primitive-icon-motion: translateX(1.5px);
|
|
411
456
|
}
|
|
412
457
|
|
|
413
|
-
.vh-primitive-icon[data-icon="
|
|
458
|
+
.vh-primitive-icon[data-icon="compare"] {
|
|
459
|
+
--vh-primitive-icon-motion: translateX(-1.5px);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.vh-primitive-icon[data-icon="connections"] {
|
|
414
463
|
--vh-primitive-icon-motion: translateY(1.5px);
|
|
415
464
|
}
|
|
416
465
|
|
|
@@ -422,34 +471,71 @@
|
|
|
422
471
|
--vh-primitive-icon-motion: translateY(-1.5px);
|
|
423
472
|
}
|
|
424
473
|
|
|
474
|
+
.vh-primitive-icon[data-icon="decisions"] {
|
|
475
|
+
--vh-primitive-icon-motion: translate(1px, -1px);
|
|
476
|
+
}
|
|
477
|
+
|
|
425
478
|
.vh-primitive-icon[data-icon="development"] {
|
|
426
479
|
--vh-primitive-icon-motion: rotate(14deg);
|
|
427
480
|
}
|
|
428
481
|
|
|
482
|
+
.vh-primitive-icon[data-icon="docs"] {
|
|
483
|
+
--vh-primitive-icon-motion: skewY(-6deg);
|
|
484
|
+
--vh-primitive-icon-origin: 12px 12px;
|
|
485
|
+
}
|
|
486
|
+
|
|
429
487
|
.vh-primitive-icon[data-icon="email"] {
|
|
430
488
|
--vh-primitive-icon-motion: translateY(1.5px);
|
|
431
489
|
}
|
|
432
490
|
|
|
433
491
|
.vh-primitive-icon[data-icon="env"] {
|
|
434
492
|
--vh-primitive-icon-motion: rotate(-16deg);
|
|
435
|
-
--vh-primitive-icon-origin:
|
|
493
|
+
--vh-primitive-icon-origin: 7.5px 16.5px;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.vh-primitive-icon[data-icon="forge"] {
|
|
497
|
+
--vh-primitive-icon-motion: translateX(-1px);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.vh-primitive-icon[data-icon="forms"] {
|
|
501
|
+
--vh-primitive-icon-motion: translateY(1px);
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.vh-primitive-icon[data-icon="gateways"] {
|
|
505
|
+
--vh-primitive-icon-motion: translateX(1.5px);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.vh-primitive-icon[data-icon="guides"] {
|
|
509
|
+
--vh-primitive-icon-motion: rotate(45deg);
|
|
436
510
|
}
|
|
437
511
|
|
|
438
512
|
.vh-primitive-icon[data-icon="hosts"] {
|
|
439
513
|
--vh-primitive-icon-motion: translateY(-1.5px);
|
|
440
514
|
}
|
|
441
515
|
|
|
516
|
+
.vh-primitive-icon[data-icon="i18n"] {
|
|
517
|
+
--vh-primitive-icon-motion: translateY(-1.5px);
|
|
518
|
+
}
|
|
519
|
+
|
|
442
520
|
.vh-primitive-icon[data-icon="kv"] {
|
|
443
521
|
--vh-primitive-icon-motion: translateX(1.5px);
|
|
444
522
|
}
|
|
445
523
|
|
|
524
|
+
.vh-primitive-icon[data-icon="logs"] {
|
|
525
|
+
--vh-primitive-icon-motion: translateX(1.5px);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.vh-primitive-icon[data-icon="mcp"] {
|
|
529
|
+
--vh-primitive-icon-motion: translateY(-1px);
|
|
530
|
+
}
|
|
531
|
+
|
|
446
532
|
.vh-primitive-icon[data-icon="queue"] {
|
|
447
533
|
--vh-primitive-icon-motion: translateX(2px);
|
|
448
534
|
}
|
|
449
535
|
|
|
450
536
|
.vh-primitive-icon[data-icon="rate-limit"] {
|
|
451
537
|
--vh-primitive-icon-motion: rotate(-70deg);
|
|
452
|
-
--vh-primitive-icon-origin: 12px
|
|
538
|
+
--vh-primitive-icon-origin: 12px 16px;
|
|
453
539
|
}
|
|
454
540
|
|
|
455
541
|
.vh-primitive-icon[data-icon="realtime"] {
|
|
@@ -458,8 +544,7 @@
|
|
|
458
544
|
}
|
|
459
545
|
|
|
460
546
|
.vh-primitive-icon[data-icon="reference"] {
|
|
461
|
-
--vh-primitive-icon-motion:
|
|
462
|
-
--vh-primitive-icon-origin: 12px 12px;
|
|
547
|
+
--vh-primitive-icon-motion: translateX(1.5px);
|
|
463
548
|
}
|
|
464
549
|
|
|
465
550
|
.vh-primitive-icon[data-icon="sandbox"] {
|
|
@@ -474,13 +559,17 @@
|
|
|
474
559
|
--vh-primitive-icon-opacity: 0;
|
|
475
560
|
}
|
|
476
561
|
|
|
562
|
+
.vh-primitive-icon[data-icon="skills"] {
|
|
563
|
+
--vh-primitive-icon-motion: translateY(1.5px);
|
|
564
|
+
}
|
|
565
|
+
|
|
477
566
|
.vh-primitive-icon[data-icon="source"] {
|
|
478
567
|
--vh-primitive-icon-motion: translateY(1.5px);
|
|
479
568
|
}
|
|
480
569
|
|
|
481
570
|
.vh-primitive-icon[data-icon="start"] {
|
|
482
571
|
--vh-primitive-icon-motion: skewY(-10deg);
|
|
483
|
-
--vh-primitive-icon-origin:
|
|
572
|
+
--vh-primitive-icon-origin: 5px 8.5px;
|
|
484
573
|
}
|
|
485
574
|
|
|
486
575
|
.vh-primitive-icon[data-icon="ui"] {
|
|
@@ -489,7 +578,15 @@
|
|
|
489
578
|
|
|
490
579
|
.vh-primitive-icon[data-icon="usage"] {
|
|
491
580
|
--vh-primitive-icon-motion: scaleY(0.75);
|
|
492
|
-
--vh-primitive-icon-origin: 12px
|
|
581
|
+
--vh-primitive-icon-origin: 12px 17px;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.vh-primitive-icon[data-icon="web-container"] {
|
|
585
|
+
--vh-primitive-icon-motion: translateY(-1px);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.vh-primitive-icon[data-icon="webhooks"] {
|
|
589
|
+
--vh-primitive-icon-motion: translate(1px, -1px);
|
|
493
590
|
}
|
|
494
591
|
|
|
495
592
|
.vh-primitive-icon[data-icon="workflow"] {
|
|
@@ -500,6 +597,27 @@
|
|
|
500
597
|
--vh-primitive-icon-motion: translateY(-1px);
|
|
501
598
|
}
|
|
502
599
|
|
|
600
|
+
/* A picture's Remove button in a comment box is a 20px round badge in the inverted color, as in Drop. The button is a
|
|
601
|
+
Nuxt UI button, so this rule stays outside a layer to win over its classes. */
|
|
602
|
+
[data-slot="comment-composer"] [data-slot="attachment"]:has(> [data-slot="attachment-media"][data-variant="image"]) [data-slot="attachment-actions"] > button {
|
|
603
|
+
background: var(--vh-highlighted);
|
|
604
|
+
border: 0;
|
|
605
|
+
border-radius: 9999px;
|
|
606
|
+
box-shadow: 0 1px 3px color-mix(in oklab, var(--vh-highlighted) 10%, transparent), 0 1px 2px -1px color-mix(in oklab, var(--vh-highlighted) 10%, transparent);
|
|
607
|
+
color: var(--vh-inverted);
|
|
608
|
+
display: grid;
|
|
609
|
+
height: 1.25rem;
|
|
610
|
+
min-width: 0;
|
|
611
|
+
padding: 0;
|
|
612
|
+
place-items: center;
|
|
613
|
+
width: 1.25rem;
|
|
614
|
+
|
|
615
|
+
& :is(svg, .iconify) {
|
|
616
|
+
height: 0.75rem;
|
|
617
|
+
width: 0.75rem;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
|
|
503
621
|
/*
|
|
504
622
|
* shadcn/ui agentic parts: Message, Bubble, Marker, Trace, and Attachment.
|
|
505
623
|
* These rules translate the default classes of https://ui.shadcn.com/docs/components/trace and its siblings to Nuxt UI tokens:
|
|
@@ -536,7 +654,7 @@
|
|
|
536
654
|
[data-slot="message-avatar"] {
|
|
537
655
|
align-items: center;
|
|
538
656
|
align-self: flex-end;
|
|
539
|
-
background: var(--vh-
|
|
657
|
+
background: var(--vh-bg-elevated);
|
|
540
658
|
border-radius: 9999px;
|
|
541
659
|
display: flex;
|
|
542
660
|
flex-shrink: 0;
|
|
@@ -565,7 +683,7 @@
|
|
|
565
683
|
|
|
566
684
|
:is([data-slot="message-header"], [data-slot="message-footer"]) {
|
|
567
685
|
align-items: center;
|
|
568
|
-
color: var(--vh-
|
|
686
|
+
color: var(--vh-muted);
|
|
569
687
|
display: flex;
|
|
570
688
|
font-size: 0.75rem;
|
|
571
689
|
font-weight: 500;
|
|
@@ -606,7 +724,7 @@
|
|
|
606
724
|
|
|
607
725
|
[data-slot="bubble-content"] {
|
|
608
726
|
border: 1px solid transparent;
|
|
609
|
-
border-radius: calc(var(--vh-
|
|
727
|
+
border-radius: calc(var(--vh-radius) * 1.5);
|
|
610
728
|
font-size: 0.875rem;
|
|
611
729
|
line-height: 1.625;
|
|
612
730
|
max-width: 100%;
|
|
@@ -625,58 +743,52 @@
|
|
|
625
743
|
color: inherit;
|
|
626
744
|
cursor: pointer;
|
|
627
745
|
font: inherit;
|
|
628
|
-
outline: none;
|
|
629
746
|
text-align: left;
|
|
630
747
|
text-decoration: none;
|
|
631
748
|
transition: background-color 150ms, color 150ms;
|
|
632
749
|
}
|
|
633
750
|
|
|
634
|
-
:is(a, button)[data-slot="bubble-content"]:focus-visible {
|
|
635
|
-
border-color: var(--vh-ui-primary);
|
|
636
|
-
box-shadow: 0 0 0 3px var(--vh-ui-ring);
|
|
637
|
-
}
|
|
638
|
-
|
|
639
751
|
[data-slot="bubble"][data-variant="default"] > [data-slot="bubble-content"] {
|
|
640
|
-
background: var(--vh-
|
|
641
|
-
color: var(--vh-
|
|
752
|
+
background: var(--vh-primary);
|
|
753
|
+
color: var(--vh-inverted);
|
|
642
754
|
}
|
|
643
755
|
|
|
644
756
|
/* Hover colors apply only where a pointer can hover, so a tap on a touch screen does not leave them on, as on the primitive rail. */
|
|
645
757
|
@media (hover: hover) {
|
|
646
758
|
[data-slot="bubble"][data-variant="default"] > :is(a, button)[data-slot="bubble-content"]:hover {
|
|
647
|
-
background: color-mix(in oklab, var(--vh-
|
|
759
|
+
background: color-mix(in oklab, var(--vh-primary) 80%, transparent);
|
|
648
760
|
}
|
|
649
761
|
}
|
|
650
762
|
|
|
651
763
|
[data-slot="bubble"][data-variant="secondary"] > [data-slot="bubble-content"] {
|
|
652
|
-
background: var(--vh-
|
|
653
|
-
color: var(--vh-
|
|
764
|
+
background: var(--vh-bg-elevated);
|
|
765
|
+
color: var(--vh-highlighted);
|
|
654
766
|
}
|
|
655
767
|
|
|
656
768
|
[data-slot="bubble"][data-variant="muted"] > [data-slot="bubble-content"] {
|
|
657
|
-
background: var(--vh-
|
|
769
|
+
background: var(--vh-bg-muted);
|
|
658
770
|
}
|
|
659
771
|
|
|
660
772
|
@media (hover: hover) {
|
|
661
773
|
[data-slot="bubble"]:is([data-variant="secondary"], [data-variant="muted"]) > :is(a, button)[data-slot="bubble-content"]:hover {
|
|
662
|
-
background: color-mix(in oklab, var(--vh-
|
|
774
|
+
background: color-mix(in oklab, var(--vh-bg-elevated), var(--vh-highlighted) 5%);
|
|
663
775
|
}
|
|
664
776
|
}
|
|
665
777
|
|
|
666
778
|
[data-slot="bubble"][data-variant="tinted"] > [data-slot="bubble-content"] {
|
|
667
|
-
background: color-mix(in oklab, var(--vh-
|
|
668
|
-
color: var(--vh-
|
|
779
|
+
background: color-mix(in oklab, var(--vh-primary) 14%, var(--vh-bg));
|
|
780
|
+
color: var(--vh-highlighted);
|
|
669
781
|
}
|
|
670
782
|
|
|
671
783
|
@media (hover: hover) {
|
|
672
784
|
[data-slot="bubble"][data-variant="tinted"] > :is(a, button)[data-slot="bubble-content"]:hover {
|
|
673
|
-
background: color-mix(in oklab, var(--vh-
|
|
785
|
+
background: color-mix(in oklab, var(--vh-primary) 22%, var(--vh-bg));
|
|
674
786
|
}
|
|
675
787
|
}
|
|
676
788
|
|
|
677
789
|
[data-slot="bubble"][data-variant="outline"] > [data-slot="bubble-content"] {
|
|
678
|
-
background: var(--vh-
|
|
679
|
-
border-color: var(--vh-
|
|
790
|
+
background: var(--vh-bg);
|
|
791
|
+
border-color: var(--vh-border);
|
|
680
792
|
}
|
|
681
793
|
|
|
682
794
|
[data-slot="bubble"][data-variant="ghost"] > [data-slot="bubble-content"] {
|
|
@@ -688,27 +800,27 @@
|
|
|
688
800
|
|
|
689
801
|
@media (hover: hover) {
|
|
690
802
|
[data-slot="bubble"]:is([data-variant="outline"], [data-variant="ghost"]) > :is(a, button)[data-slot="bubble-content"]:hover {
|
|
691
|
-
background: var(--vh-
|
|
692
|
-
color: var(--vh-
|
|
803
|
+
background: var(--vh-bg-elevated);
|
|
804
|
+
color: var(--vh-highlighted);
|
|
693
805
|
}
|
|
694
806
|
}
|
|
695
807
|
|
|
696
808
|
[data-slot="bubble"][data-variant="destructive"] > [data-slot="bubble-content"] {
|
|
697
|
-
background: color-mix(in oklab, var(--vh-
|
|
698
|
-
color: var(--vh-
|
|
809
|
+
background: color-mix(in oklab, var(--vh-error) 12%, transparent);
|
|
810
|
+
color: var(--vh-error);
|
|
699
811
|
}
|
|
700
812
|
|
|
701
813
|
@media (hover: hover) {
|
|
702
814
|
[data-slot="bubble"][data-variant="destructive"] > :is(a, button)[data-slot="bubble-content"]:hover {
|
|
703
|
-
background: color-mix(in oklab, var(--vh-
|
|
815
|
+
background: color-mix(in oklab, var(--vh-error) 20%, transparent);
|
|
704
816
|
}
|
|
705
817
|
}
|
|
706
818
|
|
|
707
819
|
[data-slot="bubble-reactions"] {
|
|
708
820
|
align-items: center;
|
|
709
|
-
background: var(--vh-
|
|
821
|
+
background: var(--vh-bg-elevated);
|
|
710
822
|
border-radius: 9999px;
|
|
711
|
-
box-shadow: 0 0 0 3px var(--vh-
|
|
823
|
+
box-shadow: 0 0 0 3px var(--vh-bg);
|
|
712
824
|
display: flex;
|
|
713
825
|
flex-shrink: 0;
|
|
714
826
|
font-size: 0.875rem;
|
|
@@ -746,7 +858,7 @@
|
|
|
746
858
|
|
|
747
859
|
[data-slot="marker"] {
|
|
748
860
|
align-items: center;
|
|
749
|
-
color: var(--vh-
|
|
861
|
+
color: var(--vh-muted);
|
|
750
862
|
display: flex;
|
|
751
863
|
font-size: 0.875rem;
|
|
752
864
|
gap: 0.5rem;
|
|
@@ -772,13 +884,13 @@
|
|
|
772
884
|
|
|
773
885
|
@media (hover: hover) {
|
|
774
886
|
:is(a[data-slot="marker"], [data-slot="marker-content"] > a):hover {
|
|
775
|
-
color: var(--vh-
|
|
887
|
+
color: var(--vh-highlighted);
|
|
776
888
|
}
|
|
777
889
|
}
|
|
778
890
|
|
|
779
891
|
[data-slot="marker"][data-variant="separator"]::before,
|
|
780
892
|
[data-slot="marker"][data-variant="separator"]::after {
|
|
781
|
-
background: var(--vh-
|
|
893
|
+
background: var(--vh-border);
|
|
782
894
|
content: "";
|
|
783
895
|
flex: 1;
|
|
784
896
|
height: 1px;
|
|
@@ -794,7 +906,7 @@
|
|
|
794
906
|
}
|
|
795
907
|
|
|
796
908
|
[data-slot="marker"][data-variant="border"] {
|
|
797
|
-
border-bottom: 1px solid var(--vh-
|
|
909
|
+
border-bottom: 1px solid var(--vh-border);
|
|
798
910
|
padding-bottom: 0.5rem;
|
|
799
911
|
}
|
|
800
912
|
|
|
@@ -819,22 +931,17 @@
|
|
|
819
931
|
}
|
|
820
932
|
|
|
821
933
|
[data-slot="trace"] > :has(> [data-slot="trace-line"]) {
|
|
822
|
-
border-radius: calc(var(--vh-
|
|
934
|
+
border-radius: calc(var(--vh-radius) * 0.75);
|
|
823
935
|
display: flex;
|
|
824
936
|
max-width: 100%;
|
|
825
937
|
min-width: 0;
|
|
826
|
-
outline: none;
|
|
827
938
|
text-align: left;
|
|
828
939
|
width: fit-content;
|
|
829
940
|
}
|
|
830
941
|
|
|
831
|
-
[data-slot="trace"] > :has(> [data-slot="trace-line"]):focus-visible {
|
|
832
|
-
box-shadow: 0 0 0 3px var(--vh-ui-ring);
|
|
833
|
-
}
|
|
834
|
-
|
|
835
942
|
[data-slot="trace-line"] {
|
|
836
943
|
align-items: center;
|
|
837
|
-
color: var(--vh-
|
|
944
|
+
color: var(--vh-muted);
|
|
838
945
|
display: flex;
|
|
839
946
|
font-size: 0.875rem;
|
|
840
947
|
gap: 0.5rem;
|
|
@@ -851,13 +958,13 @@
|
|
|
851
958
|
|
|
852
959
|
@media (hover: hover) {
|
|
853
960
|
:is(a, button):hover [data-slot="trace-line"] {
|
|
854
|
-
color: var(--vh-
|
|
961
|
+
color: var(--vh-highlighted);
|
|
855
962
|
}
|
|
856
963
|
}
|
|
857
964
|
|
|
858
965
|
[data-slot="trace-line"][data-status="error"],
|
|
859
966
|
:is(a, button):hover [data-slot="trace-line"][data-status="error"] {
|
|
860
|
-
color: var(--vh-
|
|
967
|
+
color: var(--vh-error);
|
|
861
968
|
}
|
|
862
969
|
|
|
863
970
|
[data-slot="trace-line"][data-status="pending"] {
|
|
@@ -894,7 +1001,7 @@
|
|
|
894
1001
|
}
|
|
895
1002
|
|
|
896
1003
|
[data-slot="trace-description"] {
|
|
897
|
-
color: color-mix(in oklab, var(--vh-
|
|
1004
|
+
color: color-mix(in oklab, var(--vh-muted) 70%, transparent);
|
|
898
1005
|
flex-shrink: 0;
|
|
899
1006
|
font-variant-numeric: tabular-nums;
|
|
900
1007
|
}
|
|
@@ -910,15 +1017,14 @@
|
|
|
910
1017
|
align-items: center;
|
|
911
1018
|
background: transparent;
|
|
912
1019
|
border: 0;
|
|
913
|
-
border-radius: calc(var(--vh-
|
|
914
|
-
color: var(--vh-
|
|
1020
|
+
border-radius: calc(var(--vh-radius) * 0.75);
|
|
1021
|
+
color: var(--vh-muted);
|
|
915
1022
|
cursor: pointer;
|
|
916
1023
|
display: flex;
|
|
917
1024
|
font: inherit;
|
|
918
1025
|
gap: 0.25rem;
|
|
919
1026
|
max-width: 100%;
|
|
920
1027
|
min-width: 0;
|
|
921
|
-
outline: none;
|
|
922
1028
|
padding: 0;
|
|
923
1029
|
text-align: left;
|
|
924
1030
|
transition: color 150ms;
|
|
@@ -927,16 +1033,12 @@
|
|
|
927
1033
|
|
|
928
1034
|
@media (hover: hover) {
|
|
929
1035
|
[data-slot="trace-collapsible-trigger"]:hover {
|
|
930
|
-
color: var(--vh-
|
|
1036
|
+
color: var(--vh-highlighted);
|
|
931
1037
|
}
|
|
932
1038
|
}
|
|
933
1039
|
|
|
934
|
-
[data-slot="trace-collapsible-trigger"]:focus-visible {
|
|
935
|
-
box-shadow: 0 0 0 3px var(--vh-ui-ring);
|
|
936
|
-
}
|
|
937
|
-
|
|
938
1040
|
[data-slot="trace-collapsible-trigger"]:has([data-status="error"]) {
|
|
939
|
-
color: var(--vh-
|
|
1041
|
+
color: var(--vh-error);
|
|
940
1042
|
}
|
|
941
1043
|
|
|
942
1044
|
[data-trace-chevron] svg {
|
|
@@ -954,11 +1056,11 @@
|
|
|
954
1056
|
overflow: hidden;
|
|
955
1057
|
}
|
|
956
1058
|
|
|
957
|
-
[data-slot="trace-collapsible-content"][data-
|
|
1059
|
+
[data-slot="trace-collapsible-content"][data-open] {
|
|
958
1060
|
animation: vh-trace-open 200ms ease-out;
|
|
959
1061
|
}
|
|
960
1062
|
|
|
961
|
-
[data-slot="trace-collapsible-content"][data-
|
|
1063
|
+
[data-slot="trace-collapsible-content"][data-closed] {
|
|
962
1064
|
animation: vh-trace-close 200ms ease-out;
|
|
963
1065
|
}
|
|
964
1066
|
|
|
@@ -967,13 +1069,13 @@
|
|
|
967
1069
|
height: 0;
|
|
968
1070
|
}
|
|
969
1071
|
to {
|
|
970
|
-
height: var(--
|
|
1072
|
+
height: var(--collapsible-panel-height);
|
|
971
1073
|
}
|
|
972
1074
|
}
|
|
973
1075
|
|
|
974
1076
|
@keyframes vh-trace-close {
|
|
975
1077
|
from {
|
|
976
|
-
height: var(--
|
|
1078
|
+
height: var(--collapsible-panel-height);
|
|
977
1079
|
}
|
|
978
1080
|
to {
|
|
979
1081
|
height: 0;
|
|
@@ -987,8 +1089,8 @@
|
|
|
987
1089
|
}
|
|
988
1090
|
|
|
989
1091
|
[data-slot="trace-collapsible-content-inner"] {
|
|
990
|
-
border-left: 1px solid var(--vh-
|
|
991
|
-
color: var(--vh-
|
|
1092
|
+
border-left: 1px solid var(--vh-border);
|
|
1093
|
+
color: var(--vh-muted);
|
|
992
1094
|
line-height: 1.625;
|
|
993
1095
|
margin: 0.5rem 0 0.25rem calc(0.5rem - 1px);
|
|
994
1096
|
min-width: 0;
|
|
@@ -1000,10 +1102,10 @@
|
|
|
1000
1102
|
/* Attachment */
|
|
1001
1103
|
|
|
1002
1104
|
[data-slot="attachment"] {
|
|
1003
|
-
background: var(--vh-
|
|
1004
|
-
border: 1px solid var(--vh-
|
|
1005
|
-
border-radius: calc(var(--vh-
|
|
1006
|
-
color: var(--vh-
|
|
1105
|
+
background: var(--vh-bg);
|
|
1106
|
+
border: 1px solid var(--vh-border);
|
|
1107
|
+
border-radius: calc(var(--vh-radius) * 1.5);
|
|
1108
|
+
color: var(--vh-text);
|
|
1007
1109
|
display: flex;
|
|
1008
1110
|
flex-shrink: 0;
|
|
1009
1111
|
flex-wrap: wrap;
|
|
@@ -1014,17 +1116,12 @@
|
|
|
1014
1116
|
width: fit-content;
|
|
1015
1117
|
}
|
|
1016
1118
|
|
|
1017
|
-
/* The trigger covers the attachment and hides its own outline, so the attachment shows the ring of the other parts. */
|
|
1018
|
-
[data-slot="attachment"]:has([data-slot="attachment-trigger"]:focus-visible) {
|
|
1019
|
-
box-shadow: 0 0 0 3px var(--vh-ui-ring);
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
1119
|
[data-slot="attachment"]:has(> a, > button):hover {
|
|
1023
|
-
background: color-mix(in oklab, var(--vh-
|
|
1120
|
+
background: color-mix(in oklab, var(--vh-bg-elevated) 50%, var(--vh-bg));
|
|
1024
1121
|
}
|
|
1025
1122
|
|
|
1026
1123
|
[data-slot="attachment"][data-state="error"] {
|
|
1027
|
-
border-color: color-mix(in oklab, var(--vh-
|
|
1124
|
+
border-color: color-mix(in oklab, var(--vh-error) 30%, transparent);
|
|
1028
1125
|
}
|
|
1029
1126
|
|
|
1030
1127
|
[data-slot="attachment"][data-state="idle"] {
|
|
@@ -1060,7 +1157,7 @@
|
|
|
1060
1157
|
}
|
|
1061
1158
|
|
|
1062
1159
|
[data-slot="attachment"][data-size="xs"] {
|
|
1063
|
-
border-radius: var(--vh-
|
|
1160
|
+
border-radius: var(--vh-radius);
|
|
1064
1161
|
font-size: 0.75rem;
|
|
1065
1162
|
gap: 0.375rem;
|
|
1066
1163
|
line-height: 1rem;
|
|
@@ -1091,9 +1188,9 @@
|
|
|
1091
1188
|
[data-slot="attachment-media"] {
|
|
1092
1189
|
align-items: center;
|
|
1093
1190
|
aspect-ratio: 1;
|
|
1094
|
-
background: var(--vh-
|
|
1095
|
-
border-radius: var(--vh-
|
|
1096
|
-
color: var(--vh-
|
|
1191
|
+
background: var(--vh-bg-elevated);
|
|
1192
|
+
border-radius: var(--vh-radius);
|
|
1193
|
+
color: var(--vh-highlighted);
|
|
1097
1194
|
display: flex;
|
|
1098
1195
|
flex-shrink: 0;
|
|
1099
1196
|
justify-content: center;
|
|
@@ -1111,13 +1208,13 @@
|
|
|
1111
1208
|
}
|
|
1112
1209
|
|
|
1113
1210
|
[data-slot="attachment"][data-size="xs"] [data-slot="attachment-media"] {
|
|
1114
|
-
border-radius: calc(var(--vh-
|
|
1211
|
+
border-radius: calc(var(--vh-radius) * 0.75);
|
|
1115
1212
|
width: 1.75rem;
|
|
1116
1213
|
}
|
|
1117
1214
|
|
|
1118
1215
|
[data-slot="attachment"][data-state="error"] [data-slot="attachment-media"] {
|
|
1119
|
-
background: color-mix(in oklab, var(--vh-
|
|
1120
|
-
color: var(--vh-
|
|
1216
|
+
background: color-mix(in oklab, var(--vh-error) 10%, transparent);
|
|
1217
|
+
color: var(--vh-error);
|
|
1121
1218
|
}
|
|
1122
1219
|
|
|
1123
1220
|
[data-slot="attachment-media"] svg {
|
|
@@ -1175,7 +1272,7 @@
|
|
|
1175
1272
|
}
|
|
1176
1273
|
|
|
1177
1274
|
[data-slot="attachment-description"] {
|
|
1178
|
-
color: var(--vh-
|
|
1275
|
+
color: var(--vh-muted);
|
|
1179
1276
|
display: block;
|
|
1180
1277
|
font-size: 0.75rem;
|
|
1181
1278
|
line-height: 1rem;
|
|
@@ -1188,7 +1285,7 @@
|
|
|
1188
1285
|
}
|
|
1189
1286
|
|
|
1190
1287
|
[data-slot="attachment"][data-state="error"] [data-slot="attachment-description"] {
|
|
1191
|
-
color: color-mix(in oklab, var(--vh-
|
|
1288
|
+
color: color-mix(in oklab, var(--vh-error) 80%, transparent);
|
|
1192
1289
|
}
|
|
1193
1290
|
|
|
1194
1291
|
[data-slot="attachment-actions"] {
|
|
@@ -1212,7 +1309,6 @@
|
|
|
1212
1309
|
border-radius: inherit;
|
|
1213
1310
|
cursor: pointer;
|
|
1214
1311
|
inset: 0;
|
|
1215
|
-
outline: none;
|
|
1216
1312
|
padding: 0;
|
|
1217
1313
|
position: absolute;
|
|
1218
1314
|
z-index: 10;
|
|
@@ -1241,9 +1337,9 @@
|
|
|
1241
1337
|
/* Code Block */
|
|
1242
1338
|
|
|
1243
1339
|
[data-slot="code-block"] {
|
|
1244
|
-
border: 1px solid var(--vh-
|
|
1245
|
-
border-radius: var(--vh-
|
|
1246
|
-
color: var(--vh-
|
|
1340
|
+
border: 1px solid var(--vh-border);
|
|
1341
|
+
border-radius: var(--vh-radius);
|
|
1342
|
+
color: var(--vh-highlighted);
|
|
1247
1343
|
display: flex;
|
|
1248
1344
|
flex-direction: column;
|
|
1249
1345
|
font-size: 0.875rem;
|
|
@@ -1255,12 +1351,7 @@
|
|
|
1255
1351
|
}
|
|
1256
1352
|
|
|
1257
1353
|
:root.dark [data-slot="code-block"] {
|
|
1258
|
-
background: color-mix(in oklab, var(--vh-
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
[data-slot="code-block"]:has(> [data-slot="code-block-content"]:focus-visible) {
|
|
1262
|
-
border-color: var(--vh-ui-primary);
|
|
1263
|
-
box-shadow: 0 0 0 3px var(--vh-ui-ring);
|
|
1354
|
+
background: color-mix(in oklab, var(--vh-bg-elevated) 40%, transparent);
|
|
1264
1355
|
}
|
|
1265
1356
|
|
|
1266
1357
|
[data-slot="code-block"][data-size="sm"] {
|
|
@@ -1269,14 +1360,14 @@
|
|
|
1269
1360
|
}
|
|
1270
1361
|
|
|
1271
1362
|
[data-slot="code-block"][data-variant="destructive"] {
|
|
1272
|
-
border-color: color-mix(in oklab, var(--vh-
|
|
1273
|
-
color: var(--vh-
|
|
1363
|
+
border-color: color-mix(in oklab, var(--vh-error) 30%, transparent);
|
|
1364
|
+
color: var(--vh-error);
|
|
1274
1365
|
}
|
|
1275
1366
|
|
|
1276
1367
|
[data-slot="code-block-header"],
|
|
1277
1368
|
[data-slot="code-block-footer"] {
|
|
1278
1369
|
align-items: center;
|
|
1279
|
-
color: var(--vh-
|
|
1370
|
+
color: var(--vh-muted);
|
|
1280
1371
|
display: flex;
|
|
1281
1372
|
flex-shrink: 0;
|
|
1282
1373
|
gap: 0.5rem;
|
|
@@ -1305,11 +1396,11 @@
|
|
|
1305
1396
|
}
|
|
1306
1397
|
|
|
1307
1398
|
[data-slot="code-block"][data-variant="destructive"] :is([data-slot="code-block-header"], [data-slot="code-block-title"]) {
|
|
1308
|
-
color: var(--vh-
|
|
1399
|
+
color: var(--vh-error);
|
|
1309
1400
|
}
|
|
1310
1401
|
|
|
1311
1402
|
[data-slot="code-block-title"] {
|
|
1312
|
-
color: var(--vh-
|
|
1403
|
+
color: var(--vh-highlighted);
|
|
1313
1404
|
font-family: var(--font-sans, inherit);
|
|
1314
1405
|
font-size: 0.875rem;
|
|
1315
1406
|
font-weight: 500;
|
|
@@ -1372,17 +1463,8 @@
|
|
|
1372
1463
|
}
|
|
1373
1464
|
|
|
1374
1465
|
[data-slot="code-block"] > [data-slot="code-block-actions"] > button {
|
|
1375
|
-
background: var(--vh-
|
|
1376
|
-
box-shadow: 0 0 0 1px color-mix(in oklab, var(--vh-
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
[data-slot="code-block-copy-status"] {
|
|
1380
|
-
clip-path: inset(50%);
|
|
1381
|
-
height: 1px;
|
|
1382
|
-
overflow: hidden;
|
|
1383
|
-
position: absolute;
|
|
1384
|
-
white-space: nowrap;
|
|
1385
|
-
width: 1px;
|
|
1466
|
+
background: var(--vh-bg);
|
|
1467
|
+
box-shadow: 0 0 0 1px color-mix(in oklab, var(--vh-highlighted) 10%, transparent);
|
|
1386
1468
|
}
|
|
1387
1469
|
|
|
1388
1470
|
[data-slot="code-block-content"] {
|
|
@@ -1391,7 +1473,6 @@
|
|
|
1391
1473
|
margin: 0;
|
|
1392
1474
|
min-height: 0;
|
|
1393
1475
|
min-width: 0;
|
|
1394
|
-
outline: none;
|
|
1395
1476
|
overflow: auto;
|
|
1396
1477
|
padding: 0.75rem;
|
|
1397
1478
|
scrollbar-width: thin;
|
|
@@ -1452,13 +1533,13 @@
|
|
|
1452
1533
|
}
|
|
1453
1534
|
|
|
1454
1535
|
[data-slot="code-block-line"]::before {
|
|
1455
|
-
color: var(--vh-
|
|
1536
|
+
color: var(--vh-muted);
|
|
1456
1537
|
min-width: 1.5rem;
|
|
1457
1538
|
text-align: end;
|
|
1458
1539
|
}
|
|
1459
1540
|
|
|
1460
1541
|
[data-slot="code-block-line"]::after {
|
|
1461
|
-
color: var(--vh-
|
|
1542
|
+
color: var(--vh-muted);
|
|
1462
1543
|
left: 0.25rem;
|
|
1463
1544
|
position: absolute;
|
|
1464
1545
|
top: 0;
|
|
@@ -1480,7 +1561,7 @@
|
|
|
1480
1561
|
}
|
|
1481
1562
|
|
|
1482
1563
|
[data-slot="code-block-line"]:is([data-variant="added"], [data-variant="highlighted"]) {
|
|
1483
|
-
background: var(--vh-
|
|
1564
|
+
background: var(--vh-bg-elevated);
|
|
1484
1565
|
}
|
|
1485
1566
|
|
|
1486
1567
|
[data-slot="code-block-line"][data-variant="added"]::after {
|
|
@@ -1488,11 +1569,11 @@
|
|
|
1488
1569
|
}
|
|
1489
1570
|
|
|
1490
1571
|
[data-slot="code-block-line"][data-variant="removed"] {
|
|
1491
|
-
background: color-mix(in oklab, var(--vh-
|
|
1572
|
+
background: color-mix(in oklab, var(--vh-error) 10%, transparent);
|
|
1492
1573
|
}
|
|
1493
1574
|
|
|
1494
1575
|
[data-slot="code-block-line"][data-variant="removed"]::after {
|
|
1495
|
-
color: var(--vh-
|
|
1576
|
+
color: var(--vh-error);
|
|
1496
1577
|
content: "−";
|
|
1497
1578
|
}
|
|
1498
1579
|
|
|
@@ -1547,11 +1628,11 @@
|
|
|
1547
1628
|
|
|
1548
1629
|
[data-slot="message-scroller-button"] {
|
|
1549
1630
|
align-items: center;
|
|
1550
|
-
background: var(--vh-
|
|
1551
|
-
border: 1px solid var(--vh-
|
|
1552
|
-
border-radius: var(--vh-
|
|
1631
|
+
background: var(--vh-bg);
|
|
1632
|
+
border: 1px solid var(--vh-border);
|
|
1633
|
+
border-radius: var(--vh-radius);
|
|
1553
1634
|
bottom: 1rem;
|
|
1554
|
-
color: var(--vh-
|
|
1635
|
+
color: var(--vh-highlighted);
|
|
1555
1636
|
cursor: pointer;
|
|
1556
1637
|
display: flex;
|
|
1557
1638
|
height: 2rem;
|
|
@@ -1565,15 +1646,10 @@
|
|
|
1565
1646
|
|
|
1566
1647
|
@media (hover: hover) {
|
|
1567
1648
|
[data-slot="message-scroller-button"]:hover {
|
|
1568
|
-
background: var(--vh-
|
|
1649
|
+
background: var(--vh-bg-elevated);
|
|
1569
1650
|
}
|
|
1570
1651
|
}
|
|
1571
1652
|
|
|
1572
|
-
[data-slot="message-scroller-button"]:focus-visible {
|
|
1573
|
-
box-shadow: 0 0 0 3px var(--vh-ui-ring);
|
|
1574
|
-
outline: none;
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
1653
|
[data-slot="message-scroller-button"][hidden] {
|
|
1578
1654
|
display: none;
|
|
1579
1655
|
}
|
|
@@ -1586,18 +1662,12 @@
|
|
|
1586
1662
|
}
|
|
1587
1663
|
|
|
1588
1664
|
[data-slot="prompt-input-group"] {
|
|
1589
|
-
background: var(--vh-
|
|
1590
|
-
border: 1px solid var(--vh-
|
|
1591
|
-
border-radius: calc(var(--vh-
|
|
1665
|
+
background: var(--vh-bg);
|
|
1666
|
+
border: 1px solid var(--vh-border);
|
|
1667
|
+
border-radius: calc(var(--vh-radius) * 2);
|
|
1592
1668
|
display: flex;
|
|
1593
1669
|
flex-direction: column;
|
|
1594
1670
|
min-width: 0;
|
|
1595
|
-
transition: border-color 150ms ease, box-shadow 150ms ease;
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
[data-slot="prompt-input-group"]:has([data-slot="prompt-input-textarea"]:focus-visible) {
|
|
1599
|
-
border-color: color-mix(in oklab, var(--vh-ui-highlighted) 28%, transparent);
|
|
1600
|
-
box-shadow: 0 0 0 3px color-mix(in oklab, var(--vh-ui-highlighted) 6%, transparent);
|
|
1601
1671
|
}
|
|
1602
1672
|
|
|
1603
1673
|
[data-slot="prompt-input-attachments"] {
|
|
@@ -1607,14 +1677,13 @@
|
|
|
1607
1677
|
[data-slot="prompt-input-textarea"] {
|
|
1608
1678
|
background: transparent;
|
|
1609
1679
|
border: 0;
|
|
1610
|
-
color: var(--vh-
|
|
1680
|
+
color: var(--vh-highlighted);
|
|
1611
1681
|
field-sizing: content;
|
|
1612
1682
|
font: inherit;
|
|
1613
1683
|
font-size: 0.875rem;
|
|
1614
1684
|
line-height: 1.5rem;
|
|
1615
1685
|
max-height: 12rem;
|
|
1616
1686
|
min-height: 3.5rem;
|
|
1617
|
-
outline: none;
|
|
1618
1687
|
padding: 0.75rem 0.875rem 0.25rem;
|
|
1619
1688
|
resize: none;
|
|
1620
1689
|
width: 100%;
|
|
@@ -1628,7 +1697,7 @@
|
|
|
1628
1697
|
}
|
|
1629
1698
|
|
|
1630
1699
|
[data-slot="prompt-input-textarea"]::placeholder {
|
|
1631
|
-
color: var(--vh-
|
|
1700
|
+
color: var(--vh-muted);
|
|
1632
1701
|
}
|
|
1633
1702
|
|
|
1634
1703
|
[data-slot="prompt-input-toolbar"] {
|
|
@@ -1642,6 +1711,38 @@
|
|
|
1642
1711
|
[data-slot="prompt-input-spacer"] {
|
|
1643
1712
|
flex: 1;
|
|
1644
1713
|
}
|
|
1714
|
+
|
|
1715
|
+
[data-slot="prompt-input-toolbar"] button:active:not(:disabled) {
|
|
1716
|
+
scale: 0.96;
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
/* On a phone the Send button sends, so it gets a 48px target around its 32px circle without a larger circle. */
|
|
1720
|
+
@media (pointer: coarse) {
|
|
1721
|
+
[data-slot="prompt-input-toolbar"] button {
|
|
1722
|
+
position: relative;
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
[data-slot="prompt-input-toolbar"] button::before {
|
|
1726
|
+
content: "";
|
|
1727
|
+
inset: -8px;
|
|
1728
|
+
position: absolute;
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
/* Choices: FilterSearch puts the error under the input. */
|
|
1734
|
+
@layer components {
|
|
1735
|
+
.vh-filter-search {
|
|
1736
|
+
display: flex;
|
|
1737
|
+
flex-direction: column;
|
|
1738
|
+
gap: 0.375rem;
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
.vh-filter-search-error {
|
|
1742
|
+
color: var(--vh-error);
|
|
1743
|
+
font-size: 0.75rem;
|
|
1744
|
+
line-height: 1rem;
|
|
1745
|
+
}
|
|
1645
1746
|
}
|
|
1646
1747
|
|
|
1647
1748
|
/* Collaboration: AvatarStack, ConnectionStatus, SyncStatus, and the carets of TipTap's CollaborationCaret. */
|
|
@@ -1663,10 +1764,10 @@
|
|
|
1663
1764
|
|
|
1664
1765
|
:is([data-slot="avatar-stack-item"], [data-slot="avatar-stack-count"]) {
|
|
1665
1766
|
align-items: center;
|
|
1666
|
-
background: var(--vh-
|
|
1767
|
+
background: var(--vh-bg-accented);
|
|
1667
1768
|
border-radius: 9999px;
|
|
1668
|
-
box-shadow: 0 0 0 2px var(--vh-
|
|
1669
|
-
color: var(--vh-
|
|
1769
|
+
box-shadow: 0 0 0 2px var(--vh-bg);
|
|
1770
|
+
color: var(--vh-highlighted);
|
|
1670
1771
|
display: inline-flex;
|
|
1671
1772
|
flex: none;
|
|
1672
1773
|
font-size: calc(var(--vh-avatar-size) * 0.4);
|
|
@@ -1684,13 +1785,13 @@
|
|
|
1684
1785
|
}
|
|
1685
1786
|
|
|
1686
1787
|
[data-slot="avatar-stack-count"] {
|
|
1687
|
-
color: var(--vh-
|
|
1788
|
+
color: var(--vh-muted);
|
|
1688
1789
|
font-size: calc(var(--vh-avatar-size) * 0.34);
|
|
1689
1790
|
}
|
|
1690
1791
|
|
|
1691
1792
|
/* The outline ring takes the person's presence color, so each face matches its caret. */
|
|
1692
1793
|
[data-slot="avatar-stack"][data-variant="outline"] [data-slot="avatar-stack-item"] {
|
|
1693
|
-
box-shadow: 0 0 0 2px var(--vh-
|
|
1794
|
+
box-shadow: 0 0 0 2px var(--vh-bg), 0 0 0 4px var(--vh-avatar-color, var(--vh-border));
|
|
1694
1795
|
}
|
|
1695
1796
|
|
|
1696
1797
|
[data-slot="avatar-stack"][data-variant="outline"] :is([data-slot="avatar-stack-item"], [data-slot="avatar-stack-count"]) + :is([data-slot="avatar-stack-item"], [data-slot="avatar-stack-count"]) {
|
|
@@ -1705,7 +1806,7 @@
|
|
|
1705
1806
|
|
|
1706
1807
|
:is([data-slot="connection-status"], [data-slot="sync-status"]) {
|
|
1707
1808
|
align-items: center;
|
|
1708
|
-
color: var(--vh-
|
|
1809
|
+
color: var(--vh-muted);
|
|
1709
1810
|
display: inline-flex;
|
|
1710
1811
|
font-size: 0.75rem;
|
|
1711
1812
|
gap: 0.375rem;
|
|
@@ -1714,7 +1815,7 @@
|
|
|
1714
1815
|
}
|
|
1715
1816
|
|
|
1716
1817
|
:is([data-slot="connection-status-indicator"], [data-slot="sync-status-indicator"]) {
|
|
1717
|
-
background: var(--vh-
|
|
1818
|
+
background: var(--vh-dimmed);
|
|
1718
1819
|
border-radius: 9999px;
|
|
1719
1820
|
flex: none;
|
|
1720
1821
|
height: 0.5rem;
|
|
@@ -1723,19 +1824,19 @@
|
|
|
1723
1824
|
}
|
|
1724
1825
|
|
|
1725
1826
|
:is([data-slot="connection-status-indicator"][data-status="connected"], [data-slot="sync-status-indicator"][data-status="synchronized"]) {
|
|
1726
|
-
background: var(--vh-
|
|
1827
|
+
background: var(--vh-success);
|
|
1727
1828
|
}
|
|
1728
1829
|
|
|
1729
1830
|
:is([data-slot="connection-status-indicator"][data-status="reconnecting"], [data-slot="sync-status-indicator"][data-status="synchronizing"]) {
|
|
1730
|
-
background: var(--vh-
|
|
1831
|
+
background: var(--vh-warning);
|
|
1731
1832
|
}
|
|
1732
1833
|
|
|
1733
1834
|
[data-slot="sync-status-indicator"][data-status="error"] {
|
|
1734
|
-
background: var(--vh-
|
|
1835
|
+
background: var(--vh-error);
|
|
1735
1836
|
}
|
|
1736
1837
|
|
|
1737
1838
|
:is([data-slot="connection-status"][data-status="reconnecting"], [data-slot="sync-status"][data-status="error"]) {
|
|
1738
|
-
color: var(--vh-
|
|
1839
|
+
color: var(--vh-highlighted);
|
|
1739
1840
|
}
|
|
1740
1841
|
|
|
1741
1842
|
/* A pending state pings, as Kibo UI's StatusIndicator does. */
|
|
@@ -1762,6 +1863,90 @@
|
|
|
1762
1863
|
}
|
|
1763
1864
|
}
|
|
1764
1865
|
|
|
1866
|
+
/* RelativeTime, and the time of a comment reply that renders it. Digits keep one width, so the label does not jump when the clock moves. */
|
|
1867
|
+
:is([data-slot="relative-time"], [data-slot="comment-reply-time"]) {
|
|
1868
|
+
font-variant-numeric: tabular-nums;
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
/* Status: a 6px dot in the brighter status color and a label. A colored label uses the darker text shade of theme.css. */
|
|
1872
|
+
[data-slot="status"] {
|
|
1873
|
+
align-items: center;
|
|
1874
|
+
display: inline-flex;
|
|
1875
|
+
font-size: 0.75rem;
|
|
1876
|
+
gap: 0.375rem;
|
|
1877
|
+
line-height: 1rem;
|
|
1878
|
+
min-width: 0;
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
[data-slot="status"][data-size="md"] {
|
|
1882
|
+
font-size: 0.875rem;
|
|
1883
|
+
line-height: 1.25rem;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
[data-slot="status-indicator"] {
|
|
1887
|
+
background: var(--vh-dimmed);
|
|
1888
|
+
border-radius: 9999px;
|
|
1889
|
+
flex: none;
|
|
1890
|
+
height: 0.375rem;
|
|
1891
|
+
position: relative;
|
|
1892
|
+
width: 0.375rem;
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
[data-slot="status"][data-tone="success"] > [data-slot="status-indicator"] {
|
|
1896
|
+
background: var(--vh-success);
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
[data-slot="status"][data-tone="warning"] > [data-slot="status-indicator"] {
|
|
1900
|
+
background: var(--vh-warning);
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
[data-slot="status"][data-tone="error"] > [data-slot="status-indicator"] {
|
|
1904
|
+
background: var(--vh-error);
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
[data-slot="status"][data-tone="info"] > [data-slot="status-indicator"] {
|
|
1908
|
+
background: var(--vh-info);
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
[data-slot="status"][data-colored][data-tone="success"] {
|
|
1912
|
+
color: var(--vh-text-success, var(--vh-success));
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
[data-slot="status"][data-colored][data-tone="warning"] {
|
|
1916
|
+
color: var(--vh-text-warning, var(--vh-warning));
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
[data-slot="status"][data-colored][data-tone="error"] {
|
|
1920
|
+
color: var(--vh-text-error, var(--vh-error));
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
[data-slot="status"][data-colored][data-tone="info"] {
|
|
1924
|
+
color: var(--vh-text-info, var(--vh-info));
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
[data-slot="status-label"] {
|
|
1928
|
+
min-width: 0;
|
|
1929
|
+
overflow: hidden;
|
|
1930
|
+
text-overflow: ellipsis;
|
|
1931
|
+
white-space: nowrap;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
/* A live or pending status pings, as the connection dot does. */
|
|
1935
|
+
[data-slot="status-indicator"][data-pulse]::after {
|
|
1936
|
+
animation: vh-status-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
1937
|
+
background: inherit;
|
|
1938
|
+
border-radius: inherit;
|
|
1939
|
+
content: "";
|
|
1940
|
+
inset: 0;
|
|
1941
|
+
position: absolute;
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1945
|
+
[data-slot="status-indicator"][data-pulse]::after {
|
|
1946
|
+
animation: none;
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1765
1950
|
/* TipTap's CollaborationCaret markup, which Realtime's RealtimeCaret also renders. The inline style sets the color. */
|
|
1766
1951
|
.collaboration-carets__caret {
|
|
1767
1952
|
border-inline: 1px solid;
|
|
@@ -1772,8 +1957,9 @@
|
|
|
1772
1957
|
}
|
|
1773
1958
|
|
|
1774
1959
|
.collaboration-carets__label {
|
|
1775
|
-
border-radius: calc(var(--vh-
|
|
1776
|
-
color
|
|
1960
|
+
border-radius: calc(var(--vh-radius) * 0.5) calc(var(--vh-radius) * 0.5) calc(var(--vh-radius) * 0.5) 0;
|
|
1961
|
+
/* The label fill is the person's color. Its text is inverted, as on a solid Nuxt UI badge. */
|
|
1962
|
+
color: var(--vh-inverted);
|
|
1777
1963
|
font-size: 0.75rem;
|
|
1778
1964
|
font-style: normal;
|
|
1779
1965
|
font-weight: 600;
|
|
@@ -1807,56 +1993,134 @@
|
|
|
1807
1993
|
position: absolute;
|
|
1808
1994
|
}
|
|
1809
1995
|
|
|
1810
|
-
|
|
1996
|
+
/* The look of the area that a drag in comment mode draws, and of its corners, is in comment-marks.css. */
|
|
1997
|
+
[data-slot="comment-layer-area-size"] {
|
|
1998
|
+
background: color-mix(in oklab, var(--vh-comment-mark), black 10%);
|
|
1999
|
+
border-radius: 0.25rem;
|
|
2000
|
+
color: var(--vh-on-media, white);
|
|
2001
|
+
font: 500 0.6875rem/1rem ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
2002
|
+
font-variant-numeric: tabular-nums;
|
|
2003
|
+
left: -2px;
|
|
2004
|
+
padding: 0.0625rem 0.3125rem;
|
|
2005
|
+
position: absolute;
|
|
2006
|
+
top: calc(100% + 0.375rem);
|
|
2007
|
+
white-space: nowrap;
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
/* Margin placement: a column of cards on the right edge, each level with its pin. Opening one shows its thread there. */
|
|
2011
|
+
[data-slot="comment-margin"] {
|
|
1811
2012
|
pointer-events: none;
|
|
1812
2013
|
position: absolute;
|
|
2014
|
+
right: 1rem;
|
|
2015
|
+
top: 0;
|
|
2016
|
+
width: 18rem;
|
|
1813
2017
|
}
|
|
1814
2018
|
|
|
1815
|
-
[data-slot="comment-
|
|
2019
|
+
[data-slot="comment-margin-card"] {
|
|
2020
|
+
background: var(--vh-bg);
|
|
2021
|
+
border: 0;
|
|
2022
|
+
border-radius: calc(var(--vh-radius) * 1.5);
|
|
2023
|
+
box-shadow: var(--vh-shadow-floating, 0 0 0 1px var(--vh-border));
|
|
2024
|
+
box-sizing: border-box;
|
|
2025
|
+
color: var(--vh-text);
|
|
2026
|
+
font: inherit;
|
|
2027
|
+
font-size: 0.875rem;
|
|
2028
|
+
left: 0;
|
|
1816
2029
|
pointer-events: auto;
|
|
2030
|
+
position: absolute;
|
|
2031
|
+
right: 0;
|
|
2032
|
+
text-align: start;
|
|
2033
|
+
transition: top 160ms ease;
|
|
1817
2034
|
}
|
|
1818
2035
|
|
|
1819
|
-
[data-slot="comment-
|
|
1820
|
-
align-items:
|
|
1821
|
-
background: var(--vh-ui-primary);
|
|
1822
|
-
border: 2px solid var(--vh-ui-bg);
|
|
1823
|
-
border-radius: 9999px 9999px 9999px 0;
|
|
1824
|
-
box-shadow: 0 1px 4px rgb(0 0 0 / 0.3);
|
|
1825
|
-
color: var(--vh-ui-inverted);
|
|
2036
|
+
button[data-slot="comment-margin-card"] {
|
|
2037
|
+
align-items: flex-start;
|
|
1826
2038
|
cursor: pointer;
|
|
1827
|
-
display:
|
|
1828
|
-
|
|
1829
|
-
padding: 0;
|
|
1830
|
-
|
|
2039
|
+
display: flex;
|
|
2040
|
+
gap: 0.5rem;
|
|
2041
|
+
padding: 0.625rem 0.75rem;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
button[data-slot="comment-margin-card"]:hover {
|
|
2045
|
+
background: var(--vh-bg-elevated);
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
button[data-slot="comment-margin-card"][data-status="resolved"] {
|
|
2049
|
+
opacity: 0.65;
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
/* The open thread and the new comment's box in the margin: the layer's own card, fixed to the right edge at its top. */
|
|
2053
|
+
[data-slot="comment-layer-item"] > [data-slot="comment-layer-popover"][data-margin="true"][data-margin-key] {
|
|
2054
|
+
bottom: auto;
|
|
2055
|
+
left: auto;
|
|
2056
|
+
position: fixed;
|
|
2057
|
+
right: 1rem;
|
|
2058
|
+
transition: top 160ms ease;
|
|
2059
|
+
width: 18rem;
|
|
2060
|
+
z-index: 1;
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
/* A long thread in the margin keeps inside the screen: its messages scroll, and the reply box stays in view. */
|
|
2064
|
+
[data-slot="comment-layer-popover"][data-margin="true"][data-margin-key] {
|
|
2065
|
+
display: flex;
|
|
2066
|
+
flex-direction: column;
|
|
2067
|
+
max-height: calc(100dvh - 2rem);
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
[data-slot="comment-layer-popover"][data-margin="true"] > [data-slot="comment-thread"] {
|
|
2071
|
+
display: flex;
|
|
2072
|
+
flex: 1 1 auto;
|
|
2073
|
+
flex-direction: column;
|
|
2074
|
+
min-height: 0;
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
[data-slot="comment-layer-popover"][data-margin="true"] [data-slot="comment-thread-messages"] {
|
|
2078
|
+
flex: 1 1 auto;
|
|
2079
|
+
max-height: none;
|
|
2080
|
+
min-height: 0;
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
[data-slot="comment-margin-card"] [data-slot="comment-list-text"] {
|
|
2084
|
+
-webkit-line-clamp: 3;
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2087
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2088
|
+
[data-slot="comment-margin-card"], [data-slot="comment-layer-popover"][data-margin="true"] { transition: none; }
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
[data-slot="comment-layer-item"] {
|
|
2092
|
+
pointer-events: none;
|
|
1831
2093
|
position: absolute;
|
|
1832
|
-
transform: translateY(-100%);
|
|
1833
|
-
transform-origin: bottom left;
|
|
1834
|
-
transition: scale 120ms ease;
|
|
1835
|
-
width: 2rem;
|
|
1836
2094
|
}
|
|
1837
2095
|
|
|
1838
|
-
[data-slot="comment-
|
|
1839
|
-
|
|
2096
|
+
[data-slot="comment-layer-item"] > * {
|
|
2097
|
+
pointer-events: auto;
|
|
1840
2098
|
}
|
|
1841
2099
|
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
2100
|
+
/* The pin's look is Drop's, in comment-marks.css. Here its bottom-left corner sits on the spot. */
|
|
2101
|
+
[data-slot="comment-pin"] {
|
|
2102
|
+
transform: translateY(-100%);
|
|
1845
2103
|
}
|
|
1846
2104
|
|
|
1847
2105
|
[data-slot="comment-pin"] [data-slot="avatar-stack"] {
|
|
1848
|
-
--vh-avatar-size:
|
|
2106
|
+
--vh-avatar-size: var(--vh-comment-pin-size);
|
|
2107
|
+
border-radius: inherit;
|
|
1849
2108
|
}
|
|
1850
2109
|
|
|
2110
|
+
/* Initials sit on the pin's own color, so they show without the app's theme colors. */
|
|
1851
2111
|
[data-slot="comment-pin"] [data-slot="avatar-stack-item"] {
|
|
2112
|
+
background: none;
|
|
1852
2113
|
border-radius: inherit;
|
|
1853
2114
|
box-shadow: none;
|
|
2115
|
+
color: inherit;
|
|
2116
|
+
font-size: inherit;
|
|
2117
|
+
font-weight: inherit;
|
|
1854
2118
|
}
|
|
1855
2119
|
|
|
1856
2120
|
[data-slot="comment-pin-number"] {
|
|
1857
|
-
background: var(--vh-
|
|
2121
|
+
background: var(--vh-highlighted);
|
|
1858
2122
|
border-radius: 9999px;
|
|
1859
|
-
color: var(--vh-
|
|
2123
|
+
color: var(--vh-inverted);
|
|
1860
2124
|
font-size: 0.625rem;
|
|
1861
2125
|
font-weight: 600;
|
|
1862
2126
|
line-height: 1;
|
|
@@ -1868,35 +2132,27 @@
|
|
|
1868
2132
|
top: -0.4rem;
|
|
1869
2133
|
}
|
|
1870
2134
|
|
|
1871
|
-
|
|
1872
|
-
filter: grayscale(1);
|
|
1873
|
-
opacity: 0.6;
|
|
1874
|
-
}
|
|
1875
|
-
|
|
1876
|
-
[data-slot="comment-pin"][data-draft="true"] {
|
|
1877
|
-
outline: 2px dashed var(--vh-ui-primary);
|
|
1878
|
-
outline-offset: 2px;
|
|
1879
|
-
}
|
|
1880
|
-
|
|
2135
|
+
/* Floating surfaces take the layered shadow of the theme, which draws their hairline too. Without the theme, the hairline stays. */
|
|
1881
2136
|
[data-slot="comment-layer-popover"] {
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
border-radius: calc(var(--vh-
|
|
1885
|
-
box-shadow:
|
|
1886
|
-
color: var(--vh-
|
|
2137
|
+
--vh-comment-card-width: 22.5rem;
|
|
2138
|
+
background: var(--vh-bg);
|
|
2139
|
+
border-radius: calc(var(--vh-radius) * 1.5);
|
|
2140
|
+
box-shadow: var(--vh-shadow-floating, 0 0 0 1px var(--vh-border));
|
|
2141
|
+
color: var(--vh-text);
|
|
1887
2142
|
font-size: 0.875rem;
|
|
1888
2143
|
left: 0.5rem;
|
|
1889
|
-
max-height: min(32rem, calc(100dvh - 2rem));
|
|
1890
2144
|
max-width: calc(100vw - 1rem);
|
|
1891
|
-
|
|
2145
|
+
/* The messages scroll inside the thread, so the mention menu of a box can open past the card's edge. */
|
|
2146
|
+
overflow: visible;
|
|
1892
2147
|
position: absolute;
|
|
1893
2148
|
top: 0.5rem;
|
|
1894
|
-
width:
|
|
2149
|
+
width: var(--vh-comment-card-width);
|
|
1895
2150
|
}
|
|
1896
2151
|
|
|
2152
|
+
/* `--vh-comment-x` is the x of the spot on the screen. On a narrow screen the card moves so that it stays on screen. */
|
|
1897
2153
|
[data-slot="comment-layer-item"][data-flip-x="true"] > [data-slot="comment-layer-popover"] {
|
|
1898
2154
|
left: auto;
|
|
1899
|
-
right: 0.5rem;
|
|
2155
|
+
right: clamp(calc(var(--vh-comment-x, 0px) + 0.5rem - 100vw), 0.5rem, calc(var(--vh-comment-x, 100vw) - min(var(--vh-comment-card-width), 100vw - 1rem) - 0.5rem));
|
|
1900
2156
|
}
|
|
1901
2157
|
|
|
1902
2158
|
[data-slot="comment-layer-item"][data-flip-y="true"] > [data-slot="comment-layer-popover"] {
|
|
@@ -1904,6 +2160,84 @@
|
|
|
1904
2160
|
top: auto;
|
|
1905
2161
|
}
|
|
1906
2162
|
|
|
2163
|
+
/* An sm thread beside its pin is Drop's card: 340px wide, and its messages fill the card up to its height before they
|
|
2164
|
+
scroll, so the reply box stays in view. The corner nearest the pin is small, so the card points at it. */
|
|
2165
|
+
[data-slot="comment-layer-popover"]:not([data-margin], [data-preview]):has(> [data-slot="comment-thread"][data-size="sm"]) {
|
|
2166
|
+
--vh-comment-card-radius: 1rem;
|
|
2167
|
+
--vh-comment-card-width: 21.25rem;
|
|
2168
|
+
display: flex;
|
|
2169
|
+
flex-direction: column;
|
|
2170
|
+
max-height: min(28rem, 60dvh);
|
|
2171
|
+
|
|
2172
|
+
& > [data-slot="comment-thread"] {
|
|
2173
|
+
flex: 1 1 auto;
|
|
2174
|
+
min-height: 0;
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
& [data-slot="comment-thread-messages"] {
|
|
2178
|
+
flex: 1 1 auto;
|
|
2179
|
+
max-height: none;
|
|
2180
|
+
min-height: 0;
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
[data-slot="comment-layer-item"] > [data-slot="comment-layer-popover"]:not([data-margin], [data-floating], [data-preview]):has(> [data-slot="comment-thread"][data-size="sm"]) {
|
|
2185
|
+
border-radius: 0.375rem var(--vh-comment-card-radius) var(--vh-comment-card-radius);
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
[data-slot="comment-layer-item"][data-flip-x="true"] > [data-slot="comment-layer-popover"]:not([data-margin], [data-floating], [data-preview]):has(> [data-slot="comment-thread"][data-size="sm"]) {
|
|
2189
|
+
border-radius: var(--vh-comment-card-radius) 0.375rem var(--vh-comment-card-radius) var(--vh-comment-card-radius);
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
[data-slot="comment-layer-item"][data-flip-y="true"] > [data-slot="comment-layer-popover"]:not([data-margin], [data-floating], [data-preview]):has(> [data-slot="comment-thread"][data-size="sm"]) {
|
|
2193
|
+
border-radius: var(--vh-comment-card-radius) var(--vh-comment-card-radius) var(--vh-comment-card-radius) 0.375rem;
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
[data-slot="comment-layer-item"][data-flip-x="true"][data-flip-y="true"] > [data-slot="comment-layer-popover"]:not([data-margin], [data-floating], [data-preview]):has(> [data-slot="comment-thread"][data-size="sm"]) {
|
|
2197
|
+
border-radius: var(--vh-comment-card-radius) var(--vh-comment-card-radius) 0.375rem;
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
/* With CSS anchor positioning, the browser puts a thread's card and its preview on the side of the spot that has
|
|
2201
|
+
room for their real size: under it to the right, then to the left, then above the pin, then under or above it,
|
|
2202
|
+
moved inside the screen. Without it, `data-flip-x` and `data-flip-y` guess the side from the card's usual size.
|
|
2203
|
+
The box of a new comment keeps its own placement, because its corners point at the pin. The `@position-try`
|
|
2204
|
+
rules stay outside `@supports`, where Firefox ignores them. */
|
|
2205
|
+
@position-try --vh-comment-above {
|
|
2206
|
+
margin: 0 0 2.5rem 0.5rem;
|
|
2207
|
+
position-area: top right;
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
@position-try --vh-comment-above-left {
|
|
2211
|
+
margin: 0 0.5rem 2.5rem 0;
|
|
2212
|
+
position-area: top left;
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
@position-try --vh-comment-below-inside {
|
|
2216
|
+
margin: 0.5rem 0.5rem 0;
|
|
2217
|
+
position-area: bottom span-all;
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
@position-try --vh-comment-above-inside {
|
|
2221
|
+
margin: 0 0.5rem 2.5rem;
|
|
2222
|
+
position-area: top span-all;
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
@supports (anchor-name: --a) {
|
|
2226
|
+
[data-slot="comment-layer-item"] {
|
|
2227
|
+
anchor-name: --vh-comment-spot;
|
|
2228
|
+
anchor-scope: --vh-comment-spot;
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
[data-slot="comment-layer-item"]:not([data-draft]) > [data-slot="comment-layer-popover"]:not([data-margin], [data-floating]) {
|
|
2232
|
+
inset: auto;
|
|
2233
|
+
margin: 0.5rem 0 0 0.5rem;
|
|
2234
|
+
position: fixed;
|
|
2235
|
+
position-anchor: --vh-comment-spot;
|
|
2236
|
+
position-area: bottom right;
|
|
2237
|
+
position-try-fallbacks: flip-inline, --vh-comment-above, --vh-comment-above-left, --vh-comment-below-inside, --vh-comment-above-inside;
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
|
|
1907
2241
|
[data-slot="comment-layer-popover"][data-preview="true"] {
|
|
1908
2242
|
pointer-events: none;
|
|
1909
2243
|
width: 18rem;
|
|
@@ -1917,6 +2251,61 @@
|
|
|
1917
2251
|
top: auto;
|
|
1918
2252
|
}
|
|
1919
2253
|
|
|
2254
|
+
/* A new comment is one line beside its pin, as in Drop: no card around a field, a hairline and a soft shadow instead
|
|
2255
|
+
of a border, and the corner nearest the pin kept small so the bubble points at it. The 1.4375rem radius is the send
|
|
2256
|
+
button's 1rem plus the 0.4375rem between it and the edge, so a one-line bubble is a capsule. It pops in from that
|
|
2257
|
+
corner. The bubble is the field's frame (`frame="none"`), so its hairline grows firmer while the field has the focus. */
|
|
2258
|
+
[data-slot="comment-layer-item"][data-draft="true"] > [data-slot="comment-layer-popover"] {
|
|
2259
|
+
--vh-bubble-edge: color-mix(in oklab, var(--vh-highlighted) 8%, transparent);
|
|
2260
|
+
--vh-bubble-radius: 1.4375rem;
|
|
2261
|
+
animation: vh-comment-bubble-in 150ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
2262
|
+
border: 0;
|
|
2263
|
+
border-radius: 0.375rem var(--vh-bubble-radius) var(--vh-bubble-radius);
|
|
2264
|
+
box-shadow:
|
|
2265
|
+
0 0 0 1px var(--vh-bubble-edge),
|
|
2266
|
+
0 2px 4px color-mix(in oklab, var(--vh-highlighted) 6%, transparent),
|
|
2267
|
+
0 10px 24px -6px color-mix(in oklab, var(--vh-highlighted) 18%, transparent);
|
|
2268
|
+
transform-origin: top left;
|
|
2269
|
+
width: 18rem;
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
/* The sm box has 28px buttons, so its bubble has 18px corners, as Drop's. */
|
|
2273
|
+
[data-slot="comment-layer-item"][data-draft="true"] > [data-slot="comment-layer-popover"]:has(> [data-slot="comment-composer"][data-size="sm"]) {
|
|
2274
|
+
--vh-bubble-radius: 1.125rem;
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
[data-slot="comment-layer-popover"]:has([data-slot="comment-composer"][data-frame="none"] [data-slot="prompt-input-textarea"]:focus-visible) {
|
|
2278
|
+
--vh-bubble-edge: color-mix(in oklab, var(--vh-highlighted) 22%, transparent);
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
[data-slot="comment-layer-item"][data-draft="true"][data-flip-x="true"] > [data-slot="comment-layer-popover"] {
|
|
2282
|
+
border-radius: var(--vh-bubble-radius) 0.375rem var(--vh-bubble-radius) var(--vh-bubble-radius);
|
|
2283
|
+
transform-origin: top right;
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
[data-slot="comment-layer-item"][data-draft="true"][data-flip-y="true"] > [data-slot="comment-layer-popover"] {
|
|
2287
|
+
border-radius: var(--vh-bubble-radius) var(--vh-bubble-radius) var(--vh-bubble-radius) 0.375rem;
|
|
2288
|
+
transform-origin: bottom left;
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
[data-slot="comment-layer-item"][data-draft="true"][data-flip-x="true"][data-flip-y="true"] > [data-slot="comment-layer-popover"] {
|
|
2292
|
+
border-radius: var(--vh-bubble-radius) var(--vh-bubble-radius) 0.375rem;
|
|
2293
|
+
transform-origin: bottom right;
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
@keyframes vh-comment-bubble-in {
|
|
2297
|
+
from {
|
|
2298
|
+
opacity: 0;
|
|
2299
|
+
scale: 0.96;
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2304
|
+
[data-slot="comment-layer-item"][data-draft="true"] > [data-slot="comment-layer-popover"] {
|
|
2305
|
+
animation: none;
|
|
2306
|
+
}
|
|
2307
|
+
}
|
|
2308
|
+
|
|
1920
2309
|
[data-slot="comment-composer"] {
|
|
1921
2310
|
align-items: flex-start;
|
|
1922
2311
|
display: flex;
|
|
@@ -1966,8 +2355,8 @@
|
|
|
1966
2355
|
@keyframes vh-comment-flash {
|
|
1967
2356
|
0%,
|
|
1968
2357
|
60% {
|
|
1969
|
-
border-color: var(--vh-
|
|
1970
|
-
box-shadow: 0 0 0 3px color-mix(in oklab, var(--vh-
|
|
2358
|
+
border-color: var(--vh-error);
|
|
2359
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--vh-error) 25%, transparent);
|
|
1971
2360
|
}
|
|
1972
2361
|
}
|
|
1973
2362
|
|
|
@@ -1975,17 +2364,12 @@
|
|
|
1975
2364
|
[data-slot="comment-composer"][data-shake="shake"] {
|
|
1976
2365
|
animation: none;
|
|
1977
2366
|
}
|
|
1978
|
-
|
|
1979
|
-
[data-slot="comment-pin"] {
|
|
1980
|
-
transition: none;
|
|
1981
|
-
}
|
|
1982
2367
|
}
|
|
1983
2368
|
|
|
1984
2369
|
[data-slot="comment-composer-mentions"] {
|
|
1985
|
-
background: var(--vh-
|
|
1986
|
-
border:
|
|
1987
|
-
|
|
1988
|
-
box-shadow: 0 4px 16px rgb(0 0 0 / 0.12);
|
|
2370
|
+
background: var(--vh-bg);
|
|
2371
|
+
border-radius: calc(var(--vh-radius) * 1.5);
|
|
2372
|
+
box-shadow: var(--vh-shadow-floating, 0 0 0 1px var(--vh-border));
|
|
1989
2373
|
left: 0;
|
|
1990
2374
|
list-style: none;
|
|
1991
2375
|
margin: 0.25rem 0 0;
|
|
@@ -1997,21 +2381,39 @@
|
|
|
1997
2381
|
}
|
|
1998
2382
|
|
|
1999
2383
|
[data-slot="comment-composer-mention"] {
|
|
2000
|
-
border-radius: calc(var(--vh-
|
|
2384
|
+
border-radius: calc(var(--vh-radius) * 0.75);
|
|
2001
2385
|
cursor: pointer;
|
|
2002
2386
|
padding: 0.375rem 0.5rem;
|
|
2003
2387
|
}
|
|
2004
2388
|
|
|
2005
2389
|
[data-slot="comment-composer-mention"][aria-selected="true"] {
|
|
2006
|
-
background: var(--vh-
|
|
2390
|
+
background: var(--vh-bg-accented);
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2393
|
+
/* The line of a mention menu that has no one to show. It is not an option, so it has no hover or pointer. */
|
|
2394
|
+
[data-slot="comment-composer-mention-empty"] {
|
|
2395
|
+
color: var(--vh-muted);
|
|
2396
|
+
margin: 0;
|
|
2397
|
+
padding: 0.375rem 0.5rem;
|
|
2007
2398
|
}
|
|
2008
2399
|
|
|
2009
2400
|
[data-slot="comment-composer-error"] {
|
|
2010
|
-
color: var(--vh-
|
|
2401
|
+
color: var(--vh-error);
|
|
2011
2402
|
font-size: 0.75rem;
|
|
2012
2403
|
margin: 0.375rem 0 0;
|
|
2013
2404
|
}
|
|
2014
2405
|
|
|
2406
|
+
/* "Press Esc again to discard." after an Esc in a box with text. It takes no room while it is empty. */
|
|
2407
|
+
[data-slot="comment-composer-status"] {
|
|
2408
|
+
color: var(--vh-muted);
|
|
2409
|
+
font-size: 0.75rem;
|
|
2410
|
+
margin: 0;
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2413
|
+
[data-slot="comment-composer-status"]:not(:empty) {
|
|
2414
|
+
padding: 0.25rem 0.625rem 0.125rem;
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2015
2417
|
[data-slot="comment-thread"] {
|
|
2016
2418
|
display: flex;
|
|
2017
2419
|
flex-direction: column;
|
|
@@ -2019,14 +2421,23 @@
|
|
|
2019
2421
|
|
|
2020
2422
|
[data-slot="comment-thread-header"] {
|
|
2021
2423
|
align-items: center;
|
|
2022
|
-
border-block-end: 1px solid var(--vh-
|
|
2424
|
+
border-block-end: 1px solid var(--vh-border);
|
|
2023
2425
|
display: flex;
|
|
2024
2426
|
gap: 0.25rem;
|
|
2025
2427
|
padding: 0.375rem 0.5rem 0.375rem 0.75rem;
|
|
2026
2428
|
}
|
|
2027
2429
|
|
|
2430
|
+
/* The header and message buttons are 24px for a mouse. A touch screen gets 44px targets; the icons keep their size. */
|
|
2431
|
+
@media (pointer: coarse) {
|
|
2432
|
+
:is([data-slot="comment-thread-header"], [data-slot="comment-reply-actions"]) > :is(button, a) {
|
|
2433
|
+
justify-content: center;
|
|
2434
|
+
min-height: 2.75rem;
|
|
2435
|
+
min-width: 2.75rem;
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2028
2439
|
[data-slot="comment-thread-title"] {
|
|
2029
|
-
color: var(--vh-
|
|
2440
|
+
color: var(--vh-highlighted);
|
|
2030
2441
|
font-weight: 600;
|
|
2031
2442
|
}
|
|
2032
2443
|
|
|
@@ -2042,14 +2453,14 @@
|
|
|
2042
2453
|
}
|
|
2043
2454
|
|
|
2044
2455
|
[data-slot="comment-thread-quote"] {
|
|
2045
|
-
border-inline-start: 2px solid var(--vh-
|
|
2046
|
-
color: var(--vh-
|
|
2456
|
+
border-inline-start: 2px solid var(--vh-border);
|
|
2457
|
+
color: var(--vh-muted);
|
|
2047
2458
|
margin: 0.75rem 0.75rem 0;
|
|
2048
2459
|
padding-inline-start: 0.625rem;
|
|
2049
2460
|
}
|
|
2050
2461
|
|
|
2051
2462
|
:is([data-slot="comment-thread-detached"], [data-slot="comment-thread-count"]) {
|
|
2052
|
-
color: var(--vh-
|
|
2463
|
+
color: var(--vh-muted);
|
|
2053
2464
|
font-size: 0.75rem;
|
|
2054
2465
|
margin: 0.5rem 0.75rem 0;
|
|
2055
2466
|
}
|
|
@@ -2065,20 +2476,30 @@
|
|
|
2065
2476
|
min-width: 0;
|
|
2066
2477
|
}
|
|
2067
2478
|
|
|
2479
|
+
/* The avatar, the name, and the time share one row, as in the list and the composer. The text sits under the name. */
|
|
2068
2480
|
[data-slot="comment-reply-header"] {
|
|
2069
|
-
align-items:
|
|
2481
|
+
align-items: center;
|
|
2070
2482
|
display: flex;
|
|
2071
2483
|
flex-wrap: wrap;
|
|
2072
2484
|
gap: 0.375rem;
|
|
2485
|
+
min-height: 1.5rem;
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
[data-slot="comment-reply-header"] > [data-slot="avatar-stack"] {
|
|
2489
|
+
margin-inline-end: 0.125rem;
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
[data-slot="comment-reply-content"] > :not([data-slot="comment-reply-header"]) {
|
|
2493
|
+
margin-inline-start: 2rem;
|
|
2073
2494
|
}
|
|
2074
2495
|
|
|
2075
2496
|
[data-slot="comment-reply-author"] {
|
|
2076
|
-
color: var(--vh-
|
|
2497
|
+
color: var(--vh-highlighted);
|
|
2077
2498
|
font-weight: 500;
|
|
2078
2499
|
}
|
|
2079
2500
|
|
|
2080
|
-
:is([data-slot="comment-reply-time"], [data-slot="comment-reply-edited"]
|
|
2081
|
-
color: var(--vh-
|
|
2501
|
+
:is([data-slot="comment-reply-time"], [data-slot="comment-reply-edited"]) {
|
|
2502
|
+
color: var(--vh-muted);
|
|
2082
2503
|
font-size: 0.75rem;
|
|
2083
2504
|
}
|
|
2084
2505
|
|
|
@@ -2116,11 +2537,10 @@
|
|
|
2116
2537
|
|
|
2117
2538
|
[data-slot="comment-toolbar"] {
|
|
2118
2539
|
align-items: center;
|
|
2119
|
-
background: var(--vh-
|
|
2120
|
-
border: 1px solid var(--vh-ui-border);
|
|
2540
|
+
background: var(--vh-bg);
|
|
2121
2541
|
border-radius: 9999px;
|
|
2122
2542
|
bottom: 1rem;
|
|
2123
|
-
box-shadow:
|
|
2543
|
+
box-shadow: var(--vh-shadow-floating, 0 0 0 1px var(--vh-border));
|
|
2124
2544
|
display: flex;
|
|
2125
2545
|
gap: 0.25rem;
|
|
2126
2546
|
left: 50%;
|
|
@@ -2136,10 +2556,10 @@
|
|
|
2136
2556
|
}
|
|
2137
2557
|
|
|
2138
2558
|
[data-slot="comment-list"] {
|
|
2139
|
-
background: var(--vh-
|
|
2140
|
-
border-inline-start: 1px solid var(--vh-
|
|
2559
|
+
background: var(--vh-bg);
|
|
2560
|
+
border-inline-start: 1px solid var(--vh-border);
|
|
2141
2561
|
bottom: 0;
|
|
2142
|
-
color: var(--vh-
|
|
2562
|
+
color: var(--vh-text);
|
|
2143
2563
|
display: flex;
|
|
2144
2564
|
flex-direction: column;
|
|
2145
2565
|
font-size: 0.875rem;
|
|
@@ -2152,7 +2572,7 @@
|
|
|
2152
2572
|
}
|
|
2153
2573
|
|
|
2154
2574
|
[data-slot="comment-list-header"] {
|
|
2155
|
-
border-block-end: 1px solid var(--vh-
|
|
2575
|
+
border-block-end: 1px solid var(--vh-border);
|
|
2156
2576
|
display: flex;
|
|
2157
2577
|
flex-direction: column;
|
|
2158
2578
|
gap: 0.5rem;
|
|
@@ -2165,7 +2585,7 @@
|
|
|
2165
2585
|
}
|
|
2166
2586
|
|
|
2167
2587
|
[data-slot="comment-list-empty"] {
|
|
2168
|
-
color: var(--vh-
|
|
2588
|
+
color: var(--vh-muted);
|
|
2169
2589
|
margin: 0;
|
|
2170
2590
|
padding: 1rem 0.75rem;
|
|
2171
2591
|
}
|
|
@@ -2178,7 +2598,7 @@
|
|
|
2178
2598
|
|
|
2179
2599
|
[data-slot="comment-list-item"] {
|
|
2180
2600
|
align-items: flex-start;
|
|
2181
|
-
border-block-end: 1px solid var(--vh-
|
|
2601
|
+
border-block-end: 1px solid var(--vh-border);
|
|
2182
2602
|
color: inherit;
|
|
2183
2603
|
display: flex;
|
|
2184
2604
|
gap: 0.5rem;
|
|
@@ -2186,8 +2606,8 @@
|
|
|
2186
2606
|
text-decoration: none;
|
|
2187
2607
|
}
|
|
2188
2608
|
|
|
2189
|
-
[data-slot="comment-list-item"]:is(:hover,
|
|
2190
|
-
background: var(--vh-
|
|
2609
|
+
[data-slot="comment-list-item"]:is(:hover, [aria-current="true"]) {
|
|
2610
|
+
background: var(--vh-bg-elevated);
|
|
2191
2611
|
}
|
|
2192
2612
|
|
|
2193
2613
|
[data-slot="comment-list-item"][data-status="resolved"] {
|
|
@@ -2195,7 +2615,7 @@
|
|
|
2195
2615
|
}
|
|
2196
2616
|
|
|
2197
2617
|
[data-slot="comment-list-number"] {
|
|
2198
|
-
color: var(--vh-
|
|
2618
|
+
color: var(--vh-muted);
|
|
2199
2619
|
flex: none;
|
|
2200
2620
|
font-size: 0.75rem;
|
|
2201
2621
|
min-width: 1.25rem;
|
|
@@ -2219,7 +2639,7 @@
|
|
|
2219
2639
|
}
|
|
2220
2640
|
|
|
2221
2641
|
[data-slot="comment-list-meta"] {
|
|
2222
|
-
color: var(--vh-
|
|
2642
|
+
color: var(--vh-muted);
|
|
2223
2643
|
display: flex;
|
|
2224
2644
|
flex-wrap: wrap;
|
|
2225
2645
|
font-size: 0.75rem;
|
|
@@ -2228,11 +2648,6 @@
|
|
|
2228
2648
|
}
|
|
2229
2649
|
|
|
2230
2650
|
@layer components {
|
|
2231
|
-
[data-slot="comment-thread"]:focus-visible {
|
|
2232
|
-
outline: 2px solid var(--vh-ui-ring);
|
|
2233
|
-
outline-offset: -2px;
|
|
2234
|
-
}
|
|
2235
|
-
|
|
2236
2651
|
[data-slot="comment-reply-confirm"] {
|
|
2237
2652
|
align-items: center;
|
|
2238
2653
|
display: flex;
|
|
@@ -2247,416 +2662,1872 @@
|
|
|
2247
2662
|
}
|
|
2248
2663
|
|
|
2249
2664
|
[data-slot="comment-reply-error"] {
|
|
2250
|
-
color: var(--vh-
|
|
2665
|
+
color: var(--vh-error);
|
|
2251
2666
|
font-size: 0.75rem;
|
|
2252
2667
|
margin: 0.375rem 0 0;
|
|
2253
2668
|
}
|
|
2254
|
-
}
|
|
2255
2669
|
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
display: grid;
|
|
2263
|
-
grid-template-rows: minmax(0, 1fr);
|
|
2264
|
-
height: 100%;
|
|
2265
|
-
min-height: 0;
|
|
2266
|
-
min-width: 0;
|
|
2267
|
-
overflow: hidden;
|
|
2268
|
-
position: relative;
|
|
2269
|
-
width: 100%;
|
|
2670
|
+
[data-slot="comment-mention"] {
|
|
2671
|
+
background: var(--vh-comment-mention-bg, color-mix(in oklab, var(--vh-bg-accented) 80%, transparent));
|
|
2672
|
+
border-radius: calc(var(--vh-radius) * 0.5);
|
|
2673
|
+
color: var(--vh-highlighted);
|
|
2674
|
+
font-weight: 500;
|
|
2675
|
+
padding: 0 0.125rem;
|
|
2270
2676
|
}
|
|
2271
2677
|
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
2275
|
-
height: 100%;
|
|
2276
|
-
min-height: 0;
|
|
2277
|
-
min-width: 0;
|
|
2278
|
-
overflow: hidden;
|
|
2279
|
-
width: 100%;
|
|
2678
|
+
[data-slot="comment-mention"][data-self="true"] {
|
|
2679
|
+
background: var(--vh-comment-mention-self-bg, color-mix(in oklab, var(--vh-warning) 25%, transparent));
|
|
2280
2680
|
}
|
|
2281
2681
|
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
padding: 0.75rem 1rem;
|
|
2682
|
+
[data-slot="comment-composer-extra"] {
|
|
2683
|
+
margin-block-end: 0.375rem;
|
|
2285
2684
|
}
|
|
2286
2685
|
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2686
|
+
[data-slot="comment-composer-mention"] {
|
|
2687
|
+
align-items: center;
|
|
2688
|
+
display: flex;
|
|
2689
|
+
gap: 0.5rem;
|
|
2291
2690
|
}
|
|
2292
2691
|
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
min-height: 0;
|
|
2692
|
+
[data-slot="comment-composer-mention"] [data-slot="avatar-stack"] {
|
|
2693
|
+
--vh-avatar-size: 1.25rem;
|
|
2296
2694
|
}
|
|
2297
2695
|
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
overflow-y: auto;
|
|
2302
|
-
overscroll-behavior-y: contain;
|
|
2303
|
-
scrollbar-gutter: stable;
|
|
2696
|
+
[data-slot="comment-composer"][data-dragging="true"] [data-slot="prompt-input-group"] {
|
|
2697
|
+
border-color: var(--vh-primary);
|
|
2698
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--vh-primary) 20%, transparent);
|
|
2304
2699
|
}
|
|
2305
2700
|
|
|
2306
|
-
.
|
|
2307
|
-
|
|
2308
|
-
flex-
|
|
2309
|
-
gap:
|
|
2310
|
-
|
|
2311
|
-
max-width: 48rem;
|
|
2312
|
-
min-height: 100%;
|
|
2313
|
-
padding: var(--vh-chat-content-padding, 1.5rem 1rem 6rem);
|
|
2701
|
+
/* The files in a comment box wrap, as in Drop, so the Remove badge on a picture's corner is not cut off. */
|
|
2702
|
+
[data-slot="comment-composer"] [data-slot="prompt-input-attachments"] {
|
|
2703
|
+
flex-wrap: wrap;
|
|
2704
|
+
gap: 0.375rem;
|
|
2705
|
+
overflow: visible;
|
|
2314
2706
|
}
|
|
2315
2707
|
|
|
2316
|
-
.
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2708
|
+
/* A picture in a comment box is a 40px square, as in Drop: no name, and the Remove button on its top right corner.
|
|
2709
|
+
The name stays for a screen reader. Other files keep their chip with the name. */
|
|
2710
|
+
[data-slot="comment-composer"] [data-slot="attachment"]:has(> [data-slot="attachment-media"][data-variant="image"]) {
|
|
2711
|
+
background: none;
|
|
2712
|
+
border: 0;
|
|
2713
|
+
border-radius: calc(var(--vh-radius) * 0.75);
|
|
2714
|
+
min-width: 0;
|
|
2715
|
+
padding: 0;
|
|
2716
|
+
|
|
2717
|
+
& > [data-slot="attachment-media"] {
|
|
2718
|
+
border-radius: inherit;
|
|
2719
|
+
outline: 1px solid color-mix(in oklab, var(--vh-highlighted) 10%, transparent);
|
|
2720
|
+
outline-offset: -1px;
|
|
2721
|
+
width: 2.5rem;
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
& > [data-slot="attachment-content"] {
|
|
2725
|
+
clip-path: inset(50%);
|
|
2726
|
+
height: 1px;
|
|
2727
|
+
overflow: hidden;
|
|
2728
|
+
position: absolute;
|
|
2729
|
+
white-space: nowrap;
|
|
2730
|
+
width: 1px;
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
& > [data-slot="attachment-actions"] {
|
|
2734
|
+
position: absolute;
|
|
2735
|
+
right: -0.375rem;
|
|
2736
|
+
top: -0.375rem;
|
|
2737
|
+
}
|
|
2323
2738
|
}
|
|
2324
2739
|
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
content: "";
|
|
2329
|
-
inset: 0;
|
|
2330
|
-
pointer-events: none;
|
|
2331
|
-
position: absolute;
|
|
2740
|
+
[data-slot="comment-reply-attachments"] {
|
|
2741
|
+
flex-wrap: wrap;
|
|
2742
|
+
margin-top: 0.5rem;
|
|
2332
2743
|
}
|
|
2333
2744
|
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
width: 100%;
|
|
2745
|
+
/* With groups, the groups scroll together, and each list is as tall as its rows. */
|
|
2746
|
+
[data-slot="comment-panel-groups"] {
|
|
2747
|
+
flex: 1;
|
|
2748
|
+
min-height: 0;
|
|
2749
|
+
overflow-y: auto;
|
|
2340
2750
|
}
|
|
2341
2751
|
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
--comark-background: var(--vh-ui-bg);
|
|
2346
|
-
--comark-border: var(--vh-ui-border);
|
|
2347
|
-
--comark-font: inherit;
|
|
2348
|
-
--comark-foreground: var(--vh-ui-text);
|
|
2349
|
-
--comark-muted: var(--vh-ui-muted);
|
|
2350
|
-
--comark-ring: var(--vh-ui-ring);
|
|
2752
|
+
[data-slot="comment-panel-groups"] [data-slot="comment-panel-items"] {
|
|
2753
|
+
flex: none;
|
|
2754
|
+
overflow: visible;
|
|
2351
2755
|
}
|
|
2352
2756
|
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
--vh-
|
|
2356
|
-
font-size: 0.
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2757
|
+
[data-slot="comment-panel-group-header"] {
|
|
2758
|
+
border-block-start: 1px solid var(--vh-border);
|
|
2759
|
+
color: var(--vh-muted);
|
|
2760
|
+
font-size: 0.75rem;
|
|
2761
|
+
font-weight: 500;
|
|
2762
|
+
margin: 0;
|
|
2763
|
+
padding: 0.75rem 0.75rem 0.25rem;
|
|
2360
2764
|
}
|
|
2361
2765
|
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2766
|
+
[data-slot="comment-reply-images"] {
|
|
2767
|
+
display: flex;
|
|
2768
|
+
flex-wrap: wrap;
|
|
2769
|
+
gap: 0.5rem;
|
|
2770
|
+
margin-top: 0.5rem;
|
|
2771
|
+
|
|
2772
|
+
/* A comment's image keeps its own shape, up to 10rem tall, so a wide screenshot shows whole instead of a 4:3 crop. */
|
|
2773
|
+
& .vh-image-preview {
|
|
2774
|
+
aspect-ratio: auto;
|
|
2775
|
+
max-height: 10rem;
|
|
2776
|
+
max-width: 100%;
|
|
2777
|
+
width: auto;
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
& .vh-image-preview img {
|
|
2781
|
+
height: auto;
|
|
2782
|
+
max-height: 10rem;
|
|
2783
|
+
max-width: 100%;
|
|
2784
|
+
object-fit: contain;
|
|
2785
|
+
width: auto;
|
|
2786
|
+
}
|
|
2787
|
+
}
|
|
2788
|
+
|
|
2789
|
+
[data-slot="comment-thread-actions"] {
|
|
2371
2790
|
align-items: center;
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
overflow: hidden;
|
|
2375
|
-
padding: 0;
|
|
2376
|
-
vertical-align: top;
|
|
2377
|
-
width: 13rem;
|
|
2791
|
+
display: flex;
|
|
2792
|
+
gap: 0.25rem;
|
|
2378
2793
|
}
|
|
2379
2794
|
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
outline-offset: 3px;
|
|
2795
|
+
[data-slot="comment-thread-after"] {
|
|
2796
|
+
padding: 0 0.75rem 0.75rem;
|
|
2383
2797
|
}
|
|
2384
2798
|
|
|
2385
|
-
.
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2799
|
+
/* CommentPanel: the list, one thread, and the page box in one surface. */
|
|
2800
|
+
[data-slot="comment-panel"] {
|
|
2801
|
+
background: var(--vh-bg);
|
|
2802
|
+
color: var(--vh-text);
|
|
2803
|
+
display: flex;
|
|
2804
|
+
flex-direction: column;
|
|
2805
|
+
font-size: 0.875rem;
|
|
2806
|
+
min-height: 0;
|
|
2390
2807
|
}
|
|
2391
2808
|
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
border: 0;
|
|
2809
|
+
[data-slot="comment-panel"][data-variant="docked"] {
|
|
2810
|
+
border-inline-start: 1px solid var(--vh-border);
|
|
2395
2811
|
height: 100%;
|
|
2396
|
-
width: 100%;
|
|
2397
2812
|
}
|
|
2398
2813
|
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2814
|
+
[data-slot="comment-panel"][data-variant="floating"] {
|
|
2815
|
+
border-radius: calc(var(--vh-radius) * 1.5);
|
|
2816
|
+
box-shadow: var(--vh-shadow-floating, 0 0 0 1px var(--vh-border));
|
|
2817
|
+
max-height: min(36rem, calc(100dvh - 2rem));
|
|
2818
|
+
overflow: hidden;
|
|
2819
|
+
width: min(22.5rem, calc(100vw - 1rem));
|
|
2403
2820
|
}
|
|
2404
2821
|
|
|
2405
|
-
|
|
2822
|
+
[data-slot="comment-panel-header"] {
|
|
2406
2823
|
align-items: center;
|
|
2407
|
-
border:
|
|
2408
|
-
color: white;
|
|
2824
|
+
border-block-end: 1px solid var(--vh-border);
|
|
2409
2825
|
display: flex;
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
padding
|
|
2826
|
+
gap: 0.5rem;
|
|
2827
|
+
justify-content: space-between;
|
|
2828
|
+
padding: 0.5rem 0.5rem 0.5rem 0.75rem;
|
|
2413
2829
|
}
|
|
2414
2830
|
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
font-size:
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
text-overflow: ellipsis;
|
|
2421
|
-
white-space: nowrap;
|
|
2831
|
+
[data-slot="comment-panel-title"] {
|
|
2832
|
+
color: var(--vh-highlighted);
|
|
2833
|
+
font-size: inherit;
|
|
2834
|
+
font-weight: 600;
|
|
2835
|
+
margin: 0;
|
|
2422
2836
|
}
|
|
2423
2837
|
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
max-width: 92vw;
|
|
2429
|
-
object-fit: contain;
|
|
2838
|
+
[data-slot="comment-panel-filters"] {
|
|
2839
|
+
display: flex;
|
|
2840
|
+
flex: 1;
|
|
2841
|
+
gap: 0.25rem;
|
|
2430
2842
|
}
|
|
2431
2843
|
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
max-width: 24rem;
|
|
2438
|
-
padding: 2rem;
|
|
2844
|
+
[data-slot="comment-panel-actions"] {
|
|
2845
|
+
align-items: center;
|
|
2846
|
+
display: flex;
|
|
2847
|
+
gap: 0.25rem;
|
|
2848
|
+
margin-block: -0.25rem;
|
|
2439
2849
|
}
|
|
2440
2850
|
|
|
2441
|
-
[data-slot="
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2851
|
+
[data-slot="comment-panel-items"] {
|
|
2852
|
+
flex: 1;
|
|
2853
|
+
list-style: none;
|
|
2854
|
+
margin: 0;
|
|
2855
|
+
min-height: 0;
|
|
2856
|
+
overflow-y: auto;
|
|
2857
|
+
padding: 0;
|
|
2447
2858
|
}
|
|
2448
2859
|
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
display:
|
|
2457
|
-
|
|
2860
|
+
[data-slot="comment-panel-item"] {
|
|
2861
|
+
align-items: flex-start;
|
|
2862
|
+
background: none;
|
|
2863
|
+
border: 0;
|
|
2864
|
+
border-block-end: 1px solid var(--vh-border);
|
|
2865
|
+
color: inherit;
|
|
2866
|
+
cursor: pointer;
|
|
2867
|
+
display: flex;
|
|
2868
|
+
font: inherit;
|
|
2869
|
+
gap: 0.5rem;
|
|
2870
|
+
padding: 0.625rem 0.75rem;
|
|
2871
|
+
text-align: start;
|
|
2872
|
+
width: 100%;
|
|
2458
2873
|
}
|
|
2459
2874
|
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
.vh-file,
|
|
2463
|
-
.vh-unresolved-file {
|
|
2464
|
-
--diffs-addition-base: var(--vh-ui-success);
|
|
2465
|
-
--diffs-bg: var(--vh-ui-bg);
|
|
2466
|
-
--diffs-bg-addition: color-mix(in oklab, var(--vh-ui-success) 12%, var(--vh-ui-bg));
|
|
2467
|
-
--diffs-bg-addition-emphasis: color-mix(in oklab, var(--vh-ui-success) 22%, var(--vh-ui-bg));
|
|
2468
|
-
--diffs-bg-buffer: var(--vh-ui-bg-muted);
|
|
2469
|
-
--diffs-bg-context: var(--vh-ui-bg);
|
|
2470
|
-
--diffs-bg-context-gutter: color-mix(in oklab, var(--vh-ui-bg-muted) 72%, var(--vh-ui-bg));
|
|
2471
|
-
--diffs-bg-deletion: color-mix(in oklab, var(--vh-ui-error) 12%, var(--vh-ui-bg));
|
|
2472
|
-
--diffs-bg-deletion-emphasis: color-mix(in oklab, var(--vh-ui-error) 22%, var(--vh-ui-bg));
|
|
2473
|
-
--diffs-bg-separator: var(--vh-ui-bg-muted);
|
|
2474
|
-
--diffs-deletion-base: var(--vh-ui-error);
|
|
2475
|
-
--diffs-fg: var(--vh-ui-text);
|
|
2476
|
-
--diffs-fg-conflict-marker: var(--vh-ui-muted);
|
|
2477
|
-
--diffs-fg-number: var(--vh-ui-dimmed);
|
|
2478
|
-
--diffs-font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
|
|
2479
|
-
--diffs-font-size: 0.8125rem;
|
|
2480
|
-
--diffs-header-font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
|
|
2481
|
-
--diffs-modified-base: var(--vh-ui-info);
|
|
2482
|
-
background: var(--vh-ui-bg);
|
|
2483
|
-
color: var(--vh-ui-text);
|
|
2484
|
-
min-height: 4rem;
|
|
2875
|
+
[data-slot="comment-panel-item"]:hover {
|
|
2876
|
+
background: var(--vh-bg-elevated);
|
|
2485
2877
|
}
|
|
2486
2878
|
|
|
2487
|
-
|
|
2488
|
-
|
|
2879
|
+
[data-slot="comment-panel-empty"] {
|
|
2880
|
+
color: var(--vh-muted);
|
|
2881
|
+
flex: 1;
|
|
2882
|
+
margin: 0;
|
|
2883
|
+
padding: 1rem 0.75rem;
|
|
2489
2884
|
}
|
|
2490
2885
|
|
|
2491
|
-
|
|
2492
|
-
|
|
2886
|
+
[data-slot="comment-panel-composer"],
|
|
2887
|
+
[data-slot="comment-thread"] > [data-slot="comment-composer"] {
|
|
2888
|
+
border-block-start: 1px solid var(--vh-border);
|
|
2493
2889
|
}
|
|
2494
2890
|
|
|
2495
|
-
.
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2891
|
+
/* A row box is one line under its card's divider: attach, the text, send. The divider already bounds it, so the field
|
|
2892
|
+
shows its edge only while it has the focus. The 2rem round buttons sit 0.125rem and the border inside that edge, so
|
|
2893
|
+
its corners are concentric with them. */
|
|
2894
|
+
[data-slot="comment-composer"][data-layout="row"] {
|
|
2895
|
+
padding: 0.25rem;
|
|
2896
|
+
|
|
2897
|
+
& [data-slot="prompt-input-group"] {
|
|
2898
|
+
align-items: flex-end;
|
|
2899
|
+
background: transparent;
|
|
2900
|
+
border-color: transparent;
|
|
2901
|
+
border-radius: calc(1rem + 0.125rem + 1px);
|
|
2902
|
+
box-shadow: none;
|
|
2903
|
+
flex-flow: row wrap;
|
|
2904
|
+
gap: 0.25rem;
|
|
2905
|
+
padding: 0.125rem;
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2908
|
+
& [data-slot="prompt-input-attachments"] {
|
|
2909
|
+
flex-basis: 100%;
|
|
2910
|
+
padding: 0.25rem 0.25rem 0;
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
& [data-slot="prompt-input-textarea"] {
|
|
2914
|
+
flex: 1;
|
|
2915
|
+
min-height: 2rem;
|
|
2916
|
+
min-width: 0;
|
|
2917
|
+
order: 1;
|
|
2918
|
+
padding: 0.25rem;
|
|
2919
|
+
width: auto;
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
& [data-slot="prompt-input-toolbar"] {
|
|
2923
|
+
display: contents;
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
& [data-slot="prompt-input-spacer"] {
|
|
2927
|
+
display: none;
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
& [data-slot="prompt-input-toolbar"] > button:last-child {
|
|
2931
|
+
order: 2;
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2934
|
+
/* The buttons are as tall as one line of the field, 2rem, whatever size the button component draws. So the
|
|
2935
|
+
placeholder and the first line sit on the buttons' center line. */
|
|
2936
|
+
& [data-slot="prompt-input-toolbar"] > button {
|
|
2937
|
+
height: 2rem;
|
|
2938
|
+
justify-content: center;
|
|
2939
|
+
min-width: 2rem;
|
|
2940
|
+
}
|
|
2503
2941
|
}
|
|
2504
2942
|
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2943
|
+
/* The sm size, for a thread in a small floating card: 14px text on a 1.5 line, tighter rows, and a shorter box. */
|
|
2944
|
+
[data-slot="comment-thread"][data-size="sm"] {
|
|
2945
|
+
font-size: 0.875rem;
|
|
2946
|
+
line-height: 1.25rem;
|
|
2947
|
+
}
|
|
2948
|
+
|
|
2949
|
+
[data-slot="comment-thread"][data-size="sm"] [data-slot="comment-thread-quote"] {
|
|
2950
|
+
margin-top: 0.5rem;
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
/* The sm reply box is a soft filled field with no divider above it: the card's edge already bounds it, and a line over
|
|
2954
|
+
a field read as two borders. Its border shows only while it has the focus, in theme-focus-ring.css. */
|
|
2955
|
+
[data-slot="comment-thread"][data-size="sm"] > [data-slot="comment-composer"] {
|
|
2956
|
+
border-block-start: 0;
|
|
2957
|
+
|
|
2958
|
+
& [data-slot="prompt-input-group"] {
|
|
2959
|
+
background: var(--vh-bg-elevated);
|
|
2960
|
+
border-color: transparent;
|
|
2961
|
+
box-shadow: none;
|
|
2508
2962
|
}
|
|
2509
2963
|
}
|
|
2510
2964
|
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2965
|
+
[data-slot="comment-reply"][data-size="sm"] {
|
|
2966
|
+
padding: 0.5rem 0.75rem;
|
|
2967
|
+
position: relative;
|
|
2968
|
+
|
|
2969
|
+
/* The 14px name and the 12px time share a baseline. The avatar stays centered on the name's line. */
|
|
2970
|
+
& [data-slot="comment-reply-header"] {
|
|
2971
|
+
align-items: baseline;
|
|
2972
|
+
}
|
|
2973
|
+
|
|
2974
|
+
& [data-slot="comment-reply-header"] > [data-slot="avatar-stack"] {
|
|
2975
|
+
align-self: center;
|
|
2976
|
+
}
|
|
2977
|
+
|
|
2978
|
+
& [data-slot="comment-reply-author"] {
|
|
2979
|
+
font-size: 0.875rem;
|
|
2980
|
+
line-height: 1.5rem;
|
|
2981
|
+
}
|
|
2982
|
+
|
|
2983
|
+
& [data-slot="comment-reply-body"] {
|
|
2984
|
+
--vh-typeset-leading: 1.5;
|
|
2985
|
+
font-size: 0.875rem;
|
|
2986
|
+
}
|
|
2516
2987
|
}
|
|
2517
2988
|
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2989
|
+
/* With a mouse, Edit and Delete show over the end of the name's row on hover, so the text uses the full width of a
|
|
2990
|
+
narrow card. A touch screen always shows them, so they keep their own column there. */
|
|
2991
|
+
@media not (any-pointer: coarse) {
|
|
2992
|
+
[data-slot="comment-reply"][data-size="sm"] [data-slot="comment-reply-actions"] {
|
|
2993
|
+
background: var(--vh-bg);
|
|
2994
|
+
border-radius: var(--vh-radius);
|
|
2995
|
+
position: absolute;
|
|
2996
|
+
right: 0.5rem;
|
|
2997
|
+
top: 0.375rem;
|
|
2998
|
+
}
|
|
2526
2999
|
}
|
|
2527
3000
|
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
min-width: 0;
|
|
2532
|
-
font-size: 0.6875rem;
|
|
2533
|
-
overflow-wrap: anywhere;
|
|
3001
|
+
[data-slot="comment-composer"][data-size="sm"] [data-slot="prompt-input-textarea"] {
|
|
3002
|
+
min-height: 2rem;
|
|
3003
|
+
padding: 0.375rem 0.625rem 0;
|
|
2534
3004
|
}
|
|
2535
3005
|
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
3006
|
+
[data-slot="comment-composer"][data-size="sm"][data-layout="row"] {
|
|
3007
|
+
& [data-slot="prompt-input-group"] {
|
|
3008
|
+
border-radius: calc(0.875rem + 0.125rem + 1px);
|
|
3009
|
+
}
|
|
3010
|
+
|
|
3011
|
+
/* 14px text on a 21px line, with 3.5px above and below, so one line sits on the center line of the 28px buttons. */
|
|
3012
|
+
& [data-slot="prompt-input-textarea"] {
|
|
3013
|
+
line-height: 1.3125rem;
|
|
3014
|
+
min-height: 1.75rem;
|
|
3015
|
+
padding: 0.21875rem 0.25rem;
|
|
3016
|
+
}
|
|
3017
|
+
|
|
3018
|
+
& [data-slot="prompt-input-toolbar"] > button {
|
|
3019
|
+
height: 1.75rem;
|
|
3020
|
+
min-width: 1.75rem;
|
|
3021
|
+
}
|
|
2539
3022
|
}
|
|
2540
3023
|
|
|
2541
|
-
|
|
2542
|
-
|
|
3024
|
+
/* Once the text of a row box wraps, the text takes the full width and attach and send move to a row under it, at its
|
|
3025
|
+
two ends. Without this, every line of a narrow box starts after the attach button. */
|
|
3026
|
+
[data-slot="comment-composer"][data-layout="row"][data-multiline="true"] {
|
|
3027
|
+
& [data-slot="prompt-input-textarea"] {
|
|
3028
|
+
flex-basis: 100%;
|
|
3029
|
+
order: 0;
|
|
3030
|
+
padding-inline: 0.5rem;
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
& [data-slot="prompt-input-spacer"] {
|
|
3034
|
+
display: block;
|
|
3035
|
+
}
|
|
2543
3036
|
}
|
|
2544
3037
|
|
|
2545
|
-
|
|
2546
|
-
|
|
3038
|
+
/* The page box and the reply box sit at the bottom, so their mention menus open upward. */
|
|
3039
|
+
[data-slot="comment-panel-composer"] [data-slot="comment-composer-mentions"],
|
|
3040
|
+
[data-slot="comment-thread"] > [data-slot="comment-composer"] [data-slot="comment-composer-mentions"] {
|
|
3041
|
+
bottom: 100%;
|
|
3042
|
+
margin: 0 0 0.25rem;
|
|
3043
|
+
top: auto;
|
|
2547
3044
|
}
|
|
2548
3045
|
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
3046
|
+
[data-slot="comment-panel"] > [data-slot="comment-thread"] {
|
|
3047
|
+
flex: 1;
|
|
3048
|
+
min-height: 0;
|
|
2552
3049
|
}
|
|
2553
3050
|
|
|
2554
|
-
|
|
2555
|
-
.vh-agent-tool-list__disclosure > summary small {
|
|
2556
|
-
color: var(--vh-ui-dimmed);
|
|
3051
|
+
[data-slot="comment-panel"] > [data-slot="comment-thread"] [data-slot="comment-thread-messages"] {
|
|
2557
3052
|
flex: 1;
|
|
2558
|
-
|
|
3053
|
+
max-height: none;
|
|
3054
|
+
}
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
/*
|
|
3058
|
+
* Chat, session, Markdown typeset, image preview, file views, primitive rail, and tool list.
|
|
3059
|
+
* They live in the components layer, so a utility class on a component, such as `<Chat class="h-96">`, overrides them.
|
|
3060
|
+
*/
|
|
3061
|
+
@layer components {
|
|
3062
|
+
.vh-chat {
|
|
3063
|
+
display: grid;
|
|
3064
|
+
grid-template-rows: minmax(0, 1fr);
|
|
3065
|
+
height: 100%;
|
|
3066
|
+
min-height: 0;
|
|
2559
3067
|
min-width: 0;
|
|
2560
3068
|
overflow: hidden;
|
|
2561
|
-
|
|
2562
|
-
|
|
3069
|
+
position: relative;
|
|
3070
|
+
width: 100%;
|
|
2563
3071
|
}
|
|
2564
3072
|
|
|
2565
|
-
.vh-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
3073
|
+
.vh-session {
|
|
3074
|
+
display: grid;
|
|
3075
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
3076
|
+
height: 100%;
|
|
3077
|
+
min-height: 0;
|
|
3078
|
+
min-width: 0;
|
|
3079
|
+
overflow: hidden;
|
|
3080
|
+
width: 100%;
|
|
2569
3081
|
}
|
|
2570
3082
|
|
|
2571
|
-
.vh-
|
|
2572
|
-
|
|
2573
|
-
|
|
3083
|
+
.vh-session__header {
|
|
3084
|
+
border-block-end: 1px solid var(--vh-border);
|
|
3085
|
+
padding: 0.75rem 1rem;
|
|
2574
3086
|
}
|
|
2575
3087
|
|
|
2576
|
-
.vh-
|
|
2577
|
-
|
|
3088
|
+
.vh-session__title {
|
|
3089
|
+
font-size: 0.9375rem;
|
|
3090
|
+
font-weight: 600;
|
|
3091
|
+
margin: 0;
|
|
2578
3092
|
}
|
|
2579
3093
|
|
|
2580
|
-
.vh-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
border: 0;
|
|
2584
|
-
color: var(--vh-ui-dimmed);
|
|
2585
|
-
flex: none;
|
|
2586
|
-
font: inherit;
|
|
2587
|
-
font-size: 0.6875rem;
|
|
2588
|
-
margin-inline-start: auto;
|
|
2589
|
-
padding: 0;
|
|
2590
|
-
white-space: nowrap;
|
|
3094
|
+
.vh-session__chat {
|
|
3095
|
+
height: 100%;
|
|
3096
|
+
min-height: 0;
|
|
2591
3097
|
}
|
|
2592
3098
|
|
|
2593
|
-
.vh-
|
|
2594
|
-
|
|
3099
|
+
.vh-chat__viewport {
|
|
3100
|
+
height: 100%;
|
|
3101
|
+
min-height: 0;
|
|
3102
|
+
overflow-y: auto;
|
|
3103
|
+
overscroll-behavior-y: contain;
|
|
3104
|
+
scrollbar-gutter: stable;
|
|
2595
3105
|
}
|
|
2596
3106
|
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
3107
|
+
.vh-chat__content {
|
|
3108
|
+
display: flex;
|
|
3109
|
+
flex-direction: column;
|
|
3110
|
+
gap: 1.25rem;
|
|
3111
|
+
margin-inline: auto;
|
|
3112
|
+
max-width: 48rem;
|
|
3113
|
+
min-height: 100%;
|
|
3114
|
+
padding: var(--vh-chat-content-padding, 1.5rem 1rem 6rem);
|
|
2601
3115
|
}
|
|
2602
3116
|
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
3117
|
+
.vh-chat__composer {
|
|
3118
|
+
bottom: 0;
|
|
3119
|
+
inset-inline: 0;
|
|
3120
|
+
padding: var(--vh-chat-composer-padding, 1rem);
|
|
3121
|
+
pointer-events: none;
|
|
3122
|
+
position: absolute;
|
|
3123
|
+
z-index: 3;
|
|
2606
3124
|
}
|
|
2607
3125
|
|
|
2608
|
-
.vh-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
3126
|
+
.vh-chat__composer::before {
|
|
3127
|
+
background: color-mix(in oklab, var(--vh-bg) 96%, transparent);
|
|
3128
|
+
border-block-start: 1px solid var(--vh-border);
|
|
3129
|
+
content: "";
|
|
3130
|
+
inset: 0;
|
|
3131
|
+
pointer-events: none;
|
|
3132
|
+
position: absolute;
|
|
2614
3133
|
}
|
|
2615
3134
|
|
|
2616
|
-
.vh-
|
|
2617
|
-
|
|
3135
|
+
.vh-chat__composer > * {
|
|
3136
|
+
margin-inline: auto;
|
|
3137
|
+
max-width: 48rem;
|
|
3138
|
+
pointer-events: auto;
|
|
3139
|
+
position: relative;
|
|
3140
|
+
width: 100%;
|
|
2618
3141
|
}
|
|
2619
3142
|
|
|
2620
|
-
.
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
3143
|
+
/* It reads like a step of the message's trace: a muted line with a dot. It does not move, so it needs no reduced-motion rule. */
|
|
3144
|
+
.vh-chat__status {
|
|
3145
|
+
align-items: center;
|
|
3146
|
+
color: var(--vh-muted);
|
|
3147
|
+
display: flex;
|
|
3148
|
+
font-size: 0.875rem;
|
|
3149
|
+
gap: 0.5rem;
|
|
3150
|
+
line-height: 1.25rem;
|
|
3151
|
+
margin: -0.75rem 0 0;
|
|
3152
|
+
min-width: 0;
|
|
2625
3153
|
}
|
|
2626
3154
|
|
|
2627
|
-
.vh-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
3155
|
+
.vh-chat__status-dot {
|
|
3156
|
+
background: currentColor;
|
|
3157
|
+
border-radius: 50%;
|
|
3158
|
+
flex: none;
|
|
3159
|
+
height: 0.375rem;
|
|
3160
|
+
opacity: 0.5;
|
|
3161
|
+
width: 0.375rem;
|
|
2632
3162
|
}
|
|
2633
3163
|
|
|
2634
|
-
.vh-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
text-transform: uppercase;
|
|
3164
|
+
.vh-chat__status-label {
|
|
3165
|
+
min-width: 0;
|
|
3166
|
+
overflow: hidden;
|
|
3167
|
+
text-overflow: ellipsis;
|
|
3168
|
+
white-space: nowrap;
|
|
2640
3169
|
}
|
|
2641
3170
|
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
font
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
overflow: auto;
|
|
2652
|
-
padding: 0.6rem 0.65rem;
|
|
2653
|
-
white-space: pre;
|
|
3171
|
+
/* comark-chat draws message parts with the `--comark-*` tokens, so they take ViteHub's colors. */
|
|
3172
|
+
.vh-message-parts {
|
|
3173
|
+
--comark-accent: var(--vh-bg-elevated);
|
|
3174
|
+
--comark-background: var(--vh-bg);
|
|
3175
|
+
--comark-border: var(--vh-border);
|
|
3176
|
+
--comark-font: inherit;
|
|
3177
|
+
--comark-foreground: var(--vh-text);
|
|
3178
|
+
--comark-muted: var(--vh-muted);
|
|
3179
|
+
--comark-ring: var(--vh-ring);
|
|
2654
3180
|
}
|
|
2655
|
-
.vh-agent-tool-list__body > p { white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
2656
3181
|
|
|
2657
|
-
.vh-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
3182
|
+
.vh-typeset {
|
|
3183
|
+
--vh-typeset-flow: 0.85em;
|
|
3184
|
+
--vh-typeset-leading: 1.65;
|
|
3185
|
+
font-size: 0.9375rem;
|
|
3186
|
+
line-height: var(--vh-typeset-leading);
|
|
3187
|
+
min-width: 0;
|
|
3188
|
+
overflow-wrap: anywhere;
|
|
3189
|
+
}
|
|
3190
|
+
|
|
3191
|
+
.vh-image-preview {
|
|
3192
|
+
appearance: none;
|
|
3193
|
+
aspect-ratio: 4 / 3;
|
|
3194
|
+
background: var(--vh-bg-elevated);
|
|
3195
|
+
border: 1px solid var(--vh-border);
|
|
3196
|
+
border-radius: var(--vh-radius);
|
|
3197
|
+
color: var(--vh-muted);
|
|
3198
|
+
cursor: zoom-in;
|
|
3199
|
+
display: inline-flex;
|
|
3200
|
+
align-items: center;
|
|
3201
|
+
justify-content: center;
|
|
3202
|
+
max-width: 100%;
|
|
3203
|
+
overflow: hidden;
|
|
3204
|
+
padding: 0;
|
|
3205
|
+
vertical-align: top;
|
|
3206
|
+
width: 13rem;
|
|
3207
|
+
}
|
|
3208
|
+
|
|
3209
|
+
.vh-image-preview img {
|
|
3210
|
+
display: block;
|
|
3211
|
+
height: 100%;
|
|
3212
|
+
object-fit: cover;
|
|
3213
|
+
width: 100%;
|
|
3214
|
+
}
|
|
3215
|
+
|
|
3216
|
+
.vh-image-preview--compact {
|
|
3217
|
+
aspect-ratio: 1;
|
|
3218
|
+
border: 0;
|
|
3219
|
+
height: 100%;
|
|
3220
|
+
width: 100%;
|
|
3221
|
+
}
|
|
3222
|
+
|
|
3223
|
+
.vh-image-unavailable {
|
|
3224
|
+
font-size: 0.75rem;
|
|
3225
|
+
overflow-wrap: anywhere;
|
|
3226
|
+
padding: 0.5rem;
|
|
3227
|
+
}
|
|
3228
|
+
|
|
3229
|
+
.vh-image-dialog__toolbar {
|
|
3230
|
+
align-items: center;
|
|
3231
|
+
border: 0;
|
|
3232
|
+
color: var(--vh-on-media, var(--vh-highlighted));
|
|
3233
|
+
display: flex;
|
|
3234
|
+
flex: none;
|
|
3235
|
+
gap: 0.25rem;
|
|
3236
|
+
padding-bottom: 0.5rem;
|
|
3237
|
+
}
|
|
3238
|
+
|
|
3239
|
+
.vh-image-dialog__name {
|
|
3240
|
+
flex: 1;
|
|
3241
|
+
font-size: 0.75rem;
|
|
3242
|
+
min-width: 0;
|
|
3243
|
+
overflow: hidden;
|
|
3244
|
+
text-overflow: ellipsis;
|
|
3245
|
+
white-space: nowrap;
|
|
3246
|
+
}
|
|
3247
|
+
|
|
3248
|
+
.vh-image-dialog__image {
|
|
3249
|
+
border-radius: var(--vh-radius);
|
|
3250
|
+
display: block;
|
|
3251
|
+
max-height: calc(92dvh - 3rem);
|
|
3252
|
+
max-width: 92vw;
|
|
3253
|
+
object-fit: contain;
|
|
3254
|
+
}
|
|
3255
|
+
|
|
3256
|
+
.vh-image-dialog__error {
|
|
3257
|
+
background: var(--vh-media-scrim, var(--vh-bg-elevated));
|
|
3258
|
+
border-radius: var(--vh-radius);
|
|
3259
|
+
color: var(--vh-on-media, var(--vh-highlighted));
|
|
3260
|
+
font-size: 0.875rem;
|
|
3261
|
+
max-width: 24rem;
|
|
3262
|
+
padding: 2rem;
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
/* The selected activity is a filled row, as selected items are everywhere. Blue marks focus only. */
|
|
3266
|
+
[data-slot="invocation"] [data-activity-id][data-selected="true"] {
|
|
3267
|
+
background: var(--vh-bg-elevated);
|
|
3268
|
+
border-radius: calc(var(--vh-radius) * 0.85);
|
|
3269
|
+
scroll-margin-block: 5rem;
|
|
3270
|
+
}
|
|
3271
|
+
|
|
3272
|
+
.vh-code-view,
|
|
3273
|
+
.vh-diff,
|
|
3274
|
+
.vh-file,
|
|
3275
|
+
.vh-unresolved-file,
|
|
3276
|
+
.vh-file-tree {
|
|
3277
|
+
border: 1px solid var(--vh-border);
|
|
3278
|
+
border-radius: var(--vh-radius);
|
|
3279
|
+
display: block;
|
|
3280
|
+
overflow: hidden;
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3283
|
+
.vh-code-view,
|
|
3284
|
+
.vh-diff,
|
|
3285
|
+
.vh-file,
|
|
3286
|
+
.vh-unresolved-file {
|
|
3287
|
+
--diffs-addition-base: var(--vh-success);
|
|
3288
|
+
--diffs-bg: var(--vh-bg);
|
|
3289
|
+
--diffs-bg-addition: color-mix(in oklab, var(--vh-success) 12%, var(--vh-bg));
|
|
3290
|
+
--diffs-bg-addition-emphasis: color-mix(in oklab, var(--vh-success) 22%, var(--vh-bg));
|
|
3291
|
+
--diffs-bg-buffer: var(--vh-bg-muted);
|
|
3292
|
+
--diffs-bg-context: var(--vh-bg);
|
|
3293
|
+
--diffs-bg-context-gutter: color-mix(in oklab, var(--vh-bg-muted) 72%, var(--vh-bg));
|
|
3294
|
+
--diffs-bg-deletion: color-mix(in oklab, var(--vh-error) 12%, var(--vh-bg));
|
|
3295
|
+
--diffs-bg-deletion-emphasis: color-mix(in oklab, var(--vh-error) 22%, var(--vh-bg));
|
|
3296
|
+
--diffs-bg-separator: var(--vh-bg-muted);
|
|
3297
|
+
--diffs-deletion-base: var(--vh-error);
|
|
3298
|
+
--diffs-fg: var(--vh-text);
|
|
3299
|
+
--diffs-fg-conflict-marker: var(--vh-muted);
|
|
3300
|
+
--diffs-fg-number: var(--vh-dimmed);
|
|
3301
|
+
--diffs-font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
|
|
3302
|
+
--diffs-font-size: 0.8125rem;
|
|
3303
|
+
--diffs-header-font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
|
|
3304
|
+
--diffs-modified-base: var(--vh-info);
|
|
3305
|
+
background: var(--vh-bg);
|
|
3306
|
+
color: var(--vh-text);
|
|
3307
|
+
min-height: 4rem;
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3310
|
+
.vh-code-view {
|
|
3311
|
+
min-height: 12rem;
|
|
3312
|
+
}
|
|
3313
|
+
|
|
3314
|
+
.vh-file-tree {
|
|
3315
|
+
height: 24rem;
|
|
3316
|
+
}
|
|
3317
|
+
|
|
3318
|
+
/* Text for screen readers only, as ui-sdk writes it: `<span data-slot="visually-hidden">`. */
|
|
3319
|
+
[data-slot="visually-hidden"] {
|
|
3320
|
+
position: absolute;
|
|
3321
|
+
width: 1px;
|
|
3322
|
+
height: 1px;
|
|
3323
|
+
overflow: hidden;
|
|
3324
|
+
clip-path: inset(50%);
|
|
3325
|
+
white-space: nowrap;
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3328
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3329
|
+
.vh-chat__viewport {
|
|
3330
|
+
scroll-behavior: auto;
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
3333
|
+
|
|
3334
|
+
.vh-agent-tool-list {
|
|
3335
|
+
grid-template-columns: minmax(0, 1fr);
|
|
3336
|
+
display: grid;
|
|
3337
|
+
gap: 0.125rem;
|
|
3338
|
+
margin-block-start: 0.45rem;
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3341
|
+
.vh-agent-tool-list__item,
|
|
3342
|
+
.vh-agent-tool-list__disclosure > summary {
|
|
3343
|
+
align-items: center;
|
|
3344
|
+
border-radius: calc(var(--vh-radius) * 0.8);
|
|
3345
|
+
display: flex;
|
|
3346
|
+
gap: 0.5rem;
|
|
3347
|
+
min-height: 1.8rem;
|
|
3348
|
+
padding: 0.3rem 0.45rem;
|
|
3349
|
+
}
|
|
3350
|
+
|
|
3351
|
+
.vh-agent-tool-list__item code,
|
|
3352
|
+
.vh-agent-tool-list__disclosure > summary code {
|
|
3353
|
+
flex: 0 1 auto;
|
|
3354
|
+
min-width: 0;
|
|
3355
|
+
font-size: 0.6875rem;
|
|
3356
|
+
overflow-wrap: anywhere;
|
|
3357
|
+
}
|
|
3358
|
+
|
|
3359
|
+
.vh-agent-tool-list__disclosure > summary {
|
|
3360
|
+
cursor: pointer;
|
|
3361
|
+
list-style: none;
|
|
3362
|
+
}
|
|
3363
|
+
|
|
3364
|
+
.vh-agent-tool-list__disclosure > summary::-webkit-details-marker {
|
|
3365
|
+
display: none;
|
|
3366
|
+
}
|
|
3367
|
+
|
|
3368
|
+
.vh-agent-tool-list__disclosure > summary:hover {
|
|
3369
|
+
background: color-mix(in oklab, var(--vh-bg-elevated) 70%, transparent);
|
|
3370
|
+
}
|
|
3371
|
+
|
|
3372
|
+
.vh-agent-tool-list__item small,
|
|
3373
|
+
.vh-agent-tool-list__disclosure > summary small {
|
|
3374
|
+
color: var(--vh-dimmed);
|
|
3375
|
+
flex: 1;
|
|
3376
|
+
font-size: 0.625rem;
|
|
3377
|
+
min-width: 0;
|
|
3378
|
+
overflow: hidden;
|
|
3379
|
+
text-overflow: ellipsis;
|
|
3380
|
+
white-space: nowrap;
|
|
3381
|
+
}
|
|
3382
|
+
|
|
3383
|
+
.vh-agent-tool-list__icon {
|
|
3384
|
+
color: var(--vh-muted);
|
|
3385
|
+
display: inline-flex;
|
|
3386
|
+
flex: none;
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3389
|
+
.vh-agent-tool-list__icon > * {
|
|
3390
|
+
height: 0.875rem;
|
|
3391
|
+
width: 0.875rem;
|
|
3392
|
+
}
|
|
3393
|
+
|
|
3394
|
+
.vh-agent-tool-list > [data-used="false"] {
|
|
3395
|
+
opacity: 0.66;
|
|
3396
|
+
}
|
|
3397
|
+
|
|
3398
|
+
.vh-agent-tool-list__count {
|
|
3399
|
+
appearance: none;
|
|
3400
|
+
background: transparent;
|
|
3401
|
+
border: 0;
|
|
3402
|
+
color: var(--vh-dimmed);
|
|
3403
|
+
flex: none;
|
|
3404
|
+
font: inherit;
|
|
3405
|
+
font-size: 0.6875rem;
|
|
3406
|
+
margin-inline-start: auto;
|
|
3407
|
+
padding: 0;
|
|
3408
|
+
white-space: nowrap;
|
|
3409
|
+
}
|
|
3410
|
+
|
|
3411
|
+
.vh-agent-tool-list > [data-used="true"] .vh-agent-tool-list__count {
|
|
3412
|
+
color: var(--vh-muted);
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
button.vh-agent-tool-list__count {
|
|
3416
|
+
cursor: pointer;
|
|
3417
|
+
text-decoration: underline dotted;
|
|
3418
|
+
text-underline-offset: 0.2rem;
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
button.vh-agent-tool-list__count:hover {
|
|
3422
|
+
color: var(--vh-text);
|
|
3423
|
+
}
|
|
3424
|
+
|
|
3425
|
+
.vh-agent-tool-list__chevron {
|
|
3426
|
+
height: 0.8rem;
|
|
3427
|
+
stroke: currentColor;
|
|
3428
|
+
stroke-width: 2;
|
|
3429
|
+
transition: transform 150ms ease;
|
|
3430
|
+
width: 0.8rem;
|
|
3431
|
+
}
|
|
3432
|
+
|
|
3433
|
+
.vh-agent-tool-list__disclosure[open] > summary .vh-agent-tool-list__chevron {
|
|
3434
|
+
transform: rotate(180deg);
|
|
3435
|
+
}
|
|
3436
|
+
|
|
3437
|
+
.vh-agent-tool-list__body {
|
|
3438
|
+
grid-template-columns: minmax(0, 1fr);
|
|
3439
|
+
display: grid;
|
|
3440
|
+
gap: 0.65rem;
|
|
3441
|
+
padding: 0.35rem 0.45rem 0.75rem;
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3444
|
+
.vh-agent-tool-list__body > p {
|
|
3445
|
+
color: var(--vh-muted);
|
|
3446
|
+
font-size: 0.75rem;
|
|
3447
|
+
line-height: 1.55;
|
|
3448
|
+
margin: 0;
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
.vh-agent-tool-list__schema strong {
|
|
3452
|
+
color: var(--vh-dimmed);
|
|
3453
|
+
display: block;
|
|
3454
|
+
font-size: 0.625rem;
|
|
3455
|
+
margin-block-end: 0.35rem;
|
|
3456
|
+
text-transform: uppercase;
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3459
|
+
.vh-agent-tool-list__schema pre {
|
|
3460
|
+
background: color-mix(in oklab, var(--vh-bg-elevated) 65%, transparent);
|
|
3461
|
+
border: 1px solid var(--vh-border);
|
|
3462
|
+
border-radius: calc(var(--vh-radius) * 0.8);
|
|
3463
|
+
color: var(--vh-muted);
|
|
3464
|
+
font-size: 0.625rem;
|
|
3465
|
+
line-height: 1.55;
|
|
3466
|
+
margin: 0;
|
|
3467
|
+
max-height: 18rem;
|
|
3468
|
+
overflow: auto;
|
|
3469
|
+
padding: 0.6rem 0.65rem;
|
|
3470
|
+
white-space: pre;
|
|
3471
|
+
}
|
|
3472
|
+
.vh-agent-tool-list__body > p { white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
3473
|
+
|
|
3474
|
+
.vh-agent-tool-list__properties { width: 100%; border-collapse: collapse; font-size: 0.6875rem; text-align: start; table-layout: fixed; }
|
|
3475
|
+
.vh-agent-tool-list__properties td, .vh-agent-tool-list__properties th { border-bottom: 1px solid var(--vh-border); padding: 0.375rem; vertical-align: top; overflow-wrap: anywhere; }
|
|
3476
|
+
.vh-agent-tool-list__properties small { display: block; color: var(--vh-muted); }
|
|
3477
|
+
.vh-agent-tool-list__schema pre { white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
3478
|
+
.vh-agent-tool-list__unavailable { color: var(--vh-muted); font-size: 0.6875rem; }
|
|
3479
|
+
}
|
|
3480
|
+
|
|
3481
|
+
/*
|
|
3482
|
+
* Workspace: the shell, editor, terminal, preview, boot checklist, Connect panel, and browser notice.
|
|
3483
|
+
* Neutral monochrome. State shows with ink, not hue. The editor and the terminal sit on the page surface; only the
|
|
3484
|
+
* syntax colors have a hue, and codemirror.ts reads them from the Pierre themes of FileView. Each workspace element
|
|
3485
|
+
* resolves these variables itself, so a `.dark` subtree on a light page needs nothing else.
|
|
3486
|
+
*/
|
|
3487
|
+
@layer components {
|
|
3488
|
+
:where(:root, [class^="vh-ws-"], [class*=" vh-ws-"]) {
|
|
3489
|
+
--vh-ws-font-mono: var(--font-mono, "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace);
|
|
3490
|
+
--vh-ws-code-bg: var(--vh-bg);
|
|
3491
|
+
--vh-ws-code-fg: var(--vh-highlighted);
|
|
3492
|
+
--vh-ws-code-cursor: var(--vh-highlighted);
|
|
3493
|
+
--vh-ws-code-selection: color-mix(in oklab, var(--vh-highlighted) 14%, transparent);
|
|
3494
|
+
/* Translucent, because CodeMirror draws the selection under the line. */
|
|
3495
|
+
--vh-ws-code-line: color-mix(in oklab, var(--vh-highlighted) 4%, transparent);
|
|
3496
|
+
--vh-ws-code-gutter: var(--vh-dimmed);
|
|
3497
|
+
--vh-ws-code-gutter-active: var(--vh-text);
|
|
3498
|
+
--vh-ws-code-comment: var(--vh-dimmed);
|
|
3499
|
+
--vh-ws-code-punctuation: var(--vh-muted);
|
|
3500
|
+
/* The terminal shares the editor surface, so the panel under the editor reads as one pane. */
|
|
3501
|
+
--vh-ws-terminal-bg: var(--vh-ws-code-bg);
|
|
3502
|
+
--vh-ws-terminal-fg: var(--vh-text);
|
|
3503
|
+
/* System colors, not currentColor: a currentColor fill under inverted text would take the text color and vanish. */
|
|
3504
|
+
--vh-ws-ink: var(--ui-text-highlighted, CanvasText);
|
|
3505
|
+
--vh-ws-ink-inverted: var(--ui-bg, Canvas);
|
|
3506
|
+
}
|
|
3507
|
+
}
|
|
3508
|
+
|
|
3509
|
+
@layer components {
|
|
3510
|
+
.vh-ws-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
|
|
3511
|
+
.vh-ws-icon { width: 1rem; height: 1rem; flex: none; }
|
|
3512
|
+
.vh-ws-logo { width: 1.25rem; height: 1.25rem; flex: none; color: var(--vh-highlighted); }
|
|
3513
|
+
.vh-ws-muted { color: var(--vh-muted); }
|
|
3514
|
+
|
|
3515
|
+
.vh-ws-button {
|
|
3516
|
+
align-items: center; background: var(--vh-bg); border: 1px solid var(--vh-border); border-radius: calc(var(--vh-radius) * 0.75);
|
|
3517
|
+
color: var(--vh-text); cursor: pointer; display: inline-flex; font: inherit; font-size: 0.8125rem; font-weight: 500; gap: 0.375rem;
|
|
3518
|
+
min-height: 2rem; padding: 0 0.75rem; text-decoration: none; white-space: nowrap;
|
|
3519
|
+
}
|
|
3520
|
+
.vh-ws-button:disabled, .vh-ws-button[aria-disabled="true"] { cursor: default; opacity: 0.5; }
|
|
3521
|
+
.vh-ws-button--primary { background: var(--vh-ws-ink); border-color: var(--vh-ws-ink); color: var(--vh-ws-ink-inverted); }
|
|
3522
|
+
.vh-ws-button .vh-ws-icon { width: 0.875rem; height: 0.875rem; }
|
|
3523
|
+
@media (hover: hover) {
|
|
3524
|
+
.vh-ws-button:not(:disabled):hover { border-color: var(--vh-muted); }
|
|
3525
|
+
.vh-ws-button--primary:not(:disabled):hover { opacity: 0.88; }
|
|
3526
|
+
}
|
|
3527
|
+
.vh-ws-icon-button {
|
|
3528
|
+
align-items: center; background: none; border: 0; border-radius: calc(var(--vh-radius) * 0.75); color: var(--vh-muted);
|
|
3529
|
+
cursor: pointer; display: inline-flex; flex: none; height: 2.75rem; justify-content: center; width: 2.75rem;
|
|
3530
|
+
}
|
|
3531
|
+
.vh-ws-icon-button:disabled, .vh-ws-icon-button[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
|
|
3532
|
+
@media (hover: hover) { .vh-ws-icon-button:hover { color: var(--vh-highlighted); } }
|
|
3533
|
+
.vh-ws-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
|
3534
|
+
.vh-ws-link { color: var(--vh-highlighted); font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 2px; }
|
|
3535
|
+
|
|
3536
|
+
/* Shell */
|
|
3537
|
+
.vh-ws-shell {
|
|
3538
|
+
background: var(--vh-bg); border: 1px solid var(--vh-border); border-radius: var(--vh-radius); color: var(--vh-text);
|
|
3539
|
+
display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; position: relative;
|
|
3540
|
+
}
|
|
3541
|
+
.vh-ws-toolbar { align-items: center; border-bottom: 1px solid var(--vh-border); display: flex; flex: none; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.5rem; }
|
|
3542
|
+
.vh-ws-body { display: flex; flex: 1; min-height: 0; min-width: 0; }
|
|
3543
|
+
.vh-ws-body--row { flex-direction: row; }
|
|
3544
|
+
.vh-ws-body--column { flex-direction: column; }
|
|
3545
|
+
.vh-ws-row { display: flex; flex-shrink: 0; min-height: 0; }
|
|
3546
|
+
.vh-ws-stack { display: flex; flex-direction: column; height: 100%; min-height: 0; }
|
|
3547
|
+
.vh-ws-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; position: relative; }
|
|
3548
|
+
.vh-ws-pane--files { flex-grow: 0; flex-shrink: 0; }
|
|
3549
|
+
.vh-ws-pane--editor, .vh-ws-pane--center, .vh-ws-pane--terminal, .vh-ws-pane--panels { flex: 1; }
|
|
3550
|
+
.vh-ws-stack > .vh-ws-pane:first-child { flex-grow: 0; flex-shrink: 0; }
|
|
3551
|
+
.vh-ws-pane--side { flex-grow: 0; flex-shrink: 0; }
|
|
3552
|
+
.vh-ws-separator { background: var(--vh-border); flex: none; position: relative; touch-action: none; z-index: 1; }
|
|
3553
|
+
.vh-ws-separator--vertical { cursor: col-resize; width: 1px; }
|
|
3554
|
+
.vh-ws-separator--horizontal { cursor: row-resize; height: 1px; }
|
|
3555
|
+
/* A wider hit area than the 1px line. */
|
|
3556
|
+
.vh-ws-separator::after { content: ""; inset: -4px; position: absolute; }
|
|
3557
|
+
@media (hover: hover) { .vh-ws-separator:hover { background: var(--vh-muted); } }
|
|
3558
|
+
.vh-ws-overlay { background: var(--vh-bg); display: grid; inset: 0; overflow: auto; padding: 1.5rem; place-items: center; position: absolute; z-index: 2; }
|
|
3559
|
+
|
|
3560
|
+
.vh-ws-tabs { display: flex; flex: 1; flex-direction: column; min-height: 0; }
|
|
3561
|
+
/* UTabs draws the strip, its divider, and its underline. */
|
|
3562
|
+
.vh-ws-tab-list { flex: none; }
|
|
3563
|
+
.vh-ws-tab-panels { flex: 1; min-height: 0; position: relative; }
|
|
3564
|
+
.vh-ws-tab-panel { display: flex; flex-direction: column; inset: 0; overflow: auto; position: absolute; }
|
|
3565
|
+
/* Hidden panels stay mounted, so the terminal keeps its output and the preview keeps its page. */
|
|
3566
|
+
.vh-ws-tab-panel.is-hidden { visibility: hidden; }
|
|
3567
|
+
|
|
3568
|
+
/* File tree, editor, terminal */
|
|
3569
|
+
.vh-ws-file-tree { border: 0; border-radius: 0; height: 100%; }
|
|
3570
|
+
.vh-ws-editor { background: var(--vh-ws-code-bg); flex: 1; height: 100%; min-height: 0; overflow: hidden; }
|
|
3571
|
+
.vh-ws-editor .cm-editor { height: 100%; }
|
|
3572
|
+
.vh-ws-editor-fallback { color: var(--vh-ws-code-fg); font-family: var(--vh-ws-font-mono); font-size: 13px; line-height: 1.6; margin: 0; overflow: auto; padding: 8px 12px 8px 3.5rem; white-space: pre; }
|
|
3573
|
+
.vh-ws-terminal { background: var(--vh-ws-terminal-bg); flex: 1; height: 100%; min-height: 0; padding: 0.5rem 0 0 0.75rem; }
|
|
3574
|
+
.vh-ws-terminal .xterm, .vh-ws-terminal .xterm-viewport { background: var(--vh-ws-terminal-bg) !important; }
|
|
3575
|
+
|
|
3576
|
+
/* Preview */
|
|
3577
|
+
.vh-ws-preview { display: flex; flex: 1; flex-direction: column; height: 100%; min-height: 0; }
|
|
3578
|
+
.vh-ws-preview-bar { align-items: center; border-bottom: 1px solid var(--vh-border); display: flex; flex: none; gap: 0.25rem; padding: 0 0.25rem; }
|
|
3579
|
+
/* UInput draws the path field and its focus. */
|
|
3580
|
+
.vh-ws-preview-path { flex: 1; min-width: 0; }
|
|
3581
|
+
.vh-ws-preview-devices { align-items: center; display: flex; flex: none; }
|
|
3582
|
+
.vh-ws-preview-devices .vh-ws-icon-button[aria-pressed="true"] { background: var(--vh-bg-elevated); color: var(--vh-highlighted); }
|
|
3583
|
+
/* A pointer needs no 44px target, so the browser frame stays one dense row. */
|
|
3584
|
+
@media (pointer: fine) {
|
|
3585
|
+
.vh-ws-preview-bar .vh-ws-icon-button { height: 1.75rem; width: 1.75rem; }
|
|
3586
|
+
}
|
|
3587
|
+
:is(.vh-ws-preview-path, .vh-ws-input) input { font-family: var(--vh-ws-font-mono); }
|
|
3588
|
+
/* The frame paints the light canvas, so its page must not take the dark scheme of this page and draw white text. */
|
|
3589
|
+
.vh-ws-preview-frame { background: Canvas; border: 0; color-scheme: light; flex: 1; width: 100%; }
|
|
3590
|
+
.vh-ws-empty { align-content: center; display: grid; flex: 1; gap: 0.25rem; justify-items: center; padding: 2rem; text-align: center; }
|
|
3591
|
+
.vh-ws-empty p { font-size: 0.875rem; margin: 0; }
|
|
3592
|
+
.vh-ws-empty-title { color: var(--vh-highlighted); font-weight: 600; }
|
|
3593
|
+
|
|
3594
|
+
/* Boot checklist */
|
|
3595
|
+
.vh-ws-boot { display: grid; gap: 1rem; max-width: 26rem; width: 100%; }
|
|
3596
|
+
.vh-ws-boot-title { color: var(--vh-highlighted); font-size: 0.9375rem; font-weight: 600; margin: 0; }
|
|
3597
|
+
.vh-ws-steps { display: grid; gap: 0.125rem; list-style: none; margin: 0; padding: 0; }
|
|
3598
|
+
.vh-ws-step { align-items: center; color: var(--vh-muted); display: grid; font-size: 0.875rem; gap: 0.75rem; grid-template-columns: 1rem 1fr auto; min-height: 2rem; }
|
|
3599
|
+
.vh-ws-step[data-state="running"], .vh-ws-step[data-state="failed"] { color: var(--vh-highlighted); font-weight: 600; }
|
|
3600
|
+
.vh-ws-step[data-state="done"] { color: var(--vh-text); }
|
|
3601
|
+
.vh-ws-step[data-state="skipped"] .vh-ws-step-label { text-decoration: line-through; }
|
|
3602
|
+
.vh-ws-step-icon { width: 1rem; height: 1rem; }
|
|
3603
|
+
.vh-ws-step-dot { border: 1.5px solid currentColor; border-radius: 50%; height: 0.625rem; justify-self: center; opacity: 0.6; width: 0.625rem; }
|
|
3604
|
+
.vh-ws-step-dot.is-running { background: currentColor; opacity: 1; animation: vh-ws-pulse 1.2s ease-in-out infinite; }
|
|
3605
|
+
.vh-ws-step-time { font-family: var(--vh-ws-font-mono); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
|
|
3606
|
+
.vh-ws-boot-hint, .vh-ws-failure-body { font-size: 0.8125rem; margin: 0; }
|
|
3607
|
+
.vh-ws-failure { border-top: 1px solid var(--vh-border); display: grid; gap: 0.75rem; padding-top: 1rem; }
|
|
3608
|
+
.vh-ws-failure-body { overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
3609
|
+
.vh-ws-notice { align-items: flex-start; border: 1px solid var(--vh-border); border-radius: calc(var(--vh-radius) * 0.75); display: flex; font-size: 0.8125rem; gap: 0.5rem; margin: 0; padding: 0.625rem 0.75rem; }
|
|
3610
|
+
@keyframes vh-ws-pulse { 50% { opacity: 0.35; } }
|
|
3611
|
+
@media (prefers-reduced-motion: reduce) { .vh-ws-step-dot.is-running { animation: none; } }
|
|
3612
|
+
|
|
3613
|
+
/* Connect */
|
|
3614
|
+
.vh-ws-connect { display: grid; gap: 1.25rem; padding: 1rem; }
|
|
3615
|
+
.vh-ws-connect-heading { color: var(--vh-muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; margin: 0 0 0.25rem; text-transform: uppercase; }
|
|
3616
|
+
.vh-ws-providers { list-style: none; margin: 0; padding: 0; }
|
|
3617
|
+
.vh-ws-provider { border-bottom: 1px solid var(--vh-border); padding: 0.625rem 0; }
|
|
3618
|
+
.vh-ws-provider:last-child { border-bottom: 0; }
|
|
3619
|
+
.vh-ws-provider-row { align-items: center; display: grid; gap: 0.75rem; grid-template-columns: 1.25rem 1fr auto; }
|
|
3620
|
+
.vh-ws-provider-text { display: grid; min-width: 0; }
|
|
3621
|
+
.vh-ws-provider-label { color: var(--vh-highlighted); font-size: 0.875rem; font-weight: 500; }
|
|
3622
|
+
.vh-ws-provider-status { color: var(--vh-muted); font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
3623
|
+
.vh-ws-provider-action { display: flex; gap: 0.375rem; }
|
|
3624
|
+
.vh-ws-connected { align-items: center; color: var(--vh-text); display: inline-flex; gap: 0.25rem; }
|
|
3625
|
+
.vh-ws-connected .vh-ws-icon { width: 0.875rem; height: 0.875rem; }
|
|
3626
|
+
.vh-ws-error { color: var(--vh-highlighted); font-weight: 500; }
|
|
3627
|
+
.vh-ws-env { font-family: var(--vh-ws-font-mono); font-size: 0.75rem; }
|
|
3628
|
+
.vh-ws-token-form { display: grid; gap: 0.375rem; margin-top: 0.625rem; padding-left: 2rem; }
|
|
3629
|
+
.vh-ws-token-label { color: var(--vh-text); font-size: 0.8125rem; font-weight: 500; }
|
|
3630
|
+
.vh-ws-token-row { display: flex; gap: 0.375rem; }
|
|
3631
|
+
.vh-ws-input { flex: 1; min-width: 0; }
|
|
3632
|
+
.vh-ws-connect-footer { align-items: flex-start; border-top: 1px solid var(--vh-border); color: var(--vh-muted); display: grid; font-size: 0.8125rem; gap: 0.5rem 0.625rem; grid-template-columns: 1rem 1fr; padding-top: 1rem; }
|
|
3633
|
+
.vh-ws-connect-footer p { margin: 0; }
|
|
3634
|
+
.vh-ws-connect-footer .vh-ws-button { grid-column: 2; justify-self: start; }
|
|
3635
|
+
.vh-ws-connect--empty { align-items: center; color: var(--vh-muted); font-size: 0.875rem; gap: 0.5rem; grid-template-columns: 1rem 1fr; }
|
|
3636
|
+
.vh-ws-connect--empty p { margin: 0; }
|
|
3637
|
+
|
|
3638
|
+
/* PlaygroundContainer: a toolbar over the shell, and the cards that show when the device cannot run the workspace. */
|
|
3639
|
+
.vh-pc { display: flex; flex-direction: column; height: 100%; min-height: 0; }
|
|
3640
|
+
.vh-pc-session { display: flex; flex: 1; flex-direction: column; min-height: 0; }
|
|
3641
|
+
.vh-pc-session > .vh-ws-shell { border: 0; border-radius: 0; flex: 1; }
|
|
3642
|
+
.vh-pc-toolbar { align-items: center; border-bottom: 1px solid var(--vh-border); display: flex; flex: none; gap: 0.25rem; height: 2.75rem; padding: 0 0.5rem; }
|
|
3643
|
+
.vh-pc-spacer { flex: 1; }
|
|
3644
|
+
.vh-pc-muted { color: var(--vh-muted); }
|
|
3645
|
+
.vh-pc-strong { color: var(--vh-highlighted); font-weight: 500; }
|
|
3646
|
+
.vh-pc-bar { align-items: center; background: var(--vh-bg-elevated); border-bottom: 1px solid var(--vh-border); display: flex; flex: none; font-size: 0.8125rem; gap: 0.5rem; padding: 0.5rem 0.75rem; }
|
|
3647
|
+
.vh-pc-run-state { color: var(--vh-muted); display: inline-flex; font-size: 0.8125rem; margin-inline-start: 0.25rem; white-space: nowrap; }
|
|
3648
|
+
|
|
3649
|
+
/* Panes side by side have the same header row, so they line up with the preview bar. */
|
|
3650
|
+
.vh-pc-pane { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; }
|
|
3651
|
+
.vh-pc-pane-header, .vh-pc .vh-ws-preview-bar { align-items: center; border-bottom: 1px solid var(--vh-border); display: flex; flex: none; gap: 0.5rem; height: 2.25rem; padding: 0 0.75rem; }
|
|
3652
|
+
.vh-pc .vh-ws-preview-bar { padding: 0 0.25rem; }
|
|
3653
|
+
.vh-pc .vh-ws-tab-list [data-slot="trigger"] { min-height: 2.25rem; }
|
|
3654
|
+
.vh-pc-pane-body { display: flex; flex: 1; flex-direction: column; min-height: 0; position: relative; }
|
|
3655
|
+
.vh-pc-pane-title { color: var(--vh-muted); font-size: 0.75rem; font-weight: 500; }
|
|
3656
|
+
.vh-pc-pane-header .vh-pc-muted { font-size: 0.75rem; }
|
|
3657
|
+
.vh-pc-path { color: var(--vh-text); font-family: var(--vh-ws-font-mono); font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
3658
|
+
/* The file column is one tinted surface, header included. */
|
|
3659
|
+
.vh-pc-files { background: var(--vh-bg-muted); }
|
|
3660
|
+
.vh-pc-files .vh-ws-file-tree { --trees-bg-override: var(--vh-bg-muted); }
|
|
3661
|
+
.vh-pc-tree { flex: 1; min-height: 0; overflow: auto; padding: 0.25rem 0; }
|
|
3662
|
+
.vh-pc-scroll { height: 100%; overflow: auto; }
|
|
3663
|
+
/* The checklist sits in the middle of the preview, with room on every side. */
|
|
3664
|
+
.vh-pc-boot { align-items: center; display: flex; flex: 1; justify-content: center; overflow: auto; padding: 2rem 1.5rem; }
|
|
3665
|
+
.vh-pc-modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; width: 100%; }
|
|
3666
|
+
|
|
3667
|
+
.vh-pc-card { border: 1px solid var(--vh-border); border-radius: var(--vh-radius); margin-top: 1.5rem; padding: 1rem; }
|
|
3668
|
+
.vh-pc-card p { font-size: 0.875rem; margin: 0; }
|
|
3669
|
+
.vh-pc-unsupported { margin-top: 1.5rem; }
|
|
3670
|
+
.vh-pc-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
|
|
3671
|
+
.vh-pc-placeholder { display: none; }
|
|
3672
|
+
/* Before mount, phones see their card, tablets see nothing yet, and desktops see where the workspace starts. */
|
|
3673
|
+
@media (min-width: 48rem) {
|
|
3674
|
+
.vh-pc-gate[data-state="pending"] .vh-pc-phone { display: none; }
|
|
3675
|
+
}
|
|
3676
|
+
@media (min-width: 64rem) {
|
|
3677
|
+
.vh-pc-gate[data-state="pending"] { display: flex; flex: 1; flex-direction: column; }
|
|
3678
|
+
.vh-pc-gate[data-state="pending"] .vh-pc-gate-content { display: none; }
|
|
3679
|
+
.vh-pc-gate[data-state="pending"] .vh-pc-placeholder { align-items: center; display: flex; flex: 1; flex-direction: column; justify-content: center; min-height: 0; }
|
|
3680
|
+
.vh-pc-placeholder-bar { align-self: stretch; border-bottom: 1px solid var(--vh-border); height: 2.75rem; margin-bottom: auto; }
|
|
3681
|
+
.vh-pc-placeholder p { font-size: 0.875rem; margin: 0 0 auto; }
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3684
|
+
/* Browser support notice */
|
|
3685
|
+
.vh-ws-support { align-items: flex-start; background: var(--vh-bg-muted); border: 1px solid var(--vh-border); border-radius: var(--vh-radius); color: var(--vh-text); display: grid; gap: 0.75rem; grid-template-columns: 1.25rem 1fr; padding: 1rem; }
|
|
3686
|
+
.vh-ws-support-icon { color: var(--vh-highlighted); width: 1.25rem; height: 1.25rem; }
|
|
3687
|
+
.vh-ws-support-text { display: grid; gap: 0.5rem; }
|
|
3688
|
+
.vh-ws-support-text p { font-size: 0.875rem; margin: 0; }
|
|
3689
|
+
.vh-ws-support-title { color: var(--vh-highlighted); font-weight: 600; }
|
|
3690
|
+
.vh-ws-support .vh-ws-button { min-height: 2.75rem; }
|
|
3691
|
+
.vh-ws-popover-anchor { position: relative; }
|
|
3692
|
+
.vh-ws-popover {
|
|
3693
|
+
background: var(--vh-bg); border: 1px solid var(--vh-border); border-radius: calc(var(--vh-radius) * 0.75); font-size: 0.8125rem;
|
|
3694
|
+
inset-block-start: calc(100% + 0.375rem); inset-inline-start: 0; margin: 0; padding: 0.625rem 0.75rem; position: absolute; width: min(18rem, 80vw); z-index: 3;
|
|
3695
|
+
}
|
|
3696
|
+
}
|
|
3697
|
+
|
|
3698
|
+
/* PlaygroundRender: the examples, the editor, and the preview side by side. The textarea of each pane sits over a
|
|
3699
|
+
colored copy of its text in one grid cell. The copy sets the height and the pane scrolls. */
|
|
3700
|
+
@layer components {
|
|
3701
|
+
.vh-pg {
|
|
3702
|
+
background: var(--vh-bg); border: 1px solid var(--vh-border); border-radius: var(--vh-radius); color: var(--vh-text);
|
|
3703
|
+
display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 100%; min-height: 0; overflow: hidden;
|
|
3704
|
+
}
|
|
3705
|
+
.vh-pg:has(> .vh-pg-presets) { grid-template-columns: 14rem minmax(0, 1fr) minmax(0, 1fr); }
|
|
3706
|
+
.vh-pg-presets { border-inline-end: 1px solid var(--vh-border); display: grid; align-content: start; gap: 1rem; min-height: 0; overflow-y: auto; padding: 0.75rem 0.5rem; }
|
|
3707
|
+
.vh-pg-group ul { display: grid; gap: 0.125rem; list-style: none; margin: 0; padding: 0; }
|
|
3708
|
+
.vh-pg-group-title { color: var(--vh-muted); font-size: 0.75rem; font-weight: 600; margin: 0 0 0.25rem; padding: 0 0.5rem; }
|
|
3709
|
+
.vh-pg-preset {
|
|
3710
|
+
background: none; border: 0; border-radius: calc(var(--vh-radius) * 0.75); color: var(--vh-muted); cursor: pointer; display: block;
|
|
3711
|
+
font: inherit; font-size: 0.8125rem; padding: 0.375rem 0.5rem; text-align: start; width: 100%;
|
|
3712
|
+
}
|
|
3713
|
+
.vh-pg-preset[aria-current="true"] { background: var(--vh-bg-muted); color: var(--vh-highlighted); font-weight: 500; }
|
|
3714
|
+
@media (hover: hover) { .vh-pg-preset:hover { color: var(--vh-highlighted); } }
|
|
3715
|
+
|
|
3716
|
+
.vh-pg-editor { border-inline-end: 1px solid var(--vh-border); display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; }
|
|
3717
|
+
.vh-pg-bar { align-items: center; border-bottom: 1px solid var(--vh-border); display: flex; flex: none; gap: 0.5rem; justify-content: space-between; min-height: 2.75rem; padding: 0 0.25rem 0 0.5rem; }
|
|
3718
|
+
.vh-pg-tabs { display: flex; gap: 0.125rem; }
|
|
3719
|
+
.vh-pg-tab {
|
|
3720
|
+
background: none; border: 0; border-radius: calc(var(--vh-radius) * 0.75); color: var(--vh-muted); cursor: pointer;
|
|
3721
|
+
font: inherit; font-size: 0.8125rem; font-weight: 500; min-height: 2rem; padding: 0 0.625rem;
|
|
3722
|
+
}
|
|
3723
|
+
.vh-pg-tab[aria-pressed="true"] { background: var(--vh-bg-muted); color: var(--vh-highlighted); }
|
|
3724
|
+
.vh-pg-title { color: var(--vh-highlighted); font-size: 0.8125rem; font-weight: 500; padding: 0 0.25rem; }
|
|
3725
|
+
.vh-pg-actions { align-items: center; display: flex; gap: 0.25rem; }
|
|
3726
|
+
.vh-pg-icon-button { height: 2rem; width: 2rem; }
|
|
3727
|
+
|
|
3728
|
+
.vh-pg-pane { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: auto; }
|
|
3729
|
+
.vh-pg-pane[hidden] { display: none; }
|
|
3730
|
+
.vh-pg-code { display: grid; flex: 1; background: var(--vh-ws-code-bg, var(--vh-bg-muted)); }
|
|
3731
|
+
.vh-pg-code > *, .vh-pg-paint pre { grid-area: 1 / 1; }
|
|
3732
|
+
.vh-pg-paint { display: grid; pointer-events: none; }
|
|
3733
|
+
.vh-pg-paint pre, .vh-pg-code textarea {
|
|
3734
|
+
background: none !important; border: 0; border-radius: 0; box-shadow: none; color: var(--vh-text); font: 0.8125rem/1.65 var(--vh-ws-font-mono);
|
|
3735
|
+
margin: 0; overflow: visible; overflow-wrap: anywhere; padding: 1rem; tab-size: 2; white-space: pre-wrap;
|
|
3736
|
+
}
|
|
3737
|
+
.vh-pg-paint code { font: inherit; }
|
|
3738
|
+
:root.dark .vh-pg-paint span { color: var(--shiki-dark) !important; }
|
|
3739
|
+
.vh-pg-code textarea { caret-color: var(--vh-text); color: transparent; overflow: hidden; resize: none; }
|
|
3740
|
+
.vh-pg-code textarea::selection { background: var(--vh-selection, color-mix(in oklab, var(--vh-text) 18%, transparent)); }
|
|
3741
|
+
|
|
3742
|
+
.vh-pg-notice { border-top: 1px solid var(--vh-border); color: var(--vh-highlighted); flex: none; font-size: 0.8125rem; margin: 0; padding: 0.625rem 1rem; }
|
|
3743
|
+
.vh-pg-issues { border-top: 1px solid var(--vh-border); color: var(--vh-warning); flex: none; font-size: 0.8125rem; list-style: none; margin: 0; max-height: 30%; overflow-y: auto; padding: 0.625rem 1rem; }
|
|
3744
|
+
.vh-pg-issues[hidden] { display: none; }
|
|
3745
|
+
.vh-pg-issues li + li { margin-top: 0.375rem; }
|
|
3746
|
+
.vh-pg-issue-line { font-family: var(--vh-ws-font-mono); font-weight: 600; margin-inline-end: 0.5rem; }
|
|
3747
|
+
|
|
3748
|
+
.vh-pg-confirm { background: var(--vh-bg); border: 1px solid var(--vh-border); border-radius: var(--vh-radius); color: var(--vh-text); max-width: 22rem; padding: 1rem; }
|
|
3749
|
+
.vh-pg-confirm form { display: grid; gap: 0.5rem; }
|
|
3750
|
+
.vh-pg-confirm p { font-size: 0.875rem; margin: 0; }
|
|
3751
|
+
.vh-pg-confirm-title { color: var(--vh-highlighted); font-weight: 600; }
|
|
3752
|
+
.vh-pg-confirm .vh-ws-actions { justify-content: end; margin-top: 0.5rem; }
|
|
3753
|
+
|
|
3754
|
+
/* The frame paints the light canvas, so its page must not take the dark scheme of this page and draw white text. */
|
|
3755
|
+
.vh-pg-preview { background: Canvas; border: 0; color-scheme: light; height: 100%; width: 100%; }
|
|
3756
|
+
|
|
3757
|
+
@media (max-width: 60rem) {
|
|
3758
|
+
.vh-pg, .vh-pg:has(> .vh-pg-presets) { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(18rem, 1fr) minmax(18rem, 1fr); }
|
|
3759
|
+
.vh-pg:has(> .vh-pg-presets) { grid-template-rows: auto minmax(18rem, 1fr) minmax(18rem, 1fr); }
|
|
3760
|
+
.vh-pg-presets { border-bottom: 1px solid var(--vh-border); border-inline-end: 0; display: flex; overflow-x: auto; }
|
|
3761
|
+
.vh-pg-group { flex: none; }
|
|
3762
|
+
.vh-pg-group ul { display: flex; }
|
|
3763
|
+
.vh-pg-preset { white-space: nowrap; }
|
|
3764
|
+
.vh-pg-editor { border-bottom: 1px solid var(--vh-border); border-inline-end: 0; }
|
|
3765
|
+
/* Smaller text makes iOS zoom into the field. */
|
|
3766
|
+
.vh-pg-paint pre, .vh-pg-code textarea { font-size: 1rem; }
|
|
3767
|
+
}
|
|
3768
|
+
}
|
|
3769
|
+
|
|
3770
|
+
/* MarkdownEditor: the text takes the comark typeset. The editor has no frame, so its caret shows focus. */
|
|
3771
|
+
@layer components {
|
|
3772
|
+
.vh-markdown-editor-content .ProseMirror {
|
|
3773
|
+
min-height: 100%;
|
|
3774
|
+
outline: none;
|
|
3775
|
+
}
|
|
3776
|
+
}
|
|
3777
|
+
|
|
3778
|
+
/*
|
|
3779
|
+
* The editor parts of the ui-sdk set (`uiSdkComponents`). The kit style family draws their ui-sdk parts, and these
|
|
3780
|
+
* rules give them the shape of Nuxt UI's editor parts. Nuxt UI's parts carry none of these classes.
|
|
3781
|
+
*/
|
|
3782
|
+
@layer components {
|
|
3783
|
+
/* The bubble toolbar floats as a popup does: a ring and a soft shadow, no border. */
|
|
3784
|
+
.vh-editor-toolbar[data-layout="bubble"] {
|
|
3785
|
+
background: var(--popover, var(--vh-bg));
|
|
3786
|
+
border-width: 0;
|
|
3787
|
+
box-shadow: var(--shadow-popover, 0 0 0 1px var(--vh-border));
|
|
3788
|
+
color: var(--popover-foreground, var(--vh-text));
|
|
3789
|
+
padding: 0.25rem;
|
|
3790
|
+
}
|
|
3791
|
+
.vh-editor-toolbar-root { z-index: 50; }
|
|
3792
|
+
|
|
3793
|
+
/* The "/" list is one popup: Nuxt UI's width, and at most 24rem tall. */
|
|
3794
|
+
.vh-editor-suggestion-menu {
|
|
3795
|
+
max-height: min(24rem, var(--available-height));
|
|
3796
|
+
max-width: 15rem;
|
|
3797
|
+
min-width: 12rem;
|
|
3798
|
+
}
|
|
3799
|
+
/* web.css styles a menu's group labels and separators, but not a trigger menu's. These match the menu's. */
|
|
3800
|
+
.vh-editor-suggestion-menu [data-slot="trigger-menu-group-label"] {
|
|
3801
|
+
color: var(--ui-muted-foreground, var(--vh-muted));
|
|
3802
|
+
font-size: 0.75rem;
|
|
3803
|
+
padding: 0.375rem 0.5rem 0.25rem;
|
|
3804
|
+
}
|
|
3805
|
+
.vh-editor-suggestion-menu [data-slot="trigger-menu-separator"] {
|
|
3806
|
+
background: var(--ui-border, var(--vh-border));
|
|
3807
|
+
height: 1px;
|
|
3808
|
+
margin: 0.25rem -0.25rem;
|
|
3809
|
+
}
|
|
3810
|
+
[data-slot="editor-suggestion-text"] { display: flex; flex: 1; flex-direction: column; min-width: 0; }
|
|
3811
|
+
:is([data-slot="editor-suggestion-label"], [data-slot="editor-suggestion-description"]) {
|
|
3812
|
+
overflow: hidden;
|
|
3813
|
+
text-overflow: ellipsis;
|
|
3814
|
+
white-space: nowrap;
|
|
3815
|
+
}
|
|
3816
|
+
[data-slot="editor-suggestion-description"] { color: var(--muted-foreground, var(--vh-muted)); font-size: 0.75rem; }
|
|
3817
|
+
/* Screen readers hear the count from the status. It takes no room. */
|
|
3818
|
+
.vh-editor-suggestion-menu__status {
|
|
3819
|
+
block-size: 1px;
|
|
3820
|
+
clip-path: inset(50%);
|
|
3821
|
+
inline-size: 1px;
|
|
3822
|
+
overflow: hidden;
|
|
3823
|
+
position: absolute;
|
|
3824
|
+
white-space: nowrap;
|
|
3825
|
+
}
|
|
3826
|
+
|
|
3827
|
+
/* The handle glides to the block under the pointer. A narrow screen has no room beside the text, as in Nuxt UI. */
|
|
3828
|
+
.vh-editor-drag-handle {
|
|
3829
|
+
align-items: center;
|
|
3830
|
+
display: flex;
|
|
3831
|
+
justify-content: center;
|
|
3832
|
+
transition: top 200ms ease-out, left 200ms ease-out;
|
|
3833
|
+
}
|
|
3834
|
+
.vh-editor-drag-handle__handle { cursor: grab; padding-inline: 0.25rem; }
|
|
3835
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3836
|
+
.vh-editor-drag-handle { transition: none; }
|
|
3837
|
+
}
|
|
3838
|
+
@media (max-width: 639.98px) {
|
|
3839
|
+
.vh-editor-drag-handle { display: none; }
|
|
3840
|
+
}
|
|
3841
|
+
}
|
|
3842
|
+
|
|
3843
|
+
/*
|
|
3844
|
+
* AgentSession: T3 Code's thread layout (MIT, T3 Tools Inc.). A 52px header, a timeline lane of at most 46rem, a 17.5rem
|
|
3845
|
+
* details card at the top right (flat, not T3's glass, like every Console surface), and a right panel of surface tabs whose toggle stays in the top right corner.
|
|
3846
|
+
*/
|
|
3847
|
+
@layer components {
|
|
3848
|
+
.vh-agent-session {
|
|
3849
|
+
--vh-agent-topbar: 52px;
|
|
3850
|
+
--vh-agent-control: 1.75rem;
|
|
3851
|
+
--vh-agent-lane: 46rem;
|
|
3852
|
+
--vh-agent-details-width: 17.5rem;
|
|
3853
|
+
--vh-agent-hover: color-mix(in oklab, var(--vh-text) 6%, transparent);
|
|
3854
|
+
--vh-agent-pressed: color-mix(in oklab, var(--vh-text) 9%, transparent);
|
|
3855
|
+
--vh-agent-message: color-mix(in oklab, var(--vh-bg) 93%, var(--vh-text));
|
|
3856
|
+
--vh-agent-hairline: color-mix(in oklab, var(--vh-border) 65%, transparent);
|
|
3857
|
+
/* The typeset grain would mark each answer as a box on the timeline. */
|
|
3858
|
+
--comark-grain: none;
|
|
3859
|
+
background: var(--vh-bg);
|
|
3860
|
+
color: var(--vh-text);
|
|
3861
|
+
display: flex;
|
|
3862
|
+
font-size: 0.875rem;
|
|
3863
|
+
height: 100%;
|
|
3864
|
+
isolation: isolate;
|
|
3865
|
+
min-height: 0;
|
|
3866
|
+
min-width: 0;
|
|
3867
|
+
overflow: hidden;
|
|
3868
|
+
position: relative;
|
|
3869
|
+
}
|
|
3870
|
+
/* A user turn stands one step off the canvas: lighter on a dark page, darker on a light one. */
|
|
3871
|
+
:where(.dark) .vh-agent-session { --vh-agent-message: color-mix(in oklab, var(--vh-bg) 88%, var(--vh-text)); }
|
|
3872
|
+
.vh-agent-session :where(button) { font: inherit; }
|
|
3873
|
+
.vh-agent-session__sr {
|
|
3874
|
+
block-size: 1px; clip-path: inset(50%); inline-size: 1px; overflow: hidden; position: absolute; white-space: nowrap;
|
|
3875
|
+
}
|
|
3876
|
+
|
|
3877
|
+
.vh-agent-session__main { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; min-width: 0; }
|
|
3878
|
+
.vh-agent-session[data-maximized] .vh-agent-session__main { display: none; }
|
|
3879
|
+
|
|
3880
|
+
.vh-agent-session__header {
|
|
3881
|
+
align-items: center;
|
|
3882
|
+
display: flex;
|
|
3883
|
+
flex: none;
|
|
3884
|
+
gap: 0.75rem;
|
|
3885
|
+
height: var(--vh-agent-topbar);
|
|
3886
|
+
padding-inline: 1.25rem 0.75rem;
|
|
3887
|
+
}
|
|
3888
|
+
.vh-agent-session__heading { align-items: baseline; display: flex; flex: 1 1 0; gap: 0.5rem; min-width: 0; }
|
|
3889
|
+
.vh-agent-session__title {
|
|
3890
|
+
color: var(--vh-highlighted);
|
|
3891
|
+
flex: none;
|
|
3892
|
+
font-size: 0.875rem;
|
|
3893
|
+
font-weight: 500;
|
|
3894
|
+
margin: 0;
|
|
3895
|
+
max-width: 100%;
|
|
3896
|
+
min-width: 0;
|
|
3897
|
+
overflow: hidden;
|
|
3898
|
+
text-overflow: ellipsis;
|
|
3899
|
+
white-space: nowrap;
|
|
3900
|
+
}
|
|
3901
|
+
.vh-agent-session__subtitle {
|
|
3902
|
+
color: var(--vh-muted);
|
|
3903
|
+
flex: 0 1000 auto;
|
|
3904
|
+
font-size: 0.8125rem;
|
|
3905
|
+
font-variant-numeric: tabular-nums;
|
|
3906
|
+
min-width: 0;
|
|
3907
|
+
overflow: hidden;
|
|
3908
|
+
text-overflow: ellipsis;
|
|
3909
|
+
white-space: nowrap;
|
|
3910
|
+
}
|
|
3911
|
+
.vh-agent-session__controls { align-items: center; display: flex; flex: none; gap: 0.25rem; }
|
|
3912
|
+
|
|
3913
|
+
.vh-agent-session__toggle {
|
|
3914
|
+
align-items: center;
|
|
3915
|
+
background: transparent;
|
|
3916
|
+
border: 0;
|
|
3917
|
+
border-radius: 0.5rem;
|
|
3918
|
+
color: var(--vh-muted);
|
|
3919
|
+
cursor: pointer;
|
|
3920
|
+
display: inline-flex;
|
|
3921
|
+
flex: none;
|
|
3922
|
+
height: var(--vh-agent-control);
|
|
3923
|
+
justify-content: center;
|
|
3924
|
+
padding: 0;
|
|
3925
|
+
transition: background-color 150ms ease-out, color 150ms ease-out, scale 150ms ease-out;
|
|
3926
|
+
width: var(--vh-agent-control);
|
|
3927
|
+
}
|
|
3928
|
+
.vh-agent-session__toggle > * { height: 1rem; width: 1rem; }
|
|
3929
|
+
.vh-agent-session__toggle:hover { background: var(--vh-agent-hover); color: var(--vh-text); }
|
|
3930
|
+
.vh-agent-session__toggle[aria-pressed="true"] { background: var(--vh-agent-pressed); color: var(--vh-highlighted); }
|
|
3931
|
+
.vh-agent-session__toggle:active { scale: 0.96; }
|
|
3932
|
+
|
|
3933
|
+
.vh-agent-session__body { display: flex; flex: 1 1 0; min-height: 0; position: relative; }
|
|
3934
|
+
.vh-agent-session__scroll { flex: 1 1 0; min-width: 0; overflow-y: auto; scrollbar-gutter: stable; }
|
|
3935
|
+
.vh-agent-session[data-details="inline"] { --vh-agent-session-inset-end: calc(var(--vh-agent-details-width) + 1.5rem); }
|
|
3936
|
+
.vh-agent-session__scroll { padding-inline-end: var(--vh-agent-session-inset-end, 0); }
|
|
3937
|
+
.vh-agent-session__lane {
|
|
3938
|
+
box-sizing: content-box;
|
|
3939
|
+
margin-inline: auto;
|
|
3940
|
+
max-width: var(--vh-agent-lane);
|
|
3941
|
+
padding: 0.5rem 0.75rem 6rem;
|
|
3942
|
+
}
|
|
3943
|
+
@media (min-width: 640px) {
|
|
3944
|
+
.vh-agent-session__lane { padding-inline: 3rem; }
|
|
3945
|
+
}
|
|
3946
|
+
|
|
3947
|
+
.vh-agent-session__details {
|
|
3948
|
+
inset-block-start: 0;
|
|
3949
|
+
inset-inline-end: 0.75rem;
|
|
3950
|
+
max-height: calc(100% - 0.75rem);
|
|
3951
|
+
position: absolute;
|
|
3952
|
+
width: var(--vh-agent-details-width);
|
|
3953
|
+
z-index: 20;
|
|
3954
|
+
}
|
|
3955
|
+
/* On a narrow column the card is a native popover in the top layer. CSS anchor positioning puts it where the inline
|
|
3956
|
+
card goes, over the top end corner of the body. Where that fails, AgentSession places it from the body's box. */
|
|
3957
|
+
.vh-agent-session__details[popover] {
|
|
3958
|
+
background: none;
|
|
3959
|
+
border: 0;
|
|
3960
|
+
color: inherit;
|
|
3961
|
+
max-height: calc(100dvh - 2rem);
|
|
3962
|
+
overflow: visible;
|
|
3963
|
+
padding: 0;
|
|
3964
|
+
position: fixed;
|
|
3965
|
+
z-index: auto;
|
|
3966
|
+
}
|
|
3967
|
+
@supports (anchor-name: --a) {
|
|
3968
|
+
.vh-agent-session { anchor-scope: --vh-agent-session-body; }
|
|
3969
|
+
.vh-agent-session__body { anchor-name: --vh-agent-session-body; }
|
|
3970
|
+
.vh-agent-session__details[popover] {
|
|
3971
|
+
inset: auto;
|
|
3972
|
+
inset-block-start: anchor(start);
|
|
3973
|
+
inset-inline-end: calc(anchor(end) + 0.75rem);
|
|
3974
|
+
margin: 0;
|
|
3975
|
+
max-height: calc(anchor-size(block) - 0.75rem);
|
|
3976
|
+
position-anchor: --vh-agent-session-body;
|
|
3977
|
+
}
|
|
3978
|
+
}
|
|
3979
|
+
.vh-agent-session__details-card {
|
|
3980
|
+
background: var(--vh-bg-elevated);
|
|
3981
|
+
border: 1px solid color-mix(in srgb, var(--vh-text) 10%, transparent);
|
|
3982
|
+
border-radius: 1rem;
|
|
3983
|
+
box-shadow: var(--vh-shadow-floating, 0 0 0 1px var(--vh-border));
|
|
3984
|
+
max-height: 100%;
|
|
3985
|
+
overflow-y: auto;
|
|
3986
|
+
overscroll-behavior: contain;
|
|
3987
|
+
}
|
|
3988
|
+
.vh-agent-session[data-details="popover"] .vh-agent-session__details-card {
|
|
3989
|
+
box-shadow: var(--vh-shadow-dialog, 0 0 0 1px var(--vh-border));
|
|
3990
|
+
}
|
|
3991
|
+
.vh-agent-session__section { padding: 0.5rem 0.5rem 0.625rem; }
|
|
3992
|
+
.vh-agent-session__section + .vh-agent-session__section { border-top: 1px solid var(--vh-agent-hairline); }
|
|
3993
|
+
.vh-agent-session__section-heading {
|
|
3994
|
+
align-items: center;
|
|
3995
|
+
display: flex;
|
|
3996
|
+
gap: 0.5rem;
|
|
3997
|
+
justify-content: space-between;
|
|
3998
|
+
margin-block-end: 0.25rem;
|
|
3999
|
+
min-height: 2rem;
|
|
4000
|
+
padding-inline: 0.625rem;
|
|
4001
|
+
}
|
|
4002
|
+
.vh-agent-session__section-heading h3 {
|
|
4003
|
+
color: var(--vh-muted);
|
|
4004
|
+
font-size: 0.6875rem;
|
|
4005
|
+
font-weight: 500;
|
|
4006
|
+
margin: 0;
|
|
4007
|
+
overflow: hidden;
|
|
4008
|
+
text-overflow: ellipsis;
|
|
4009
|
+
user-select: none;
|
|
4010
|
+
white-space: nowrap;
|
|
4011
|
+
}
|
|
4012
|
+
.vh-agent-session__section-actions { align-items: center; display: flex; gap: 0.25rem; }
|
|
4013
|
+
.vh-agent-session__section-rows { display: flex; flex-direction: column; }
|
|
4014
|
+
.vh-agent-session__row {
|
|
4015
|
+
align-items: center;
|
|
4016
|
+
background: transparent;
|
|
4017
|
+
border: 1px solid transparent;
|
|
4018
|
+
border-radius: 0.5rem;
|
|
4019
|
+
box-sizing: border-box;
|
|
4020
|
+
color: color-mix(in oklab, var(--vh-text) 80%, transparent);
|
|
4021
|
+
display: flex;
|
|
4022
|
+
font-size: 0.8125rem;
|
|
4023
|
+
font-weight: 500;
|
|
4024
|
+
gap: 0.625rem;
|
|
4025
|
+
min-height: 2rem;
|
|
4026
|
+
min-width: 0;
|
|
4027
|
+
padding: 0.25rem 0.625rem;
|
|
4028
|
+
text-align: start;
|
|
4029
|
+
text-decoration: none;
|
|
4030
|
+
width: 100%;
|
|
4031
|
+
}
|
|
4032
|
+
.vh-agent-session__row[data-interactive] { cursor: pointer; transition: background-color 150ms ease-out, scale 150ms ease-out; }
|
|
4033
|
+
.vh-agent-session__row[data-interactive]:hover { background: var(--vh-agent-hover); }
|
|
4034
|
+
.vh-agent-session__row[data-interactive]:active { scale: 0.98; }
|
|
4035
|
+
.vh-agent-session__row-icon { color: var(--vh-muted); flex: none; height: 1rem; width: 1rem; }
|
|
4036
|
+
.vh-agent-session__row-label { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
4037
|
+
.vh-agent-session__row-value {
|
|
4038
|
+
color: var(--vh-muted);
|
|
4039
|
+
flex: none;
|
|
4040
|
+
font-variant-numeric: tabular-nums;
|
|
4041
|
+
max-width: 60%;
|
|
4042
|
+
overflow: hidden;
|
|
4043
|
+
text-overflow: ellipsis;
|
|
4044
|
+
white-space: nowrap;
|
|
4045
|
+
}
|
|
4046
|
+
.vh-agent-session__row[data-tone="success"] .vh-agent-session__row-value { color: var(--vh-success); }
|
|
4047
|
+
.vh-agent-session__row[data-tone="error"] .vh-agent-session__row-value { color: var(--vh-error); }
|
|
4048
|
+
.vh-agent-session__row[data-tone="info"] .vh-agent-session__row-value { color: var(--vh-info); }
|
|
4049
|
+
.vh-agent-session__row[data-tone="muted"] { color: var(--vh-muted); }
|
|
4050
|
+
|
|
4051
|
+
.vh-agent-session__timeline { display: flex; flex-direction: column; gap: 1rem; line-height: 1.625; }
|
|
4052
|
+
.vh-agent-session__user { align-items: flex-end; display: flex; flex-direction: column; }
|
|
4053
|
+
.vh-agent-session__bubble {
|
|
4054
|
+
background: var(--vh-agent-message);
|
|
4055
|
+
border-radius: 1rem;
|
|
4056
|
+
color: var(--vh-text);
|
|
4057
|
+
max-width: 80%;
|
|
4058
|
+
min-width: 0;
|
|
4059
|
+
overflow-wrap: anywhere;
|
|
4060
|
+
padding: 0.75rem;
|
|
4061
|
+
white-space: pre-wrap;
|
|
4062
|
+
}
|
|
4063
|
+
.vh-agent-session__bubble[data-folded] .vh-agent-session__bubble-text {
|
|
4064
|
+
-webkit-mask-image: linear-gradient(to bottom, currentColor calc(100% - 2lh), transparent);
|
|
4065
|
+
mask-image: linear-gradient(to bottom, currentColor calc(100% - 2lh), transparent);
|
|
4066
|
+
max-height: 10lh;
|
|
4067
|
+
overflow: hidden;
|
|
4068
|
+
}
|
|
4069
|
+
.vh-agent-session__bubble-more {
|
|
4070
|
+
background: transparent;
|
|
4071
|
+
border: 0;
|
|
4072
|
+
border-radius: 0.25rem;
|
|
4073
|
+
color: var(--vh-muted);
|
|
4074
|
+
cursor: pointer;
|
|
4075
|
+
font-size: 0.8125rem;
|
|
4076
|
+
margin-block-start: 0.375rem;
|
|
4077
|
+
padding: 0;
|
|
4078
|
+
}
|
|
4079
|
+
.vh-agent-session__bubble-more:hover { color: var(--vh-text); }
|
|
4080
|
+
.vh-agent-session__assistant { min-width: 0; padding: 0.125rem 0.25rem; }
|
|
4081
|
+
/* The timeline reads at one size. */
|
|
4082
|
+
.vh-agent-session__assistant .vh-typeset {
|
|
4083
|
+
--typeset-flow: 0.875em;
|
|
4084
|
+
--typeset-leading: 1.625;
|
|
4085
|
+
--vh-typeset-flow: 0.875em;
|
|
4086
|
+
--vh-typeset-leading: 1.625;
|
|
4087
|
+
font-size: 0.875rem;
|
|
4088
|
+
}
|
|
4089
|
+
.vh-agent-session__divider {
|
|
4090
|
+
align-items: center;
|
|
4091
|
+
color: var(--vh-muted);
|
|
4092
|
+
display: flex;
|
|
4093
|
+
font-size: 0.75rem;
|
|
4094
|
+
gap: 0.75rem;
|
|
4095
|
+
padding-inline: 0.25rem;
|
|
4096
|
+
}
|
|
4097
|
+
.vh-agent-session__divider::before,
|
|
4098
|
+
.vh-agent-session__divider::after { background: var(--vh-agent-hairline); content: ""; flex: 1 1 0; height: 1px; }
|
|
4099
|
+
|
|
4100
|
+
.vh-agent-session__work { display: flex; flex-direction: column; min-width: 0; }
|
|
4101
|
+
.vh-agent-session__work-summary {
|
|
4102
|
+
align-items: center;
|
|
4103
|
+
align-self: flex-start;
|
|
4104
|
+
background: transparent;
|
|
4105
|
+
border: 0;
|
|
4106
|
+
border-radius: 0.375rem;
|
|
4107
|
+
color: var(--vh-muted);
|
|
4108
|
+
cursor: pointer;
|
|
4109
|
+
display: inline-flex;
|
|
4110
|
+
font-variant-numeric: tabular-nums;
|
|
4111
|
+
gap: 0.375rem;
|
|
4112
|
+
min-height: 1.5rem;
|
|
4113
|
+
padding: 0 0.25rem;
|
|
4114
|
+
}
|
|
4115
|
+
.vh-agent-session__work-summary:hover { color: var(--vh-text); }
|
|
4116
|
+
.vh-agent-session__work-count { color: var(--vh-muted); font-size: 0.75rem; }
|
|
4117
|
+
.vh-agent-session__work-failed { color: var(--vh-error); }
|
|
4118
|
+
.vh-agent-session__work-chevron { height: 0.875rem; transition: rotate 150ms ease-out; width: 0.875rem; }
|
|
4119
|
+
.vh-agent-session__work[data-open] .vh-agent-session__work-chevron { rotate: 180deg; }
|
|
4120
|
+
.vh-agent-session__work[data-open] .vh-agent-session__work-summary {
|
|
4121
|
+
align-self: stretch;
|
|
4122
|
+
border-block-end: 1px solid var(--vh-agent-hairline);
|
|
4123
|
+
border-radius: 0;
|
|
4124
|
+
padding-block-end: 0.5rem;
|
|
4125
|
+
}
|
|
4126
|
+
.vh-agent-session__work-list { display: flex; flex-direction: column; padding-block: 0.125rem 0.25rem; }
|
|
4127
|
+
.vh-agent-session__work-row { border-radius: 0.375rem; min-width: 0; padding-inline: 0.125rem; }
|
|
4128
|
+
.vh-agent-session__work-line {
|
|
4129
|
+
align-items: center;
|
|
4130
|
+
background: transparent;
|
|
4131
|
+
border: 0;
|
|
4132
|
+
border-radius: 0.375rem;
|
|
4133
|
+
color: var(--vh-muted);
|
|
4134
|
+
display: flex;
|
|
4135
|
+
gap: 0.375rem;
|
|
4136
|
+
min-height: 1.5rem;
|
|
4137
|
+
padding: 0;
|
|
4138
|
+
text-align: start;
|
|
4139
|
+
user-select: none;
|
|
4140
|
+
width: 100%;
|
|
4141
|
+
}
|
|
4142
|
+
button.vh-agent-session__work-line { cursor: pointer; }
|
|
4143
|
+
button.vh-agent-session__work-line:hover .vh-agent-session__work-title { color: var(--vh-text); }
|
|
4144
|
+
.vh-agent-session__work-icon {
|
|
4145
|
+
align-items: center;
|
|
4146
|
+
color: var(--vh-muted);
|
|
4147
|
+
display: inline-flex;
|
|
4148
|
+
flex: none;
|
|
4149
|
+
height: 1.5rem;
|
|
4150
|
+
justify-content: center;
|
|
4151
|
+
width: 1.5rem;
|
|
4152
|
+
}
|
|
4153
|
+
.vh-agent-session__work-icon > * { height: 1rem; width: 1rem; }
|
|
4154
|
+
.vh-agent-session__work-icon[data-status="error"] { color: var(--vh-error); }
|
|
4155
|
+
.vh-agent-session__work-label { display: flex; flex: 1 1 0; gap: 0.375rem; min-width: 0; overflow: hidden; white-space: nowrap; }
|
|
4156
|
+
.vh-agent-session__work-title { flex: none; font-size: 0.8125rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
|
|
4157
|
+
.vh-agent-session__work-row[data-kind="command"] .vh-agent-session__work-title,
|
|
4158
|
+
.vh-agent-session__work-row[data-kind="edit"] .vh-agent-session__work-title,
|
|
4159
|
+
.vh-agent-session__work-row[data-kind="read"] .vh-agent-session__work-title {
|
|
4160
|
+
font-family: var(--vh-font-mono, var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace));
|
|
4161
|
+
font-size: 0.75rem;
|
|
4162
|
+
}
|
|
4163
|
+
.vh-agent-session__work-preview { color: var(--vh-muted); font-size: 0.8125rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
4164
|
+
.vh-agent-session__work-trailing { color: var(--vh-muted); flex: none; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
|
|
4165
|
+
.vh-agent-session__work-detail {
|
|
4166
|
+
border-inline-start: 1px solid var(--vh-agent-hairline);
|
|
4167
|
+
color: color-mix(in oklab, var(--vh-text) 80%, transparent);
|
|
4168
|
+
font-family: var(--vh-font-mono, var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace));
|
|
4169
|
+
font-size: 0.75rem;
|
|
4170
|
+
line-height: 1.6;
|
|
4171
|
+
margin: 0.125rem 0 0.375rem 0.75rem;
|
|
4172
|
+
max-height: 24rem;
|
|
4173
|
+
overflow: auto;
|
|
4174
|
+
padding: 0.25rem 0 0.25rem 1rem;
|
|
4175
|
+
white-space: pre-wrap;
|
|
4176
|
+
}
|
|
4177
|
+
|
|
4178
|
+
.vh-agent-session__resizer {
|
|
4179
|
+
cursor: col-resize;
|
|
4180
|
+
flex: none;
|
|
4181
|
+
margin-inline: -3px;
|
|
4182
|
+
position: relative;
|
|
4183
|
+
touch-action: none;
|
|
4184
|
+
width: 7px;
|
|
4185
|
+
z-index: 30;
|
|
4186
|
+
}
|
|
4187
|
+
.vh-agent-session__resizer::after {
|
|
4188
|
+
background: var(--vh-border);
|
|
4189
|
+
content: "";
|
|
4190
|
+
inset-block: 0;
|
|
4191
|
+
inset-inline-start: 3px;
|
|
4192
|
+
position: absolute;
|
|
4193
|
+
transition: background-color 150ms ease-out;
|
|
4194
|
+
width: 1px;
|
|
4195
|
+
}
|
|
4196
|
+
.vh-agent-session__resizer:hover::after,
|
|
4197
|
+
.vh-agent-session__resizer:focus-visible::after { background: var(--vh-ring); }
|
|
4198
|
+
.vh-agent-session[data-maximized] .vh-agent-session__resizer { display: none; }
|
|
4199
|
+
|
|
4200
|
+
.vh-agent-session__panel {
|
|
4201
|
+
display: flex;
|
|
4202
|
+
flex: none;
|
|
4203
|
+
flex-direction: column;
|
|
4204
|
+
max-width: calc(100% - 34rem);
|
|
4205
|
+
min-height: 0;
|
|
4206
|
+
min-width: 20rem;
|
|
4207
|
+
width: var(--vh-agent-panel-width);
|
|
4208
|
+
}
|
|
4209
|
+
.vh-agent-session[data-maximized] .vh-agent-session__panel { flex: 1 1 0; max-width: none; width: auto; }
|
|
4210
|
+
.vh-agent-session__panel-header {
|
|
4211
|
+
align-items: center;
|
|
4212
|
+
display: flex;
|
|
4213
|
+
flex: none;
|
|
4214
|
+
gap: 0.25rem;
|
|
4215
|
+
height: var(--vh-agent-topbar);
|
|
4216
|
+
padding-inline: 0.5rem 0.75rem;
|
|
4217
|
+
}
|
|
4218
|
+
.vh-agent-session__tabs { align-items: center; display: flex; flex: 1 1 0; gap: 0.25rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
|
|
4219
|
+
.vh-agent-session__tab {
|
|
4220
|
+
align-items: center;
|
|
4221
|
+
border-radius: 0.375rem;
|
|
4222
|
+
position: relative;
|
|
4223
|
+
color: var(--vh-muted);
|
|
4224
|
+
display: flex;
|
|
4225
|
+
flex: none;
|
|
4226
|
+
font-size: 0.75rem;
|
|
4227
|
+
height: 1.5rem;
|
|
4228
|
+
max-width: 9rem;
|
|
4229
|
+
transition: background-color 150ms ease-out, color 150ms ease-out;
|
|
4230
|
+
}
|
|
4231
|
+
.vh-agent-session__tab:hover { background: var(--vh-agent-hover); color: var(--vh-text); }
|
|
4232
|
+
.vh-agent-session__tab[data-active] { background: var(--vh-agent-pressed); color: var(--vh-highlighted); }
|
|
4233
|
+
.vh-agent-session__tab-button {
|
|
4234
|
+
align-items: center;
|
|
4235
|
+
background: transparent;
|
|
4236
|
+
border: 0;
|
|
4237
|
+
color: inherit;
|
|
4238
|
+
cursor: pointer;
|
|
4239
|
+
display: flex;
|
|
4240
|
+
font-size: inherit;
|
|
4241
|
+
gap: 0.25rem;
|
|
4242
|
+
height: 100%;
|
|
4243
|
+
min-width: 0;
|
|
4244
|
+
padding: 0 0.5rem;
|
|
4245
|
+
}
|
|
4246
|
+
.vh-agent-session__tab[data-closable] .vh-agent-session__tab-button { padding-inline-end: 1.375rem; }
|
|
4247
|
+
.vh-agent-session__tab-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
4248
|
+
.vh-agent-session__tab-icon { flex: none; height: 0.75rem; width: 0.75rem; }
|
|
4249
|
+
.vh-agent-session__tab-close {
|
|
4250
|
+
align-items: center;
|
|
4251
|
+
background: color-mix(in oklab, var(--vh-text) 6%, var(--vh-bg));
|
|
4252
|
+
border: 0;
|
|
4253
|
+
border-radius: 0.25rem;
|
|
4254
|
+
color: inherit;
|
|
4255
|
+
cursor: pointer;
|
|
4256
|
+
display: flex;
|
|
4257
|
+
height: 1rem;
|
|
4258
|
+
inset-block-start: 50%;
|
|
4259
|
+
inset-inline-end: 0.25rem;
|
|
4260
|
+
justify-content: center;
|
|
4261
|
+
opacity: 0;
|
|
4262
|
+
padding: 0;
|
|
4263
|
+
position: absolute;
|
|
4264
|
+
translate: 0 -50%;
|
|
4265
|
+
width: 1rem;
|
|
4266
|
+
}
|
|
4267
|
+
.vh-agent-session__tab[data-active] .vh-agent-session__tab-close { background: color-mix(in oklab, var(--vh-text) 9%, var(--vh-bg)); }
|
|
4268
|
+
.vh-agent-session__tab-close > * { height: 0.75rem; width: 0.75rem; }
|
|
4269
|
+
.vh-agent-session__tab:hover .vh-agent-session__tab-close,
|
|
4270
|
+
.vh-agent-session__tab:focus-within .vh-agent-session__tab-close,
|
|
4271
|
+
.vh-agent-session__tab[data-active] .vh-agent-session__tab-close { opacity: 1; }
|
|
4272
|
+
.vh-agent-session__tab-close:hover { background: color-mix(in oklab, var(--vh-text) 15%, var(--vh-bg)); }
|
|
4273
|
+
.vh-agent-session__new-tab { height: 1.5rem; width: 1.5rem; }
|
|
4274
|
+
.vh-agent-session__new-tab > * { height: 0.875rem; width: 0.875rem; }
|
|
4275
|
+
.vh-agent-session__new-tab[aria-pressed="true"] { background: transparent; color: var(--vh-muted); }
|
|
4276
|
+
.vh-agent-session__panel-body { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; overflow: hidden; }
|
|
4277
|
+
|
|
4278
|
+
.vh-agent-session__launcher {
|
|
4279
|
+
align-items: center;
|
|
4280
|
+
display: flex;
|
|
4281
|
+
flex: 1 1 0;
|
|
4282
|
+
justify-content: center;
|
|
4283
|
+
outline: none;
|
|
4284
|
+
overflow-y: auto;
|
|
4285
|
+
padding: 0 1.5rem var(--vh-agent-topbar);
|
|
4286
|
+
}
|
|
4287
|
+
.vh-agent-session__launcher-inner { max-width: 20rem; padding-block: 1.5rem; width: 100%; }
|
|
4288
|
+
.vh-agent-session__launcher-title {
|
|
4289
|
+
color: var(--vh-highlighted);
|
|
4290
|
+
font-size: 0.875rem;
|
|
4291
|
+
font-weight: 500;
|
|
4292
|
+
margin: 0 0 0.75rem;
|
|
4293
|
+
text-align: center;
|
|
4294
|
+
}
|
|
4295
|
+
.vh-agent-session__launcher-list { display: flex; flex-direction: column; gap: 0.125rem; }
|
|
4296
|
+
.vh-agent-session__launcher-item {
|
|
4297
|
+
align-items: center;
|
|
4298
|
+
background: transparent;
|
|
4299
|
+
border: 0;
|
|
4300
|
+
border-radius: 0.5rem;
|
|
4301
|
+
color: var(--vh-text);
|
|
4302
|
+
cursor: pointer;
|
|
4303
|
+
display: flex;
|
|
4304
|
+
font-size: 0.875rem;
|
|
4305
|
+
gap: 0.625rem;
|
|
4306
|
+
height: 2rem;
|
|
4307
|
+
padding-inline: 0.625rem;
|
|
4308
|
+
text-align: start;
|
|
4309
|
+
transition: background-color 150ms ease-out;
|
|
4310
|
+
width: 100%;
|
|
4311
|
+
}
|
|
4312
|
+
.vh-agent-session__launcher-item:hover { background: var(--vh-agent-hover); }
|
|
4313
|
+
.vh-agent-session__launcher-item > :first-child { color: var(--vh-muted); flex: none; height: 1rem; width: 1rem; }
|
|
4314
|
+
.vh-agent-session__launcher-label { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
4315
|
+
.vh-agent-session__kbd {
|
|
4316
|
+
align-items: center;
|
|
4317
|
+
background: var(--vh-agent-hover);
|
|
4318
|
+
border-radius: 0.25rem;
|
|
4319
|
+
color: var(--vh-muted);
|
|
4320
|
+
display: inline-flex;
|
|
4321
|
+
font-family: inherit;
|
|
4322
|
+
font-size: 0.6875rem;
|
|
4323
|
+
font-weight: 500;
|
|
4324
|
+
height: 1.25rem;
|
|
4325
|
+
justify-content: center;
|
|
4326
|
+
min-width: 1.25rem;
|
|
4327
|
+
padding-inline: 0.25rem;
|
|
4328
|
+
}
|
|
4329
|
+
|
|
4330
|
+
@media (max-width: 767px) {
|
|
4331
|
+
.vh-agent-session[data-panel-open] .vh-agent-session__main { display: none; }
|
|
4332
|
+
.vh-agent-session[data-panel-open] .vh-agent-session__panel { flex: 1 1 0; max-width: none; min-width: 0; width: auto; }
|
|
4333
|
+
.vh-agent-session[data-panel-open] .vh-agent-session__resizer { display: none; }
|
|
4334
|
+
}
|
|
4335
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4336
|
+
.vh-agent-session * { transition: none !important; }
|
|
4337
|
+
}
|
|
4338
|
+
}
|
|
4339
|
+
|
|
4340
|
+
/* Surfaces inside AgentSession fill the panel and follow its theme, as T3 Code themes its Pierre tree. */
|
|
4341
|
+
@layer components {
|
|
4342
|
+
.vh-agent-session__panel-body :is(.vh-file-tree, .vh-diff, .vh-file, .vh-code-view) { border: 0; border-radius: 0; }
|
|
4343
|
+
/* Code in the panel reads at T3's 12px, so a 30rem panel still fits a typical line. */
|
|
4344
|
+
.vh-agent-session__panel-body :is(.vh-diff, .vh-file, .vh-code-view) {
|
|
4345
|
+
--diffs-addition-base: var(--vh-success);
|
|
4346
|
+
--diffs-bg-addition: color-mix(in oklab, var(--vh-success) 10%, var(--vh-bg));
|
|
4347
|
+
--diffs-bg-addition-emphasis: color-mix(in oklab, var(--vh-success) 20%, var(--vh-bg));
|
|
4348
|
+
--diffs-font-size: 0.75rem;
|
|
4349
|
+
}
|
|
4350
|
+
.vh-agent-session__panel-body .vh-file-tree {
|
|
4351
|
+
--trees-bg-override: transparent;
|
|
4352
|
+
--trees-fg-override: var(--vh-text);
|
|
4353
|
+
--trees-selected-bg-override: color-mix(in srgb, currentColor 12%, transparent);
|
|
4354
|
+
--trees-hover-bg-override: color-mix(in srgb, currentColor 7%, transparent);
|
|
4355
|
+
--trees-border-color-override: color-mix(in srgb, currentColor 14%, transparent);
|
|
4356
|
+
--trees-font-family-override: var(--vh-font-sans, var(--font-sans, ui-sans-serif, system-ui, sans-serif));
|
|
4357
|
+
--trees-font-size-override: 0.75rem;
|
|
4358
|
+
color: var(--vh-text);
|
|
4359
|
+
color-scheme: inherit;
|
|
4360
|
+
height: auto;
|
|
4361
|
+
}
|
|
4362
|
+
}
|
|
4363
|
+
|
|
4364
|
+
/* DeviceFrame: a page at a device's size on a muted stage, with Chrome's device toolbar above it. */
|
|
4365
|
+
@layer components {
|
|
4366
|
+
.vh-device-frame {
|
|
4367
|
+
--vh-device-frame-control: 1.75rem;
|
|
4368
|
+
color: var(--vh-text);
|
|
4369
|
+
container-type: inline-size;
|
|
4370
|
+
display: flex;
|
|
4371
|
+
flex: 1 1 0;
|
|
4372
|
+
flex-direction: column;
|
|
4373
|
+
font-size: 0.8125rem;
|
|
4374
|
+
min-height: 0;
|
|
4375
|
+
min-width: 0;
|
|
4376
|
+
position: relative;
|
|
4377
|
+
}
|
|
4378
|
+
.vh-device-frame__select-label { font-weight: 500; white-space: nowrap; }
|
|
4379
|
+
.vh-device-frame__bar {
|
|
4380
|
+
align-items: center;
|
|
4381
|
+
background: var(--vh-bg);
|
|
4382
|
+
border-block-end: 1px solid var(--vh-border);
|
|
4383
|
+
display: flex;
|
|
4384
|
+
flex: none;
|
|
4385
|
+
gap: 0.375rem;
|
|
4386
|
+
min-height: 2.5rem;
|
|
4387
|
+
min-width: 0;
|
|
4388
|
+
overflow-x: auto;
|
|
4389
|
+
padding-inline: 0.75rem;
|
|
4390
|
+
scrollbar-width: none;
|
|
4391
|
+
}
|
|
4392
|
+
.vh-device-frame :where(button, input, select) {
|
|
4393
|
+
color: inherit;
|
|
4394
|
+
font: inherit;
|
|
4395
|
+
touch-action: manipulation;
|
|
4396
|
+
}
|
|
4397
|
+
.vh-device-frame__icon { flex: none; height: 1rem; width: 1rem; }
|
|
4398
|
+
.vh-device-frame__select {
|
|
4399
|
+
align-items: center;
|
|
4400
|
+
border-radius: calc(var(--vh-radius) * 0.75);
|
|
4401
|
+
color: var(--vh-highlighted);
|
|
4402
|
+
display: inline-flex;
|
|
4403
|
+
flex: none;
|
|
4404
|
+
gap: 0.375rem;
|
|
4405
|
+
height: var(--vh-device-frame-control);
|
|
4406
|
+
padding-inline: 0.5rem 0.375rem;
|
|
4407
|
+
position: relative;
|
|
4408
|
+
}
|
|
4409
|
+
/* The native select lies invisible over its label: the label shows the device, and the platform's own list opens. */
|
|
4410
|
+
.vh-device-frame__select select {
|
|
4411
|
+
appearance: none;
|
|
4412
|
+
background: transparent;
|
|
4413
|
+
border: 0;
|
|
4414
|
+
cursor: pointer;
|
|
4415
|
+
font-weight: 500;
|
|
4416
|
+
inset: 0;
|
|
4417
|
+
opacity: 0;
|
|
4418
|
+
position: absolute;
|
|
4419
|
+
width: 100%;
|
|
4420
|
+
}
|
|
4421
|
+
.vh-device-frame__chevron { color: var(--vh-muted); height: 0.875rem; width: 0.875rem; }
|
|
4422
|
+
.vh-device-frame__number {
|
|
4423
|
+
appearance: textfield;
|
|
4424
|
+
background: var(--vh-bg);
|
|
4425
|
+
border: 1px solid var(--vh-border);
|
|
4426
|
+
border-radius: calc(var(--vh-radius) * 0.75);
|
|
4427
|
+
font-variant-numeric: tabular-nums;
|
|
4428
|
+
height: var(--vh-device-frame-control);
|
|
4429
|
+
padding-inline: 0.375rem;
|
|
4430
|
+
text-align: center;
|
|
4431
|
+
width: 3.75rem;
|
|
4432
|
+
}
|
|
4433
|
+
.vh-device-frame__number::-webkit-inner-spin-button,
|
|
4434
|
+
.vh-device-frame__number::-webkit-outer-spin-button { appearance: none; margin: 0; }
|
|
4435
|
+
.vh-device-frame__times { color: var(--vh-dimmed); font-size: 0.75rem; }
|
|
4436
|
+
.vh-device-frame__button {
|
|
4437
|
+
align-items: center;
|
|
4438
|
+
background: transparent;
|
|
4439
|
+
border: 0;
|
|
4440
|
+
border-radius: calc(var(--vh-radius) * 0.75);
|
|
4441
|
+
color: var(--vh-text);
|
|
4442
|
+
cursor: pointer;
|
|
4443
|
+
display: inline-flex;
|
|
4444
|
+
flex: none;
|
|
4445
|
+
gap: 0.375rem;
|
|
4446
|
+
height: var(--vh-device-frame-control);
|
|
4447
|
+
padding-inline: 0.5rem;
|
|
4448
|
+
transition: background-color 150ms ease-out, color 150ms ease-out;
|
|
4449
|
+
}
|
|
4450
|
+
.vh-device-frame__button[aria-pressed="true"] { background: var(--vh-bg-elevated); color: var(--vh-highlighted); }
|
|
4451
|
+
.vh-device-frame__icon-button { justify-content: center; padding: 0; width: var(--vh-device-frame-control); }
|
|
4452
|
+
.vh-device-frame__bands { align-items: center; border-inline-start: 1px solid var(--vh-border); display: none; gap: 0.25rem; margin-inline-start: 0.25rem; padding-inline-start: 0.625rem; }
|
|
4453
|
+
@container (min-width: 56rem) {
|
|
4454
|
+
.vh-device-frame__bands { display: flex; }
|
|
4455
|
+
}
|
|
4456
|
+
.vh-device-frame__band {
|
|
4457
|
+
background: transparent;
|
|
4458
|
+
border: 1px solid var(--vh-border);
|
|
4459
|
+
border-radius: calc(var(--vh-radius) * 0.75);
|
|
4460
|
+
color: var(--vh-muted);
|
|
4461
|
+
cursor: pointer;
|
|
4462
|
+
font-size: 0.75rem;
|
|
4463
|
+
font-variant-numeric: tabular-nums;
|
|
4464
|
+
height: 1.5rem;
|
|
4465
|
+
padding-inline: 0.375rem;
|
|
4466
|
+
transition: background-color 150ms ease-out, color 150ms ease-out;
|
|
4467
|
+
}
|
|
4468
|
+
.vh-device-frame__band[data-within] { background: var(--vh-bg-elevated); border-color: var(--vh-bg-accented); color: var(--vh-highlighted); }
|
|
4469
|
+
.vh-device-frame__band[aria-pressed="true"] { background: var(--vh-highlighted); border-color: var(--vh-highlighted); color: var(--vh-inverted); }
|
|
4470
|
+
@media (hover: hover) and (pointer: fine) {
|
|
4471
|
+
.vh-device-frame__button:hover,
|
|
4472
|
+
.vh-device-frame__select:hover { background: var(--vh-bg-elevated); color: var(--vh-highlighted); }
|
|
4473
|
+
.vh-device-frame__band:not([aria-pressed="true"]):hover { background: var(--vh-bg-elevated); color: var(--vh-highlighted); }
|
|
4474
|
+
}
|
|
4475
|
+
.vh-device-frame__end { align-items: center; display: flex; flex: none; gap: 0.25rem; margin-inline-start: auto; }
|
|
4476
|
+
.vh-device-frame__zoom { align-items: center; color: var(--vh-muted); display: inline-flex; gap: 0.25rem; }
|
|
4477
|
+
.vh-device-frame__zoom .vh-device-frame__number { width: 3.25rem; }
|
|
4478
|
+
|
|
4479
|
+
/* Off, the stage and the page are plain flex boxes, so the content fills the frame. */
|
|
4480
|
+
.vh-device-frame__stage { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; min-width: 0; position: relative; }
|
|
4481
|
+
.vh-device-frame__footprint { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; position: relative; }
|
|
4482
|
+
.vh-device-frame__page { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; }
|
|
4483
|
+
.vh-device-frame[data-on] .vh-device-frame__stage { background: var(--vh-bg-muted); overflow: auto; padding: 1rem 1.5rem; }
|
|
4484
|
+
.vh-device-frame[data-on] .vh-device-frame__footprint { flex: none; margin-inline: auto; }
|
|
4485
|
+
.vh-device-frame[data-on] .vh-device-frame__page {
|
|
4486
|
+
background: var(--vh-bg);
|
|
4487
|
+
box-shadow: var(--vh-shadow-dialog, 0 0 0 1px var(--vh-border));
|
|
4488
|
+
flex: none;
|
|
4489
|
+
inset-block-start: 0;
|
|
4490
|
+
inset-inline-start: 0;
|
|
4491
|
+
overflow: hidden;
|
|
4492
|
+
position: absolute;
|
|
4493
|
+
transform-origin: top left;
|
|
4494
|
+
}
|
|
4495
|
+
.vh-device-frame[data-dragging] .vh-device-frame__page { pointer-events: none; }
|
|
4496
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
4497
|
+
.vh-device-frame[data-on]:not([data-dragging]) .vh-device-frame__footprint { transition: width 200ms ease-out, height 200ms ease-out; }
|
|
4498
|
+
.vh-device-frame[data-on]:not([data-dragging]) .vh-device-frame__page { transition: transform 200ms ease-out; }
|
|
4499
|
+
}
|
|
4500
|
+
.vh-device-frame__readout {
|
|
4501
|
+
background: var(--vh-highlighted);
|
|
4502
|
+
border-radius: calc(var(--vh-radius) * 0.75);
|
|
4503
|
+
color: var(--vh-inverted);
|
|
4504
|
+
font-size: 0.75rem;
|
|
4505
|
+
font-variant-numeric: tabular-nums;
|
|
4506
|
+
inset-block-start: 0.5rem;
|
|
4507
|
+
inset-inline-start: 50%;
|
|
4508
|
+
margin: 0;
|
|
4509
|
+
padding: 0.25rem 0.5rem;
|
|
4510
|
+
pointer-events: none;
|
|
4511
|
+
position: absolute;
|
|
4512
|
+
translate: -50% 0;
|
|
4513
|
+
}
|
|
4514
|
+
.vh-device-frame__handle { display: grid; outline: none; place-items: center; position: absolute; touch-action: none; }
|
|
4515
|
+
.vh-device-frame__handle[data-edge="x"] { cursor: ew-resize; height: 100%; inset-block-start: 0; inset-inline-end: -0.75rem; width: 0.75rem; }
|
|
4516
|
+
.vh-device-frame__handle[data-edge="y"] { cursor: ns-resize; height: 0.75rem; inset-block-end: -0.75rem; inset-inline-start: 0; width: 100%; }
|
|
4517
|
+
.vh-device-frame__handle[data-edge="xy"] { cursor: nwse-resize; height: 0.75rem; inset-block-end: -0.75rem; inset-inline-end: -0.75rem; width: 0.75rem; }
|
|
4518
|
+
.vh-device-frame__grip { background: var(--vh-bg-accented); border-radius: 999px; transition: background-color 150ms ease-out; }
|
|
4519
|
+
.vh-device-frame__handle[data-edge="x"] .vh-device-frame__grip { height: 2rem; width: 0.25rem; }
|
|
4520
|
+
.vh-device-frame__handle[data-edge="y"] .vh-device-frame__grip { height: 0.25rem; width: 2rem; }
|
|
4521
|
+
.vh-device-frame__handle:focus-visible .vh-device-frame__grip,
|
|
4522
|
+
.vh-device-frame[data-dragging] .vh-device-frame__grip { background: var(--vh-muted); }
|
|
4523
|
+
@media (hover: hover) and (pointer: fine) {
|
|
4524
|
+
.vh-device-frame__handle:hover .vh-device-frame__grip { background: var(--vh-muted); }
|
|
4525
|
+
}
|
|
4526
|
+
/* A thumb needs a 44px target; the controls keep their look and grow their hit area. */
|
|
4527
|
+
@media (pointer: coarse) {
|
|
4528
|
+
.vh-device-frame { --vh-device-frame-control: 2.75rem; }
|
|
4529
|
+
.vh-device-frame__handle[data-edge="x"] { inset-inline-end: -1.5rem; width: 1.5rem; }
|
|
4530
|
+
.vh-device-frame__handle[data-edge="y"] { height: 1.5rem; inset-block-end: -1.5rem; }
|
|
4531
|
+
.vh-device-frame__handle[data-edge="xy"] { height: 1.5rem; inset-block-end: -1.5rem; inset-inline-end: -1.5rem; width: 1.5rem; }
|
|
4532
|
+
}
|
|
2662
4533
|
}
|