@vite-hub/ui 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -81
- package/dist/announce-Cy_Tn9wW.js +32 -0
- package/dist/{code-view-D0bqhogi.js → code-view-DsU-xzic.js} +4 -4
- package/dist/comment-attachments-C4yNbcx5.js +20 -0
- package/dist/{comment-composer-jYv2ULNP.js → comment-composer-D7ZytyER.js} +257 -10
- package/dist/{comment-composer-Cc8Jvu6u.d.ts → comment-composer-DvKMTrAi.d.ts} +1 -1
- package/dist/{comment-layer-ClH4MLj4.d.ts → comment-layer-GTsLdABl.d.ts} +17 -6
- package/dist/{comment-list-B8hphLfS.d.ts → comment-list-BI96empx.d.ts} +2 -2
- package/dist/comment-marks.css +18 -22
- package/dist/{comment-panel-fcKSKwLC.d.ts → comment-panel-CsKWTms_.d.ts} +15 -4
- package/dist/{comment-row-Bbm9WwuF.js → comment-row-JmTC0uXr.js} +2 -2
- package/dist/comment-selection-bar-CyVBNYl9.d.ts +42 -0
- package/dist/comment-send-7bg4NEEM.js +277 -0
- package/dist/comment-send-C45dHC22.d.ts +25 -0
- package/dist/comment-send.css +267 -0
- package/dist/comment-thread-B_Sc2QX6.js +797 -0
- package/dist/{comment-thread-CoTLrdal.d.ts → comment-thread-C6U-bsK_.d.ts} +23 -6
- package/dist/{comments-CkWc2Khc.js → comments-B88zg9gC.js} +66 -10
- package/dist/{comments-Bx2WRsYy.d.ts → comments-D8hulVPy.d.ts} +34 -6
- package/dist/{comments-context-C2lOZyQ5.js → comments-context-DhbIdYQ1.js} +2 -1
- package/dist/{config-Dk67emQt.js → config-B1u7zqMB.js} +8 -1
- package/dist/{config-DgxBW013.d.ts → config-pHazYdq6.d.ts} +11 -0
- package/dist/drop-field-3CDRFFRm.js +163 -0
- package/dist/{editor-C_wt4RRV.js → editor-BHYGLgty.js} +42 -3
- package/dist/effects-Ql6VzCRa.js +2971 -0
- package/dist/format-orwcdZL_.js +39 -0
- package/dist/headless.d.ts +2 -2
- package/dist/headless.js +1 -1
- package/dist/hold-to-delete-DjWzRDyY.d.ts +51 -0
- package/dist/hold-to-delete-ROLQRZg_.js +434 -0
- package/dist/icon-c5Jb_Tl7.d.ts +31 -0
- package/dist/{image-preview-C9tdkmEj.js → image-preview-BigoAvb3.js} +2 -2
- package/dist/{index-BD1e8vx5.d.ts → index-YUvL2nV8.d.ts} +10 -6
- package/dist/index.d.ts +18 -12
- package/dist/index.js +47 -45
- package/dist/install-D5f6msEU.js +17 -0
- package/dist/list-RCbNZ14q.js +271 -0
- package/dist/{markdown-editor-CMbNZOdN.js → markdown-editor-Dfl2DgPS.js} +1 -1
- package/dist/{markdown-editor-DqdZfIEn.d.ts → markdown-editor-wQF0yD5o.d.ts} +1 -1
- package/dist/markdown-editor.d.ts +1 -1
- package/dist/markdown-editor.js +1 -1
- package/dist/motion/core.d.ts +4 -0
- package/dist/motion/core.js +11 -0
- package/dist/motion-core-lHRF8PZz.d.ts +456 -0
- package/dist/motion.d.ts +16 -0
- package/dist/motion.js +13 -0
- package/dist/{nuxt-ui-DSQFzq3s.js → nuxt-ui-CgvMzO5v.js} +20 -14
- package/dist/nuxt.d.ts +2 -2
- package/dist/nuxt.js +20 -5
- package/dist/opt-out-b6bnUjIT.js +208 -0
- package/dist/parts/components/agent-session.js +1 -1
- package/dist/parts/components/attachment.js +1 -1
- package/dist/parts/components/avatar-stack.js +3 -2
- package/dist/parts/components/chat-session.d.ts +1 -1
- package/dist/parts/components/chat.js +2 -2
- package/dist/parts/components/code-block.js +1 -1
- package/dist/parts/components/code-view.js +1 -1
- package/dist/parts/components/comment-composer.d.ts +1 -1
- package/dist/parts/components/comment-composer.js +1 -1
- package/dist/parts/components/comment-layer.d.ts +1 -1
- package/dist/parts/components/comment-layer.js +54 -23
- package/dist/parts/components/comment-list.d.ts +1 -1
- package/dist/parts/components/comment-list.js +13 -7
- package/dist/parts/components/comment-panel.d.ts +1 -1
- package/dist/parts/components/comment-panel.js +46 -20
- package/dist/parts/components/comment-pin.js +1 -1
- package/dist/parts/components/comment-selection-bar.d.ts +2 -0
- package/dist/parts/components/comment-selection-bar.js +117 -0
- package/dist/parts/components/comment-send.d.ts +2 -0
- package/dist/parts/components/comment-send.js +2 -0
- package/dist/parts/components/comment-thread.d.ts +2 -2
- package/dist/parts/components/comment-thread.js +2 -570
- package/dist/parts/components/comments.d.ts +8 -6
- package/dist/parts/components/comments.js +6 -4
- package/dist/parts/components/copy-button.d.ts +12 -2
- package/dist/parts/components/copy-button.js +226 -1
- package/dist/parts/components/drop-field.d.ts +69 -0
- package/dist/parts/components/drop-field.js +77 -0
- package/dist/parts/components/filter-search.js +1 -1
- package/dist/parts/components/hold-to-delete.d.ts +82 -0
- package/dist/parts/components/hold-to-delete.js +76 -0
- package/dist/parts/components/markdown-editor.d.ts +1 -1
- package/dist/parts/components/markdown-editor.js +1 -1
- package/dist/parts/components/markdown-renderer.js +1 -1
- package/dist/parts/components/markdown.js +1 -1
- package/dist/parts/components/message-parts.js +13 -5
- package/dist/parts/components/motion-list.d.ts +42 -0
- package/dist/parts/components/motion-list.js +42 -0
- package/dist/parts/components/motion.d.ts +124 -0
- package/dist/parts/components/motion.js +172 -0
- package/dist/parts/components/progress.d.ts +41 -0
- package/dist/parts/components/progress.js +54 -0
- package/dist/parts/components/prompt-input.d.ts +3 -3
- package/dist/parts/components/prompt-input.js +3 -3
- package/dist/parts/components/relative-time.js +1 -1
- package/dist/parts/components/sync-status.js +2 -1
- package/dist/parts/components/tool-list.d.ts +1 -1
- package/dist/parts/components/trace-run.d.ts +1 -1
- package/dist/parts/components/trace-run.js +2 -2
- package/dist/parts/headless/comments.d.ts +2 -2
- package/dist/parts/headless/comments.js +1 -1
- package/dist/parts/playground/share.d.ts +36 -2
- package/dist/parts/workspace/browser-support-notice.js +12 -4
- package/dist/parts/workspace/codemirror.d.ts +9 -0
- package/dist/parts/workspace/codemirror.js +37 -4
- package/dist/parts/workspace/connect-panel.js +1 -1
- package/dist/parts/workspace/file-icons.d.ts +16 -0
- package/dist/parts/workspace/file-icons.js +82 -0
- package/dist/parts/workspace/icons.d.ts +1 -0
- package/dist/parts/workspace/icons.js +1 -0
- package/dist/parts/workspace/runners/render.d.ts +26 -0
- package/dist/parts/workspace/runners/render.js +124 -0
- package/dist/parts/workspace/runners/web-container.d.ts +29 -0
- package/dist/parts/workspace/runners/web-container.js +186 -0
- package/dist/parts/workspace/workspace-bar.d.ts +51 -0
- package/dist/parts/workspace/workspace-bar.js +51 -0
- package/dist/parts/workspace/workspace-boot-status.js +1 -1
- package/dist/parts/workspace/workspace-editor-head.d.ts +47 -0
- package/dist/parts/workspace/workspace-editor-head.js +66 -0
- package/dist/parts/workspace/workspace-editor.d.ts +17 -0
- package/dist/parts/workspace/workspace-editor.js +29 -3
- package/dist/parts/workspace/workspace-examples.d.ts +74 -0
- package/dist/parts/workspace/workspace-examples.js +72 -0
- package/dist/parts/workspace/workspace-file-link.d.ts +35 -0
- package/dist/parts/workspace/workspace-file-link.js +39 -0
- package/dist/parts/workspace/workspace-file-tree.d.ts +8 -8
- package/dist/parts/workspace/workspace-file-tree.js +26 -19
- package/dist/parts/workspace/workspace-guide.d.ts +52 -0
- package/dist/parts/workspace/workspace-guide.js +91 -0
- package/dist/parts/workspace/workspace-issues.d.ts +46 -0
- package/dist/parts/workspace/workspace-issues.js +49 -0
- package/dist/parts/workspace/workspace-preview.js +1 -1
- package/dist/parts/workspace/workspace-shell.d.ts +2 -88
- package/dist/parts/workspace/workspace-shell.js +131 -78
- package/dist/parts/workspace/workspace-sidebar.d.ts +75 -0
- package/dist/parts/workspace/workspace-sidebar.js +132 -0
- package/dist/parts/workspace/workspace-start.d.ts +47 -0
- package/dist/parts/workspace/workspace-start.js +60 -0
- package/dist/parts/workspace/workspace-status.d.ts +69 -0
- package/dist/parts/workspace/workspace-status.js +74 -0
- package/dist/parts/workspace/workspace-steps.d.ts +2 -0
- package/dist/parts/workspace/workspace-steps.js +128 -0
- package/dist/parts/workspace/workspace-task.d.ts +20 -0
- package/dist/parts/workspace/workspace-task.js +20 -0
- package/dist/parts/workspace/workspace.d.ts +251 -0
- package/dist/parts/workspace/workspace.js +665 -0
- package/dist/{pierre-code-view-xgBL6DO7.js → pierre-code-view-NE35tkmR.js} +37 -17
- package/dist/playground.d.ts +1 -1
- package/dist/progress-C7afI5vq.js +266 -0
- package/dist/registry-D3-ysX7l.js +78 -0
- package/dist/{relative-time-BVmjOsYG.js → relative-time-DgSS3zKN.js} +1 -1
- package/dist/ring-B7Qxu7zd.js +175 -0
- package/dist/runtime/nuxt-plugin.js +2 -2
- package/dist/styles.css +657 -526
- package/dist/text-BCJflBJf.js +826 -0
- package/dist/theme.d.ts +43 -0
- package/dist/theme.js +22 -7
- package/dist/travel-C87xd5Wh.js +182 -0
- package/dist/tween-CO24nMpf.js +62 -0
- package/dist/{types-Dyr6CfBW.d.ts → types-BX64qHlV.d.ts} +1 -1
- package/dist/visual-copy-CrVc3z4n.js +15 -0
- package/dist/workspace-shell-BJGnoF3p.d.ts +112 -0
- package/dist/workspace-steps-Bgph2rpr.d.ts +72 -0
- package/dist/workspace.d.ts +17 -4
- package/dist/workspace.js +16 -3
- package/package.json +22 -11
- package/dist/copy-button-CRN3kmSD.js +0 -253
- package/dist/format-Du58PlsG.js +0 -18
- package/dist/icon-swap.css +0 -69
- package/dist/parts/playground/highlight.d.ts +0 -5
- package/dist/parts/playground/highlight.js +0 -23
- package/dist/parts/playground/playground-render.d.ts +0 -126
- package/dist/parts/playground/playground-render.js +0 -356
- package/dist/parts/workspace/playground-container.d.ts +0 -192
- package/dist/parts/workspace/playground-container.js +0 -603
- package/dist/share-DM4eNy4q.d.ts +0 -37
package/dist/styles.css
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
@import "./theme-focus-ring.css";
|
|
9
9
|
/* Comment pins, areas, and highlights. The ViteHub pill and Drop's page frame load the same file without a framework. */
|
|
10
10
|
@import "./comment-marks.css" layer(components);
|
|
11
|
-
/*
|
|
12
|
-
@import "./
|
|
11
|
+
/* CommentSend, the Send segment of a comment pill. The ViteHub pill loads the same file in its toolbar. */
|
|
12
|
+
@import "./comment-send.css" layer(components);
|
|
13
13
|
|
|
14
14
|
/*
|
|
15
15
|
* Theme tokens. Set `--vh-ui-*` on any element to change the parts inside it; the package sets none of them. The parts
|
|
@@ -181,9 +181,15 @@
|
|
|
181
181
|
*/
|
|
182
182
|
.vh-image-overlay {
|
|
183
183
|
background: rgb(from var(--vh-media-scrim, var(--vh-bg-elevated)) r g b / 80%);
|
|
184
|
+
transition: opacity 150ms;
|
|
184
185
|
z-index: 59;
|
|
185
186
|
}
|
|
186
187
|
|
|
188
|
+
/* The page shows again while a comment's picture travels back to its tile. */
|
|
189
|
+
.vh-image-overlay--closing {
|
|
190
|
+
opacity: 0;
|
|
191
|
+
}
|
|
192
|
+
|
|
187
193
|
.vh-image-dialog {
|
|
188
194
|
background: transparent;
|
|
189
195
|
border-radius: 0;
|
|
@@ -342,18 +348,6 @@
|
|
|
342
348
|
opacity: 1;
|
|
343
349
|
}
|
|
344
350
|
|
|
345
|
-
/* Under reduced motion the surface opens and closes at once. The labels still fade. */
|
|
346
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
347
|
-
.vh-primitive-rail__surface {
|
|
348
|
-
transition: width 150ms cubic-bezier(0.2, 0, 0, 1);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
/* Escape and a menu trigger close the rail at once, so a menu opens next to an icon that does not move. */
|
|
353
|
-
.vh-primitive-rail[data-dismissed] .vh-primitive-rail__surface {
|
|
354
|
-
transition: none;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
351
|
.vh-primitive-rail__item[aria-current="page"] {
|
|
358
352
|
background: var(--vh-bg-accented);
|
|
359
353
|
color: var(--vh-highlighted);
|
|
@@ -389,217 +383,9 @@
|
|
|
389
383
|
width: 1.125rem;
|
|
390
384
|
}
|
|
391
385
|
|
|
392
|
-
.vh-primitive-icon [data-motion] {
|
|
393
|
-
transform-box: view-box;
|
|
394
|
-
transform-origin: var(--vh-primitive-icon-origin, 12px 12px);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
/* Each icon moves once when a pointer enters or keyboard focus arrives. Nothing moves while idle. */
|
|
398
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
399
|
-
.vh-primitive-rail__item:focus-visible .vh-primitive-icon [data-motion] {
|
|
400
|
-
animation: vh-primitive-icon 320ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
|
|
405
|
-
.vh-primitive-rail__item:hover .vh-primitive-icon [data-motion] {
|
|
406
|
-
animation: vh-primitive-icon 320ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
@keyframes vh-primitive-icon {
|
|
411
|
-
50% {
|
|
412
|
-
opacity: var(--vh-primitive-icon-opacity, 1);
|
|
413
|
-
transform: var(--vh-primitive-icon-motion, none);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
.vh-primitive-icon[data-icon="agent"] {
|
|
418
|
-
--vh-primitive-icon-motion: scaleY(0.2);
|
|
419
|
-
--vh-primitive-icon-origin: 12px 14px;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
.vh-primitive-icon[data-icon="auth"] {
|
|
423
|
-
--vh-primitive-icon-motion: translateY(-1.5px);
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
.vh-primitive-icon[data-icon="blob"] {
|
|
427
|
-
--vh-primitive-icon-motion: translate(1px, -1px);
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
.vh-primitive-icon[data-icon="browser"] {
|
|
431
|
-
--vh-primitive-icon-motion: translate(1.5px, 1.5px);
|
|
432
|
-
}
|
|
433
|
-
|
|
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"] {
|
|
455
|
-
--vh-primitive-icon-motion: translateX(1.5px);
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
.vh-primitive-icon[data-icon="compare"] {
|
|
459
|
-
--vh-primitive-icon-motion: translateX(-1.5px);
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.vh-primitive-icon[data-icon="connections"] {
|
|
463
|
-
--vh-primitive-icon-motion: translateY(1.5px);
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
.vh-primitive-icon[data-icon="content"] {
|
|
467
|
-
--vh-primitive-icon-motion: translateX(1.5px);
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.vh-primitive-icon[data-icon="database"] {
|
|
471
|
-
--vh-primitive-icon-motion: translateY(-1.5px);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
.vh-primitive-icon[data-icon="decisions"] {
|
|
475
|
-
--vh-primitive-icon-motion: translate(1px, -1px);
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
.vh-primitive-icon[data-icon="development"] {
|
|
479
|
-
--vh-primitive-icon-motion: rotate(14deg);
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
.vh-primitive-icon[data-icon="docs"] {
|
|
483
|
-
--vh-primitive-icon-motion: skewY(-6deg);
|
|
484
|
-
--vh-primitive-icon-origin: 12px 12px;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
.vh-primitive-icon[data-icon="email"] {
|
|
488
|
-
--vh-primitive-icon-motion: translateY(1.5px);
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.vh-primitive-icon[data-icon="env"] {
|
|
492
|
-
--vh-primitive-icon-motion: rotate(-16deg);
|
|
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);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
.vh-primitive-icon[data-icon="hosts"] {
|
|
513
|
-
--vh-primitive-icon-motion: translateY(-1.5px);
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
.vh-primitive-icon[data-icon="i18n"] {
|
|
517
|
-
--vh-primitive-icon-motion: translateY(-1.5px);
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
.vh-primitive-icon[data-icon="kv"] {
|
|
521
|
-
--vh-primitive-icon-motion: translateX(1.5px);
|
|
522
|
-
}
|
|
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
|
-
|
|
532
|
-
.vh-primitive-icon[data-icon="queue"] {
|
|
533
|
-
--vh-primitive-icon-motion: translateX(2px);
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
.vh-primitive-icon[data-icon="rate-limit"] {
|
|
537
|
-
--vh-primitive-icon-motion: rotate(-70deg);
|
|
538
|
-
--vh-primitive-icon-origin: 12px 16px;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
.vh-primitive-icon[data-icon="realtime"] {
|
|
542
|
-
--vh-primitive-icon-motion: scale(1.12);
|
|
543
|
-
--vh-primitive-icon-opacity: 0.4;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
.vh-primitive-icon[data-icon="reference"] {
|
|
547
|
-
--vh-primitive-icon-motion: translateX(1.5px);
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
.vh-primitive-icon[data-icon="sandbox"] {
|
|
551
|
-
--vh-primitive-icon-motion: scale(0.7);
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
.vh-primitive-icon[data-icon="schedule"] {
|
|
555
|
-
--vh-primitive-icon-motion: translateX(4.5px);
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
.vh-primitive-icon[data-icon="shell"] {
|
|
559
|
-
--vh-primitive-icon-opacity: 0;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
.vh-primitive-icon[data-icon="skills"] {
|
|
563
|
-
--vh-primitive-icon-motion: translateY(1.5px);
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
.vh-primitive-icon[data-icon="source"] {
|
|
567
|
-
--vh-primitive-icon-motion: translateY(1.5px);
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
.vh-primitive-icon[data-icon="start"] {
|
|
571
|
-
--vh-primitive-icon-motion: skewY(-10deg);
|
|
572
|
-
--vh-primitive-icon-origin: 5px 8.5px;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
.vh-primitive-icon[data-icon="ui"] {
|
|
576
|
-
--vh-primitive-icon-motion: translate(-1px, -1px);
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
.vh-primitive-icon[data-icon="usage"] {
|
|
580
|
-
--vh-primitive-icon-motion: scaleY(0.75);
|
|
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);
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
.vh-primitive-icon[data-icon="workflow"] {
|
|
593
|
-
--vh-primitive-icon-motion: translateX(1.5px);
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
.vh-primitive-icon[data-icon="workspace"] {
|
|
597
|
-
--vh-primitive-icon-motion: translateY(-1px);
|
|
598
|
-
}
|
|
599
|
-
|
|
600
386
|
/* 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
387
|
Nuxt UI button, so this rule stays outside a layer to win over its classes. */
|
|
602
|
-
[data-slot="comment-
|
|
388
|
+
[data-slot="comment-image-stack-remove"] {
|
|
603
389
|
background: var(--vh-highlighted);
|
|
604
390
|
border: 0;
|
|
605
391
|
border-radius: 9999px;
|
|
@@ -1041,10 +827,10 @@
|
|
|
1041
827
|
color: var(--vh-error);
|
|
1042
828
|
}
|
|
1043
829
|
|
|
830
|
+
/* The disclosure effect of the motion layer turns the chevron from its old angle to this one with a spring. */
|
|
1044
831
|
[data-trace-chevron] svg {
|
|
1045
832
|
stroke: currentColor;
|
|
1046
833
|
stroke-width: 2;
|
|
1047
|
-
transition: rotate 150ms;
|
|
1048
834
|
}
|
|
1049
835
|
|
|
1050
836
|
[data-slot="trace-collapsible-trigger"][aria-expanded="true"] [data-trace-chevron] svg {
|
|
@@ -1056,38 +842,6 @@
|
|
|
1056
842
|
overflow: hidden;
|
|
1057
843
|
}
|
|
1058
844
|
|
|
1059
|
-
[data-slot="trace-collapsible-content"][data-open] {
|
|
1060
|
-
animation: vh-trace-open 200ms ease-out;
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
[data-slot="trace-collapsible-content"][data-closed] {
|
|
1064
|
-
animation: vh-trace-close 200ms ease-out;
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
@keyframes vh-trace-open {
|
|
1068
|
-
from {
|
|
1069
|
-
height: 0;
|
|
1070
|
-
}
|
|
1071
|
-
to {
|
|
1072
|
-
height: var(--collapsible-panel-height);
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
@keyframes vh-trace-close {
|
|
1077
|
-
from {
|
|
1078
|
-
height: var(--collapsible-panel-height);
|
|
1079
|
-
}
|
|
1080
|
-
to {
|
|
1081
|
-
height: 0;
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1086
|
-
[data-slot="trace-collapsible-content"] {
|
|
1087
|
-
animation: none !important;
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
845
|
[data-slot="trace-collapsible-content-inner"] {
|
|
1092
846
|
border-left: 1px solid var(--vh-border);
|
|
1093
847
|
color: var(--vh-muted);
|
|
@@ -1712,10 +1466,6 @@
|
|
|
1712
1466
|
flex: 1;
|
|
1713
1467
|
}
|
|
1714
1468
|
|
|
1715
|
-
[data-slot="prompt-input-toolbar"] button:active:not(:disabled) {
|
|
1716
|
-
scale: 0.96;
|
|
1717
|
-
}
|
|
1718
|
-
|
|
1719
1469
|
/* On a phone the Send button sends, so it gets a 48px target around its 32px circle without a larger circle. */
|
|
1720
1470
|
@media (pointer: coarse) {
|
|
1721
1471
|
[data-slot="prompt-input-toolbar"] button {
|
|
@@ -1839,30 +1589,104 @@
|
|
|
1839
1589
|
color: var(--vh-highlighted);
|
|
1840
1590
|
}
|
|
1841
1591
|
|
|
1842
|
-
/* A pending state
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
border-radius: inherit;
|
|
1847
|
-
content: "";
|
|
1848
|
-
inset: 0;
|
|
1849
|
-
position: absolute;
|
|
1592
|
+
/* A pending state pulses while it waits, as a running workspace step does. Work that runs fades, it does not travel
|
|
1593
|
+
(docs/design/motion.md, "Spinners and fades"). */
|
|
1594
|
+
:is([data-slot="connection-status-indicator"]:not([data-status="connected"]), [data-slot="sync-status-indicator"]:is([data-status="loading"], [data-status="synchronizing"])) {
|
|
1595
|
+
animation: vh-status-pulse 1.5s ease-in-out infinite;
|
|
1850
1596
|
}
|
|
1851
1597
|
|
|
1852
|
-
@keyframes vh-status-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
opacity: 0;
|
|
1856
|
-
transform: scale(2.25);
|
|
1598
|
+
@keyframes vh-status-pulse {
|
|
1599
|
+
50% {
|
|
1600
|
+
opacity: 0.35;
|
|
1857
1601
|
}
|
|
1858
1602
|
}
|
|
1859
1603
|
|
|
1860
1604
|
@media (prefers-reduced-motion: reduce) {
|
|
1861
|
-
:is([data-slot="connection-status-indicator"], [data-slot="sync-status-indicator"])
|
|
1605
|
+
:is([data-slot="connection-status-indicator"], [data-slot="sync-status-indicator"]) {
|
|
1862
1606
|
animation: none;
|
|
1863
1607
|
}
|
|
1864
1608
|
}
|
|
1865
1609
|
|
|
1610
|
+
/* Progress: the bar and the check of the progress helper of @vite-hub/ui/motion. The bar takes the text color. */
|
|
1611
|
+
[data-slot="progress"] {
|
|
1612
|
+
align-items: center;
|
|
1613
|
+
color: var(--vh-highlighted);
|
|
1614
|
+
display: flex;
|
|
1615
|
+
gap: 0.5rem;
|
|
1616
|
+
min-width: 0;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
/* DropField: a label around a file input, with the dot grid of the drop field helper behind its text. */
|
|
1620
|
+
[data-slot="drop-field"] {
|
|
1621
|
+
--vh-drop-dot: var(--vh-highlighted);
|
|
1622
|
+
align-content: center;
|
|
1623
|
+
background: var(--vh-bg);
|
|
1624
|
+
border: 1px solid var(--vh-border-accented);
|
|
1625
|
+
border-radius: var(--vh-radius);
|
|
1626
|
+
color: var(--vh-highlighted);
|
|
1627
|
+
cursor: pointer;
|
|
1628
|
+
display: grid;
|
|
1629
|
+
gap: 0.125rem;
|
|
1630
|
+
justify-items: center;
|
|
1631
|
+
min-height: 10rem;
|
|
1632
|
+
overflow: hidden;
|
|
1633
|
+
padding: 1rem;
|
|
1634
|
+
text-align: center;
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
[data-slot="drop-field"][data-disabled] {
|
|
1638
|
+
cursor: not-allowed;
|
|
1639
|
+
opacity: 0.6;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
[data-slot="drop-field-input"] {
|
|
1643
|
+
clip-path: inset(50%);
|
|
1644
|
+
height: 1px;
|
|
1645
|
+
overflow: hidden;
|
|
1646
|
+
position: absolute;
|
|
1647
|
+
white-space: nowrap;
|
|
1648
|
+
width: 1px;
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
[data-slot="drop-field-label"] {
|
|
1652
|
+
font-size: 0.8125rem;
|
|
1653
|
+
font-weight: 500;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
[data-slot="drop-field-description"] {
|
|
1657
|
+
color: var(--vh-dimmed);
|
|
1658
|
+
font-size: 0.75rem;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
/* HoldToDelete: an outline button whose border turns to the error color as the hold fills it. */
|
|
1662
|
+
[data-slot="hold-to-delete"] {
|
|
1663
|
+
align-items: center;
|
|
1664
|
+
background: var(--vh-bg);
|
|
1665
|
+
border: 1px solid color-mix(in oklch, var(--vh-error) calc(var(--vh-hold, 0) * 100%), var(--vh-border-accented));
|
|
1666
|
+
border-radius: calc(var(--vh-radius) * 0.75);
|
|
1667
|
+
color: var(--vh-highlighted);
|
|
1668
|
+
cursor: pointer;
|
|
1669
|
+
display: inline-flex;
|
|
1670
|
+
font-size: 0.75rem;
|
|
1671
|
+
font-weight: 500;
|
|
1672
|
+
gap: 0.375rem;
|
|
1673
|
+
height: 1.75rem;
|
|
1674
|
+
justify-content: flex-start;
|
|
1675
|
+
overflow: visible;
|
|
1676
|
+
padding: 0 0.625rem;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
[data-slot="hold-to-delete"][data-state="undo"] {
|
|
1680
|
+
border-color: color-mix(in oklch, var(--vh-error) 40%, var(--vh-border-accented));
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
[data-slot="hold-to-delete"][data-icon-only]:not([data-state="undo"]) {
|
|
1684
|
+
border-color: transparent;
|
|
1685
|
+
justify-content: center;
|
|
1686
|
+
padding: 0;
|
|
1687
|
+
width: 1.75rem;
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1866
1690
|
/* 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
1691
|
:is([data-slot="relative-time"], [data-slot="comment-reply-time"]) {
|
|
1868
1692
|
font-variant-numeric: tabular-nums;
|
|
@@ -1931,18 +1755,13 @@
|
|
|
1931
1755
|
white-space: nowrap;
|
|
1932
1756
|
}
|
|
1933
1757
|
|
|
1934
|
-
/* A live or pending status
|
|
1935
|
-
[data-slot="status-indicator"][data-pulse]
|
|
1936
|
-
animation: vh-status-
|
|
1937
|
-
background: inherit;
|
|
1938
|
-
border-radius: inherit;
|
|
1939
|
-
content: "";
|
|
1940
|
-
inset: 0;
|
|
1941
|
-
position: absolute;
|
|
1758
|
+
/* A live or pending status pulses, as the connection dot does. */
|
|
1759
|
+
[data-slot="status-indicator"][data-pulse] {
|
|
1760
|
+
animation: vh-status-pulse 1.5s ease-in-out infinite;
|
|
1942
1761
|
}
|
|
1943
1762
|
|
|
1944
1763
|
@media (prefers-reduced-motion: reduce) {
|
|
1945
|
-
[data-slot="status-indicator"][data-pulse]
|
|
1764
|
+
[data-slot="status-indicator"][data-pulse] {
|
|
1946
1765
|
animation: none;
|
|
1947
1766
|
}
|
|
1948
1767
|
}
|
|
@@ -2030,7 +1849,6 @@
|
|
|
2030
1849
|
position: absolute;
|
|
2031
1850
|
right: 0;
|
|
2032
1851
|
text-align: start;
|
|
2033
|
-
transition: top 160ms ease;
|
|
2034
1852
|
}
|
|
2035
1853
|
|
|
2036
1854
|
button[data-slot="comment-margin-card"] {
|
|
@@ -2055,7 +1873,6 @@
|
|
|
2055
1873
|
left: auto;
|
|
2056
1874
|
position: fixed;
|
|
2057
1875
|
right: 1rem;
|
|
2058
|
-
transition: top 160ms ease;
|
|
2059
1876
|
width: 18rem;
|
|
2060
1877
|
z-index: 1;
|
|
2061
1878
|
}
|
|
@@ -2084,10 +1901,6 @@
|
|
|
2084
1901
|
-webkit-line-clamp: 3;
|
|
2085
1902
|
}
|
|
2086
1903
|
|
|
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
1904
|
[data-slot="comment-layer-item"] {
|
|
2092
1905
|
pointer-events: none;
|
|
2093
1906
|
position: absolute;
|
|
@@ -2132,6 +1945,78 @@
|
|
|
2132
1945
|
top: -0.4rem;
|
|
2133
1946
|
}
|
|
2134
1947
|
|
|
1948
|
+
/* The bar over selected text: a flat surface in the ink color, so it is dark on a light page and light on a dark one.
|
|
1949
|
+
It floats over any page, such as in the ViteHub pill's shadow root, so its sizes are in px and do not follow the
|
|
1950
|
+
page's root font size: the page places it by its fixed 38px height. */
|
|
1951
|
+
[data-slot="comment-selection-bar"] {
|
|
1952
|
+
--vh-selection-bar-text: color-mix(in oklab, var(--vh-inverted) 82%, var(--vh-highlighted));
|
|
1953
|
+
align-items: center;
|
|
1954
|
+
background: var(--vh-highlighted);
|
|
1955
|
+
border: 1px solid color-mix(in oklab, var(--vh-inverted) 12%, transparent);
|
|
1956
|
+
border-radius: 12px;
|
|
1957
|
+
box-shadow: 0 8px 24px color-mix(in oklab, black 25%, transparent);
|
|
1958
|
+
display: flex;
|
|
1959
|
+
font-size: 12px;
|
|
1960
|
+
font-weight: 500;
|
|
1961
|
+
-webkit-font-smoothing: antialiased;
|
|
1962
|
+
gap: 4px;
|
|
1963
|
+
line-height: 1;
|
|
1964
|
+
padding: 4px;
|
|
1965
|
+
transform-origin: 50% 100%;
|
|
1966
|
+
width: max-content;
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
[data-slot="comment-selection-bar"][data-side="bottom"] {
|
|
1970
|
+
transform-origin: 50% 0;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
[data-slot="comment-selection-bar-action"] {
|
|
1974
|
+
align-items: center;
|
|
1975
|
+
background: none;
|
|
1976
|
+
border: 0;
|
|
1977
|
+
border-radius: 8px;
|
|
1978
|
+
color: var(--vh-selection-bar-text);
|
|
1979
|
+
cursor: pointer;
|
|
1980
|
+
display: inline-flex;
|
|
1981
|
+
font: inherit;
|
|
1982
|
+
gap: 6px;
|
|
1983
|
+
height: 28px;
|
|
1984
|
+
padding: 0 10px;
|
|
1985
|
+
position: relative;
|
|
1986
|
+
touch-action: manipulation;
|
|
1987
|
+
transition-duration: 150ms;
|
|
1988
|
+
transition-property: background-color, color;
|
|
1989
|
+
transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
1990
|
+
white-space: nowrap;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
/* 28px to sit in the bar, with a 44px hit area for fingers. The 4px gap keeps the hit areas of two buttons apart. */
|
|
1994
|
+
[data-slot="comment-selection-bar-action"]::before {
|
|
1995
|
+
content: "";
|
|
1996
|
+
inset: -8px -2px;
|
|
1997
|
+
position: absolute;
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
[data-slot="comment-selection-bar-action"] > :first-child {
|
|
2001
|
+
flex: none;
|
|
2002
|
+
height: 14px;
|
|
2003
|
+
width: 14px;
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
/* Only a real pointer hovers, so a tap does not leave the button lit. */
|
|
2007
|
+
@media (hover: hover) and (pointer: fine) {
|
|
2008
|
+
[data-slot="comment-selection-bar-action"]:hover {
|
|
2009
|
+
background: color-mix(in oklab, var(--vh-inverted) 8%, transparent);
|
|
2010
|
+
color: var(--vh-inverted);
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
[data-slot="comment-selection-bar-kbd"] {
|
|
2015
|
+
font: inherit;
|
|
2016
|
+
margin-inline-start: 6px;
|
|
2017
|
+
opacity: 0.6;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2135
2020
|
/* Floating surfaces take the layered shadow of the theme, which draws their hairline too. Without the theme, the hairline stays. */
|
|
2136
2021
|
[data-slot="comment-layer-popover"] {
|
|
2137
2022
|
--vh-comment-card-width: 22.5rem;
|
|
@@ -2253,19 +2138,20 @@
|
|
|
2253
2138
|
|
|
2254
2139
|
/* 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
2140
|
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
|
|
2257
|
-
|
|
2141
|
+
button's 1rem plus the 0.4375rem between it and the edge, so a one-line bubble is a capsule. It comes out of its spot
|
|
2142
|
+
with the appear effect of the motion layer (`data-motion-appear`), as a tooltip comes out of its trigger. The bubble is
|
|
2143
|
+
the field's frame (`frame="none"`), so its hairline grows firmer while the field has the focus.
|
|
2144
|
+
On a dark page the shadow does not show and the bubble can have the page's color, so the hairline is the border
|
|
2145
|
+
color, and the shadow is black, not the ink, which would glow. */
|
|
2258
2146
|
[data-slot="comment-layer-item"][data-draft="true"] > [data-slot="comment-layer-popover"] {
|
|
2259
|
-
--vh-bubble-edge:
|
|
2147
|
+
--vh-bubble-edge: var(--vh-border);
|
|
2260
2148
|
--vh-bubble-radius: 1.4375rem;
|
|
2261
|
-
animation: vh-comment-bubble-in 150ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
2262
2149
|
border: 0;
|
|
2263
2150
|
border-radius: 0.375rem var(--vh-bubble-radius) var(--vh-bubble-radius);
|
|
2264
2151
|
box-shadow:
|
|
2265
2152
|
0 0 0 1px var(--vh-bubble-edge),
|
|
2266
|
-
0 2px 4px color-mix(in oklab, var(--vh-
|
|
2267
|
-
0 10px 24px -6px
|
|
2268
|
-
transform-origin: top left;
|
|
2153
|
+
0 2px 4px color-mix(in oklab, var(--vh-comment-shadow) calc(100% / 3), transparent),
|
|
2154
|
+
0 10px 24px -6px var(--vh-comment-shadow);
|
|
2269
2155
|
width: 18rem;
|
|
2270
2156
|
}
|
|
2271
2157
|
|
|
@@ -2280,30 +2166,14 @@
|
|
|
2280
2166
|
|
|
2281
2167
|
[data-slot="comment-layer-item"][data-draft="true"][data-flip-x="true"] > [data-slot="comment-layer-popover"] {
|
|
2282
2168
|
border-radius: var(--vh-bubble-radius) 0.375rem var(--vh-bubble-radius) var(--vh-bubble-radius);
|
|
2283
|
-
transform-origin: top right;
|
|
2284
2169
|
}
|
|
2285
2170
|
|
|
2286
2171
|
[data-slot="comment-layer-item"][data-draft="true"][data-flip-y="true"] > [data-slot="comment-layer-popover"] {
|
|
2287
2172
|
border-radius: var(--vh-bubble-radius) var(--vh-bubble-radius) var(--vh-bubble-radius) 0.375rem;
|
|
2288
|
-
transform-origin: bottom left;
|
|
2289
2173
|
}
|
|
2290
2174
|
|
|
2291
2175
|
[data-slot="comment-layer-item"][data-draft="true"][data-flip-x="true"][data-flip-y="true"] > [data-slot="comment-layer-popover"] {
|
|
2292
2176
|
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
2177
|
}
|
|
2308
2178
|
|
|
2309
2179
|
[data-slot="comment-composer"] {
|
|
@@ -2324,34 +2194,10 @@
|
|
|
2324
2194
|
padding-block: 0.5rem 0.125rem;
|
|
2325
2195
|
}
|
|
2326
2196
|
|
|
2327
|
-
[data-slot="comment-composer"][data-shake="shake"] {
|
|
2328
|
-
animation: vh-comment-shake 400ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
|
|
2329
|
-
}
|
|
2330
|
-
|
|
2331
2197
|
[data-slot="comment-composer"][data-shake="flash"] [data-slot="prompt-input-group"] {
|
|
2332
2198
|
animation: vh-comment-flash 450ms ease both;
|
|
2333
2199
|
}
|
|
2334
2200
|
|
|
2335
|
-
@keyframes vh-comment-shake {
|
|
2336
|
-
10%,
|
|
2337
|
-
90% {
|
|
2338
|
-
transform: translateX(-1px);
|
|
2339
|
-
}
|
|
2340
|
-
20%,
|
|
2341
|
-
80% {
|
|
2342
|
-
transform: translateX(3px);
|
|
2343
|
-
}
|
|
2344
|
-
30%,
|
|
2345
|
-
50%,
|
|
2346
|
-
70% {
|
|
2347
|
-
transform: translateX(-5px);
|
|
2348
|
-
}
|
|
2349
|
-
40%,
|
|
2350
|
-
60% {
|
|
2351
|
-
transform: translateX(5px);
|
|
2352
|
-
}
|
|
2353
|
-
}
|
|
2354
|
-
|
|
2355
2201
|
@keyframes vh-comment-flash {
|
|
2356
2202
|
0%,
|
|
2357
2203
|
60% {
|
|
@@ -2360,12 +2206,6 @@
|
|
|
2360
2206
|
}
|
|
2361
2207
|
}
|
|
2362
2208
|
|
|
2363
|
-
@media (prefers-reduced-motion: reduce) {
|
|
2364
|
-
[data-slot="comment-composer"][data-shake="shake"] {
|
|
2365
|
-
animation: none;
|
|
2366
|
-
}
|
|
2367
|
-
}
|
|
2368
|
-
|
|
2369
2209
|
[data-slot="comment-composer-mentions"] {
|
|
2370
2210
|
background: var(--vh-bg);
|
|
2371
2211
|
border-radius: calc(var(--vh-radius) * 1.5);
|
|
@@ -2698,45 +2538,13 @@
|
|
|
2698
2538
|
box-shadow: 0 0 0 3px color-mix(in oklab, var(--vh-primary) 20%, transparent);
|
|
2699
2539
|
}
|
|
2700
2540
|
|
|
2701
|
-
/* The files in a comment box wrap, as in Drop
|
|
2541
|
+
/* The files in a comment box wrap, as in Drop. */
|
|
2702
2542
|
[data-slot="comment-composer"] [data-slot="prompt-input-attachments"] {
|
|
2703
2543
|
flex-wrap: wrap;
|
|
2704
2544
|
gap: 0.375rem;
|
|
2705
2545
|
overflow: visible;
|
|
2706
2546
|
}
|
|
2707
2547
|
|
|
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
|
-
}
|
|
2738
|
-
}
|
|
2739
|
-
|
|
2740
2548
|
[data-slot="comment-reply-attachments"] {
|
|
2741
2549
|
flex-wrap: wrap;
|
|
2742
2550
|
margin-top: 0.5rem;
|
|
@@ -2763,29 +2571,211 @@
|
|
|
2763
2571
|
padding: 0.75rem 0.75rem 0.25rem;
|
|
2764
2572
|
}
|
|
2765
2573
|
|
|
2574
|
+
/*
|
|
2575
|
+
* The pictures of a message as a mosaic, as in a chat: one keeps its own shape up to 10rem tall, so a wide screenshot
|
|
2576
|
+
* shows whole; two split the width; three put the first beside the other two; four or more show four, and the last
|
|
2577
|
+
* says how many more. Each tile crops its picture to fill it.
|
|
2578
|
+
*/
|
|
2766
2579
|
[data-slot="comment-reply-images"] {
|
|
2767
|
-
display:
|
|
2768
|
-
|
|
2769
|
-
gap: 0.5rem;
|
|
2580
|
+
display: grid;
|
|
2581
|
+
gap: 0.25rem;
|
|
2770
2582
|
margin-top: 0.5rem;
|
|
2771
2583
|
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
aspect-ratio: auto;
|
|
2775
|
-
max-height: 10rem;
|
|
2776
|
-
max-width: 100%;
|
|
2777
|
-
width: auto;
|
|
2584
|
+
&[data-count="1"] {
|
|
2585
|
+
display: flex;
|
|
2778
2586
|
}
|
|
2779
2587
|
|
|
2780
|
-
&
|
|
2588
|
+
&[data-count="2"] {
|
|
2589
|
+
grid-template-columns: 1fr 1fr;
|
|
2590
|
+
grid-template-rows: 7rem;
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
&[data-count="3"] {
|
|
2594
|
+
grid-template-columns: 2fr 1fr;
|
|
2595
|
+
grid-template-rows: 4.75rem 4.75rem;
|
|
2596
|
+
|
|
2597
|
+
& > [data-slot="comment-reply-image"]:first-child {
|
|
2598
|
+
grid-row: span 2;
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2602
|
+
&[data-count="4"] {
|
|
2603
|
+
grid-template-columns: 1fr 1fr;
|
|
2604
|
+
grid-template-rows: 5.25rem 5.25rem;
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2608
|
+
[data-slot="comment-reply-image"] {
|
|
2609
|
+
appearance: none;
|
|
2610
|
+
background: var(--vh-bg-elevated);
|
|
2611
|
+
border: 1px solid var(--vh-border);
|
|
2612
|
+
border-radius: calc(var(--vh-radius) * 0.75);
|
|
2613
|
+
color: var(--vh-muted);
|
|
2614
|
+
cursor: zoom-in;
|
|
2615
|
+
display: flex;
|
|
2616
|
+
min-width: 0;
|
|
2617
|
+
overflow: hidden;
|
|
2618
|
+
padding: 0;
|
|
2619
|
+
position: relative;
|
|
2620
|
+
|
|
2621
|
+
& img {
|
|
2622
|
+
display: block;
|
|
2623
|
+
height: 100%;
|
|
2624
|
+
object-fit: cover;
|
|
2625
|
+
width: 100%;
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
/* The tile of the open picture is empty while the picture is out of it. */
|
|
2629
|
+
&[data-open="true"] {
|
|
2630
|
+
visibility: hidden;
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
[data-count="1"] > [data-slot="comment-reply-image"] {
|
|
2635
|
+
max-width: 100%;
|
|
2636
|
+
|
|
2637
|
+
& img {
|
|
2781
2638
|
height: auto;
|
|
2782
2639
|
max-height: 10rem;
|
|
2783
2640
|
max-width: 100%;
|
|
2784
|
-
object-fit: contain;
|
|
2785
2641
|
width: auto;
|
|
2786
2642
|
}
|
|
2787
2643
|
}
|
|
2788
2644
|
|
|
2645
|
+
[data-slot="comment-reply-image-more"] {
|
|
2646
|
+
background: color-mix(in oklab, var(--vh-highlighted) 55%, transparent);
|
|
2647
|
+
color: var(--vh-inverted);
|
|
2648
|
+
display: grid;
|
|
2649
|
+
font-size: 0.9375rem;
|
|
2650
|
+
font-variant-numeric: tabular-nums;
|
|
2651
|
+
font-weight: 500;
|
|
2652
|
+
inset: 0;
|
|
2653
|
+
place-items: center;
|
|
2654
|
+
position: absolute;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
/*
|
|
2658
|
+
* The pictures of a comment box as one stack of cards beside the text. The top card sits in front, and up to two
|
|
2659
|
+
* more peek out behind it. The count sits on its corner. Hover, focus, or a tap fans the cards out above the box,
|
|
2660
|
+
* each 3.5rem square with its Remove badge, and the motion layer travels them between the two places.
|
|
2661
|
+
*/
|
|
2662
|
+
[data-slot="comment-image-stack"] {
|
|
2663
|
+
align-self: flex-end;
|
|
2664
|
+
flex: none;
|
|
2665
|
+
height: 2rem;
|
|
2666
|
+
position: relative;
|
|
2667
|
+
width: 2.5rem;
|
|
2668
|
+
|
|
2669
|
+
&:not(:has([data-slot="comment-image-stack-card"])) {
|
|
2670
|
+
display: none;
|
|
2671
|
+
}
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
[data-slot="comment-image-stack-cards"] {
|
|
2675
|
+
inset: 0;
|
|
2676
|
+
position: absolute;
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
[data-slot="comment-image-stack-card"] {
|
|
2680
|
+
--vh-stack-near: clamp(0, var(--vh-stack-depth), 2);
|
|
2681
|
+
background: var(--vh-bg-elevated);
|
|
2682
|
+
border-radius: calc(var(--vh-radius) * 0.75);
|
|
2683
|
+
box-shadow: 0 0 0 2px var(--vh-bg), 0 1px 3px color-mix(in oklab, var(--vh-highlighted) 18%, transparent);
|
|
2684
|
+
height: 1.75rem;
|
|
2685
|
+
left: calc(0.125rem + var(--vh-stack-near) * 0.1875rem);
|
|
2686
|
+
opacity: clamp(0, 3 - var(--vh-stack-depth), 1);
|
|
2687
|
+
position: absolute;
|
|
2688
|
+
top: calc(0.25rem - var(--vh-stack-near) * 0.1875rem);
|
|
2689
|
+
width: 1.75rem;
|
|
2690
|
+
z-index: calc(10 - var(--vh-stack-near));
|
|
2691
|
+
|
|
2692
|
+
& .vh-image-preview {
|
|
2693
|
+
border-radius: inherit;
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2696
|
+
& [data-slot="comment-image-stack-remove"] {
|
|
2697
|
+
position: absolute;
|
|
2698
|
+
right: -0.375rem;
|
|
2699
|
+
top: -0.375rem;
|
|
2700
|
+
visibility: hidden;
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
[data-slot="comment-image-stack"][data-fanned="true"] [data-slot="comment-image-stack-cards"] {
|
|
2705
|
+
--vh-fan-width: min(var(--vh-fan-room), calc(var(--vh-fan-count) * 4rem + 0.5rem));
|
|
2706
|
+
bottom: 100%;
|
|
2707
|
+
box-sizing: border-box;
|
|
2708
|
+
display: flex;
|
|
2709
|
+
gap: 0.5rem;
|
|
2710
|
+
inset-inline: auto;
|
|
2711
|
+
left: clamp(var(--vh-fan-left), -0.5rem, calc(var(--vh-fan-left) + var(--vh-fan-room) - var(--vh-fan-width)));
|
|
2712
|
+
padding: 0.5rem;
|
|
2713
|
+
top: auto;
|
|
2714
|
+
width: var(--vh-fan-width);
|
|
2715
|
+
z-index: 20;
|
|
2716
|
+
|
|
2717
|
+
&[data-scrollable="true"] {
|
|
2718
|
+
overflow-x: auto;
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
[data-slot="comment-image-stack"][data-fanned="true"] [data-slot="comment-image-stack-card"] {
|
|
2723
|
+
flex: none;
|
|
2724
|
+
height: 3.5rem;
|
|
2725
|
+
left: auto;
|
|
2726
|
+
opacity: 1;
|
|
2727
|
+
position: relative;
|
|
2728
|
+
top: auto;
|
|
2729
|
+
width: 3.5rem;
|
|
2730
|
+
z-index: auto;
|
|
2731
|
+
|
|
2732
|
+
& [data-slot="comment-image-stack-remove"] {
|
|
2733
|
+
visibility: visible;
|
|
2734
|
+
}
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
[data-slot="comment-image-stack-toggle"] {
|
|
2738
|
+
appearance: none;
|
|
2739
|
+
background: none;
|
|
2740
|
+
border: 0;
|
|
2741
|
+
border-radius: calc(var(--vh-radius) * 0.75);
|
|
2742
|
+
cursor: pointer;
|
|
2743
|
+
inset: 0;
|
|
2744
|
+
padding: 0;
|
|
2745
|
+
position: absolute;
|
|
2746
|
+
z-index: 15;
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
[data-slot="comment-image-stack-count"] {
|
|
2750
|
+
background: var(--vh-highlighted);
|
|
2751
|
+
border-radius: 9999px;
|
|
2752
|
+
box-shadow: 0 0 0 2px var(--vh-bg);
|
|
2753
|
+
color: var(--vh-inverted);
|
|
2754
|
+
font-size: 0.6875rem;
|
|
2755
|
+
font-variant-numeric: tabular-nums;
|
|
2756
|
+
font-weight: 600;
|
|
2757
|
+
height: 1.125rem;
|
|
2758
|
+
line-height: 1.125rem;
|
|
2759
|
+
min-width: 1.125rem;
|
|
2760
|
+
padding: 0 0.3125rem;
|
|
2761
|
+
pointer-events: none;
|
|
2762
|
+
position: absolute;
|
|
2763
|
+
right: -0.25rem;
|
|
2764
|
+
text-align: center;
|
|
2765
|
+
top: -0.25rem;
|
|
2766
|
+
transition: opacity 150ms;
|
|
2767
|
+
z-index: 16;
|
|
2768
|
+
}
|
|
2769
|
+
|
|
2770
|
+
[data-fanned="true"] > [data-slot="comment-image-stack-count"] {
|
|
2771
|
+
opacity: 0;
|
|
2772
|
+
}
|
|
2773
|
+
|
|
2774
|
+
/* Once the text of a row box wraps, the stack moves to the row of the buttons, after attach. */
|
|
2775
|
+
[data-slot="comment-composer"][data-layout="row"][data-multiline="true"] [data-slot="comment-image-stack"] {
|
|
2776
|
+
order: 1;
|
|
2777
|
+
}
|
|
2778
|
+
|
|
2789
2779
|
[data-slot="comment-thread-actions"] {
|
|
2790
2780
|
align-items: center;
|
|
2791
2781
|
display: flex;
|
|
@@ -3022,17 +3012,33 @@
|
|
|
3022
3012
|
}
|
|
3023
3013
|
|
|
3024
3014
|
/* 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.
|
|
3015
|
+
two ends. Without this, every line of a narrow box starts after the attach button. The button row starts right under
|
|
3016
|
+
the last line: the icons have room inside their buttons, so a gap above the row would leave a band of empty space. */
|
|
3026
3017
|
[data-slot="comment-composer"][data-layout="row"][data-multiline="true"] {
|
|
3018
|
+
& [data-slot="prompt-input-group"] {
|
|
3019
|
+
row-gap: 0;
|
|
3020
|
+
}
|
|
3021
|
+
|
|
3022
|
+
& [data-slot="prompt-input-attachments"] {
|
|
3023
|
+
padding-bottom: 0.25rem;
|
|
3024
|
+
}
|
|
3025
|
+
|
|
3027
3026
|
& [data-slot="prompt-input-textarea"] {
|
|
3028
3027
|
flex-basis: 100%;
|
|
3029
3028
|
order: 0;
|
|
3029
|
+
padding-block-end: 0;
|
|
3030
3030
|
padding-inline: 0.5rem;
|
|
3031
3031
|
}
|
|
3032
3032
|
|
|
3033
3033
|
& [data-slot="prompt-input-spacer"] {
|
|
3034
3034
|
display: block;
|
|
3035
3035
|
}
|
|
3036
|
+
|
|
3037
|
+
@media (pointer: coarse) {
|
|
3038
|
+
& [data-slot="prompt-input-toolbar"] > button::before {
|
|
3039
|
+
inset-block-start: 0;
|
|
3040
|
+
}
|
|
3041
|
+
}
|
|
3036
3042
|
}
|
|
3037
3043
|
|
|
3038
3044
|
/* The page box and the reply box sit at the bottom, so their mention menus open upward. */
|
|
@@ -3253,6 +3259,51 @@
|
|
|
3253
3259
|
object-fit: contain;
|
|
3254
3260
|
}
|
|
3255
3261
|
|
|
3262
|
+
/* The preview of a comment's pictures: the toolbar with the name and the count, and the picture between its arrows. */
|
|
3263
|
+
.vh-image-gallery__body {
|
|
3264
|
+
display: contents;
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
.vh-image-gallery .vh-image-dialog__toolbar {
|
|
3268
|
+
transition: opacity 150ms;
|
|
3269
|
+
|
|
3270
|
+
&[data-closing="true"] {
|
|
3271
|
+
opacity: 0;
|
|
3272
|
+
}
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
.vh-image-gallery__count {
|
|
3276
|
+
color: var(--vh-on-media, var(--vh-muted));
|
|
3277
|
+
display: inline-flex;
|
|
3278
|
+
font-size: 0.75rem;
|
|
3279
|
+
font-variant-numeric: tabular-nums;
|
|
3280
|
+
margin-inline-end: 0.25rem;
|
|
3281
|
+
opacity: 0.8;
|
|
3282
|
+
white-space: pre;
|
|
3283
|
+
}
|
|
3284
|
+
|
|
3285
|
+
.vh-image-gallery__stage {
|
|
3286
|
+
display: flex;
|
|
3287
|
+
justify-content: center;
|
|
3288
|
+
position: relative;
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
.vh-image-gallery__step {
|
|
3292
|
+
border-radius: 9999px;
|
|
3293
|
+
position: absolute;
|
|
3294
|
+
top: 50%;
|
|
3295
|
+
transform: translateY(-50%);
|
|
3296
|
+
z-index: 1;
|
|
3297
|
+
|
|
3298
|
+
&.vh-image-gallery__step--previous {
|
|
3299
|
+
left: 0.5rem;
|
|
3300
|
+
}
|
|
3301
|
+
|
|
3302
|
+
&.vh-image-gallery__step--next {
|
|
3303
|
+
right: 0.5rem;
|
|
3304
|
+
}
|
|
3305
|
+
}
|
|
3306
|
+
|
|
3256
3307
|
.vh-image-dialog__error {
|
|
3257
3308
|
background: var(--vh-media-scrim, var(--vh-bg-elevated));
|
|
3258
3309
|
border-radius: var(--vh-radius);
|
|
@@ -3426,12 +3477,12 @@
|
|
|
3426
3477
|
height: 0.8rem;
|
|
3427
3478
|
stroke: currentColor;
|
|
3428
3479
|
stroke-width: 2;
|
|
3429
|
-
transition: transform 150ms ease;
|
|
3430
3480
|
width: 0.8rem;
|
|
3431
3481
|
}
|
|
3432
3482
|
|
|
3483
|
+
/* The disclosure effect of the motion layer turns the chevron from its old angle to this one with a spring. */
|
|
3433
3484
|
.vh-agent-tool-list__disclosure[open] > summary .vh-agent-tool-list__chevron {
|
|
3434
|
-
|
|
3485
|
+
rotate: 180deg;
|
|
3435
3486
|
}
|
|
3436
3487
|
|
|
3437
3488
|
.vh-agent-tool-list__body {
|
|
@@ -3503,6 +3554,8 @@
|
|
|
3503
3554
|
/* System colors, not currentColor: a currentColor fill under inverted text would take the text color and vanish. */
|
|
3504
3555
|
--vh-ws-ink: var(--ui-text-highlighted, CanvasText);
|
|
3505
3556
|
--vh-ws-ink-inverted: var(--ui-bg, Canvas);
|
|
3557
|
+
/* The accent of the code parts: the selected file, its edge, and the dot of an edited file. The focus blue. */
|
|
3558
|
+
--vh-ws-accent: var(--vh-focus, var(--ring, var(--vh-highlighted)));
|
|
3506
3559
|
}
|
|
3507
3560
|
}
|
|
3508
3561
|
|
|
@@ -3534,21 +3587,30 @@
|
|
|
3534
3587
|
.vh-ws-link { color: var(--vh-highlighted); font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 2px; }
|
|
3535
3588
|
|
|
3536
3589
|
/* Shell */
|
|
3590
|
+
/* The shell is its own stacking context, so its separators stay under menus that open in a portal. */
|
|
3537
3591
|
.vh-ws-shell {
|
|
3538
3592
|
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
|
-
|
|
3593
|
+
display: flex; flex-direction: column; height: 100%; isolation: isolate; min-height: 0; overflow: hidden; position: relative;
|
|
3594
|
+
}
|
|
3595
|
+
/*
|
|
3596
|
+
* One head height: the head row over the editor and the tab bar of the output are 32px, so their bottom lines meet.
|
|
3597
|
+
* The bar over the shell is 44px and the status line under the editor is 24px.
|
|
3598
|
+
*/
|
|
3599
|
+
.vh-ws-shell { --vh-ws-bar: 44px; --vh-ws-head: 32px; --vh-ws-status: 24px; }
|
|
3600
|
+
.vh-ws-bar { align-items: center; border-bottom: 1px solid var(--vh-border); box-sizing: border-box; display: flex; flex: none; gap: 0.25rem; height: var(--vh-ws-bar); padding: 0 0.5rem; }
|
|
3542
3601
|
.vh-ws-body { display: flex; flex: 1; min-height: 0; min-width: 0; }
|
|
3543
|
-
.vh-ws-
|
|
3544
|
-
.vh-ws-
|
|
3545
|
-
.vh-ws-
|
|
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; }
|
|
3602
|
+
.vh-ws-pane { box-sizing: border-box; display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; position: relative; }
|
|
3603
|
+
.vh-ws-code, .vh-ws-column { flex: 1 1 0; }
|
|
3604
|
+
.vh-ws-code { flex-direction: row; }
|
|
3548
3605
|
.vh-ws-pane--files { flex-grow: 0; flex-shrink: 0; }
|
|
3549
|
-
.vh-ws-pane--editor, .vh-ws-
|
|
3550
|
-
.vh-ws-
|
|
3551
|
-
.vh-ws-
|
|
3606
|
+
.vh-ws-pane--editor, .vh-ws-editor-body, .vh-ws-pane--output { flex: 1 1 0; }
|
|
3607
|
+
.vh-ws-head { align-items: center; border-bottom: 1px solid var(--vh-border); box-sizing: border-box; display: flex; flex: none; gap: 0.25rem; height: var(--vh-ws-head); padding: 0 0.375rem 0 0.75rem; }
|
|
3608
|
+
.vh-ws-status { align-items: center; background: var(--vh-bg-muted); border-top: 1px solid var(--vh-border); box-sizing: border-box; color: var(--vh-muted); display: flex; flex: none; font-size: 0.71875rem; gap: 0.875rem; height: var(--vh-ws-status); padding: 0 0.75rem; white-space: nowrap; }
|
|
3609
|
+
.vh-ws-guide { overflow: auto; }
|
|
3610
|
+
/* guide-side: a guide column up to 360px. On the right the output takes 40% and the code sits under it. */
|
|
3611
|
+
.vh-ws-shell--guide-side > .vh-ws-body > .vh-ws-guide { border-right: 1px solid var(--vh-border); flex: 0 0 min(360px, 50%); }
|
|
3612
|
+
.vh-ws-stack { flex: 1 1 0; }
|
|
3613
|
+
.vh-ws-stack > .vh-ws-pane--output { border-bottom: 1px solid var(--vh-border); flex: 0 0 40%; }
|
|
3552
3614
|
.vh-ws-separator { background: var(--vh-border); flex: none; position: relative; touch-action: none; z-index: 1; }
|
|
3553
3615
|
.vh-ws-separator--vertical { cursor: col-resize; width: 1px; }
|
|
3554
3616
|
.vh-ws-separator--horizontal { cursor: row-resize; height: 1px; }
|
|
@@ -3557,19 +3619,62 @@
|
|
|
3557
3619
|
@media (hover: hover) { .vh-ws-separator:hover { background: var(--vh-muted); } }
|
|
3558
3620
|
.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
3621
|
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
.vh-ws-tab-list {
|
|
3622
|
+
/* UTabs draws the strip, its divider, and its underline, in the head height. */
|
|
3623
|
+
.vh-ws-tab-list { box-sizing: border-box; flex: none; height: var(--vh-ws-head); }
|
|
3624
|
+
.vh-ws-tab-list :is([data-slot="list"], [data-slot="tabs-list"]) { box-sizing: border-box; height: 100%; }
|
|
3625
|
+
.vh-ws-tab-list :is([data-slot="trigger"], [data-slot="tabs-tab"]) { max-height: 100%; }
|
|
3563
3626
|
.vh-ws-tab-panels { flex: 1; min-height: 0; position: relative; }
|
|
3564
3627
|
.vh-ws-tab-panel { display: flex; flex-direction: column; inset: 0; overflow: auto; position: absolute; }
|
|
3565
3628
|
/* Hidden panels stay mounted, so the terminal keeps its output and the preview keeps its page. */
|
|
3566
3629
|
.vh-ws-tab-panel.is-hidden { visibility: hidden; }
|
|
3567
3630
|
|
|
3568
3631
|
/* File tree, editor, terminal */
|
|
3569
|
-
|
|
3632
|
+
/* The rows of the tree: 22px, 13px text, 12px per level, the selected file tinted with an accent edge. */
|
|
3633
|
+
.vh-ws-file-tree {
|
|
3634
|
+
--trees-bg-override: var(--vh-bg-muted);
|
|
3635
|
+
--trees-border-radius-override: 0px;
|
|
3636
|
+
--trees-fg-muted-override: var(--vh-muted);
|
|
3637
|
+
--trees-fg-override: var(--vh-text);
|
|
3638
|
+
--trees-font-family-override: var(--vh-font-sans, var(--font-sans, ui-sans-serif, system-ui, sans-serif));
|
|
3639
|
+
--trees-font-size-override: 13px;
|
|
3640
|
+
--trees-hover-bg-override: var(--vh-bg-elevated);
|
|
3641
|
+
--trees-indent-guide-bg-override: transparent;
|
|
3642
|
+
--trees-item-margin-x-override: 0px;
|
|
3643
|
+
--trees-item-padding-x-override: 6px;
|
|
3644
|
+
--trees-item-row-gap-override: 4px;
|
|
3645
|
+
/* Pierre indents a level by the level gap, the row gap, and half an icon less 0.5px: 0.5 + 4 + 7.5 = 12px. */
|
|
3646
|
+
--trees-level-gap-override: 0.5px;
|
|
3647
|
+
--trees-padding-inline-override: 0px;
|
|
3648
|
+
--trees-scrollbar-gutter-override: 0px;
|
|
3649
|
+
--trees-selected-bg-override: color-mix(in oklab, var(--vh-ws-accent) 12%, transparent);
|
|
3650
|
+
--trees-selected-fg-override: var(--vh-highlighted);
|
|
3651
|
+
border: 0; border-radius: 0; color-scheme: inherit; height: 100%;
|
|
3652
|
+
}
|
|
3653
|
+
.vh-ws-file-icon { flex: none; height: 16px; width: 16px; }
|
|
3570
3654
|
.vh-ws-editor { background: var(--vh-ws-code-bg); flex: 1; height: 100%; min-height: 0; overflow: hidden; }
|
|
3571
3655
|
.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:
|
|
3656
|
+
.vh-ws-editor-fallback { color: var(--vh-ws-code-fg); font-family: var(--vh-ws-font-mono); font-size: 12.5px; line-height: 1.65; margin: 0; overflow: auto; padding: 8px 16px 8px 44px; white-space: pre; }
|
|
3657
|
+
.vh-ws-editor[data-wrap] .vh-ws-editor-fallback { overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
3658
|
+
/* The editor head: the breadcrumb of the open file and the wrap button. It fills the head row of the shell. */
|
|
3659
|
+
.vh-ws-file-head { align-items: center; align-self: stretch; display: flex; flex: 1; gap: 4px; min-width: 0; }
|
|
3660
|
+
.vh-ws-file-head-spacer { flex: 1; }
|
|
3661
|
+
.vh-ws-breadcrumb { align-items: center; color: var(--vh-text); display: flex; font-size: 12.5px; gap: 2px; min-width: 0; overflow: hidden; white-space: nowrap; }
|
|
3662
|
+
/* In a narrow pane the folders and their separators shrink first, so the file name keeps its room the longest. */
|
|
3663
|
+
.vh-ws-breadcrumb > span { color: var(--vh-muted); flex: 0 1000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
3664
|
+
.vh-ws-breadcrumb-separator { color: var(--vh-dimmed); flex: 0 1000 13px; height: 13px; min-width: 0; stroke-width: 1.5; width: 13px; }
|
|
3665
|
+
.vh-ws-breadcrumb b { color: var(--vh-highlighted); flex: 0 1 auto; font-weight: 500; margin-left: 3px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
3666
|
+
/* A file that the example marks read-only. The mark stays whole, and the breadcrumb shrinks first. */
|
|
3667
|
+
.vh-ws-readonly { align-items: center; color: var(--vh-muted); display: inline-flex; flex: none; font-size: 12px; gap: 4px; margin-left: 8px; white-space: nowrap; }
|
|
3668
|
+
.vh-ws-readonly-icon { height: 12px; stroke-width: 1.5; width: 12px; }
|
|
3669
|
+
.vh-ws-wrap-button.vh-ws-wrap-button { border-radius: 4px; color: var(--vh-muted); flex: none; height: 24px; justify-content: center; min-height: 0; padding: 0; width: 24px; }
|
|
3670
|
+
.vh-ws-wrap-button svg { height: 15px; stroke-width: 1.5; width: 15px; }
|
|
3671
|
+
.vh-ws-wrap-button[aria-pressed="true"] { background: var(--vh-bg-elevated); color: var(--vh-highlighted); }
|
|
3672
|
+
/* The status line items. The shell gives the line its height, its gap, and its padding. */
|
|
3673
|
+
.vh-ws-status-items { align-items: center; display: flex; flex: 1; gap: inherit; min-width: 0; }
|
|
3674
|
+
/* In a narrow pane the language and the indentation shorten, and the cursor stays whole. */
|
|
3675
|
+
.vh-ws-status-items > span:not(.vh-ws-status-spacer) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
3676
|
+
.vh-ws-status-items > .vh-ws-status-cursor { flex: none; }
|
|
3677
|
+
.vh-ws-status-spacer { flex: 1; }
|
|
3573
3678
|
.vh-ws-terminal { background: var(--vh-ws-terminal-bg); flex: 1; height: 100%; min-height: 0; padding: 0.5rem 0 0 0.75rem; }
|
|
3574
3679
|
.vh-ws-terminal .xterm, .vh-ws-terminal .xterm-viewport { background: var(--vh-ws-terminal-bg) !important; }
|
|
3575
3680
|
|
|
@@ -3635,50 +3740,38 @@
|
|
|
3635
3740
|
.vh-ws-connect--empty { align-items: center; color: var(--vh-muted); font-size: 0.875rem; gap: 0.5rem; grid-template-columns: 1rem 1fr; }
|
|
3636
3741
|
.vh-ws-connect--empty p { margin: 0; }
|
|
3637
3742
|
|
|
3638
|
-
/*
|
|
3639
|
-
.vh-
|
|
3640
|
-
.vh-
|
|
3641
|
-
.vh-
|
|
3642
|
-
.vh-
|
|
3643
|
-
.vh-
|
|
3644
|
-
.vh-
|
|
3645
|
-
.vh-
|
|
3646
|
-
.vh-
|
|
3647
|
-
|
|
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; }
|
|
3743
|
+
/* Workspace: the shell under its bar, and the cards that show when the device cannot run the workspace. */
|
|
3744
|
+
.vh-workspace { display: flex; flex-direction: column; height: 100%; min-height: 0; }
|
|
3745
|
+
.vh-workspace-session { display: flex; flex: 1; flex-direction: column; min-height: 0; position: relative; }
|
|
3746
|
+
.vh-workspace-session > .vh-ws-shell { flex: 1; }
|
|
3747
|
+
.vh-workspace-muted { color: var(--vh-muted); }
|
|
3748
|
+
.vh-workspace-strong { color: var(--vh-highlighted); font-weight: 500; }
|
|
3749
|
+
.vh-ws-banner { flex: none; }
|
|
3750
|
+
.vh-workspace-notice { align-items: center; background: var(--vh-bg-elevated); border-bottom: 1px solid var(--vh-border); display: flex; font-size: 0.8125rem; gap: 0.5rem; padding: 0.5rem 0.75rem; }
|
|
3751
|
+
.vh-workspace-run-state { color: var(--vh-muted); display: inline-flex; font-size: 0.8125rem; margin-inline-start: 0.25rem; white-space: nowrap; }
|
|
3752
|
+
|
|
3753
|
+
.vh-workspace-scroll { height: 100%; overflow: auto; }
|
|
3663
3754
|
/* The checklist sits in the middle of the preview, with room on every side. */
|
|
3664
|
-
.vh-
|
|
3665
|
-
.vh-
|
|
3666
|
-
|
|
3667
|
-
.vh-
|
|
3668
|
-
|
|
3669
|
-
.vh-
|
|
3670
|
-
.vh-
|
|
3671
|
-
.vh-
|
|
3755
|
+
.vh-workspace-boot { align-items: center; display: flex; flex: 1; justify-content: center; overflow: auto; padding: 2rem 1.5rem; }
|
|
3756
|
+
.vh-workspace-modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; width: 100%; }
|
|
3757
|
+
/* The frame of render() paints the light canvas, so its page must not take the dark scheme of this page and draw white text. */
|
|
3758
|
+
.vh-workspace-frame { background: Canvas; border: 0; color-scheme: light; height: 100%; width: 100%; }
|
|
3759
|
+
|
|
3760
|
+
.vh-workspace-card { border: 1px solid var(--vh-border); border-radius: var(--vh-radius); margin-top: 1.5rem; padding: 1rem; }
|
|
3761
|
+
.vh-workspace-card p { font-size: 0.875rem; margin: 0; }
|
|
3762
|
+
.vh-workspace-unsupported { margin-top: 1.5rem; }
|
|
3763
|
+
.vh-workspace-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
|
|
3764
|
+
.vh-workspace-placeholder { display: none; }
|
|
3672
3765
|
/* Before mount, phones see their card, tablets see nothing yet, and desktops see where the workspace starts. */
|
|
3673
3766
|
@media (min-width: 48rem) {
|
|
3674
|
-
.vh-
|
|
3767
|
+
.vh-workspace-gate[data-state="pending"] .vh-workspace-phone { display: none; }
|
|
3675
3768
|
}
|
|
3676
3769
|
@media (min-width: 64rem) {
|
|
3677
|
-
.vh-
|
|
3678
|
-
.vh-
|
|
3679
|
-
.vh-
|
|
3680
|
-
.vh-
|
|
3681
|
-
.vh-
|
|
3770
|
+
.vh-workspace-gate[data-state="pending"] { display: flex; flex: 1; flex-direction: column; }
|
|
3771
|
+
.vh-workspace-gate[data-state="pending"] .vh-workspace-gate-content { display: none; }
|
|
3772
|
+
.vh-workspace-gate[data-state="pending"] .vh-workspace-placeholder { align-items: center; display: flex; flex: 1; flex-direction: column; justify-content: center; min-height: 0; }
|
|
3773
|
+
.vh-workspace-placeholder-bar { align-self: stretch; border-bottom: 1px solid var(--vh-border); height: 2.75rem; margin-bottom: auto; }
|
|
3774
|
+
.vh-workspace-placeholder p { font-size: 0.875rem; margin: 0 0 auto; }
|
|
3682
3775
|
}
|
|
3683
3776
|
|
|
3684
3777
|
/* Browser support notice */
|
|
@@ -3695,76 +3788,122 @@
|
|
|
3695
3788
|
}
|
|
3696
3789
|
}
|
|
3697
3790
|
|
|
3698
|
-
/*
|
|
3699
|
-
|
|
3791
|
+
/* The bar parts of the workspace: WorkspaceBar, WorkspaceExamples, WorkspaceSidebar and WorkspaceStart. The sizes are
|
|
3792
|
+
the sizes of the approved prototype: a 44px bar with 30px buttons, a 340px menu, a 264px sidebar, and 760px of cards. */
|
|
3700
3793
|
@layer components {
|
|
3701
|
-
.vh-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
}
|
|
3705
|
-
|
|
3706
|
-
.vh-
|
|
3707
|
-
.vh-
|
|
3708
|
-
.vh-
|
|
3709
|
-
.vh-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
.vh-
|
|
3717
|
-
.vh-
|
|
3718
|
-
.vh-
|
|
3719
|
-
.vh-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
}
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
.vh-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
.vh-
|
|
3732
|
-
.vh-
|
|
3733
|
-
.vh-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
}
|
|
3737
|
-
.vh-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
.vh-
|
|
3746
|
-
.vh-
|
|
3747
|
-
|
|
3748
|
-
.vh-
|
|
3749
|
-
.vh-
|
|
3750
|
-
.vh-
|
|
3751
|
-
|
|
3752
|
-
|
|
3794
|
+
.vh-ws-topbar { align-items: center; background: var(--vh-bg); border-bottom: 1px solid var(--vh-border); box-sizing: border-box; display: flex; flex: none; gap: 2px; height: 44px; min-width: 0; padding: 0 8px; }
|
|
3795
|
+
/* In the bar of the shell, the shell draws the line and the padding. */
|
|
3796
|
+
.vh-ws-bar > .vh-ws-topbar { background: none; border: 0; flex: 1; height: 100%; padding: 0; }
|
|
3797
|
+
.vh-ws-spacer { flex: 1; }
|
|
3798
|
+
/* ui-sdk buttons have data-slot="button" and Nuxt UI buttons have data-slot="base". */
|
|
3799
|
+
.vh-ws-topbar :is([data-slot="button"], :is(button, a)[data-slot="base"], .vh-ws-bar-button) { border-radius: 6px; gap: 6px; height: 30px; min-height: 30px; padding-inline: 10px; }
|
|
3800
|
+
.vh-ws-topbar :is(.vh-ws-bar-icon, :is([data-slot="button"], :is(button, a)[data-slot="base"])[aria-label]:has(> :is(svg, [data-slot="leadingIcon"]):only-child)) { justify-content: center; padding: 0; width: 30px; }
|
|
3801
|
+
.vh-ws-topbar :is([data-slot="button"], :is(button, a)[data-slot="base"])[aria-expanded="true"] { background: var(--vh-bg-elevated); color: var(--vh-highlighted); }
|
|
3802
|
+
.vh-ws-step { color: var(--vh-muted); font-size: 0.8125rem; margin-inline: 6px; white-space: nowrap; }
|
|
3803
|
+
.vh-ws-examples-current { color: var(--vh-highlighted); font-weight: 500; }
|
|
3804
|
+
|
|
3805
|
+
/* The examples menu: group headings, then the examples with their description. The open one has a frame. The slot
|
|
3806
|
+
names differ between the ui-sdk kit and Nuxt UI, so each rule names both. */
|
|
3807
|
+
.vh-ws-examples-menu { border: 0; border-radius: 10px; box-shadow: var(--vh-shadow-floating, 0 0 0 1px var(--vh-border)); line-height: 1.45; max-width: calc(100vw - 16px); padding: 6px; width: 340px; }
|
|
3808
|
+
.vh-ws-examples-menu [data-slot="menu-separator"] { display: none; }
|
|
3809
|
+
.vh-ws-examples-menu [data-slot="menu-group-label"] { color: var(--vh-muted); font-size: 11.5px; font-weight: 500; height: auto; letter-spacing: 0.02em; line-height: 1.45; margin: 8px 8px 4px; min-height: 0; padding: 0; text-transform: uppercase; }
|
|
3810
|
+
.vh-ws-examples-menu [role="menuitemcheckbox"] { align-items: flex-start; border-radius: 6px; flex-direction: column; gap: 1px; min-height: 0; padding: 6px 8px; }
|
|
3811
|
+
.vh-ws-examples-menu :is([role="menuitemcheckbox"] > span:not([data-slot]), [role="menuitemcheckbox"] [data-slot="itemLabel"]) { color: var(--vh-highlighted); font-size: 13.5px; font-weight: 500; }
|
|
3812
|
+
.vh-ws-examples-menu [role="menuitemcheckbox"] :is([data-slot="menu-item-description"], [data-slot="itemDescription"]) { color: var(--vh-muted); font-size: 12.5px; }
|
|
3813
|
+
.vh-ws-examples-menu [data-slot="menu-item-indicator"] { display: none; }
|
|
3814
|
+
.vh-ws-examples-menu [role="menuitemcheckbox"][aria-checked="true"] { background: var(--vh-bg); box-shadow: inset 0 0 0 1px var(--vh-border); }
|
|
3815
|
+
.vh-ws-examples-menu [role="menuitemcheckbox"][data-highlighted] { background: var(--vh-bg-elevated); }
|
|
3816
|
+
|
|
3817
|
+
/* The sidebar covers the workspace from the start side, under the bar. It is a reading surface, so it opens at once
|
|
3818
|
+
(docs/design/motion.md, rule 9). */
|
|
3819
|
+
.vh-ws-sidebar {
|
|
3820
|
+
background: var(--vh-bg-muted); border-right: 1px solid var(--vh-border); bottom: 0; box-shadow: var(--vh-shadow-floating, 0 0 0 1px var(--vh-border));
|
|
3821
|
+
box-sizing: border-box; display: flex; flex-direction: column; left: 0; max-width: 100%; outline: none; position: absolute;
|
|
3822
|
+
top: var(--vh-ws-bar, 44px); visibility: hidden; width: 264px; z-index: 5;
|
|
3823
|
+
}
|
|
3824
|
+
.vh-ws-sidebar[data-open] { visibility: visible; }
|
|
3825
|
+
.vh-ws-sidebar-body { box-sizing: border-box; flex: 1; line-height: 1.45; min-height: 0; overflow: auto; padding: 10px 8px 16px; }
|
|
3826
|
+
.vh-ws-sidebar-heading { color: var(--vh-muted); font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em; line-height: 1.45; margin: 14px 8px 6px; text-transform: uppercase; }
|
|
3827
|
+
.vh-ws-sidebar-heading:first-child { margin-top: 4px; }
|
|
3828
|
+
.vh-ws-sidebar-link { border-radius: 6px; box-sizing: border-box; color: var(--vh-text); display: flex; font-size: 13.5px; padding: 5px 8px; text-decoration: none; width: 100%; }
|
|
3829
|
+
@media (hover: hover) { .vh-ws-sidebar-link:hover { background: var(--vh-bg-elevated); color: var(--vh-highlighted); } }
|
|
3830
|
+
.vh-ws-sidebar-footer { border-top: 1px solid var(--vh-border); display: flex; flex-direction: column; gap: 2px; padding: 8px; }
|
|
3831
|
+
.vh-ws-sidebar-footer [data-slot="button"], .vh-ws-sidebar-action { height: 30px; justify-content: flex-start; width: 100%; }
|
|
3832
|
+
|
|
3833
|
+
/* The start screen covers the workspace under the bar, with the examples as cards. */
|
|
3834
|
+
.vh-ws-start {
|
|
3835
|
+
align-items: center; background: color-mix(in oklab, var(--vh-bg-muted) 94%, transparent); bottom: 0; box-sizing: border-box;
|
|
3836
|
+
display: flex; justify-content: center; left: 0; line-height: 1.45; overflow: auto; padding: 16px; position: absolute; right: 0; top: var(--vh-ws-bar, 44px); z-index: 4;
|
|
3837
|
+
}
|
|
3838
|
+
.vh-ws-start-content { margin: auto 0; width: min(760px, 100%); }
|
|
3839
|
+
.vh-ws-start-title { color: var(--vh-highlighted); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.45; margin: 0 0 4px; }
|
|
3840
|
+
.vh-ws-start-description { color: var(--vh-muted); font-size: 14px; margin: 0 0 20px; }
|
|
3841
|
+
.vh-ws-start-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); list-style: none; margin: 0; padding: 0; }
|
|
3842
|
+
.vh-ws-start-grid > li { display: flex; }
|
|
3843
|
+
.vh-ws-start-card {
|
|
3844
|
+
align-items: stretch; background: var(--vh-bg); border: 0; border-radius: 10px; box-shadow: 0 0 0 1px var(--vh-border); box-sizing: border-box; color: var(--vh-text);
|
|
3845
|
+
cursor: pointer; display: flex; flex: 1; flex-direction: column; font: inherit; font-size: 14px; gap: 6px; line-height: 1.45; padding: 14px; text-align: left; transition: box-shadow 120ms ease-out;
|
|
3846
|
+
}
|
|
3847
|
+
@media (hover: hover) { .vh-ws-start-card:hover { box-shadow: var(--vh-shadow-floating, 0 0 0 1px var(--vh-border)); } }
|
|
3848
|
+
.vh-ws-start-label { color: var(--vh-highlighted); font-weight: 500; }
|
|
3849
|
+
.vh-ws-start-text { color: var(--vh-muted); font-size: 13px; }
|
|
3850
|
+
.vh-ws-start-files { color: var(--vh-muted); font-family: var(--vh-ws-font-mono); font-size: 11.5px; line-height: 15px; margin-top: 6px; }
|
|
3851
|
+
.vh-ws-start-foot { align-items: center; color: var(--vh-muted); display: flex; font-size: 13px; gap: 8px; margin-top: 18px; }
|
|
3852
|
+
}
|
|
3753
3853
|
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3854
|
+
/* Nuxt UI draws the examples menu with utility classes, so the rules for its slots stay outside a layer to win over
|
|
3855
|
+
them. The ui-sdk menu has its own slot names, which the rules in the layer above match. */
|
|
3856
|
+
.vh-ws-examples-menu [data-slot="group"] { border: 0; padding: 0; }
|
|
3857
|
+
.vh-ws-examples-menu [data-slot="label"] { color: var(--vh-muted); font-size: 11.5px; font-weight: 500; gap: 0; letter-spacing: 0.02em; line-height: 1.45; margin: 8px 8px 4px; padding: 0; text-transform: uppercase; width: auto; }
|
|
3858
|
+
.vh-ws-examples-menu [data-slot="item"] { font-size: inherit; gap: 1px; line-height: inherit; padding: 6px 8px; }
|
|
3859
|
+
.vh-ws-examples-menu [data-slot="itemWrapper"] { width: 100%; }
|
|
3860
|
+
.vh-ws-examples-menu [data-slot="itemTrailing"] { display: none; }
|
|
3861
|
+
|
|
3862
|
+
/*
|
|
3863
|
+
* The learn parts of a workspace: the guide, its task box and file links, the steps of the bar, and the issues list.
|
|
3864
|
+
* The guide fills the `guide` pane of the shell. Its text scrolls and Back and Next stay at the bottom of the column.
|
|
3865
|
+
* The text rules use :where(), so the prose styles of the page win.
|
|
3866
|
+
*/
|
|
3867
|
+
@layer components {
|
|
3868
|
+
.vh-ws-guide-pane { display: flex; flex: 1; flex-direction: column; height: 100%; min-height: 0; }
|
|
3869
|
+
.vh-ws-guide-body { box-sizing: border-box; flex: 1; font-size: 0.875rem; line-height: 1.5; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 18px 22px 20px; }
|
|
3870
|
+
.vh-ws-guide-kicker { color: var(--vh-muted); font-size: 0.75rem; margin: 0 0 4px; }
|
|
3871
|
+
.vh-ws-guide-title { color: var(--vh-highlighted); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 10px; text-wrap: balance; }
|
|
3872
|
+
:where(.vh-ws-guide-content) > :where(p, ul, ol, blockquote) { margin: 0 0 10px; max-width: 62ch; }
|
|
3873
|
+
:where(.vh-ws-guide-content) :where(code:not(pre code)) { background: var(--vh-bg-elevated); border-radius: 4px; font: 0.75rem var(--vh-ws-font-mono); padding: 1px 4px; }
|
|
3874
|
+
.vh-ws-guide-footer {
|
|
3875
|
+
align-items: center; background: var(--vh-bg); border-top: 1px solid var(--vh-border); box-sizing: border-box; display: flex; flex: none;
|
|
3876
|
+
gap: 8px; justify-content: space-between; min-height: 52px; padding: 10px 22px;
|
|
3877
|
+
}
|
|
3878
|
+
.vh-ws-guide-footer > * { min-width: 0; }
|
|
3879
|
+
.vh-ws-guide-back, .vh-ws-guide-next { max-width: 100%; }
|
|
3880
|
+
.vh-ws-guide-back > span, .vh-ws-guide-next > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
3881
|
+
|
|
3882
|
+
.vh-ws-task { background: var(--vh-bg-muted); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--vh-border); margin: 14px 0 0; max-width: 62ch; padding: 10px 12px; }
|
|
3883
|
+
.vh-ws-task-title { color: var(--vh-highlighted); font-weight: 500; margin: 0 0 2px; }
|
|
3884
|
+
.vh-ws-task-body > :first-child { margin-top: 0; }
|
|
3885
|
+
.vh-ws-task-body > :last-child { margin-bottom: 0; }
|
|
3886
|
+
|
|
3887
|
+
.vh-ws-file-link {
|
|
3888
|
+
--vh-ws-file-link: var(--vh-focus, var(--ring, var(--vh-primary)));
|
|
3889
|
+
background: none; border: 0; border-radius: 4px; color: var(--vh-ws-file-link); cursor: pointer; font: 0.75rem var(--vh-ws-font-mono);
|
|
3890
|
+
padding: 0 3px; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--vh-ws-file-link) 35%, transparent); text-underline-offset: 2px;
|
|
3891
|
+
}
|
|
3892
|
+
@media (hover: hover) { .vh-ws-file-link:hover { background: color-mix(in oklab, var(--vh-ws-file-link) 12%, transparent); } }
|
|
3893
|
+
|
|
3894
|
+
.vh-ws-step-nav { align-items: center; display: flex; gap: 2px; min-width: 0; }
|
|
3895
|
+
.vh-ws-step-nav-menu { min-width: 0; }
|
|
3896
|
+
.vh-ws-step-nav-name { color: var(--vh-highlighted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
3897
|
+
.vh-ws-step-nav-count { color: var(--vh-muted); font-size: 0.78125rem; margin: 0 4px; white-space: nowrap; }
|
|
3898
|
+
|
|
3899
|
+
.vh-ws-issues { box-sizing: border-box; color: var(--vh-warning); font-size: 0.8125rem; list-style: none; margin: 0; overflow-y: auto; padding: 0.625rem 1rem; }
|
|
3900
|
+
.vh-ws-issues[hidden] { display: none; }
|
|
3901
|
+
.vh-ws-issues li + li { margin-top: 0.375rem; }
|
|
3902
|
+
.vh-ws-issues-empty { color: var(--vh-muted); }
|
|
3903
|
+
.vh-ws-issue-line { font-family: var(--vh-ws-font-mono); font-weight: 600; margin-inline-end: 0.5rem; }
|
|
3904
|
+
/* The file of an issue opens it in the editor. It keeps the look of the line, with an underline as a link. */
|
|
3905
|
+
.vh-ws-issue-file { background: none; border: 0; color: inherit; cursor: pointer; font-size: inherit; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
|
|
3906
|
+
@media (hover: hover) { .vh-ws-issue-file:hover { color: var(--vh-highlighted); } }
|
|
3768
3907
|
}
|
|
3769
3908
|
|
|
3770
3909
|
/* MarkdownEditor: the text takes the comark typeset. The editor has no frame, so its caret shows focus. */
|
|
@@ -3824,17 +3963,14 @@
|
|
|
3824
3963
|
white-space: nowrap;
|
|
3825
3964
|
}
|
|
3826
3965
|
|
|
3827
|
-
/* The handle
|
|
3966
|
+
/* The handle moves to the block under the pointer with the list mover of the motion layer (UEditorDragHandle). A
|
|
3967
|
+
narrow screen has no room beside the text, as in Nuxt UI. */
|
|
3828
3968
|
.vh-editor-drag-handle {
|
|
3829
3969
|
align-items: center;
|
|
3830
3970
|
display: flex;
|
|
3831
3971
|
justify-content: center;
|
|
3832
|
-
transition: top 200ms ease-out, left 200ms ease-out;
|
|
3833
3972
|
}
|
|
3834
3973
|
.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
3974
|
@media (max-width: 639.98px) {
|
|
3839
3975
|
.vh-editor-drag-handle { display: none; }
|
|
3840
3976
|
}
|
|
@@ -3922,13 +4058,12 @@
|
|
|
3922
4058
|
height: var(--vh-agent-control);
|
|
3923
4059
|
justify-content: center;
|
|
3924
4060
|
padding: 0;
|
|
3925
|
-
transition: background-color 150ms ease-out, color 150ms ease-out
|
|
4061
|
+
transition: background-color 150ms ease-out, color 150ms ease-out;
|
|
3926
4062
|
width: var(--vh-agent-control);
|
|
3927
4063
|
}
|
|
3928
4064
|
.vh-agent-session__toggle > * { height: 1rem; width: 1rem; }
|
|
3929
4065
|
.vh-agent-session__toggle:hover { background: var(--vh-agent-hover); color: var(--vh-text); }
|
|
3930
4066
|
.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
4067
|
|
|
3933
4068
|
.vh-agent-session__body { display: flex; flex: 1 1 0; min-height: 0; position: relative; }
|
|
3934
4069
|
.vh-agent-session__scroll { flex: 1 1 0; min-width: 0; overflow-y: auto; scrollbar-gutter: stable; }
|
|
@@ -4029,9 +4164,8 @@
|
|
|
4029
4164
|
text-decoration: none;
|
|
4030
4165
|
width: 100%;
|
|
4031
4166
|
}
|
|
4032
|
-
.vh-agent-session__row[data-interactive] { cursor: pointer; transition: background-color 150ms ease-out
|
|
4167
|
+
.vh-agent-session__row[data-interactive] { cursor: pointer; transition: background-color 150ms ease-out; }
|
|
4033
4168
|
.vh-agent-session__row[data-interactive]:hover { background: var(--vh-agent-hover); }
|
|
4034
|
-
.vh-agent-session__row[data-interactive]:active { scale: 0.98; }
|
|
4035
4169
|
.vh-agent-session__row-icon { color: var(--vh-muted); flex: none; height: 1rem; width: 1rem; }
|
|
4036
4170
|
.vh-agent-session__row-label { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
4037
4171
|
.vh-agent-session__row-value {
|
|
@@ -4115,7 +4249,8 @@
|
|
|
4115
4249
|
.vh-agent-session__work-summary:hover { color: var(--vh-text); }
|
|
4116
4250
|
.vh-agent-session__work-count { color: var(--vh-muted); font-size: 0.75rem; }
|
|
4117
4251
|
.vh-agent-session__work-failed { color: var(--vh-error); }
|
|
4118
|
-
|
|
4252
|
+
/* The disclosure effect of the motion layer turns the chevron from its old angle to this one with a spring. */
|
|
4253
|
+
.vh-agent-session__work-chevron { height: 0.875rem; width: 0.875rem; }
|
|
4119
4254
|
.vh-agent-session__work[data-open] .vh-agent-session__work-chevron { rotate: 180deg; }
|
|
4120
4255
|
.vh-agent-session__work[data-open] .vh-agent-session__work-summary {
|
|
4121
4256
|
align-self: stretch;
|
|
@@ -4493,10 +4628,6 @@
|
|
|
4493
4628
|
transform-origin: top left;
|
|
4494
4629
|
}
|
|
4495
4630
|
.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
4631
|
.vh-device-frame__readout {
|
|
4501
4632
|
background: var(--vh-highlighted);
|
|
4502
4633
|
border-radius: calc(var(--vh-radius) * 0.75);
|