@vitrinka/web 0.7.2 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +162 -0
- package/README.md +130 -23
- package/build/hud.iife.js +15 -15
- package/build/one.iife.js +1 -1
- package/build/recorder/api.d.ts +5 -3
- package/build/recorder/api.js +5 -3
- package/build/recorder/config.d.ts +6 -2
- package/build/recorder/hud/Hud.d.ts +3 -1
- package/build/recorder/hud/Hud.js +2 -2
- package/build/recorder/hud/Menu.d.ts +7 -1
- package/build/recorder/hud/Menu.js +2 -2
- package/build/recorder/hud/host.d.ts +13 -0
- package/build/recorder/hud/host.js +96 -1
- package/build/recorder/hud/icons.d.ts +2 -0
- package/build/recorder/hud/icons.js +4 -0
- package/build/recorder/hud/mount.d.ts +2 -0
- package/build/recorder/hud/mount.js +1 -0
- package/build/recorder/index.d.ts +6 -0
- package/build/recorder/index.js +3 -0
- package/build/recorder/link.js +1 -1
- package/build/recorder/storage/index.d.ts +1 -1
- package/build/recorder/storage/index.js +3 -2
- package/build/recorder/storage/lock.js +85 -3
- package/build/recorder/version.d.ts +2 -2
- package/build/recorder/version.js +1 -1
- package/build/report/attachments.d.ts +56 -0
- package/build/report/attachments.js +91 -0
- package/build/report/drag.d.ts +18 -0
- package/build/report/drag.js +34 -0
- package/build/report/element.d.ts +11 -2
- package/build/report/element.js +106 -15
- package/build/report/engine.d.ts +13 -1
- package/build/report/engine.js +31 -4
- package/build/report/face.d.ts +23 -0
- package/build/report/face.js +92 -0
- package/build/report/i18n.d.ts +77 -3
- package/build/report/i18n.js +127 -6
- package/build/report/place.d.ts +26 -0
- package/build/report/place.js +33 -0
- package/build/report/reader.d.ts +42 -0
- package/build/report/reader.js +39 -0
- package/build/report/recorder-face.js +6 -2
- package/build/report/sent.d.ts +16 -0
- package/build/report/sent.js +39 -0
- package/build/report/settings.d.ts +32 -0
- package/build/report/settings.js +47 -0
- package/build/report/styles.d.ts +1 -1
- package/build/report/styles.js +223 -53
- package/build/report/widget.d.ts +122 -3
- package/build/report/widget.js +1125 -107
- package/build/report/wire.d.ts +59 -9
- package/build/report/wire.js +114 -14
- package/build/report-widget.mjs +232 -62
- package/package.json +1 -1
package/build/report/styles.d.ts
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* of the page. A dark card on any page (the D12 / D21 mockups): one accent
|
|
5
5
|
* red for the act of sending and marking, everything else quiet.
|
|
6
6
|
*/
|
|
7
|
-
export declare const REPORT_CSS = "\n:host { all: initial; }\n.vr {\n --ink: #f2f1ef;\n --dim: rgba(242, 241, 239, .62);\n --faint: rgba(242, 241, 239, .14);\n --bg: #1a191d;\n --bg-deep: #121115;\n --accent: #dc2f4c;\n --accent-soft: rgba(220, 47, 76, .28);\n font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, \"Segoe UI\", Inter, Roboto, \"Helvetica Neue\", Arial, sans-serif;\n color: var(--ink);\n -webkit-font-smoothing: antialiased;\n letter-spacing: normal;\n text-align: left;\n}\n.vr *, .vr *::before, .vr *::after { box-sizing: border-box; }\n.vr [hidden] { display: none !important; }\nbutton { font: inherit; color: inherit; cursor: pointer; }\nbutton:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {\n outline: 2px solid #fff; outline-offset: 2px;\n}\n\n/* -- the floating button -------------------------------------------------- */\n.fab {\n position: fixed; right: 24px; bottom: 24px;\n display: inline-flex; align-items: center; gap: 12px;\n padding: 15px 22px; border: 0; border-radius: 999px;\n background: #131216; color: #fff;\n font-size: 17px; font-weight: 600; letter-spacing: -.005em;\n box-shadow: 0 12px 32px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .08) inset;\n pointer-events: auto;\n transition: transform .14s ease, box-shadow .14s ease;\n}\n.fab:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(0, 0, 0, .32), 0 0 0 1px rgba(255, 255, 255, .12) inset; }\n.fab:active { transform: translateY(0); }\nkbd {\n font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n padding: 4px 7px; border-radius: 7px;\n border: 1px solid rgba(255, 255, 255, .26); color: rgba(255, 255, 255, .78);\n}\n\n/* -- the card --------------------------------------------------------------- */\n.card {\n position: fixed; right: 24px; bottom: 96px;\n width: min(420px, calc(100vw - 32px));\n max-height: calc(100vh - 120px); overflow: auto;\n background: var(--bg); color: var(--ink);\n border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px;\n box-shadow: 0 28px 70px rgba(0, 0, 0, .38), 0 2px 8px rgba(0, 0, 0, .2);\n pointer-events: auto;\n animation: vr-in .16s ease-out;\n}\n.vr.nobutton .card { bottom: 24px; }\n@keyframes vr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }\n.head {\n display: flex; align-items: center; gap: 4px;\n padding: 16px 14px 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .07);\n}\n.head h2 { flex: 1; margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }\n.icon {\n display: inline-grid; place-items: center; width: 32px; height: 32px;\n border: 0; border-radius: 8px; background: transparent; color: var(--dim);\n}\n.icon:hover { background: var(--faint); color: var(--ink); }\n.icon svg { width: 16px; height: 16px; }\n.pane { padding: 18px 20px 20px; }\n.prompt { display: block; margin: 0 0 8px; font-weight: 600; font-size: 14px; }\n.desc {\n display: block; width: 100%; min-height: 88px; resize: vertical;\n padding: 12px 14px; border-radius: 10px;\n border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep); color: var(--ink);\n font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.45;\n}\n.desc::placeholder { color: rgba(242, 241, 239, .38); }\n.desc:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }\n.attached { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; color: var(--dim); font-size: 13px; }\n.attached svg { width: 14px; height: 14px; flex: none; }\n.link {\n display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none;\n color: rgba(242, 241, 239, .86); font-weight: 600; font-size: 13px;\n}\n.link:hover { color: #fff; text-decoration: underline; }\n.link svg { width: 12px; height: 12px; transition: transform .14s ease; }\n.link[aria-expanded=\"true\"] svg { transform: rotate(180deg); }\n.included { margin: 10px 0 0; padding: 10px 12px 10px 28px; border-radius: 10px; background: var(--bg-deep); color: var(--dim); font-size: 13px; }\n.included li { margin: 2px 0; }\n.marked { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--dim); }\n.chip {\n display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;\n border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;\n}\n.chip.hide { background: #3a3940; }\n.notify { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink); cursor: pointer; }\n.notify input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }\n.error { margin: 12px 0 0; color: #ff9aa9; font-size: 13px; }\n.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }\n.where {\n display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px;\n border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--ink);\n font-size: 13px; font-weight: 600;\n}\n.where:hover:not(:disabled) { background: var(--faint); }\n.where svg { width: 14px; height: 14px; }\n.where:disabled { opacity: .45; cursor: default; }\n.send {\n padding: 10px 22px; border: 0; border-radius: 10px; background: var(--accent); color: #fff;\n font-size: 15px; font-weight: 650;\n}\n.send:hover:not(:disabled) { background: #e43a57; }\n.send:disabled { opacity: .45; cursor: default; }\n\n/* -- settings --------------------------------------------------------------- */\n.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n.row .label { font-weight: 600; }\n.bind {\n min-width: 120px; padding: 8px 12px; border-radius: 9px; text-align: center;\n border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep);\n font: 500 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n}\n.bind[aria-pressed=\"true\"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--dim); }\n.hint, .reason { margin: 10px 0 0; color: var(--dim); font-size: 13px; }\n.reason { color: #ffc1ca; }\n.settings-foot { display: flex; justify-content: space-between; margin-top: 16px; }\n\n/* -- sent ------------------------------------------------------------------- */\n.sent-head { display: flex; align-items: center; gap: 10px; }\n.sent-head h3 { margin: 0; font-size: 17px; font-weight: 650; }\n.sent-head svg { width: 22px; height: 22px; color: #4ade80; flex: none; }\n.sent-body { margin: 8px 0 0 32px; color: var(--dim); }\n.sent-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 0 32px; }\n.see {\n display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px;\n background: #fff; color: #131216; font-weight: 650; font-size: 13px; text-decoration: none;\n}\n\n/* -- marking: the frozen page ---------------------------------------------- */\n.mark {\n position: fixed; inset: 0; pointer-events: auto;\n background: rgba(14, 13, 16, .16); cursor: crosshair;\n touch-action: none; user-select: none; -webkit-user-select: none;\n}\n.ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }\n.ink .stroke { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }\n.ink .veil { fill: #1b1b1f; }\n.ink .veil-label { fill: rgba(255, 255, 255, .7); font: 600 12px -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif; }\n.ink .draft { opacity: .85; }\n.pin { position: absolute; display: flex; align-items: center; gap: 6px; cursor: default; }\n.pin .num {\n display: grid; place-items: center; width: 24px; height: 24px; border-radius: 12px;\n background: var(--accent); color: #fff; font-size: 12px; font-weight: 750;\n box-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 0 0 2px #fff;\n}\n.pin .note {\n width: 220px; padding: 6px 10px; border-radius: 9px;\n border: 1px solid rgba(255, 255, 255, .16); background: #151417; color: #fff;\n font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.3;\n box-shadow: 0 6px 18px rgba(0, 0, 0, .3);\n}\n.pin .note::placeholder { color: rgba(255, 255, 255, .45); }\n.pin .note:focus { outline: none; border-color: var(--accent); }\n.pin .rm {\n display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 12px;\n background: #151417; color: rgba(255, 255, 255, .7); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);\n}\n.pin .rm:hover { color: #fff; }\n.pin .rm svg { width: 12px; height: 12px; }\n.toolbar {\n position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);\n display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 15px;\n background: #151417; box-shadow: 0 16px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08) inset;\n cursor: default;\n}\n.toolbar button {\n padding: 9px 15px; border: 0; border-radius: 10px; background: transparent; color: #f2f1ef;\n font-size: 15px; font-weight: 600;\n}\n.toolbar button:hover { background: rgba(255, 255, 255, .08); }\n.toolbar button[aria-pressed=\"true\"] { background: #e6455f; color: #fff; }\n.toolbar .sep { width: 1px; height: 22px; margin: 0 4px; background: rgba(255, 255, 255, .14); }\n.toolbar .done { background: var(--accent); color: #fff; }\n.toolbar .done:hover { background: #e43a57; }\n.toolbar button:disabled { opacity: .4; cursor: default; background: transparent; }\n\n/* -- the coach card (D21): stays beside the pointer until mark 1 exists --- */\n.coach {\n position: fixed; width: 300px; padding: 14px 16px 15px;\n background: #151417; color: #f2f1ef; border-radius: 14px;\n box-shadow: 0 18px 44px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .1) inset;\n pointer-events: none;\n transition: opacity .12s ease;\n}\n.coach.pressing { opacity: .55; }\n.coach svg { display: block; width: 100%; height: 64px; border-radius: 9px; background: #222126; }\n.coach p { margin: 11px 0 0; font-size: 15px; line-height: 1.4; }\n.coach p + p { margin-top: 2px; color: rgba(242, 241, 239, .66); font-size: 13px; }\n.coach p.keys { margin-top: 8px; font-size: 12px; color: rgba(242, 241, 239, .5); }\n.mark:focus { outline: none; }\n.mark:focus-visible { outline: 3px solid rgba(230, 69, 95, .65); outline-offset: -3px; }\n.coach .bar { fill: #5b5a61; }\n.coach .loop { fill: none; stroke: #e6455f; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: vr-draw 2.8s ease-in-out infinite; }\n.coach .hold { fill: none; stroke: #fff; stroke-width: 1.5; opacity: 0; animation: vr-hold 2.8s ease-in-out infinite; }\n@keyframes vr-draw { 0%, 18% { stroke-dashoffset: 200; } 72%, 100% { stroke-dashoffset: 0; } 90% { opacity: 1; } 100% { opacity: 0; } }\n@keyframes vr-hold { 0%, 8% { opacity: 0; } 14%, 72% { opacity: .9; } 80%, 100% { opacity: 0; } }\n\n@media (max-width: 520px) {\n .fab { right: 16px; bottom: 16px; padding: 13px 18px; font-size: 16px; }\n .card { right: 16px; bottom: 84px; }\n .vr.nobutton .card { bottom: 16px; }\n .toolbar { bottom: 16px; max-width: calc(100vw - 24px); overflow-x: auto; }\n .toolbar button { padding: 8px 11px; font-size: 14px; }\n .coach { width: 260px; }\n}\n@media (prefers-reduced-motion: reduce) {\n .card { animation: none; }\n .fab { transition: none; }\n .coach .loop { animation: none; stroke-dashoffset: 0; }\n .coach .hold { animation: none; opacity: .9; }\n}\n";
|
|
7
|
+
export declare const REPORT_CSS = "\n:host { all: initial; }\n.vr {\n --ink: #f2f1ef;\n --dim: rgba(242, 241, 239, .62);\n --faint: rgba(242, 241, 239, .14);\n --bg: #1a191d;\n --bg-deep: #121115;\n --accent: #dc2f4c;\n --accent-soft: rgba(220, 47, 76, .28);\n /* Motion (transitions-dev tokens): a sliding indicator rides --dur-fast, the card's one glide --dur-slow. */\n --dur-quick: 150ms;\n --dur-fast: 250ms;\n --dur-slow: 400ms;\n --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);\n /* Size (vt-8020 D9, settings.ts): ONE factor, written by the widget, scales the button, the card and\n the marking bar \u2014 fonts and boxes together \u2014 each from its anchored corner. */\n --vr-scale: 1;\n /* The dock: the gap to the viewport edge, and where the card rests \u2014 clear of the button above or below it. */\n --edge: 24px;\n --lift: calc(var(--edge) + 72px * var(--vr-scale));\n font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, \"Segoe UI\", Inter, Roboto, \"Helvetica Neue\", Arial, sans-serif;\n color: var(--ink);\n -webkit-font-smoothing: antialiased;\n letter-spacing: normal;\n text-align: left;\n}\n.vr *, .vr *::before, .vr *::after { box-sizing: border-box; }\n.vr [hidden] { display: none !important; }\n.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\nbutton { font: inherit; color: inherit; cursor: pointer; }\nbutton:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {\n outline: 2px solid #fff; outline-offset: 2px;\n}\n\n/* -- the floating button -------------------------------------------------- */\n.fab {\n position: fixed; right: var(--edge); bottom: var(--edge);\n scale: var(--vr-scale); transform-origin: 100% 100%;\n /* A press can become a drag to another corner: the page never scrolls under it. */\n touch-action: none;\n display: inline-flex; align-items: center; gap: 12px;\n padding: 15px 22px; border: 0; border-radius: 999px;\n background: #131216; color: #fff;\n font-size: 17px; font-weight: 600; letter-spacing: -.005em;\n box-shadow: 0 12px 32px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .08) inset;\n pointer-events: auto;\n transition: transform .14s ease, box-shadow .14s ease;\n}\n.fab:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(0, 0, 0, .32), 0 0 0 1px rgba(255, 255, 255, .12) inset; }\n.fab:active { transform: translateY(0); }\nkbd {\n font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n padding: 4px 7px; border-radius: 7px;\n border: 1px solid rgba(255, 255, 255, .26); color: rgba(255, 255, 255, .78);\n}\n\n/* -- the card: ONE size from drafting to thanks (vt-8020 D10) ---------------- */\n.card {\n position: fixed; right: var(--edge); bottom: var(--lift);\n display: flex; flex-direction: column;\n /* The box is divided by the scale so the painted card (scale \u00D7 box) still fits the viewport. */\n width: min(380px, calc((100vw - 32px) / var(--vr-scale)));\n height: min(460px, calc((100vh - var(--lift) - var(--edge)) / var(--vr-scale)));\n scale: var(--vr-scale); transform-origin: 100% 100%;\n background: var(--bg); color: var(--ink);\n border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px;\n box-shadow: 0 28px 70px rgba(0, 0, 0, .38), 0 2px 8px rgba(0, 0, 0, .2);\n pointer-events: auto;\n animation: vr-in .16s ease-out;\n}\n.vr.nobutton .card { bottom: var(--edge); }\n/* The dock (vt-8020 D9, drag.ts): the button in any corner; the card rests beside it \u2014 above it at the\n bottom, below it at the top \u2014 and both scale from that corner. */\n.vr[data-dock$=\"l\"] .fab, .vr[data-dock$=\"l\"] .card { right: auto; left: var(--edge); }\n.vr[data-dock^=\"t\"] .fab { bottom: auto; top: var(--edge); }\n.vr[data-dock^=\"t\"] .card { bottom: auto; top: var(--lift); }\n.vr.nobutton[data-dock^=\"t\"] .card { top: var(--edge); }\n.vr[data-dock=\"bl\"] .fab, .vr[data-dock=\"bl\"] .card { transform-origin: 0 100%; }\n.vr[data-dock=\"tr\"] .fab, .vr[data-dock=\"tr\"] .card { transform-origin: 100% 0; }\n.vr[data-dock=\"tl\"] .fab, .vr[data-dock=\"tl\"] .card { transform-origin: 0 0; }\n/* Dragged, the button rides the pointer by its left/top; dropped, it glides into its corner (FLIP on translate). */\n.vr .fab.dragging { transform-origin: 0 0; transition: none; cursor: grabbing; }\n.fab.gliding { transition: translate var(--dur-slow) var(--ease-smooth-out), transform .14s ease, box-shadow .14s ease; }\n/* Parked by marking: placed by left/top where it already is (place.ts, from its painted box) \u2014 the same size,\n so starting to mark never moves it; it glides once to a corner clear of the marks. */\n.card.parked { right: auto; bottom: auto; transition: left var(--dur-slow) var(--ease-smooth-out), top var(--dur-slow) var(--ease-smooth-out); }\n.vr .card.parked { transform-origin: 0 0; }\n@keyframes vr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }\n.head {\n position: relative; flex: none; display: flex; align-items: center; gap: 4px;\n padding: 12px 10px 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07);\n}\n/* Sending: a quiet sweep along the head's edge, the card's size untouched. */\n.card.busy .head::after {\n content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;\n background: linear-gradient(90deg, transparent, rgba(242, 241, 239, .6), transparent) no-repeat;\n background-size: 40% 100%; animation: vr-sweep 1.3s linear infinite;\n}\n@keyframes vr-sweep { from { background-position: -70% 0; } to { background-position: 170% 0; } }\n.body { flex: 1; min-height: 0; overflow: auto; }\n.head h2 { flex: 1; margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }\n.icon {\n display: inline-grid; place-items: center; width: 32px; height: 32px;\n border: 0; border-radius: 8px; background: transparent; color: var(--dim);\n}\n.icon:hover { background: var(--faint); color: var(--ink); }\n.icon svg { width: 16px; height: 16px; }\n.icon[aria-expanded=\"true\"] { background: var(--faint); color: var(--ink); }\n\n/* -- who you are and the menu (vt-8020 D5 A) -------------------------------- */\n.who {\n display: inline-flex; align-items: center; gap: 7px; max-width: 132px; height: 32px; padding: 0 11px 0 5px; margin-right: 2px;\n border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: transparent; color: var(--ink);\n font-size: 13px; font-weight: 600;\n}\n.who:hover, .who[aria-expanded=\"true\"] { background: var(--faint); }\n.who .av {\n display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;\n background: #3a3940; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;\n}\n.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.pop {\n position: absolute; top: 52px; right: 10px; z-index: 2; min-width: 240px; max-width: calc(100% - 20px); padding: 6px;\n background: #222126; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;\n box-shadow: 0 18px 44px rgba(0, 0, 0, .42); animation: vr-in .14s ease-out;\n}\n.pop-item {\n display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 8px;\n background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 550; text-decoration: none; text-align: left;\n}\n.pop-item:hover:not([aria-disabled=\"true\"]), .pop-item:focus-visible { background: var(--faint); }\n/* A waiting item stays focusable (aria-disabled) so the arrows reach its reason; it only looks unavailable. */\n.pop-item[aria-disabled=\"true\"] { color: var(--dim); cursor: default; }\n.pop-item svg { width: 15px; height: 15px; flex: none; color: var(--dim); }\n/* Why an item waits (Record over an unsent report): a second line under the label, aligned past the icon. */\n.pop-item:has(.pop-why:not([hidden])) { flex-wrap: wrap; row-gap: 2px; height: auto; min-height: 36px; padding: 8px 10px; }\n.pop-why { flex-basis: 100%; padding-left: 25px; font-size: 12px; font-weight: 450; line-height: 1.35; }\n.acc-who { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; }\n.acc-who strong { font-size: 14px; }\n.acc-mail, .acc-via { color: var(--dim); font-size: 12.5px; margin: 0; }\n.acc-member { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; }\n.acc-member:has(.acc-linked:not([hidden])) { padding: 8px 10px; border-top: 1px solid rgba(255, 255, 255, .07); }\n.acc-linked { margin: 0; font-size: 12.5px; color: var(--ink); }\n\n/* -- the lists: My reports, recent recordings \u2014 in the card body ------------ */\n.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px -4px; padding: 4px; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 650; }\n.back svg { width: 14px; height: 14px; color: var(--dim); }\n.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }\n.row {\n display: grid; grid-template-columns: 1fr auto; grid-template-areas: \"t step\" \"age step\"; column-gap: 10px;\n padding: 9px 10px; border-radius: 10px; background: rgba(242, 241, 239, .045); color: var(--ink); text-decoration: none;\n}\na.row:hover { background: var(--faint); }\n.row-t { grid-area: t; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }\n.age { grid-area: age; color: var(--dim); font-size: 12px; }\n.step { grid-area: step; align-self: center; padding: 3px 9px; border-radius: 999px; background: var(--bg-deep); color: var(--dim); font-size: 12px; font-weight: 600; }\n.step:empty { display: none; }\n.list-status, .list-note { margin: 8px 0; color: var(--dim); font-size: 13px; }\n\n/* -- the member link sheet (the pill's flow, vt-8020 D3) ------------------- */\n.code { margin: 6px 0 14px; font: 650 26px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; }\n.link-go { display: flex; align-items: center; gap: 16px; }\n.qr { width: 104px; height: 104px; border-radius: 8px; background: #fff; padding: 6px; }\n.pane { padding: 14px 16px 16px; }\n/* The reporter's word for it (vt-8020 D11): chips above the input, like the board composer's intents. */\n.kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }\n.kinds button {\n height: 28px; padding: 0 11px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;\n background: transparent; color: rgba(242, 241, 239, .6); font-size: 13px; font-weight: 600;\n transition: background-color var(--dur-quick) ease-out, border-color var(--dur-quick) ease-out, color var(--dur-quick) ease-out;\n}\n.kinds button:hover:not(:disabled) { color: var(--ink); }\n.kinds button[aria-checked=\"true\"] { background: rgba(242, 241, 239, .12); border-color: rgba(242, 241, 239, .26); color: var(--ink); }\n.kinds button:disabled { opacity: .5; cursor: default; }\n.prompt { display: block; margin: 0 0 8px; font-weight: 600; font-size: 14px; }\n.desc {\n display: block; width: 100%; min-height: 76px; resize: none;\n padding: 12px 14px; border-radius: 10px;\n border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep); color: var(--ink);\n font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.45;\n}\n.desc::placeholder { color: rgba(242, 241, 239, .38); }\n.desc:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }\n.attached { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; color: var(--dim); font-size: 13px; }\n.attached svg { width: 14px; height: 14px; flex: none; }\n.link {\n display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none;\n color: rgba(242, 241, 239, .86); font-weight: 600; font-size: 13px;\n}\n.link:hover { color: #fff; text-decoration: underline; }\n.link svg { width: 12px; height: 12px; transition: transform .14s ease; }\n.link[aria-expanded=\"true\"] svg { transform: rotate(180deg); }\n.included { margin: 10px 0 0; padding: 10px 12px 10px 28px; border-radius: 10px; background: var(--bg-deep); color: var(--dim); font-size: 13px; }\n.included li { margin: 2px 0; }\n/* One numbered line per mark: its note, typed in the card, never floating on the page. */\n.lines-wrap { margin-top: 10px; }\n.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }\n.ln {\n display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 4px 0 9px;\n border-radius: 10px; background: rgba(242, 241, 239, .045); border: 1px solid transparent;\n}\n.ln:focus-within { background: var(--bg-deep); border-color: rgba(242, 241, 239, .36); }\n.ln-n {\n display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%;\n background: var(--accent); color: #fff; font-size: 11px; font-weight: 750; box-shadow: 0 0 0 1.5px #fff;\n}\n.ln.hide .ln-n { background: #3a3940; }\n.ln-t {\n flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink);\n font-family: inherit; font-size: 13.5px;\n}\n.ln-t::placeholder { color: rgba(242, 241, 239, .4); }\n.ln-t:focus, .ln-t:focus-visible { outline: none; }\n.ln-x { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: rgba(242, 241, 239, .5); }\n.ln-x:hover:not(:disabled) { background: var(--faint); color: var(--ink); }\n.ln-x svg { width: 11px; height: 11px; }\n.ln-empty { margin: 0; padding: 11px 13px; border: 1px dashed rgba(242, 241, 239, .14); border-radius: 10px; color: rgba(242, 241, 239, .46); font-size: 13px; }\n.notify { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink); cursor: pointer; }\n.notify input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }\n.error { margin: 12px 0 0; color: #ff9aa9; font-size: 13px; }\n/* The bottom actions: attachments and Show us where on the left, Send on the right. */\n.foot { flex: none; display: flex; align-items: center; gap: 4px; padding: 10px 12px 12px; border-top: 1px solid rgba(255, 255, 255, .07); }\n.foot .send { margin-left: auto; }\n.icon:disabled { opacity: .45; cursor: default; background: transparent; color: var(--dim); }\n/* Attached files (vt-8020 D9): chips in a tray above the foot \u2014 it scrolls, the card never grows. */\n.tray { flex: none; max-height: 84px; overflow: auto; padding: 9px 12px 0; border-top: 1px solid rgba(255, 255, 255, .07); }\n.tray:not([hidden]) + .foot { border-top: 0; }\n.file-note { margin: 0 0 7px; color: #ffc1ca; font-size: 12.5px; }\n.files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }\n.file { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 28px; padding: 0 2px 0 10px; border-radius: 8px; background: rgba(242, 241, 239, .07); font-size: 12.5px; }\n.file-name { min-width: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }\n.file-size { flex: none; color: var(--dim); }\n.file .ln-x { width: 22px; height: 22px; }\n/* A file dragged over the card: it will land here. */\n.card.dropping { outline: 2px dashed rgba(242, 241, 239, .5); outline-offset: -7px; }\n.where {\n display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px;\n border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--ink);\n font-size: 13px; font-weight: 600;\n}\n.where:hover:not(:disabled) { background: var(--faint); }\n.where[aria-pressed=\"true\"] { border-color: var(--accent); background: var(--accent-soft); }\n.where svg { width: 14px; height: 14px; }\n.where:disabled { opacity: .45; cursor: default; }\n.send {\n padding: 10px 22px; border: 0; border-radius: 10px; background: var(--accent); color: #fff;\n font-size: 15px; font-weight: 650;\n}\n.send:hover:not(:disabled) { background: #e43a57; }\n.send:disabled { opacity: .45; cursor: default; }\n\n/* -- settings --------------------------------------------------------------- */\n/* Scoped to the pane: a bare .row would restyle the lists' rows (their grid) above. */\n.settings .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n.settings .label { font-weight: 600; }\n.size-row { margin-top: 18px; }\n.size-row .seg button { padding: 0 12px; font-size: 13px; }\n.tech-wrap { margin-top: 18px; }\n.tech { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-deep); font-size: 12.5px; }\n.tech dt { color: var(--dim); }\n.tech dd { margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }\n.bind {\n min-width: 120px; padding: 8px 12px; border-radius: 9px; text-align: center;\n border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep);\n font: 500 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n}\n.bind[aria-pressed=\"true\"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--dim); }\n.hint, .reason { margin: 10px 0 0; color: var(--dim); font-size: 13px; }\n.reason { color: #ffc1ca; }\n.settings-foot { display: flex; justify-content: space-between; margin-top: 16px; }\n\n/* -- sent ------------------------------------------------------------------- */\n.sent-head { display: flex; align-items: center; gap: 10px; }\n.sent-head h3 { margin: 0; font-size: 17px; font-weight: 650; }\n.sent-head svg { width: 22px; height: 22px; color: #4ade80; flex: none; }\n.sent-body { margin: 8px 0 0 32px; color: var(--dim); }\n.sent-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 0 32px; }\n.see {\n display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px;\n background: #fff; color: #131216; font-weight: 650; font-size: 13px; text-decoration: none;\n}\n\n/* -- marking: the frozen page ---------------------------------------------- */\n.mark {\n position: fixed; inset: 0; pointer-events: auto;\n background: rgba(14, 13, 16, .16); cursor: crosshair;\n touch-action: none; user-select: none; -webkit-user-select: none;\n}\n.ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }\n.ink .stroke { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }\n.ink .veil { fill: #1b1b1f; }\n.ink .veil-label { fill: rgba(255, 255, 255, .7); font: 600 12px -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif; }\n.ink .draft { opacity: .85; }\n/* A pin is the mark's number on the page; its \u2715 shows while the pin is hovered or focused. */\n.pin { position: absolute; display: flex; align-items: center; gap: 4px; cursor: default; }\n.pin .num {\n display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 12px;\n background: var(--accent); color: #fff; font-size: 12px; font-weight: 750;\n box-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 0 0 2px #fff;\n}\n.pin .rm {\n display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 11px;\n background: #151417; color: rgba(255, 255, 255, .7); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);\n opacity: 0; transition: opacity var(--dur-quick) ease-out;\n}\n.pin:hover .rm, .pin:focus-within .rm { opacity: 1; }\n.pin .rm:hover { color: #fff; }\n.pin .rm svg { width: 11px; height: 11px; }\n\n/* The marking bar (vt-8020 D6): translucent glass at the top, the shape as a segmented control. */\n.tb {\n /* translate (not transform): it applies after the scale, so the scaled bar stays centred. */\n position: fixed; left: 50%; top: 14px; translate: -50% 0;\n scale: var(--vr-scale); transform-origin: 50% 0;\n display: flex; align-items: center; gap: 4px; padding: 5px;\n border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08);\n background: rgba(30, 29, 34, .68);\n -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);\n box-shadow: 0 14px 36px rgba(0, 0, 0, .36), 0 2px 6px rgba(0, 0, 0, .18), 0 1px 0 rgba(255, 255, 255, .05) inset;\n color: var(--ink); cursor: default; white-space: nowrap;\n}\n.tb-lead { padding: 0 12px 0 11px; color: rgba(242, 241, 239, .56); font-size: 13.5px; font-weight: 500; }\n.seg { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .06); }\n.seg button {\n position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;\n height: 30px; padding: 0 13px 0 11px; border: 0; border-radius: 8px; background: transparent;\n color: rgba(242, 241, 239, .56); font-size: 13.5px; font-weight: 600;\n transition: color var(--dur-fast) var(--ease-smooth-out);\n}\n.seg button svg { width: 15px; height: 15px; flex: none; }\n.seg button:hover { color: rgba(242, 241, 239, .86); }\n.seg button[aria-checked=\"true\"] { color: var(--ink); }\n.seg-ind {\n position: absolute; top: 3px; left: 0; z-index: 0; width: 0; height: 30px; border-radius: 8px;\n background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .115));\n box-shadow: 0 1px 0 rgba(255, 255, 255, .13) inset, 0 2px 7px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .22);\n transition: transform var(--dur-fast) var(--ease-smooth-out), width var(--dur-fast) var(--ease-smooth-out);\n pointer-events: none; opacity: 0;\n}\n.seg.measured .seg-ind { opacity: 1; }\n/* Before the indicator is measured, the picked segment carries the raised fill itself. */\n.seg:not(.measured) button[aria-checked=\"true\"] { background: rgba(255, 255, 255, .15); }\n.tb-sep { width: 1px; height: 20px; margin: 0 5px; background: rgba(255, 255, 255, .1); }\n.tb-quiet { height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: rgba(242, 241, 239, .72); font-size: 13.5px; font-weight: 600; }\n.tb-quiet:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }\n.tb-confirm { display: inline-flex; align-items: center; gap: 4px; }\n.tb-ask { padding: 0 6px 0 4px; font-size: 13.5px; font-weight: 600; }\n.tb-discard { height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 650; }\n.tb-discard:hover { background: #e43a57; }\n\n/* -- the coach card (D21): stays beside the pointer until mark 1 exists --- */\n.coach {\n position: fixed; width: 300px; padding: 14px 16px 15px;\n background: #151417; color: #f2f1ef; border-radius: 14px;\n box-shadow: 0 18px 44px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .1) inset;\n pointer-events: none;\n transition: opacity .12s ease;\n}\n.coach.pressing { opacity: .55; }\n.coach svg { display: block; width: 100%; height: 64px; border-radius: 9px; background: #222126; }\n.coach p { margin: 11px 0 0; font-size: 15px; line-height: 1.4; }\n.coach p + p { margin-top: 2px; color: rgba(242, 241, 239, .66); font-size: 13px; }\n.coach p.keys { margin-top: 8px; font-size: 12px; color: rgba(242, 241, 239, .5); }\n.mark:focus { outline: none; }\n.mark:focus-visible { outline: 3px solid rgba(230, 69, 95, .65); outline-offset: -3px; }\n.coach .bar { fill: #5b5a61; }\n.coach .loop { fill: none; stroke: #e6455f; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: vr-draw 2.8s ease-in-out infinite; }\n.coach .hold { fill: none; stroke: #fff; stroke-width: 1.5; opacity: 0; animation: vr-hold 2.8s ease-in-out infinite; }\n@keyframes vr-draw { 0%, 18% { stroke-dashoffset: 200; } 72%, 100% { stroke-dashoffset: 0; } 90% { opacity: 1; } 100% { opacity: 0; } }\n@keyframes vr-hold { 0%, 8% { opacity: 0; } 14%, 72% { opacity: .9; } 80%, 100% { opacity: 0; } }\n\n@media (max-width: 520px) {\n .vr { --edge: 16px; --lift: calc(var(--edge) + 68px * var(--vr-scale)); }\n .fab { padding: 13px 18px; font-size: 16px; }\n .tb { max-width: calc((100vw - 16px) / var(--vr-scale)); overflow-x: auto; }\n .tb-lead { display: none; }\n .seg button { padding: 0 9px; }\n .coach { width: 260px; }\n}\n/* Every motion of the face stops here: the menu rises with the card's vr-in, the coach dims as you press, the chevron turns. */\n@media (prefers-reduced-motion: reduce) {\n .card, .pop { animation: none; }\n .card.parked, .seg-ind, .seg button, .kinds button, .pin .rm, .link svg, .coach { transition: none; }\n .card.busy .head::after { animation: none; }\n .fab, .fab.gliding { transition: none; }\n .coach .loop { animation: none; stroke-dashoffset: 0; }\n .coach .hold { animation: none; opacity: .9; }\n}\n";
|
package/build/report/styles.js
CHANGED
|
@@ -14,6 +14,17 @@ export const REPORT_CSS = `
|
|
|
14
14
|
--bg-deep: #121115;
|
|
15
15
|
--accent: #dc2f4c;
|
|
16
16
|
--accent-soft: rgba(220, 47, 76, .28);
|
|
17
|
+
/* Motion (transitions-dev tokens): a sliding indicator rides --dur-fast, the card's one glide --dur-slow. */
|
|
18
|
+
--dur-quick: 150ms;
|
|
19
|
+
--dur-fast: 250ms;
|
|
20
|
+
--dur-slow: 400ms;
|
|
21
|
+
--ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
|
|
22
|
+
/* Size (vt-8020 D9, settings.ts): ONE factor, written by the widget, scales the button, the card and
|
|
23
|
+
the marking bar — fonts and boxes together — each from its anchored corner. */
|
|
24
|
+
--vr-scale: 1;
|
|
25
|
+
/* The dock: the gap to the viewport edge, and where the card rests — clear of the button above or below it. */
|
|
26
|
+
--edge: 24px;
|
|
27
|
+
--lift: calc(var(--edge) + 72px * var(--vr-scale));
|
|
17
28
|
font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
18
29
|
color: var(--ink);
|
|
19
30
|
-webkit-font-smoothing: antialiased;
|
|
@@ -22,6 +33,7 @@ export const REPORT_CSS = `
|
|
|
22
33
|
}
|
|
23
34
|
.vr *, .vr *::before, .vr *::after { box-sizing: border-box; }
|
|
24
35
|
.vr [hidden] { display: none !important; }
|
|
36
|
+
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
25
37
|
button { font: inherit; color: inherit; cursor: pointer; }
|
|
26
38
|
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
|
|
27
39
|
outline: 2px solid #fff; outline-offset: 2px;
|
|
@@ -29,7 +41,10 @@ button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visib
|
|
|
29
41
|
|
|
30
42
|
/* -- the floating button -------------------------------------------------- */
|
|
31
43
|
.fab {
|
|
32
|
-
position: fixed; right:
|
|
44
|
+
position: fixed; right: var(--edge); bottom: var(--edge);
|
|
45
|
+
scale: var(--vr-scale); transform-origin: 100% 100%;
|
|
46
|
+
/* A press can become a drag to another corner: the page never scrolls under it. */
|
|
47
|
+
touch-action: none;
|
|
33
48
|
display: inline-flex; align-items: center; gap: 12px;
|
|
34
49
|
padding: 15px 22px; border: 0; border-radius: 999px;
|
|
35
50
|
background: #131216; color: #fff;
|
|
@@ -46,23 +61,50 @@ kbd {
|
|
|
46
61
|
border: 1px solid rgba(255, 255, 255, .26); color: rgba(255, 255, 255, .78);
|
|
47
62
|
}
|
|
48
63
|
|
|
49
|
-
/* -- the card
|
|
64
|
+
/* -- the card: ONE size from drafting to thanks (vt-8020 D10) ---------------- */
|
|
50
65
|
.card {
|
|
51
|
-
position: fixed; right:
|
|
52
|
-
|
|
53
|
-
|
|
66
|
+
position: fixed; right: var(--edge); bottom: var(--lift);
|
|
67
|
+
display: flex; flex-direction: column;
|
|
68
|
+
/* The box is divided by the scale so the painted card (scale × box) still fits the viewport. */
|
|
69
|
+
width: min(380px, calc((100vw - 32px) / var(--vr-scale)));
|
|
70
|
+
height: min(460px, calc((100vh - var(--lift) - var(--edge)) / var(--vr-scale)));
|
|
71
|
+
scale: var(--vr-scale); transform-origin: 100% 100%;
|
|
54
72
|
background: var(--bg); color: var(--ink);
|
|
55
73
|
border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px;
|
|
56
74
|
box-shadow: 0 28px 70px rgba(0, 0, 0, .38), 0 2px 8px rgba(0, 0, 0, .2);
|
|
57
75
|
pointer-events: auto;
|
|
58
76
|
animation: vr-in .16s ease-out;
|
|
59
77
|
}
|
|
60
|
-
.vr.nobutton .card { bottom:
|
|
78
|
+
.vr.nobutton .card { bottom: var(--edge); }
|
|
79
|
+
/* The dock (vt-8020 D9, drag.ts): the button in any corner; the card rests beside it — above it at the
|
|
80
|
+
bottom, below it at the top — and both scale from that corner. */
|
|
81
|
+
.vr[data-dock$="l"] .fab, .vr[data-dock$="l"] .card { right: auto; left: var(--edge); }
|
|
82
|
+
.vr[data-dock^="t"] .fab { bottom: auto; top: var(--edge); }
|
|
83
|
+
.vr[data-dock^="t"] .card { bottom: auto; top: var(--lift); }
|
|
84
|
+
.vr.nobutton[data-dock^="t"] .card { top: var(--edge); }
|
|
85
|
+
.vr[data-dock="bl"] .fab, .vr[data-dock="bl"] .card { transform-origin: 0 100%; }
|
|
86
|
+
.vr[data-dock="tr"] .fab, .vr[data-dock="tr"] .card { transform-origin: 100% 0; }
|
|
87
|
+
.vr[data-dock="tl"] .fab, .vr[data-dock="tl"] .card { transform-origin: 0 0; }
|
|
88
|
+
/* Dragged, the button rides the pointer by its left/top; dropped, it glides into its corner (FLIP on translate). */
|
|
89
|
+
.vr .fab.dragging { transform-origin: 0 0; transition: none; cursor: grabbing; }
|
|
90
|
+
.fab.gliding { transition: translate var(--dur-slow) var(--ease-smooth-out), transform .14s ease, box-shadow .14s ease; }
|
|
91
|
+
/* Parked by marking: placed by left/top where it already is (place.ts, from its painted box) — the same size,
|
|
92
|
+
so starting to mark never moves it; it glides once to a corner clear of the marks. */
|
|
93
|
+
.card.parked { right: auto; bottom: auto; transition: left var(--dur-slow) var(--ease-smooth-out), top var(--dur-slow) var(--ease-smooth-out); }
|
|
94
|
+
.vr .card.parked { transform-origin: 0 0; }
|
|
61
95
|
@keyframes vr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
|
|
62
96
|
.head {
|
|
63
|
-
display: flex; align-items: center; gap: 4px;
|
|
64
|
-
padding:
|
|
97
|
+
position: relative; flex: none; display: flex; align-items: center; gap: 4px;
|
|
98
|
+
padding: 12px 10px 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07);
|
|
65
99
|
}
|
|
100
|
+
/* Sending: a quiet sweep along the head's edge, the card's size untouched. */
|
|
101
|
+
.card.busy .head::after {
|
|
102
|
+
content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
|
|
103
|
+
background: linear-gradient(90deg, transparent, rgba(242, 241, 239, .6), transparent) no-repeat;
|
|
104
|
+
background-size: 40% 100%; animation: vr-sweep 1.3s linear infinite;
|
|
105
|
+
}
|
|
106
|
+
@keyframes vr-sweep { from { background-position: -70% 0; } to { background-position: 170% 0; } }
|
|
107
|
+
.body { flex: 1; min-height: 0; overflow: auto; }
|
|
66
108
|
.head h2 { flex: 1; margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
|
|
67
109
|
.icon {
|
|
68
110
|
display: inline-grid; place-items: center; width: 32px; height: 32px;
|
|
@@ -70,10 +112,76 @@ kbd {
|
|
|
70
112
|
}
|
|
71
113
|
.icon:hover { background: var(--faint); color: var(--ink); }
|
|
72
114
|
.icon svg { width: 16px; height: 16px; }
|
|
73
|
-
.
|
|
115
|
+
.icon[aria-expanded="true"] { background: var(--faint); color: var(--ink); }
|
|
116
|
+
|
|
117
|
+
/* -- who you are and the menu (vt-8020 D5 A) -------------------------------- */
|
|
118
|
+
.who {
|
|
119
|
+
display: inline-flex; align-items: center; gap: 7px; max-width: 132px; height: 32px; padding: 0 11px 0 5px; margin-right: 2px;
|
|
120
|
+
border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: transparent; color: var(--ink);
|
|
121
|
+
font-size: 13px; font-weight: 600;
|
|
122
|
+
}
|
|
123
|
+
.who:hover, .who[aria-expanded="true"] { background: var(--faint); }
|
|
124
|
+
.who .av {
|
|
125
|
+
display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
|
|
126
|
+
background: #3a3940; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
|
|
127
|
+
}
|
|
128
|
+
.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
129
|
+
.pop {
|
|
130
|
+
position: absolute; top: 52px; right: 10px; z-index: 2; min-width: 240px; max-width: calc(100% - 20px); padding: 6px;
|
|
131
|
+
background: #222126; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
|
|
132
|
+
box-shadow: 0 18px 44px rgba(0, 0, 0, .42); animation: vr-in .14s ease-out;
|
|
133
|
+
}
|
|
134
|
+
.pop-item {
|
|
135
|
+
display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 8px;
|
|
136
|
+
background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 550; text-decoration: none; text-align: left;
|
|
137
|
+
}
|
|
138
|
+
.pop-item:hover:not([aria-disabled="true"]), .pop-item:focus-visible { background: var(--faint); }
|
|
139
|
+
/* A waiting item stays focusable (aria-disabled) so the arrows reach its reason; it only looks unavailable. */
|
|
140
|
+
.pop-item[aria-disabled="true"] { color: var(--dim); cursor: default; }
|
|
141
|
+
.pop-item svg { width: 15px; height: 15px; flex: none; color: var(--dim); }
|
|
142
|
+
/* Why an item waits (Record over an unsent report): a second line under the label, aligned past the icon. */
|
|
143
|
+
.pop-item:has(.pop-why:not([hidden])) { flex-wrap: wrap; row-gap: 2px; height: auto; min-height: 36px; padding: 8px 10px; }
|
|
144
|
+
.pop-why { flex-basis: 100%; padding-left: 25px; font-size: 12px; font-weight: 450; line-height: 1.35; }
|
|
145
|
+
.acc-who { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; }
|
|
146
|
+
.acc-who strong { font-size: 14px; }
|
|
147
|
+
.acc-mail, .acc-via { color: var(--dim); font-size: 12.5px; margin: 0; }
|
|
148
|
+
.acc-member { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; }
|
|
149
|
+
.acc-member:has(.acc-linked:not([hidden])) { padding: 8px 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
|
|
150
|
+
.acc-linked { margin: 0; font-size: 12.5px; color: var(--ink); }
|
|
151
|
+
|
|
152
|
+
/* -- the lists: My reports, recent recordings — in the card body ------------ */
|
|
153
|
+
.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px -4px; padding: 4px; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 650; }
|
|
154
|
+
.back svg { width: 14px; height: 14px; color: var(--dim); }
|
|
155
|
+
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
|
|
156
|
+
.row {
|
|
157
|
+
display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t step" "age step"; column-gap: 10px;
|
|
158
|
+
padding: 9px 10px; border-radius: 10px; background: rgba(242, 241, 239, .045); color: var(--ink); text-decoration: none;
|
|
159
|
+
}
|
|
160
|
+
a.row:hover { background: var(--faint); }
|
|
161
|
+
.row-t { grid-area: t; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
|
|
162
|
+
.age { grid-area: age; color: var(--dim); font-size: 12px; }
|
|
163
|
+
.step { grid-area: step; align-self: center; padding: 3px 9px; border-radius: 999px; background: var(--bg-deep); color: var(--dim); font-size: 12px; font-weight: 600; }
|
|
164
|
+
.step:empty { display: none; }
|
|
165
|
+
.list-status, .list-note { margin: 8px 0; color: var(--dim); font-size: 13px; }
|
|
166
|
+
|
|
167
|
+
/* -- the member link sheet (the pill's flow, vt-8020 D3) ------------------- */
|
|
168
|
+
.code { margin: 6px 0 14px; font: 650 26px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; }
|
|
169
|
+
.link-go { display: flex; align-items: center; gap: 16px; }
|
|
170
|
+
.qr { width: 104px; height: 104px; border-radius: 8px; background: #fff; padding: 6px; }
|
|
171
|
+
.pane { padding: 14px 16px 16px; }
|
|
172
|
+
/* The reporter's word for it (vt-8020 D11): chips above the input, like the board composer's intents. */
|
|
173
|
+
.kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
|
|
174
|
+
.kinds button {
|
|
175
|
+
height: 28px; padding: 0 11px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
|
|
176
|
+
background: transparent; color: rgba(242, 241, 239, .6); font-size: 13px; font-weight: 600;
|
|
177
|
+
transition: background-color var(--dur-quick) ease-out, border-color var(--dur-quick) ease-out, color var(--dur-quick) ease-out;
|
|
178
|
+
}
|
|
179
|
+
.kinds button:hover:not(:disabled) { color: var(--ink); }
|
|
180
|
+
.kinds button[aria-checked="true"] { background: rgba(242, 241, 239, .12); border-color: rgba(242, 241, 239, .26); color: var(--ink); }
|
|
181
|
+
.kinds button:disabled { opacity: .5; cursor: default; }
|
|
74
182
|
.prompt { display: block; margin: 0 0 8px; font-weight: 600; font-size: 14px; }
|
|
75
183
|
.desc {
|
|
76
|
-
display: block; width: 100%; min-height:
|
|
184
|
+
display: block; width: 100%; min-height: 76px; resize: none;
|
|
77
185
|
padding: 12px 14px; border-radius: 10px;
|
|
78
186
|
border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep); color: var(--ink);
|
|
79
187
|
font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.45;
|
|
@@ -91,22 +199,54 @@ kbd {
|
|
|
91
199
|
.link[aria-expanded="true"] svg { transform: rotate(180deg); }
|
|
92
200
|
.included { margin: 10px 0 0; padding: 10px 12px 10px 28px; border-radius: 10px; background: var(--bg-deep); color: var(--dim); font-size: 13px; }
|
|
93
201
|
.included li { margin: 2px 0; }
|
|
94
|
-
|
|
95
|
-
.
|
|
96
|
-
|
|
97
|
-
|
|
202
|
+
/* One numbered line per mark: its note, typed in the card, never floating on the page. */
|
|
203
|
+
.lines-wrap { margin-top: 10px; }
|
|
204
|
+
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
|
|
205
|
+
.ln {
|
|
206
|
+
display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 4px 0 9px;
|
|
207
|
+
border-radius: 10px; background: rgba(242, 241, 239, .045); border: 1px solid transparent;
|
|
208
|
+
}
|
|
209
|
+
.ln:focus-within { background: var(--bg-deep); border-color: rgba(242, 241, 239, .36); }
|
|
210
|
+
.ln-n {
|
|
211
|
+
display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%;
|
|
212
|
+
background: var(--accent); color: #fff; font-size: 11px; font-weight: 750; box-shadow: 0 0 0 1.5px #fff;
|
|
213
|
+
}
|
|
214
|
+
.ln.hide .ln-n { background: #3a3940; }
|
|
215
|
+
.ln-t {
|
|
216
|
+
flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink);
|
|
217
|
+
font-family: inherit; font-size: 13.5px;
|
|
98
218
|
}
|
|
99
|
-
.
|
|
219
|
+
.ln-t::placeholder { color: rgba(242, 241, 239, .4); }
|
|
220
|
+
.ln-t:focus, .ln-t:focus-visible { outline: none; }
|
|
221
|
+
.ln-x { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: rgba(242, 241, 239, .5); }
|
|
222
|
+
.ln-x:hover:not(:disabled) { background: var(--faint); color: var(--ink); }
|
|
223
|
+
.ln-x svg { width: 11px; height: 11px; }
|
|
224
|
+
.ln-empty { margin: 0; padding: 11px 13px; border: 1px dashed rgba(242, 241, 239, .14); border-radius: 10px; color: rgba(242, 241, 239, .46); font-size: 13px; }
|
|
100
225
|
.notify { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink); cursor: pointer; }
|
|
101
226
|
.notify input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
|
|
102
227
|
.error { margin: 12px 0 0; color: #ff9aa9; font-size: 13px; }
|
|
103
|
-
|
|
228
|
+
/* The bottom actions: attachments and Show us where on the left, Send on the right. */
|
|
229
|
+
.foot { flex: none; display: flex; align-items: center; gap: 4px; padding: 10px 12px 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
|
|
230
|
+
.foot .send { margin-left: auto; }
|
|
231
|
+
.icon:disabled { opacity: .45; cursor: default; background: transparent; color: var(--dim); }
|
|
232
|
+
/* Attached files (vt-8020 D9): chips in a tray above the foot — it scrolls, the card never grows. */
|
|
233
|
+
.tray { flex: none; max-height: 84px; overflow: auto; padding: 9px 12px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
|
|
234
|
+
.tray:not([hidden]) + .foot { border-top: 0; }
|
|
235
|
+
.file-note { margin: 0 0 7px; color: #ffc1ca; font-size: 12.5px; }
|
|
236
|
+
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
|
|
237
|
+
.file { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 28px; padding: 0 2px 0 10px; border-radius: 8px; background: rgba(242, 241, 239, .07); font-size: 12.5px; }
|
|
238
|
+
.file-name { min-width: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
|
|
239
|
+
.file-size { flex: none; color: var(--dim); }
|
|
240
|
+
.file .ln-x { width: 22px; height: 22px; }
|
|
241
|
+
/* A file dragged over the card: it will land here. */
|
|
242
|
+
.card.dropping { outline: 2px dashed rgba(242, 241, 239, .5); outline-offset: -7px; }
|
|
104
243
|
.where {
|
|
105
244
|
display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px;
|
|
106
245
|
border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--ink);
|
|
107
246
|
font-size: 13px; font-weight: 600;
|
|
108
247
|
}
|
|
109
248
|
.where:hover:not(:disabled) { background: var(--faint); }
|
|
249
|
+
.where[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
|
|
110
250
|
.where svg { width: 14px; height: 14px; }
|
|
111
251
|
.where:disabled { opacity: .45; cursor: default; }
|
|
112
252
|
.send {
|
|
@@ -117,8 +257,15 @@ kbd {
|
|
|
117
257
|
.send:disabled { opacity: .45; cursor: default; }
|
|
118
258
|
|
|
119
259
|
/* -- settings --------------------------------------------------------------- */
|
|
120
|
-
.row
|
|
121
|
-
.
|
|
260
|
+
/* Scoped to the pane: a bare .row would restyle the lists' rows (their grid) above. */
|
|
261
|
+
.settings .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
262
|
+
.settings .label { font-weight: 600; }
|
|
263
|
+
.size-row { margin-top: 18px; }
|
|
264
|
+
.size-row .seg button { padding: 0 12px; font-size: 13px; }
|
|
265
|
+
.tech-wrap { margin-top: 18px; }
|
|
266
|
+
.tech { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-deep); font-size: 12.5px; }
|
|
267
|
+
.tech dt { color: var(--dim); }
|
|
268
|
+
.tech dd { margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
|
|
122
269
|
.bind {
|
|
123
270
|
min-width: 120px; padding: 8px 12px; border-radius: 9px; text-align: center;
|
|
124
271
|
border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep);
|
|
@@ -151,42 +298,62 @@ kbd {
|
|
|
151
298
|
.ink .veil { fill: #1b1b1f; }
|
|
152
299
|
.ink .veil-label { fill: rgba(255, 255, 255, .7); font: 600 12px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
|
|
153
300
|
.ink .draft { opacity: .85; }
|
|
154
|
-
|
|
301
|
+
/* A pin is the mark's number on the page; its ✕ shows while the pin is hovered or focused. */
|
|
302
|
+
.pin { position: absolute; display: flex; align-items: center; gap: 4px; cursor: default; }
|
|
155
303
|
.pin .num {
|
|
156
|
-
display: grid; place-items: center; width: 24px; height: 24px; border-radius: 12px;
|
|
304
|
+
display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 12px;
|
|
157
305
|
background: var(--accent); color: #fff; font-size: 12px; font-weight: 750;
|
|
158
306
|
box-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 0 0 2px #fff;
|
|
159
307
|
}
|
|
160
|
-
.pin .note {
|
|
161
|
-
width: 220px; padding: 6px 10px; border-radius: 9px;
|
|
162
|
-
border: 1px solid rgba(255, 255, 255, .16); background: #151417; color: #fff;
|
|
163
|
-
font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.3;
|
|
164
|
-
box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
|
|
165
|
-
}
|
|
166
|
-
.pin .note::placeholder { color: rgba(255, 255, 255, .45); }
|
|
167
|
-
.pin .note:focus { outline: none; border-color: var(--accent); }
|
|
168
308
|
.pin .rm {
|
|
169
|
-
display: grid; place-items: center; width:
|
|
309
|
+
display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 11px;
|
|
170
310
|
background: #151417; color: rgba(255, 255, 255, .7); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
|
|
311
|
+
opacity: 0; transition: opacity var(--dur-quick) ease-out;
|
|
171
312
|
}
|
|
313
|
+
.pin:hover .rm, .pin:focus-within .rm { opacity: 1; }
|
|
172
314
|
.pin .rm:hover { color: #fff; }
|
|
173
|
-
.pin .rm svg { width:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
.
|
|
188
|
-
.
|
|
189
|
-
.
|
|
315
|
+
.pin .rm svg { width: 11px; height: 11px; }
|
|
316
|
+
|
|
317
|
+
/* The marking bar (vt-8020 D6): translucent glass at the top, the shape as a segmented control. */
|
|
318
|
+
.tb {
|
|
319
|
+
/* translate (not transform): it applies after the scale, so the scaled bar stays centred. */
|
|
320
|
+
position: fixed; left: 50%; top: 14px; translate: -50% 0;
|
|
321
|
+
scale: var(--vr-scale); transform-origin: 50% 0;
|
|
322
|
+
display: flex; align-items: center; gap: 4px; padding: 5px;
|
|
323
|
+
border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08);
|
|
324
|
+
background: rgba(30, 29, 34, .68);
|
|
325
|
+
-webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
|
|
326
|
+
box-shadow: 0 14px 36px rgba(0, 0, 0, .36), 0 2px 6px rgba(0, 0, 0, .18), 0 1px 0 rgba(255, 255, 255, .05) inset;
|
|
327
|
+
color: var(--ink); cursor: default; white-space: nowrap;
|
|
328
|
+
}
|
|
329
|
+
.tb-lead { padding: 0 12px 0 11px; color: rgba(242, 241, 239, .56); font-size: 13.5px; font-weight: 500; }
|
|
330
|
+
.seg { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
|
|
331
|
+
.seg button {
|
|
332
|
+
position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;
|
|
333
|
+
height: 30px; padding: 0 13px 0 11px; border: 0; border-radius: 8px; background: transparent;
|
|
334
|
+
color: rgba(242, 241, 239, .56); font-size: 13.5px; font-weight: 600;
|
|
335
|
+
transition: color var(--dur-fast) var(--ease-smooth-out);
|
|
336
|
+
}
|
|
337
|
+
.seg button svg { width: 15px; height: 15px; flex: none; }
|
|
338
|
+
.seg button:hover { color: rgba(242, 241, 239, .86); }
|
|
339
|
+
.seg button[aria-checked="true"] { color: var(--ink); }
|
|
340
|
+
.seg-ind {
|
|
341
|
+
position: absolute; top: 3px; left: 0; z-index: 0; width: 0; height: 30px; border-radius: 8px;
|
|
342
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .115));
|
|
343
|
+
box-shadow: 0 1px 0 rgba(255, 255, 255, .13) inset, 0 2px 7px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .22);
|
|
344
|
+
transition: transform var(--dur-fast) var(--ease-smooth-out), width var(--dur-fast) var(--ease-smooth-out);
|
|
345
|
+
pointer-events: none; opacity: 0;
|
|
346
|
+
}
|
|
347
|
+
.seg.measured .seg-ind { opacity: 1; }
|
|
348
|
+
/* Before the indicator is measured, the picked segment carries the raised fill itself. */
|
|
349
|
+
.seg:not(.measured) button[aria-checked="true"] { background: rgba(255, 255, 255, .15); }
|
|
350
|
+
.tb-sep { width: 1px; height: 20px; margin: 0 5px; background: rgba(255, 255, 255, .1); }
|
|
351
|
+
.tb-quiet { height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: rgba(242, 241, 239, .72); font-size: 13.5px; font-weight: 600; }
|
|
352
|
+
.tb-quiet:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
|
|
353
|
+
.tb-confirm { display: inline-flex; align-items: center; gap: 4px; }
|
|
354
|
+
.tb-ask { padding: 0 6px 0 4px; font-size: 13.5px; font-weight: 600; }
|
|
355
|
+
.tb-discard { height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 650; }
|
|
356
|
+
.tb-discard:hover { background: #e43a57; }
|
|
190
357
|
|
|
191
358
|
/* -- the coach card (D21): stays beside the pointer until mark 1 exists --- */
|
|
192
359
|
.coach {
|
|
@@ -210,16 +377,19 @@ kbd {
|
|
|
210
377
|
@keyframes vr-hold { 0%, 8% { opacity: 0; } 14%, 72% { opacity: .9; } 80%, 100% { opacity: 0; } }
|
|
211
378
|
|
|
212
379
|
@media (max-width: 520px) {
|
|
213
|
-
.
|
|
214
|
-
.
|
|
215
|
-
.
|
|
216
|
-
.
|
|
217
|
-
.
|
|
380
|
+
.vr { --edge: 16px; --lift: calc(var(--edge) + 68px * var(--vr-scale)); }
|
|
381
|
+
.fab { padding: 13px 18px; font-size: 16px; }
|
|
382
|
+
.tb { max-width: calc((100vw - 16px) / var(--vr-scale)); overflow-x: auto; }
|
|
383
|
+
.tb-lead { display: none; }
|
|
384
|
+
.seg button { padding: 0 9px; }
|
|
218
385
|
.coach { width: 260px; }
|
|
219
386
|
}
|
|
387
|
+
/* Every motion of the face stops here: the menu rises with the card's vr-in, the coach dims as you press, the chevron turns. */
|
|
220
388
|
@media (prefers-reduced-motion: reduce) {
|
|
221
|
-
.card { animation: none; }
|
|
222
|
-
.
|
|
389
|
+
.card, .pop { animation: none; }
|
|
390
|
+
.card.parked, .seg-ind, .seg button, .kinds button, .pin .rm, .link svg, .coach { transition: none; }
|
|
391
|
+
.card.busy .head::after { animation: none; }
|
|
392
|
+
.fab, .fab.gliding { transition: none; }
|
|
223
393
|
.coach .loop { animation: none; stroke-dashoffset: 0; }
|
|
224
394
|
.coach .hold { animation: none; opacity: .9; }
|
|
225
395
|
}
|
package/build/report/widget.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export declare class ReportWidget {
|
|
|
40
40
|
private frozen;
|
|
41
41
|
private job;
|
|
42
42
|
private sending;
|
|
43
|
+
/** Which leg a failed send stopped at: nothing reached the server, a file, or the replay. */
|
|
43
44
|
private error;
|
|
44
45
|
private result;
|
|
45
46
|
private notify;
|
|
@@ -47,11 +48,45 @@ export declare class ReportWidget {
|
|
|
47
48
|
private includedOpen;
|
|
48
49
|
private recordingBind;
|
|
49
50
|
private bindRefused;
|
|
50
|
-
/** The
|
|
51
|
-
private
|
|
51
|
+
/** The reporter's own word for it (vt-8020 D11); null until they pick one. */
|
|
52
|
+
private kind;
|
|
53
|
+
/** The marks that existed when this marking pass began: Cancel keeps exactly these (vt-8020 D12). */
|
|
54
|
+
private passKeys;
|
|
55
|
+
/** Cancel asked "Discard N marks?" and waits for the answer. */
|
|
56
|
+
private confirming;
|
|
57
|
+
/** The corner the card is parked in once marking has moved it; null = its anchored place. */
|
|
58
|
+
private parked;
|
|
59
|
+
/** The insets marking parks the card with, read where it rested when marking started (insetsAt). */
|
|
60
|
+
private parkInsets;
|
|
61
|
+
/** The corner the button docks in (drag.ts); the card rests beside it and marking parks it from there. */
|
|
62
|
+
private dock;
|
|
63
|
+
private size;
|
|
64
|
+
private techOpen;
|
|
65
|
+
/** A press on the button: it becomes a drag once it travels DRAG_THRESHOLD; `grab` is where the pointer holds it. */
|
|
66
|
+
private fabDrag;
|
|
67
|
+
/** The click that ends a drag is the drop, not a press of the button. */
|
|
68
|
+
private swallowClick;
|
|
69
|
+
/** The button's glide to its new corner, while it runs. */
|
|
70
|
+
private glide;
|
|
71
|
+
/** The reporter's attachments (vt-8020 D9), in the order added, and the reason the last refused one got. */
|
|
72
|
+
private files;
|
|
73
|
+
private fileRefusal;
|
|
74
|
+
private pastes;
|
|
75
|
+
private readonly chips;
|
|
76
|
+
/** Swaps this widget for the recorder pill; set only for a linked member (setRecordSwitch). */
|
|
77
|
+
private recordSwitch;
|
|
78
|
+
private menu;
|
|
79
|
+
/** The reporter session the host's signed token was traded for (vt-8020 D4), and that token. */
|
|
80
|
+
private session;
|
|
81
|
+
private sessionToken;
|
|
82
|
+
/** The vitrinka member this browser is linked to (vt-8020 D3), read with the link's own token. */
|
|
83
|
+
private member;
|
|
84
|
+
private mine;
|
|
85
|
+
private linkFlow;
|
|
52
86
|
private drawing;
|
|
53
87
|
private readonly offs;
|
|
54
88
|
private readonly pins;
|
|
89
|
+
private readonly lines;
|
|
55
90
|
/** Per hide mark: the page nodes it covered when drawn (they are blanked in the capture). */
|
|
56
91
|
private readonly hideIds;
|
|
57
92
|
/** Native dialogs in the order they opened (seeded with those already open, in DOM order). */
|
|
@@ -78,16 +113,81 @@ export declare class ReportWidget {
|
|
|
78
113
|
setLocale(raw: string | null | undefined): void;
|
|
79
114
|
setButton(on: boolean): void;
|
|
80
115
|
setOpenSelector(sel: string | null): void;
|
|
116
|
+
/**
|
|
117
|
+
* The way to the recorder pill (vt-8020 D8): element.ts sets it only for a
|
|
118
|
+
* linked vitrinka member — the menu then offers "Record" — and clears it
|
|
119
|
+
* with null; reporters never get one.
|
|
120
|
+
*/
|
|
121
|
+
setRecordSwitch(fn: (() => void) | null): void;
|
|
81
122
|
identify(input: IdentifyInput): void;
|
|
82
123
|
unmount(): void;
|
|
83
124
|
private bind;
|
|
84
125
|
private show;
|
|
126
|
+
private target;
|
|
127
|
+
private toggleMenu;
|
|
128
|
+
/** The host's signed token traded once for a reporter session; renewed only when it is about to lapse. Answers the session in force. */
|
|
129
|
+
private refreshWho;
|
|
130
|
+
/**
|
|
131
|
+
* identify() or the page-wide identity moved: a session and a list read for
|
|
132
|
+
* the previous person never stay on screen for the next one, and an open My
|
|
133
|
+
* reports reloads for whoever is here now.
|
|
134
|
+
*/
|
|
135
|
+
private whoChanged;
|
|
136
|
+
private refreshMember;
|
|
137
|
+
private openReports;
|
|
138
|
+
private loadReports;
|
|
139
|
+
/** My reports; a 401 means the reporter session lapsed or the host's key rotated: trade the token again, then ask once more. */
|
|
140
|
+
private listMineRenewing;
|
|
141
|
+
/** The pill's member link (vt-8020 D3): a code approved in vitrinka mints this browser's own recorder key. */
|
|
142
|
+
private startLinkFlow;
|
|
143
|
+
/** "2 h ago" in the widget's language. */
|
|
144
|
+
private ago;
|
|
145
|
+
/** One list row: a title, a quiet state chip and its age; a link when the server minted an address. */
|
|
146
|
+
private row;
|
|
85
147
|
private who;
|
|
148
|
+
/** The signed token of the person here now; '' for an asserted or anonymous reporter. */
|
|
149
|
+
private whoToken;
|
|
86
150
|
private stopBindListener;
|
|
87
151
|
private startRecordingBind;
|
|
88
152
|
private stopRecordingBind;
|
|
153
|
+
/** Files join while the report is being written — not while it is on its way (Retry sends it as it was). */
|
|
154
|
+
private canAttach;
|
|
155
|
+
private caps;
|
|
156
|
+
private addFiles;
|
|
157
|
+
private removeFile;
|
|
158
|
+
/** One chip per file, built once; paint() writes their sizes and labels. */
|
|
159
|
+
private renderFiles;
|
|
160
|
+
/** The one line a refused file gets: the cap it broke, by name. */
|
|
161
|
+
private refusalText;
|
|
162
|
+
private fabDown;
|
|
163
|
+
/** Past the threshold the press is a drag: the button rides the pointer, inside the viewport. */
|
|
164
|
+
private fabMove;
|
|
165
|
+
/** A drop docks the button in the nearest corner (a cancelled drag goes home); a press that never travelled stays a click. */
|
|
166
|
+
private fabUp;
|
|
167
|
+
/** Docks the button in `c` and remembers it; it glides there from `from` (the drop point, else where it was). */
|
|
168
|
+
private moveDock;
|
|
89
169
|
private startMarking;
|
|
170
|
+
/** Leaves marking; the card stays where marking parked it until it closes (it never jumps back). */
|
|
90
171
|
private endMarking;
|
|
172
|
+
/** Cancel (vt-8020 D12): leave marking and drop this pass's marks — asking first when there are any. */
|
|
173
|
+
private cancelMarking;
|
|
174
|
+
/**
|
|
175
|
+
* The card's live insets in `corner` (the nearer side, and the bottom or the top — never above the
|
|
176
|
+
* marking bar's band), the far side at the default: `cornerRect(corner)` is then exactly where it is.
|
|
177
|
+
*/
|
|
178
|
+
private insetsAt;
|
|
179
|
+
/** The card's box as painted (the size setting scales it, styles: `--vr-scale`) and the insets marking parks it with. */
|
|
180
|
+
private frame;
|
|
181
|
+
/**
|
|
182
|
+
* Parks the card in the corner that covers none of the marks; it glides there (styles: `.card.parked`).
|
|
183
|
+
* `reanchor`: the corner itself changed (a new size, a resized viewport) — kept in the same corner, the card
|
|
184
|
+
* lands there on the frame it changes, as an anchored card does; slid there, a parked card (scaled from its
|
|
185
|
+
* top-left) would first overhang its corner by the size difference, then glide back.
|
|
186
|
+
*/
|
|
187
|
+
private placeCard;
|
|
188
|
+
private unpark;
|
|
189
|
+
/** The segmented control's indicator under the picked shape; `land`: the bar just appeared, so it does not slide. */
|
|
190
|
+
private placeSeg;
|
|
91
191
|
private onChrome;
|
|
92
192
|
private pointerDown;
|
|
93
193
|
private pointerMove;
|
|
@@ -102,10 +202,29 @@ export declare class ReportWidget {
|
|
|
102
202
|
private placeCoach;
|
|
103
203
|
private shapeNodes;
|
|
104
204
|
private renderMarks;
|
|
105
|
-
/** Pin numbers
|
|
205
|
+
/** Pin numbers and positions, line numbers and labels; text in place (the locale may have changed). */
|
|
106
206
|
private renderPins;
|
|
107
207
|
private envelope;
|
|
208
|
+
/** The words the report goes with: the description, else the first mark's note — either one is enough to send. */
|
|
209
|
+
private words;
|
|
210
|
+
/**
|
|
211
|
+
* The card holds something the reporter made and has not sent: words in the
|
|
212
|
+
* description or a mark's note (a note lives on its mark), a mark, the
|
|
213
|
+
* picked word for it, a file.
|
|
214
|
+
*/
|
|
215
|
+
private hasDraft;
|
|
216
|
+
/** Record unmounts this card for the pill (vt-8020 D8), so it waits while the card holds a draft or a report sending or waiting on Try again — the switch would lose it. */
|
|
217
|
+
private recordWaits;
|
|
108
218
|
private send;
|
|
109
219
|
private includedItems;
|
|
220
|
+
/** Who the face says you are (vt-8020 D2): the host's person, then the linked member; never a guess. */
|
|
221
|
+
private paintAccount;
|
|
222
|
+
private paintReports;
|
|
223
|
+
private paintRecents;
|
|
224
|
+
private paintLink;
|
|
225
|
+
/** 📎, the picker's types, the tray of chips and the refusal line — the tray shows only while there is something in it. */
|
|
226
|
+
private paintFiles;
|
|
227
|
+
/** Size and technical details (vt-8020 D9); the size indicator is measured once the pane shows. */
|
|
228
|
+
private paintSettings;
|
|
110
229
|
private paint;
|
|
111
230
|
}
|