@vite-hub/ui 0.4.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 +102 -76
- package/dist/announce-Cy_Tn9wW.js +32 -0
- package/dist/{avatar-stack-DPRFuezh.d.ts → avatar-stack-DXmCQhxd.d.ts} +1 -1
- package/dist/{comment-composer-jYv2ULNP.js → comment-composer-D7ZytyER.js} +257 -10
- package/dist/{comment-composer-fINL5bxo.d.ts → comment-composer-DvKMTrAi.d.ts} +4 -4
- package/dist/{comment-layer-C_sbPIR5.d.ts → comment-layer-GTsLdABl.d.ts} +4 -4
- package/dist/{comment-list-BcSaLngS.d.ts → comment-list-BI96empx.d.ts} +2 -2
- package/dist/comment-marks.css +18 -22
- package/dist/{comment-panel-CfvdRUMX.d.ts → comment-panel-CsKWTms_.d.ts} +2 -2
- package/dist/{comment-pin-DHOdRvUw.d.ts → comment-pin-CvwgRSDR.d.ts} +1 -1
- package/dist/{comment-row-Bn3nr8l5.js → comment-row-JmTC0uXr.js} +1 -1
- 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-DKJjmWN0.d.ts → comment-thread-C6U-bsK_.d.ts} +4 -4
- package/dist/{comments-D0d26ghV.js → comments-B88zg9gC.js} +1 -1
- 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/headless.d.ts +1 -1
- 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-BYRFQfCd.d.ts → index-YUvL2nV8.d.ts} +8 -10
- package/dist/index.d.ts +19 -14
- package/dist/index.js +45 -44
- 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.js +1 -1
- package/dist/{message-scroller-jrYN9dG9.d.ts → message-scroller-Bm1YWTeY.d.ts} +2 -2
- 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 +1 -1
- package/dist/nuxt.js +12 -3
- package/dist/opt-out-b6bnUjIT.js +208 -0
- package/dist/parts/components/agent-session.js +1 -1
- package/dist/parts/components/attachment.d.ts +1 -1
- package/dist/parts/components/attachment.js +1 -1
- package/dist/parts/components/avatar-stack.d.ts +1 -1
- package/dist/parts/components/avatar-stack.js +2 -1
- package/dist/parts/components/bubble.d.ts +1 -1
- package/dist/parts/components/chat-session.d.ts +1 -1
- package/dist/parts/components/chat.js +2 -2
- package/dist/parts/components/code-block.d.ts +1 -1
- package/dist/parts/components/code-block.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 +24 -6
- package/dist/parts/components/comment-list.d.ts +1 -1
- package/dist/parts/components/comment-list.js +12 -7
- package/dist/parts/components/comment-panel.d.ts +1 -1
- package/dist/parts/components/comment-panel.js +24 -10
- package/dist/parts/components/comment-pin.d.ts +1 -1
- package/dist/parts/components/comment-selection-bar.js +3 -2
- 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 +1 -1
- package/dist/parts/components/comment-thread.js +2 -597
- package/dist/parts/components/comments.d.ts +8 -7
- package/dist/parts/components/comments.js +5 -4
- package/dist/parts/components/copy-button.d.ts +13 -3
- package/dist/parts/components/copy-button.js +226 -1
- package/dist/parts/components/device-frame.d.ts +2 -2
- 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.js +1 -1
- package/dist/parts/components/markdown-renderer.js +1 -1
- package/dist/parts/components/markdown.js +1 -1
- package/dist/parts/components/marker.d.ts +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 +5 -5
- 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 +1 -1
- package/dist/parts/components/trace.d.ts +1 -1
- package/dist/parts/headless/comments.js +1 -1
- package/dist/parts/headless/message-scroller.d.ts +1 -1
- package/dist/parts/playground/share.d.ts +36 -2
- package/dist/parts/workspace/browser-support-notice.d.ts +1 -1
- 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.d.ts +1 -1
- 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-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/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 +586 -573
- 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-Dj7vp0lZ.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 +16 -3
- package/dist/workspace.js +15 -2
- package/package.json +21 -10
- package/dist/copy-button-CRN3kmSD.js +0 -253
- 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,237 +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="cli"] {
|
|
447
|
-
--vh-primitive-icon-opacity: 0;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
.vh-primitive-icon[data-icon="cms"] {
|
|
451
|
-
--vh-primitive-icon-motion: translate(-1px, -1px);
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
.vh-primitive-icon[data-icon="codemods"] {
|
|
455
|
-
--vh-primitive-icon-motion: translateX(1.5px);
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
.vh-primitive-icon[data-icon="comments"] {
|
|
459
|
-
--vh-primitive-icon-motion: translateX(1.5px);
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.vh-primitive-icon[data-icon="compare"] {
|
|
463
|
-
--vh-primitive-icon-motion: translateX(-1.5px);
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
.vh-primitive-icon[data-icon="connections"] {
|
|
467
|
-
--vh-primitive-icon-motion: translateY(1.5px);
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.vh-primitive-icon[data-icon="console"] {
|
|
471
|
-
--vh-primitive-icon-motion: translateX(1px);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
.vh-primitive-icon[data-icon="content"] {
|
|
475
|
-
--vh-primitive-icon-motion: translateX(1.5px);
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
.vh-primitive-icon[data-icon="database"] {
|
|
479
|
-
--vh-primitive-icon-motion: translateY(-1.5px);
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
.vh-primitive-icon[data-icon="choices"] {
|
|
483
|
-
--vh-primitive-icon-motion: translate(1px, -1px);
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
.vh-primitive-icon[data-icon="development"] {
|
|
487
|
-
--vh-primitive-icon-motion: rotate(14deg);
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
.vh-primitive-icon[data-icon="docs"] {
|
|
491
|
-
--vh-primitive-icon-motion: skewY(-6deg);
|
|
492
|
-
--vh-primitive-icon-origin: 12px 12px;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
.vh-primitive-icon[data-icon="email"] {
|
|
496
|
-
--vh-primitive-icon-motion: translateY(1.5px);
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
.vh-primitive-icon[data-icon="env"] {
|
|
500
|
-
--vh-primitive-icon-motion: rotate(-16deg);
|
|
501
|
-
--vh-primitive-icon-origin: 7.5px 16.5px;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
.vh-primitive-icon[data-icon="forge"] {
|
|
505
|
-
--vh-primitive-icon-motion: translateX(-1px);
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
.vh-primitive-icon[data-icon="forms"] {
|
|
509
|
-
--vh-primitive-icon-motion: translateY(1px);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
.vh-primitive-icon[data-icon="gateways"] {
|
|
513
|
-
--vh-primitive-icon-motion: translateX(1.5px);
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
.vh-primitive-icon[data-icon="guides"] {
|
|
517
|
-
--vh-primitive-icon-motion: rotate(45deg);
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
.vh-primitive-icon[data-icon="hosts"] {
|
|
521
|
-
--vh-primitive-icon-motion: translateY(-1.5px);
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
.vh-primitive-icon[data-icon="i18n"] {
|
|
525
|
-
--vh-primitive-icon-motion: translateY(-1.5px);
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
.vh-primitive-icon[data-icon="kv"] {
|
|
529
|
-
--vh-primitive-icon-motion: translateX(1.5px);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
.vh-primitive-icon[data-icon="logs"] {
|
|
533
|
-
--vh-primitive-icon-motion: translateX(1.5px);
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
.vh-primitive-icon[data-icon="mcp"] {
|
|
537
|
-
--vh-primitive-icon-motion: translateY(-1px);
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
.vh-primitive-icon[data-icon="markdown-template"] {
|
|
541
|
-
--vh-primitive-icon-motion: translateY(1.5px);
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
.vh-primitive-icon[data-icon="presets"] {
|
|
545
|
-
--vh-primitive-icon-motion: translate(-1px, -1px);
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
.vh-primitive-icon[data-icon="queue"] {
|
|
549
|
-
--vh-primitive-icon-motion: translateX(2px);
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
.vh-primitive-icon[data-icon="rate-limit"] {
|
|
553
|
-
--vh-primitive-icon-motion: rotate(-70deg);
|
|
554
|
-
--vh-primitive-icon-origin: 12px 16px;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
.vh-primitive-icon[data-icon="realtime"] {
|
|
558
|
-
--vh-primitive-icon-motion: scale(1.12);
|
|
559
|
-
--vh-primitive-icon-opacity: 0.4;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
.vh-primitive-icon[data-icon="reference"] {
|
|
563
|
-
--vh-primitive-icon-motion: translateX(1.5px);
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
.vh-primitive-icon[data-icon="runtime"] {
|
|
567
|
-
--vh-primitive-icon-motion: scale(0.6);
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
.vh-primitive-icon[data-icon="sandbox"] {
|
|
571
|
-
--vh-primitive-icon-motion: scale(0.7);
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
.vh-primitive-icon[data-icon="schedule"] {
|
|
575
|
-
--vh-primitive-icon-motion: translateX(4.5px);
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
.vh-primitive-icon[data-icon="shell"] {
|
|
579
|
-
--vh-primitive-icon-opacity: 0;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
.vh-primitive-icon[data-icon="skills"] {
|
|
583
|
-
--vh-primitive-icon-motion: translateY(1.5px);
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
.vh-primitive-icon[data-icon="source"] {
|
|
587
|
-
--vh-primitive-icon-motion: translateY(1.5px);
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
.vh-primitive-icon[data-icon="start"] {
|
|
591
|
-
--vh-primitive-icon-motion: skewY(-10deg);
|
|
592
|
-
--vh-primitive-icon-origin: 5px 8.5px;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
.vh-primitive-icon[data-icon="ui"] {
|
|
596
|
-
--vh-primitive-icon-motion: translate(-1px, -1px);
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
.vh-primitive-icon[data-icon="usage"] {
|
|
600
|
-
--vh-primitive-icon-motion: scaleY(0.75);
|
|
601
|
-
--vh-primitive-icon-origin: 12px 17px;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
.vh-primitive-icon[data-icon="web-container"] {
|
|
605
|
-
--vh-primitive-icon-motion: translateY(-1px);
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
.vh-primitive-icon[data-icon="webhooks"] {
|
|
609
|
-
--vh-primitive-icon-motion: translate(1px, -1px);
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
.vh-primitive-icon[data-icon="workflow"] {
|
|
613
|
-
--vh-primitive-icon-motion: translateX(1.5px);
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
.vh-primitive-icon[data-icon="workspace"] {
|
|
617
|
-
--vh-primitive-icon-motion: translateY(-1px);
|
|
618
|
-
}
|
|
619
|
-
|
|
620
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
|
|
621
387
|
Nuxt UI button, so this rule stays outside a layer to win over its classes. */
|
|
622
|
-
[data-slot="comment-
|
|
388
|
+
[data-slot="comment-image-stack-remove"] {
|
|
623
389
|
background: var(--vh-highlighted);
|
|
624
390
|
border: 0;
|
|
625
391
|
border-radius: 9999px;
|
|
@@ -1061,10 +827,10 @@
|
|
|
1061
827
|
color: var(--vh-error);
|
|
1062
828
|
}
|
|
1063
829
|
|
|
830
|
+
/* The disclosure effect of the motion layer turns the chevron from its old angle to this one with a spring. */
|
|
1064
831
|
[data-trace-chevron] svg {
|
|
1065
832
|
stroke: currentColor;
|
|
1066
833
|
stroke-width: 2;
|
|
1067
|
-
transition: rotate 150ms;
|
|
1068
834
|
}
|
|
1069
835
|
|
|
1070
836
|
[data-slot="trace-collapsible-trigger"][aria-expanded="true"] [data-trace-chevron] svg {
|
|
@@ -1076,38 +842,6 @@
|
|
|
1076
842
|
overflow: hidden;
|
|
1077
843
|
}
|
|
1078
844
|
|
|
1079
|
-
[data-slot="trace-collapsible-content"][data-open] {
|
|
1080
|
-
animation: vh-trace-open 200ms ease-out;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
[data-slot="trace-collapsible-content"][data-closed] {
|
|
1084
|
-
animation: vh-trace-close 200ms ease-out;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
@keyframes vh-trace-open {
|
|
1088
|
-
from {
|
|
1089
|
-
height: 0;
|
|
1090
|
-
}
|
|
1091
|
-
to {
|
|
1092
|
-
height: var(--collapsible-panel-height);
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
@keyframes vh-trace-close {
|
|
1097
|
-
from {
|
|
1098
|
-
height: var(--collapsible-panel-height);
|
|
1099
|
-
}
|
|
1100
|
-
to {
|
|
1101
|
-
height: 0;
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1106
|
-
[data-slot="trace-collapsible-content"] {
|
|
1107
|
-
animation: none !important;
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
845
|
[data-slot="trace-collapsible-content-inner"] {
|
|
1112
846
|
border-left: 1px solid var(--vh-border);
|
|
1113
847
|
color: var(--vh-muted);
|
|
@@ -1732,10 +1466,6 @@
|
|
|
1732
1466
|
flex: 1;
|
|
1733
1467
|
}
|
|
1734
1468
|
|
|
1735
|
-
[data-slot="prompt-input-toolbar"] button:active:not(:disabled) {
|
|
1736
|
-
scale: 0.96;
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
1469
|
/* On a phone the Send button sends, so it gets a 48px target around its 32px circle without a larger circle. */
|
|
1740
1470
|
@media (pointer: coarse) {
|
|
1741
1471
|
[data-slot="prompt-input-toolbar"] button {
|
|
@@ -1859,30 +1589,104 @@
|
|
|
1859
1589
|
color: var(--vh-highlighted);
|
|
1860
1590
|
}
|
|
1861
1591
|
|
|
1862
|
-
/* A pending state
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
border-radius: inherit;
|
|
1867
|
-
content: "";
|
|
1868
|
-
inset: 0;
|
|
1869
|
-
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;
|
|
1870
1596
|
}
|
|
1871
1597
|
|
|
1872
|
-
@keyframes vh-status-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
opacity: 0;
|
|
1876
|
-
transform: scale(2.25);
|
|
1598
|
+
@keyframes vh-status-pulse {
|
|
1599
|
+
50% {
|
|
1600
|
+
opacity: 0.35;
|
|
1877
1601
|
}
|
|
1878
1602
|
}
|
|
1879
1603
|
|
|
1880
1604
|
@media (prefers-reduced-motion: reduce) {
|
|
1881
|
-
:is([data-slot="connection-status-indicator"], [data-slot="sync-status-indicator"])
|
|
1605
|
+
:is([data-slot="connection-status-indicator"], [data-slot="sync-status-indicator"]) {
|
|
1882
1606
|
animation: none;
|
|
1883
1607
|
}
|
|
1884
1608
|
}
|
|
1885
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
|
+
|
|
1886
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. */
|
|
1887
1691
|
:is([data-slot="relative-time"], [data-slot="comment-reply-time"]) {
|
|
1888
1692
|
font-variant-numeric: tabular-nums;
|
|
@@ -1951,18 +1755,13 @@
|
|
|
1951
1755
|
white-space: nowrap;
|
|
1952
1756
|
}
|
|
1953
1757
|
|
|
1954
|
-
/* A live or pending status
|
|
1955
|
-
[data-slot="status-indicator"][data-pulse]
|
|
1956
|
-
animation: vh-status-
|
|
1957
|
-
background: inherit;
|
|
1958
|
-
border-radius: inherit;
|
|
1959
|
-
content: "";
|
|
1960
|
-
inset: 0;
|
|
1961
|
-
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;
|
|
1962
1761
|
}
|
|
1963
1762
|
|
|
1964
1763
|
@media (prefers-reduced-motion: reduce) {
|
|
1965
|
-
[data-slot="status-indicator"][data-pulse]
|
|
1764
|
+
[data-slot="status-indicator"][data-pulse] {
|
|
1966
1765
|
animation: none;
|
|
1967
1766
|
}
|
|
1968
1767
|
}
|
|
@@ -2050,7 +1849,6 @@
|
|
|
2050
1849
|
position: absolute;
|
|
2051
1850
|
right: 0;
|
|
2052
1851
|
text-align: start;
|
|
2053
|
-
transition: top 160ms ease;
|
|
2054
1852
|
}
|
|
2055
1853
|
|
|
2056
1854
|
button[data-slot="comment-margin-card"] {
|
|
@@ -2075,7 +1873,6 @@
|
|
|
2075
1873
|
left: auto;
|
|
2076
1874
|
position: fixed;
|
|
2077
1875
|
right: 1rem;
|
|
2078
|
-
transition: top 160ms ease;
|
|
2079
1876
|
width: 18rem;
|
|
2080
1877
|
z-index: 1;
|
|
2081
1878
|
}
|
|
@@ -2104,10 +1901,6 @@
|
|
|
2104
1901
|
-webkit-line-clamp: 3;
|
|
2105
1902
|
}
|
|
2106
1903
|
|
|
2107
|
-
@media (prefers-reduced-motion: reduce) {
|
|
2108
|
-
[data-slot="comment-margin-card"], [data-slot="comment-layer-popover"][data-margin="true"] { transition: none; }
|
|
2109
|
-
}
|
|
2110
|
-
|
|
2111
1904
|
[data-slot="comment-layer-item"] {
|
|
2112
1905
|
pointer-events: none;
|
|
2113
1906
|
position: absolute;
|
|
@@ -2158,7 +1951,6 @@
|
|
|
2158
1951
|
[data-slot="comment-selection-bar"] {
|
|
2159
1952
|
--vh-selection-bar-text: color-mix(in oklab, var(--vh-inverted) 82%, var(--vh-highlighted));
|
|
2160
1953
|
align-items: center;
|
|
2161
|
-
animation: vh-comment-selection-bar-in 140ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
2162
1954
|
background: var(--vh-highlighted);
|
|
2163
1955
|
border: 1px solid color-mix(in oklab, var(--vh-inverted) 12%, transparent);
|
|
2164
1956
|
border-radius: 12px;
|
|
@@ -2193,7 +1985,7 @@
|
|
|
2193
1985
|
position: relative;
|
|
2194
1986
|
touch-action: manipulation;
|
|
2195
1987
|
transition-duration: 150ms;
|
|
2196
|
-
transition-property: background-color, color
|
|
1988
|
+
transition-property: background-color, color;
|
|
2197
1989
|
transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
2198
1990
|
white-space: nowrap;
|
|
2199
1991
|
}
|
|
@@ -2219,37 +2011,12 @@
|
|
|
2219
2011
|
}
|
|
2220
2012
|
}
|
|
2221
2013
|
|
|
2222
|
-
[data-slot="comment-selection-bar-action"]:active {
|
|
2223
|
-
scale: 0.96;
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
2014
|
[data-slot="comment-selection-bar-kbd"] {
|
|
2227
2015
|
font: inherit;
|
|
2228
2016
|
margin-inline-start: 6px;
|
|
2229
2017
|
opacity: 0.6;
|
|
2230
2018
|
}
|
|
2231
2019
|
|
|
2232
|
-
@keyframes vh-comment-selection-bar-in {
|
|
2233
|
-
from {
|
|
2234
|
-
opacity: 0;
|
|
2235
|
-
scale: 0.96;
|
|
2236
|
-
}
|
|
2237
|
-
}
|
|
2238
|
-
|
|
2239
|
-
@media (prefers-reduced-motion: reduce) {
|
|
2240
|
-
[data-slot="comment-selection-bar"] {
|
|
2241
|
-
animation: none;
|
|
2242
|
-
}
|
|
2243
|
-
|
|
2244
|
-
[data-slot="comment-selection-bar-action"] {
|
|
2245
|
-
transition-property: background-color, color;
|
|
2246
|
-
}
|
|
2247
|
-
|
|
2248
|
-
[data-slot="comment-selection-bar-action"]:active {
|
|
2249
|
-
scale: none;
|
|
2250
|
-
}
|
|
2251
|
-
}
|
|
2252
|
-
|
|
2253
2020
|
/* Floating surfaces take the layered shadow of the theme, which draws their hairline too. Without the theme, the hairline stays. */
|
|
2254
2021
|
[data-slot="comment-layer-popover"] {
|
|
2255
2022
|
--vh-comment-card-width: 22.5rem;
|
|
@@ -2371,19 +2138,20 @@
|
|
|
2371
2138
|
|
|
2372
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
|
|
2373
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
|
|
2374
|
-
button's 1rem plus the 0.4375rem between it and the edge, so a one-line bubble is a capsule. It
|
|
2375
|
-
|
|
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. */
|
|
2376
2146
|
[data-slot="comment-layer-item"][data-draft="true"] > [data-slot="comment-layer-popover"] {
|
|
2377
|
-
--vh-bubble-edge:
|
|
2147
|
+
--vh-bubble-edge: var(--vh-border);
|
|
2378
2148
|
--vh-bubble-radius: 1.4375rem;
|
|
2379
|
-
animation: vh-comment-bubble-in 150ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
2380
2149
|
border: 0;
|
|
2381
2150
|
border-radius: 0.375rem var(--vh-bubble-radius) var(--vh-bubble-radius);
|
|
2382
2151
|
box-shadow:
|
|
2383
2152
|
0 0 0 1px var(--vh-bubble-edge),
|
|
2384
|
-
0 2px 4px color-mix(in oklab, var(--vh-
|
|
2385
|
-
0 10px 24px -6px
|
|
2386
|
-
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);
|
|
2387
2155
|
width: 18rem;
|
|
2388
2156
|
}
|
|
2389
2157
|
|
|
@@ -2398,30 +2166,14 @@
|
|
|
2398
2166
|
|
|
2399
2167
|
[data-slot="comment-layer-item"][data-draft="true"][data-flip-x="true"] > [data-slot="comment-layer-popover"] {
|
|
2400
2168
|
border-radius: var(--vh-bubble-radius) 0.375rem var(--vh-bubble-radius) var(--vh-bubble-radius);
|
|
2401
|
-
transform-origin: top right;
|
|
2402
2169
|
}
|
|
2403
2170
|
|
|
2404
2171
|
[data-slot="comment-layer-item"][data-draft="true"][data-flip-y="true"] > [data-slot="comment-layer-popover"] {
|
|
2405
2172
|
border-radius: var(--vh-bubble-radius) var(--vh-bubble-radius) var(--vh-bubble-radius) 0.375rem;
|
|
2406
|
-
transform-origin: bottom left;
|
|
2407
2173
|
}
|
|
2408
2174
|
|
|
2409
2175
|
[data-slot="comment-layer-item"][data-draft="true"][data-flip-x="true"][data-flip-y="true"] > [data-slot="comment-layer-popover"] {
|
|
2410
2176
|
border-radius: var(--vh-bubble-radius) var(--vh-bubble-radius) 0.375rem;
|
|
2411
|
-
transform-origin: bottom right;
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
|
-
@keyframes vh-comment-bubble-in {
|
|
2415
|
-
from {
|
|
2416
|
-
opacity: 0;
|
|
2417
|
-
scale: 0.96;
|
|
2418
|
-
}
|
|
2419
|
-
}
|
|
2420
|
-
|
|
2421
|
-
@media (prefers-reduced-motion: reduce) {
|
|
2422
|
-
[data-slot="comment-layer-item"][data-draft="true"] > [data-slot="comment-layer-popover"] {
|
|
2423
|
-
animation: none;
|
|
2424
|
-
}
|
|
2425
2177
|
}
|
|
2426
2178
|
|
|
2427
2179
|
[data-slot="comment-composer"] {
|
|
@@ -2442,34 +2194,10 @@
|
|
|
2442
2194
|
padding-block: 0.5rem 0.125rem;
|
|
2443
2195
|
}
|
|
2444
2196
|
|
|
2445
|
-
[data-slot="comment-composer"][data-shake="shake"] {
|
|
2446
|
-
animation: vh-comment-shake 400ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
|
|
2447
|
-
}
|
|
2448
|
-
|
|
2449
2197
|
[data-slot="comment-composer"][data-shake="flash"] [data-slot="prompt-input-group"] {
|
|
2450
2198
|
animation: vh-comment-flash 450ms ease both;
|
|
2451
2199
|
}
|
|
2452
2200
|
|
|
2453
|
-
@keyframes vh-comment-shake {
|
|
2454
|
-
10%,
|
|
2455
|
-
90% {
|
|
2456
|
-
transform: translateX(-1px);
|
|
2457
|
-
}
|
|
2458
|
-
20%,
|
|
2459
|
-
80% {
|
|
2460
|
-
transform: translateX(3px);
|
|
2461
|
-
}
|
|
2462
|
-
30%,
|
|
2463
|
-
50%,
|
|
2464
|
-
70% {
|
|
2465
|
-
transform: translateX(-5px);
|
|
2466
|
-
}
|
|
2467
|
-
40%,
|
|
2468
|
-
60% {
|
|
2469
|
-
transform: translateX(5px);
|
|
2470
|
-
}
|
|
2471
|
-
}
|
|
2472
|
-
|
|
2473
2201
|
@keyframes vh-comment-flash {
|
|
2474
2202
|
0%,
|
|
2475
2203
|
60% {
|
|
@@ -2478,12 +2206,6 @@
|
|
|
2478
2206
|
}
|
|
2479
2207
|
}
|
|
2480
2208
|
|
|
2481
|
-
@media (prefers-reduced-motion: reduce) {
|
|
2482
|
-
[data-slot="comment-composer"][data-shake="shake"] {
|
|
2483
|
-
animation: none;
|
|
2484
|
-
}
|
|
2485
|
-
}
|
|
2486
|
-
|
|
2487
2209
|
[data-slot="comment-composer-mentions"] {
|
|
2488
2210
|
background: var(--vh-bg);
|
|
2489
2211
|
border-radius: calc(var(--vh-radius) * 1.5);
|
|
@@ -2816,45 +2538,13 @@
|
|
|
2816
2538
|
box-shadow: 0 0 0 3px color-mix(in oklab, var(--vh-primary) 20%, transparent);
|
|
2817
2539
|
}
|
|
2818
2540
|
|
|
2819
|
-
/* The files in a comment box wrap, as in Drop
|
|
2541
|
+
/* The files in a comment box wrap, as in Drop. */
|
|
2820
2542
|
[data-slot="comment-composer"] [data-slot="prompt-input-attachments"] {
|
|
2821
2543
|
flex-wrap: wrap;
|
|
2822
2544
|
gap: 0.375rem;
|
|
2823
2545
|
overflow: visible;
|
|
2824
2546
|
}
|
|
2825
2547
|
|
|
2826
|
-
/* A picture in a comment box is a 40px square, as in Drop: no name, and the Remove button on its top right corner.
|
|
2827
|
-
The name stays for a screen reader. Other files keep their chip with the name. */
|
|
2828
|
-
[data-slot="comment-composer"] [data-slot="attachment"]:has(> [data-slot="attachment-media"][data-variant="image"]) {
|
|
2829
|
-
background: none;
|
|
2830
|
-
border: 0;
|
|
2831
|
-
border-radius: calc(var(--vh-radius) * 0.75);
|
|
2832
|
-
min-width: 0;
|
|
2833
|
-
padding: 0;
|
|
2834
|
-
|
|
2835
|
-
& > [data-slot="attachment-media"] {
|
|
2836
|
-
border-radius: inherit;
|
|
2837
|
-
outline: 1px solid color-mix(in oklab, var(--vh-highlighted) 10%, transparent);
|
|
2838
|
-
outline-offset: -1px;
|
|
2839
|
-
width: 2.5rem;
|
|
2840
|
-
}
|
|
2841
|
-
|
|
2842
|
-
& > [data-slot="attachment-content"] {
|
|
2843
|
-
clip-path: inset(50%);
|
|
2844
|
-
height: 1px;
|
|
2845
|
-
overflow: hidden;
|
|
2846
|
-
position: absolute;
|
|
2847
|
-
white-space: nowrap;
|
|
2848
|
-
width: 1px;
|
|
2849
|
-
}
|
|
2850
|
-
|
|
2851
|
-
& > [data-slot="attachment-actions"] {
|
|
2852
|
-
position: absolute;
|
|
2853
|
-
right: -0.375rem;
|
|
2854
|
-
top: -0.375rem;
|
|
2855
|
-
}
|
|
2856
|
-
}
|
|
2857
|
-
|
|
2858
2548
|
[data-slot="comment-reply-attachments"] {
|
|
2859
2549
|
flex-wrap: wrap;
|
|
2860
2550
|
margin-top: 0.5rem;
|
|
@@ -2881,29 +2571,211 @@
|
|
|
2881
2571
|
padding: 0.75rem 0.75rem 0.25rem;
|
|
2882
2572
|
}
|
|
2883
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
|
+
*/
|
|
2884
2579
|
[data-slot="comment-reply-images"] {
|
|
2885
|
-
display:
|
|
2886
|
-
|
|
2887
|
-
gap: 0.5rem;
|
|
2580
|
+
display: grid;
|
|
2581
|
+
gap: 0.25rem;
|
|
2888
2582
|
margin-top: 0.5rem;
|
|
2889
2583
|
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2584
|
+
&[data-count="1"] {
|
|
2585
|
+
display: flex;
|
|
2586
|
+
}
|
|
2587
|
+
|
|
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
|
+
}
|
|
2896
2600
|
}
|
|
2897
2601
|
|
|
2898
|
-
&
|
|
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 {
|
|
2899
2638
|
height: auto;
|
|
2900
2639
|
max-height: 10rem;
|
|
2901
2640
|
max-width: 100%;
|
|
2902
|
-
object-fit: contain;
|
|
2903
2641
|
width: auto;
|
|
2904
2642
|
}
|
|
2905
2643
|
}
|
|
2906
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
|
+
|
|
2907
2779
|
[data-slot="comment-thread-actions"] {
|
|
2908
2780
|
align-items: center;
|
|
2909
2781
|
display: flex;
|
|
@@ -3140,17 +3012,33 @@
|
|
|
3140
3012
|
}
|
|
3141
3013
|
|
|
3142
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
|
|
3143
|
-
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. */
|
|
3144
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
|
+
|
|
3145
3026
|
& [data-slot="prompt-input-textarea"] {
|
|
3146
3027
|
flex-basis: 100%;
|
|
3147
3028
|
order: 0;
|
|
3029
|
+
padding-block-end: 0;
|
|
3148
3030
|
padding-inline: 0.5rem;
|
|
3149
3031
|
}
|
|
3150
3032
|
|
|
3151
3033
|
& [data-slot="prompt-input-spacer"] {
|
|
3152
3034
|
display: block;
|
|
3153
3035
|
}
|
|
3036
|
+
|
|
3037
|
+
@media (pointer: coarse) {
|
|
3038
|
+
& [data-slot="prompt-input-toolbar"] > button::before {
|
|
3039
|
+
inset-block-start: 0;
|
|
3040
|
+
}
|
|
3041
|
+
}
|
|
3154
3042
|
}
|
|
3155
3043
|
|
|
3156
3044
|
/* The page box and the reply box sit at the bottom, so their mention menus open upward. */
|
|
@@ -3371,6 +3259,51 @@
|
|
|
3371
3259
|
object-fit: contain;
|
|
3372
3260
|
}
|
|
3373
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
|
+
|
|
3374
3307
|
.vh-image-dialog__error {
|
|
3375
3308
|
background: var(--vh-media-scrim, var(--vh-bg-elevated));
|
|
3376
3309
|
border-radius: var(--vh-radius);
|
|
@@ -3544,12 +3477,12 @@
|
|
|
3544
3477
|
height: 0.8rem;
|
|
3545
3478
|
stroke: currentColor;
|
|
3546
3479
|
stroke-width: 2;
|
|
3547
|
-
transition: transform 150ms ease;
|
|
3548
3480
|
width: 0.8rem;
|
|
3549
3481
|
}
|
|
3550
3482
|
|
|
3483
|
+
/* The disclosure effect of the motion layer turns the chevron from its old angle to this one with a spring. */
|
|
3551
3484
|
.vh-agent-tool-list__disclosure[open] > summary .vh-agent-tool-list__chevron {
|
|
3552
|
-
|
|
3485
|
+
rotate: 180deg;
|
|
3553
3486
|
}
|
|
3554
3487
|
|
|
3555
3488
|
.vh-agent-tool-list__body {
|
|
@@ -3621,6 +3554,8 @@
|
|
|
3621
3554
|
/* System colors, not currentColor: a currentColor fill under inverted text would take the text color and vanish. */
|
|
3622
3555
|
--vh-ws-ink: var(--ui-text-highlighted, CanvasText);
|
|
3623
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)));
|
|
3624
3559
|
}
|
|
3625
3560
|
}
|
|
3626
3561
|
|
|
@@ -3652,21 +3587,30 @@
|
|
|
3652
3587
|
.vh-ws-link { color: var(--vh-highlighted); font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 2px; }
|
|
3653
3588
|
|
|
3654
3589
|
/* Shell */
|
|
3590
|
+
/* The shell is its own stacking context, so its separators stay under menus that open in a portal. */
|
|
3655
3591
|
.vh-ws-shell {
|
|
3656
3592
|
background: var(--vh-bg); border: 1px solid var(--vh-border); border-radius: var(--vh-radius); color: var(--vh-text);
|
|
3657
|
-
display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; position: relative;
|
|
3658
|
-
}
|
|
3659
|
-
|
|
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; }
|
|
3660
3601
|
.vh-ws-body { display: flex; flex: 1; min-height: 0; min-width: 0; }
|
|
3661
|
-
.vh-ws-
|
|
3662
|
-
.vh-ws-
|
|
3663
|
-
.vh-ws-
|
|
3664
|
-
.vh-ws-stack { display: flex; flex-direction: column; height: 100%; min-height: 0; }
|
|
3665
|
-
.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; }
|
|
3666
3605
|
.vh-ws-pane--files { flex-grow: 0; flex-shrink: 0; }
|
|
3667
|
-
.vh-ws-pane--editor, .vh-ws-
|
|
3668
|
-
.vh-ws-
|
|
3669
|
-
.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%; }
|
|
3670
3614
|
.vh-ws-separator { background: var(--vh-border); flex: none; position: relative; touch-action: none; z-index: 1; }
|
|
3671
3615
|
.vh-ws-separator--vertical { cursor: col-resize; width: 1px; }
|
|
3672
3616
|
.vh-ws-separator--horizontal { cursor: row-resize; height: 1px; }
|
|
@@ -3675,19 +3619,62 @@
|
|
|
3675
3619
|
@media (hover: hover) { .vh-ws-separator:hover { background: var(--vh-muted); } }
|
|
3676
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; }
|
|
3677
3621
|
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
.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%; }
|
|
3681
3626
|
.vh-ws-tab-panels { flex: 1; min-height: 0; position: relative; }
|
|
3682
3627
|
.vh-ws-tab-panel { display: flex; flex-direction: column; inset: 0; overflow: auto; position: absolute; }
|
|
3683
3628
|
/* Hidden panels stay mounted, so the terminal keeps its output and the preview keeps its page. */
|
|
3684
3629
|
.vh-ws-tab-panel.is-hidden { visibility: hidden; }
|
|
3685
3630
|
|
|
3686
3631
|
/* File tree, editor, terminal */
|
|
3687
|
-
|
|
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; }
|
|
3688
3654
|
.vh-ws-editor { background: var(--vh-ws-code-bg); flex: 1; height: 100%; min-height: 0; overflow: hidden; }
|
|
3689
3655
|
.vh-ws-editor .cm-editor { height: 100%; }
|
|
3690
|
-
.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; }
|
|
3691
3678
|
.vh-ws-terminal { background: var(--vh-ws-terminal-bg); flex: 1; height: 100%; min-height: 0; padding: 0.5rem 0 0 0.75rem; }
|
|
3692
3679
|
.vh-ws-terminal .xterm, .vh-ws-terminal .xterm-viewport { background: var(--vh-ws-terminal-bg) !important; }
|
|
3693
3680
|
|
|
@@ -3753,50 +3740,38 @@
|
|
|
3753
3740
|
.vh-ws-connect--empty { align-items: center; color: var(--vh-muted); font-size: 0.875rem; gap: 0.5rem; grid-template-columns: 1rem 1fr; }
|
|
3754
3741
|
.vh-ws-connect--empty p { margin: 0; }
|
|
3755
3742
|
|
|
3756
|
-
/*
|
|
3757
|
-
.vh-
|
|
3758
|
-
.vh-
|
|
3759
|
-
.vh-
|
|
3760
|
-
.vh-
|
|
3761
|
-
.vh-
|
|
3762
|
-
.vh-
|
|
3763
|
-
.vh-
|
|
3764
|
-
.vh-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
/* Panes side by side have the same header row, so they line up with the preview bar. */
|
|
3768
|
-
.vh-pc-pane { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; }
|
|
3769
|
-
.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; }
|
|
3770
|
-
.vh-pc .vh-ws-preview-bar { padding: 0 0.25rem; }
|
|
3771
|
-
.vh-pc .vh-ws-tab-list [data-slot="trigger"] { min-height: 2.25rem; }
|
|
3772
|
-
.vh-pc-pane-body { display: flex; flex: 1; flex-direction: column; min-height: 0; position: relative; }
|
|
3773
|
-
.vh-pc-pane-title { color: var(--vh-muted); font-size: 0.75rem; font-weight: 500; }
|
|
3774
|
-
.vh-pc-pane-header .vh-pc-muted { font-size: 0.75rem; }
|
|
3775
|
-
.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; }
|
|
3776
|
-
/* The file column is one tinted surface, header included. */
|
|
3777
|
-
.vh-pc-files { background: var(--vh-bg-muted); }
|
|
3778
|
-
.vh-pc-files .vh-ws-file-tree { --trees-bg-override: var(--vh-bg-muted); }
|
|
3779
|
-
.vh-pc-tree { flex: 1; min-height: 0; overflow: auto; padding: 0.25rem 0; }
|
|
3780
|
-
.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; }
|
|
3781
3754
|
/* The checklist sits in the middle of the preview, with room on every side. */
|
|
3782
|
-
.vh-
|
|
3783
|
-
.vh-
|
|
3784
|
-
|
|
3785
|
-
.vh-
|
|
3786
|
-
|
|
3787
|
-
.vh-
|
|
3788
|
-
.vh-
|
|
3789
|
-
.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; }
|
|
3790
3765
|
/* Before mount, phones see their card, tablets see nothing yet, and desktops see where the workspace starts. */
|
|
3791
3766
|
@media (min-width: 48rem) {
|
|
3792
|
-
.vh-
|
|
3767
|
+
.vh-workspace-gate[data-state="pending"] .vh-workspace-phone { display: none; }
|
|
3793
3768
|
}
|
|
3794
3769
|
@media (min-width: 64rem) {
|
|
3795
|
-
.vh-
|
|
3796
|
-
.vh-
|
|
3797
|
-
.vh-
|
|
3798
|
-
.vh-
|
|
3799
|
-
.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; }
|
|
3800
3775
|
}
|
|
3801
3776
|
|
|
3802
3777
|
/* Browser support notice */
|
|
@@ -3813,76 +3788,122 @@
|
|
|
3813
3788
|
}
|
|
3814
3789
|
}
|
|
3815
3790
|
|
|
3816
|
-
/*
|
|
3817
|
-
|
|
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. */
|
|
3818
3793
|
@layer components {
|
|
3819
|
-
.vh-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
}
|
|
3823
|
-
|
|
3824
|
-
.vh-
|
|
3825
|
-
.vh-
|
|
3826
|
-
.vh-
|
|
3827
|
-
.vh-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
.vh-
|
|
3835
|
-
.vh-
|
|
3836
|
-
.vh-
|
|
3837
|
-
.vh-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
}
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
.vh-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
.vh-
|
|
3850
|
-
.vh-
|
|
3851
|
-
.vh-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
}
|
|
3855
|
-
.vh-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
.vh-
|
|
3864
|
-
.vh-
|
|
3865
|
-
|
|
3866
|
-
.vh-
|
|
3867
|
-
.vh-
|
|
3868
|
-
.vh-
|
|
3869
|
-
|
|
3870
|
-
|
|
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
|
+
}
|
|
3871
3853
|
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
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); } }
|
|
3886
3907
|
}
|
|
3887
3908
|
|
|
3888
3909
|
/* MarkdownEditor: the text takes the comark typeset. The editor has no frame, so its caret shows focus. */
|
|
@@ -3942,17 +3963,14 @@
|
|
|
3942
3963
|
white-space: nowrap;
|
|
3943
3964
|
}
|
|
3944
3965
|
|
|
3945
|
-
/* 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. */
|
|
3946
3968
|
.vh-editor-drag-handle {
|
|
3947
3969
|
align-items: center;
|
|
3948
3970
|
display: flex;
|
|
3949
3971
|
justify-content: center;
|
|
3950
|
-
transition: top 200ms ease-out, left 200ms ease-out;
|
|
3951
3972
|
}
|
|
3952
3973
|
.vh-editor-drag-handle__handle { cursor: grab; padding-inline: 0.25rem; }
|
|
3953
|
-
@media (prefers-reduced-motion: reduce) {
|
|
3954
|
-
.vh-editor-drag-handle { transition: none; }
|
|
3955
|
-
}
|
|
3956
3974
|
@media (max-width: 639.98px) {
|
|
3957
3975
|
.vh-editor-drag-handle { display: none; }
|
|
3958
3976
|
}
|
|
@@ -4040,13 +4058,12 @@
|
|
|
4040
4058
|
height: var(--vh-agent-control);
|
|
4041
4059
|
justify-content: center;
|
|
4042
4060
|
padding: 0;
|
|
4043
|
-
transition: background-color 150ms ease-out, color 150ms ease-out
|
|
4061
|
+
transition: background-color 150ms ease-out, color 150ms ease-out;
|
|
4044
4062
|
width: var(--vh-agent-control);
|
|
4045
4063
|
}
|
|
4046
4064
|
.vh-agent-session__toggle > * { height: 1rem; width: 1rem; }
|
|
4047
4065
|
.vh-agent-session__toggle:hover { background: var(--vh-agent-hover); color: var(--vh-text); }
|
|
4048
4066
|
.vh-agent-session__toggle[aria-pressed="true"] { background: var(--vh-agent-pressed); color: var(--vh-highlighted); }
|
|
4049
|
-
.vh-agent-session__toggle:active { scale: 0.96; }
|
|
4050
4067
|
|
|
4051
4068
|
.vh-agent-session__body { display: flex; flex: 1 1 0; min-height: 0; position: relative; }
|
|
4052
4069
|
.vh-agent-session__scroll { flex: 1 1 0; min-width: 0; overflow-y: auto; scrollbar-gutter: stable; }
|
|
@@ -4147,9 +4164,8 @@
|
|
|
4147
4164
|
text-decoration: none;
|
|
4148
4165
|
width: 100%;
|
|
4149
4166
|
}
|
|
4150
|
-
.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; }
|
|
4151
4168
|
.vh-agent-session__row[data-interactive]:hover { background: var(--vh-agent-hover); }
|
|
4152
|
-
.vh-agent-session__row[data-interactive]:active { scale: 0.98; }
|
|
4153
4169
|
.vh-agent-session__row-icon { color: var(--vh-muted); flex: none; height: 1rem; width: 1rem; }
|
|
4154
4170
|
.vh-agent-session__row-label { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
4155
4171
|
.vh-agent-session__row-value {
|
|
@@ -4233,7 +4249,8 @@
|
|
|
4233
4249
|
.vh-agent-session__work-summary:hover { color: var(--vh-text); }
|
|
4234
4250
|
.vh-agent-session__work-count { color: var(--vh-muted); font-size: 0.75rem; }
|
|
4235
4251
|
.vh-agent-session__work-failed { color: var(--vh-error); }
|
|
4236
|
-
|
|
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; }
|
|
4237
4254
|
.vh-agent-session__work[data-open] .vh-agent-session__work-chevron { rotate: 180deg; }
|
|
4238
4255
|
.vh-agent-session__work[data-open] .vh-agent-session__work-summary {
|
|
4239
4256
|
align-self: stretch;
|
|
@@ -4611,10 +4628,6 @@
|
|
|
4611
4628
|
transform-origin: top left;
|
|
4612
4629
|
}
|
|
4613
4630
|
.vh-device-frame[data-dragging] .vh-device-frame__page { pointer-events: none; }
|
|
4614
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
4615
|
-
.vh-device-frame[data-on]:not([data-dragging]) .vh-device-frame__footprint { transition: width 200ms ease-out, height 200ms ease-out; }
|
|
4616
|
-
.vh-device-frame[data-on]:not([data-dragging]) .vh-device-frame__page { transition: transform 200ms ease-out; }
|
|
4617
|
-
}
|
|
4618
4631
|
.vh-device-frame__readout {
|
|
4619
4632
|
background: var(--vh-highlighted);
|
|
4620
4633
|
border-radius: calc(var(--vh-radius) * 0.75);
|