@milesroxas/design-hub 0.4.3 → 0.6.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/dist/scripts/cli.js +2 -0
- package/dist/scripts/commands.js +2 -0
- package/dist/scripts/hook.d.ts +1 -1
- package/dist/scripts/hook.js +4 -1
- package/dist/scripts/lib/update.d.ts +71 -0
- package/dist/scripts/lib/update.js +83 -0
- package/dist/scripts/skills.d.ts +7 -2
- package/dist/scripts/skills.js +19 -3
- package/dist/scripts/upgrade.d.ts +25 -0
- package/dist/scripts/upgrade.js +166 -0
- package/kit/prefs.ts +32 -6
- package/kit/ui/Menu.tsx +28 -4
- package/kit/ui/index.ts +9 -1
- package/package.json +2 -2
- package/shell/review/Bar.tsx +156 -0
- package/shell/review/Card.tsx +106 -0
- package/shell/review/Field.tsx +99 -0
- package/shell/review/Launcher.tsx +180 -0
- package/shell/review/People.tsx +168 -0
- package/shell/review/PickLayer.tsx +130 -0
- package/shell/review/Pins.tsx +97 -0
- package/shell/review/Review.tsx +282 -902
- package/shell/review/ThreadCard.tsx +498 -0
- package/shell/review/anchor.ts +2 -1
- package/shell/review/client.ts +3 -0
- package/shell/review/place.test.ts +72 -0
- package/shell/review/place.ts +78 -0
- package/shell/review/review.css +504 -205
- package/shell/review/sheet.ts +107 -0
- package/shell/review/snap.test.ts +44 -0
- package/shell/review/snap.ts +59 -0
- package/shell/review/view.test.ts +155 -0
- package/shell/review/view.ts +101 -0
package/shell/review/review.css
CHANGED
|
@@ -1,296 +1,595 @@
|
|
|
1
1
|
/* The review layer. Harness material in both themes (--harness-*), so it
|
|
2
|
-
never reads as part of the design under review.
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
never reads as part of the design under review. Its controls are the kit's
|
|
3
|
+
(kit/ui): this file gives them the harness material by setting the tokens
|
|
4
|
+
they read, and a tighter size, then styles what is the layer's own.
|
|
5
|
+
The button, bar and cards sit above everything but the variant picker.
|
|
6
|
+
Pins and the comment surface sit below the dials panel (DialKit's 9999),
|
|
7
|
+
because they belong to the page. */
|
|
5
8
|
|
|
6
|
-
.rv
|
|
9
|
+
/* .rv-menu is a select's or a menu's popup: it portals to <body>, outside .rv. */
|
|
10
|
+
.rv,
|
|
11
|
+
.rv-menu {
|
|
7
12
|
--rv-z: 2147483600;
|
|
8
13
|
--rv-z-page: 9000;
|
|
9
14
|
--rv-gap: 16px;
|
|
10
15
|
--rv-fg-strong: oklch(1 0 0);
|
|
11
16
|
--rv-fill: oklch(1 0 0 / 0.06);
|
|
12
17
|
--rv-fill-hover: oklch(1 0 0 / 0.1);
|
|
13
|
-
--rv-
|
|
18
|
+
--rv-fill-open: oklch(1 0 0 / 0.14);
|
|
19
|
+
--rv-accent: oklch(0.92 0 0); /* light neutral on the dark material */
|
|
14
20
|
--rv-on-accent: oklch(0.205 0 0);
|
|
15
21
|
--rv-mark: oklch(0.55 0 0); /* on the page: mid grey holds on light and dark */
|
|
16
22
|
--rv-pin: oklch(0.205 0 0);
|
|
23
|
+
--rv-done: oklch(0.8 0.13 155); /* resolved: the one hue in the layer, on its check alone */
|
|
17
24
|
--rv-danger: oklch(0.779 0.131 23.4);
|
|
25
|
+
--rv-raised: 0 0 0 1px oklch(1 0 0 / 0.09), 0 12px 32px -8px oklch(0 0 0 / 0.5), 0 2px 6px oklch(0 0 0 / 0.25);
|
|
26
|
+
|
|
27
|
+
/* What kit/ui reads, in the harness material. The project's own values
|
|
28
|
+
(its brand, its radii, its light theme) stop at this edge. */
|
|
29
|
+
--bg-primary: oklch(0.31 0 0);
|
|
30
|
+
--bg-primary_hover: var(--rv-fill-hover);
|
|
31
|
+
--bg-active: var(--rv-fill-open);
|
|
32
|
+
--border-primary: oklch(1 0 0 / 0.14);
|
|
33
|
+
--border-secondary: var(--harness-border);
|
|
34
|
+
--text-primary: var(--rv-fg-strong);
|
|
35
|
+
--text-secondary: var(--harness-fg);
|
|
36
|
+
--text-tertiary: var(--harness-fg-muted);
|
|
37
|
+
--text-placeholder: var(--harness-fg-muted);
|
|
38
|
+
--text-disabled: oklch(1 0 0 / 0.35);
|
|
39
|
+
--text-error-primary: var(--rv-danger);
|
|
40
|
+
--fg-secondary: var(--harness-fg);
|
|
41
|
+
--fg-quaternary: var(--harness-fg-muted);
|
|
42
|
+
--fg-error-primary: var(--rv-danger);
|
|
43
|
+
--fg-brand-primary: var(--rv-fg-strong);
|
|
44
|
+
--utility-gray-700: var(--harness-fg);
|
|
45
|
+
--button-primary-bg: var(--rv-accent);
|
|
46
|
+
--button-primary-bg_hover: oklch(1 0 0);
|
|
47
|
+
--button-primary-fg: var(--rv-on-accent);
|
|
48
|
+
--button-secondary-bg: var(--rv-fill);
|
|
49
|
+
--button-secondary-bg_hover: var(--rv-fill-hover);
|
|
50
|
+
--button-secondary-bg_open: var(--rv-fill-open);
|
|
51
|
+
--button-secondary-fg: var(--rv-fg-strong);
|
|
52
|
+
--button-secondary-fg_hover: var(--rv-fg-strong);
|
|
53
|
+
--button-secondary-border: transparent;
|
|
54
|
+
--button-tertiary-fg: var(--harness-fg-muted);
|
|
55
|
+
--button-tertiary-fg_hover: var(--rv-fg-strong);
|
|
56
|
+
--button-tertiary-bg_hover: var(--rv-fill-hover);
|
|
57
|
+
--shadow-xs: none;
|
|
58
|
+
--shadow-md: var(--rv-raised);
|
|
59
|
+
--focus-ring: 0 0 0 2px var(--harness-bg), 0 0 0 4px oklch(1 0 0 / 0.7);
|
|
60
|
+
--radius-xs: 4px;
|
|
61
|
+
--radius-sm: 8px;
|
|
62
|
+
--radius-md: 12px;
|
|
63
|
+
|
|
18
64
|
font: 13px/18px var(--sys-font);
|
|
19
65
|
-webkit-font-smoothing: antialiased;
|
|
20
66
|
color: var(--harness-fg);
|
|
67
|
+
color-scheme: dark;
|
|
21
68
|
}
|
|
22
69
|
|
|
23
70
|
.rv button,
|
|
24
71
|
.rv input,
|
|
25
|
-
.rv
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
.rv
|
|
29
|
-
|
|
72
|
+
.rv textarea { font: inherit; }
|
|
73
|
+
/* Controls, not content: no tap flash, no long-press selection or callout, no double-tap zoom wait. */
|
|
74
|
+
.rv, .rv-menu { -webkit-tap-highlight-color: transparent; }
|
|
75
|
+
.rv button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
|
|
76
|
+
.rv p { margin: 0; text-wrap: pretty; }
|
|
30
77
|
.rv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
31
78
|
.rv-muted { color: var(--harness-fg-muted); }
|
|
79
|
+
.rv-spacer { flex: 1; }
|
|
80
|
+
.rv-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
81
|
+
.rv-title { margin: 0; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--rv-fg-strong); white-space: nowrap; }
|
|
82
|
+
|
|
83
|
+
/* ---------- the kit's controls, at the layer's size ---------- */
|
|
84
|
+
/* The product's rows are 38 to 42px; a 320px card of 13px text runs on 32. */
|
|
85
|
+
.rv .btn { height: 32px; padding: 0 12px; gap: 6px; font-weight: 500; border-radius: 8px; }
|
|
86
|
+
.rv .btn.btn-icon { width: 32px; padding: 0; }
|
|
87
|
+
.rv .btn:has(> .icon:first-child):not(.btn-icon),
|
|
88
|
+
.rv .btn:has(> .btn-content > .icon:first-child):not(.btn-icon) { padding-left: 10px; }
|
|
89
|
+
.rv .btn-label { line-height: 18px; }
|
|
90
|
+
.rv .input,
|
|
91
|
+
.rv .select { height: 32px; padding: 0 10px; }
|
|
92
|
+
.rv .field-label { color: var(--harness-fg-muted); font-weight: 400; }
|
|
93
|
+
/* A 32px control reaches 44px for a finger. */
|
|
94
|
+
@media (pointer: coarse) {
|
|
95
|
+
.rv .btn { position: relative; }
|
|
96
|
+
.rv .btn::before { content: ''; position: absolute; inset: -6px -2px; }
|
|
97
|
+
}
|
|
32
98
|
|
|
33
|
-
|
|
99
|
+
.menu.rv-menu { z-index: calc(var(--rv-z) + 2); }
|
|
100
|
+
.rv-menu .menu-item { padding: 6px 8px; min-height: 32px; }
|
|
101
|
+
.rv-menu .menu-header { padding: 8px 8px 2px; }
|
|
102
|
+
.rv-menu .menu-header:not(:first-child) { margin-top: 4px; }
|
|
103
|
+
@media (pointer: coarse) { .rv-menu .menu-item { min-height: 44px; } }
|
|
104
|
+
|
|
105
|
+
/* ---------- the button ---------- */
|
|
106
|
+
/* One round button, resting at one of six spots (snap.ts). Dragged, it
|
|
107
|
+
follows the pointer; let go, it glides to the nearest spot. */
|
|
34
108
|
.rv-launch {
|
|
35
109
|
position: fixed;
|
|
36
|
-
right: max(var(--rv-gap), env(safe-area-inset-right));
|
|
37
|
-
bottom: max(var(--rv-gap), env(safe-area-inset-bottom));
|
|
38
110
|
z-index: var(--rv-z);
|
|
39
|
-
display:
|
|
40
|
-
|
|
41
|
-
|
|
111
|
+
display: grid;
|
|
112
|
+
place-items: center;
|
|
113
|
+
width: 40px;
|
|
42
114
|
height: 40px;
|
|
43
|
-
padding: 0
|
|
44
|
-
border:
|
|
115
|
+
padding: 0;
|
|
116
|
+
border: 0;
|
|
45
117
|
border-radius: 999px;
|
|
46
118
|
background: var(--harness-bg);
|
|
47
|
-
box-shadow: var(--
|
|
119
|
+
box-shadow: var(--rv-raised);
|
|
120
|
+
color: var(--harness-fg);
|
|
48
121
|
cursor: pointer;
|
|
49
|
-
touch-action:
|
|
50
|
-
transition:
|
|
122
|
+
touch-action: none;
|
|
123
|
+
transition:
|
|
124
|
+
transform 380ms var(--ease-drawer),
|
|
125
|
+
opacity var(--dur-dialog) var(--ease-out),
|
|
126
|
+
background-color var(--dur-hover) var(--ease-hover),
|
|
127
|
+
color var(--dur-hover) var(--ease-hover),
|
|
128
|
+
visibility 0s;
|
|
51
129
|
}
|
|
52
|
-
|
|
130
|
+
/* 40px drawn, 44px to a finger. */
|
|
131
|
+
.rv-launch::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; }
|
|
132
|
+
.rv-launch[data-dragging] { transition: none; cursor: grabbing; box-shadow: var(--rv-raised), 0 16px 40px -8px oklch(0 0 0 / 0.5); }
|
|
133
|
+
.rv-launch:active:not([data-dragging]) { scale: 0.97; }
|
|
134
|
+
.rv-launch:focus-visible { box-shadow: var(--rv-raised), var(--focus-ring); }
|
|
135
|
+
/* Comment mode is on: the button inverts, so the page says which mode it is in. */
|
|
136
|
+
.rv-launch[aria-pressed="true"] { background: var(--rv-accent); color: var(--rv-on-accent); }
|
|
53
137
|
.rv-count {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
138
|
+
position: absolute;
|
|
139
|
+
top: -4px;
|
|
140
|
+
right: -4px;
|
|
141
|
+
min-width: 18px;
|
|
142
|
+
height: 18px;
|
|
143
|
+
padding: 0 5px;
|
|
57
144
|
border-radius: 999px;
|
|
58
145
|
background: var(--rv-accent);
|
|
146
|
+
box-shadow: 0 0 0 2px var(--harness-bg);
|
|
59
147
|
color: var(--rv-on-accent);
|
|
148
|
+
font-size: 11px;
|
|
60
149
|
font-weight: 600;
|
|
61
150
|
font-variant-numeric: tabular-nums;
|
|
62
|
-
line-height:
|
|
151
|
+
line-height: 18px;
|
|
63
152
|
text-align: center;
|
|
64
153
|
}
|
|
154
|
+
.rv-launch[aria-pressed="true"] .rv-count { background: var(--harness-bg); color: var(--rv-fg-strong); box-shadow: 0 0 0 2px var(--rv-accent); }
|
|
65
155
|
@media (hover: hover) and (pointer: fine) {
|
|
66
|
-
.rv-launch:hover { background:
|
|
156
|
+
.rv-launch:not([aria-pressed="true"]):hover { background: oklch(0.31 0 0); color: var(--rv-fg-strong); }
|
|
67
157
|
}
|
|
68
158
|
|
|
69
|
-
/*
|
|
70
|
-
.rv-
|
|
159
|
+
/* The six spots. */
|
|
160
|
+
.rv-launch[data-spot$="right"] { right: max(var(--rv-gap), env(safe-area-inset-right)); }
|
|
161
|
+
.rv-launch[data-spot$="left"] { left: max(var(--rv-gap), env(safe-area-inset-left)); }
|
|
162
|
+
.rv-launch[data-spot^="top"] { top: max(var(--rv-gap), env(safe-area-inset-top)); }
|
|
163
|
+
.rv-launch[data-spot^="bottom"] { bottom: max(var(--rv-gap), env(safe-area-inset-bottom)); }
|
|
164
|
+
.rv-launch:is([data-spot="left"], [data-spot="right"]) { top: calc(50% - 20px); }
|
|
165
|
+
|
|
166
|
+
/* Hidden, the button slides into its edge and this tab is what is left of
|
|
167
|
+
it: quiet until the pointer or the keyboard finds it. */
|
|
168
|
+
.rv-tab {
|
|
71
169
|
position: fixed;
|
|
72
|
-
top: var(--rv-gap);
|
|
73
|
-
right: var(--rv-gap);
|
|
74
|
-
bottom: calc(var(--rv-gap) + 48px);
|
|
75
170
|
z-index: var(--rv-z);
|
|
76
|
-
display:
|
|
77
|
-
|
|
78
|
-
width:
|
|
79
|
-
|
|
80
|
-
|
|
171
|
+
display: grid;
|
|
172
|
+
place-items: center;
|
|
173
|
+
width: 28px;
|
|
174
|
+
height: 36px;
|
|
175
|
+
padding: 0;
|
|
176
|
+
border: 0;
|
|
81
177
|
background: var(--harness-bg);
|
|
82
|
-
box-shadow: var(--
|
|
83
|
-
|
|
84
|
-
|
|
178
|
+
box-shadow: var(--rv-raised);
|
|
179
|
+
color: var(--harness-fg-muted);
|
|
180
|
+
cursor: pointer;
|
|
181
|
+
opacity: 0.7;
|
|
182
|
+
transition: transform var(--dur-dialog) var(--ease-out) 60ms, opacity var(--dur-dialog) var(--ease-out) 60ms, color var(--dur-hover) var(--ease-hover), visibility 0s;
|
|
85
183
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
184
|
+
.rv-tab[data-spot$="right"] { right: 0; border-radius: 10px 0 0 10px; }
|
|
185
|
+
.rv-tab[data-spot$="left"] { left: 0; border-radius: 0 10px 10px 0; }
|
|
186
|
+
.rv-tab[data-spot^="top"] { top: calc(max(var(--rv-gap), env(safe-area-inset-top)) + 2px); }
|
|
187
|
+
.rv-tab[data-spot^="bottom"] { bottom: calc(max(var(--rv-gap), env(safe-area-inset-bottom)) + 2px); }
|
|
188
|
+
.rv-tab:is([data-spot="left"], [data-spot="right"]) { top: calc(50% - 18px); }
|
|
189
|
+
/* 28 by 36 on screen, 44 by 44 to a finger. */
|
|
190
|
+
.rv-tab::before { content: ''; position: absolute; inset: -4px 0 -4px -16px; }
|
|
191
|
+
.rv-tab[data-spot$="left"]::before { inset: -4px -16px -4px 0; }
|
|
192
|
+
.rv-tab:focus-visible { opacity: 1; color: var(--rv-fg-strong); box-shadow: var(--rv-raised), var(--focus-ring); }
|
|
193
|
+
.rv-tab:active { scale: 0.97; }
|
|
194
|
+
@media (hover: hover) and (pointer: fine) { .rv-tab:hover { opacity: 1; color: var(--rv-fg-strong); } }
|
|
195
|
+
|
|
196
|
+
/* Leaving is quicker than arriving, and visibility waits for it so the part
|
|
197
|
+
that is away takes no clicks and no focus. */
|
|
198
|
+
.rv-launch[data-away],
|
|
199
|
+
.rv-tab[data-away] {
|
|
200
|
+
opacity: 0;
|
|
201
|
+
visibility: hidden;
|
|
202
|
+
transition: transform var(--dur-dialog-out, 150ms) var(--ease-out), opacity var(--dur-dialog-out, 150ms) var(--ease-out), visibility 0s linear var(--dur-dialog-out, 150ms);
|
|
203
|
+
}
|
|
204
|
+
.rv-launch[data-away][data-spot$="right"] { transform: translateX(calc(100% + var(--rv-gap))); }
|
|
205
|
+
.rv-launch[data-away][data-spot$="left"] { transform: translateX(calc(-100% - var(--rv-gap))); }
|
|
206
|
+
.rv-tab[data-away][data-spot$="right"] { transform: translateX(100%); }
|
|
207
|
+
.rv-tab[data-away][data-spot$="left"] { transform: translateX(-100%); }
|
|
208
|
+
|
|
209
|
+
/* ---------- comment mode: the surface, the bar ---------- */
|
|
210
|
+
/* The page under comment mode: a crosshair on everything that is the page's, nothing laid over it. */
|
|
211
|
+
:root[data-rv-commenting] body > :not([data-harness], .rv-menu, .dialkit-root, .proto-picker, [data-lapse-panel]),
|
|
212
|
+
:root[data-rv-commenting] body > :not([data-harness], .rv-menu, .dialkit-root, .proto-picker, [data-lapse-panel]) * { cursor: crosshair; }
|
|
213
|
+
/* Near a pin, a click opens it: the cursor says so. */
|
|
214
|
+
:root[data-rv-near] body > :not([data-harness]),
|
|
215
|
+
:root[data-rv-near] body > :not([data-harness]) * { cursor: pointer; }
|
|
216
|
+
.rv-pick-box {
|
|
217
|
+
position: fixed;
|
|
218
|
+
top: 0;
|
|
219
|
+
left: 0;
|
|
220
|
+
z-index: calc(var(--rv-z-page) - 1);
|
|
221
|
+
pointer-events: none;
|
|
222
|
+
border: 2px solid var(--rv-mark);
|
|
223
|
+
border-radius: 4px;
|
|
224
|
+
background: oklch(0.55 0 0 / 0.1);
|
|
90
225
|
}
|
|
91
|
-
[data-motion="reduce"] .rv-panel { transform: none; }
|
|
92
226
|
|
|
93
|
-
.rv-
|
|
227
|
+
.rv-bar-stack {
|
|
228
|
+
position: fixed;
|
|
229
|
+
left: 50%;
|
|
230
|
+
bottom: max(var(--rv-gap), env(safe-area-inset-bottom));
|
|
231
|
+
z-index: var(--rv-z);
|
|
94
232
|
display: flex;
|
|
233
|
+
flex-direction: column;
|
|
95
234
|
align-items: center;
|
|
96
|
-
justify-content: space-between;
|
|
97
235
|
gap: 8px;
|
|
98
|
-
|
|
99
|
-
border-bottom: 1px solid var(--harness-border);
|
|
236
|
+
translate: -50% 0;
|
|
100
237
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
.
|
|
238
|
+
/* One quiet pill: 44px tall, 6px of air round 32px round controls, so the
|
|
239
|
+
inner radius (16) is the outer (22) less the air. Three groups set apart by
|
|
240
|
+
hairline rules, nothing filled: status, the threads, the way out. */
|
|
241
|
+
.rv-bar {
|
|
242
|
+
display: flex;
|
|
243
|
+
align-items: center;
|
|
244
|
+
height: 44px;
|
|
245
|
+
padding: 6px;
|
|
246
|
+
border-radius: 22px;
|
|
247
|
+
background: var(--harness-bg);
|
|
248
|
+
box-shadow: var(--rv-raised);
|
|
249
|
+
white-space: nowrap;
|
|
250
|
+
transition: opacity var(--dur-dialog) var(--ease-out), transform var(--dur-dialog) var(--ease-out);
|
|
251
|
+
}
|
|
252
|
+
@starting-style { .rv-bar { opacity: 0; transform: translateY(8px); } }
|
|
253
|
+
/* Pin or Page: a 32px track inside the bar's 6px of air (radius 16), its
|
|
254
|
+
halves 2px in from the track (radius 14). The chosen half is the bar's one fill. */
|
|
255
|
+
.rv-toggle { display: flex; flex: none; gap: 2px; height: 32px; padding: 2px; border-radius: 16px; background: var(--rv-fill); }
|
|
256
|
+
.rv-toggle button {
|
|
257
|
+
display: inline-flex;
|
|
258
|
+
align-items: center;
|
|
259
|
+
gap: 6px;
|
|
104
260
|
height: 28px;
|
|
105
|
-
padding: 0 12px;
|
|
261
|
+
padding: 0 12px 0 10px;
|
|
106
262
|
border: 0;
|
|
107
|
-
border-radius:
|
|
263
|
+
border-radius: 14px;
|
|
108
264
|
background: transparent;
|
|
265
|
+
color: var(--harness-fg-muted);
|
|
266
|
+
font-weight: 500;
|
|
109
267
|
cursor: pointer;
|
|
268
|
+
transition: background-color var(--dur-hover) var(--ease-hover), color var(--dur-hover) var(--ease-hover), scale var(--dur-press) var(--ease-press);
|
|
269
|
+
}
|
|
270
|
+
.rv-toggle button[aria-pressed="true"] { background: var(--rv-fill-open); color: var(--rv-fg-strong); }
|
|
271
|
+
.rv-toggle button:active { scale: 0.97; }
|
|
272
|
+
.rv-toggle button:focus-visible { box-shadow: var(--focus-ring); outline: none; }
|
|
273
|
+
@media (hover: hover) and (pointer: fine) { .rv-toggle button[aria-pressed="false"]:hover { color: var(--rv-fg-strong); } }
|
|
274
|
+
.rv-bar-rule { flex: none; width: 1px; height: 20px; margin: 0 4px; background: oklch(1 0 0 / 0.1); }
|
|
275
|
+
.rv-bar-group { display: flex; align-items: center; gap: 2px; }
|
|
276
|
+
.rv-bar .btn { border-radius: 16px; }
|
|
277
|
+
.rv-bar .btn:disabled { opacity: 0.35; }
|
|
278
|
+
.rv-stepper-count { min-width: 64px; padding: 0 2px; text-align: center; color: var(--rv-fg-strong); font-weight: 500; }
|
|
279
|
+
/* On a pointer, the card beside a pin needs no arrows of its own: the bar has them. */
|
|
280
|
+
.rv-card:not([data-sheet]) .rv-card-step { display: none; }
|
|
281
|
+
.rv-card-step { display: contents; }
|
|
282
|
+
.rv-alert {
|
|
283
|
+
display: flex;
|
|
284
|
+
align-items: center;
|
|
285
|
+
gap: 8px;
|
|
286
|
+
max-width: min(480px, calc(100vw - 32px));
|
|
287
|
+
padding: 4px 4px 4px 14px;
|
|
288
|
+
border-radius: 12px;
|
|
289
|
+
background: oklch(0.32 0.05 23);
|
|
290
|
+
box-shadow: var(--rv-raised);
|
|
291
|
+
color: oklch(0.92 0.04 23);
|
|
110
292
|
}
|
|
111
|
-
.rv-tabs [aria-selected="true"] { background: var(--rv-fill-hover); color: var(--rv-fg-strong); font-weight: 600; }
|
|
112
293
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
294
|
+
/* ---------- pins ---------- */
|
|
295
|
+
/* Open: solid and numbered. Resolved: smaller, pale, a check where the number
|
|
296
|
+
was. The open card's pin turns to its other face, so it reads as selected. */
|
|
297
|
+
.rv-pins { position: fixed; inset: 0; z-index: var(--rv-z-page); pointer-events: none; }
|
|
298
|
+
.rv-pin {
|
|
299
|
+
position: absolute;
|
|
300
|
+
top: -24px;
|
|
301
|
+
left: 0;
|
|
302
|
+
width: 24px;
|
|
303
|
+
height: 24px;
|
|
304
|
+
padding: 0;
|
|
118
305
|
border: 0;
|
|
119
|
-
|
|
120
|
-
|
|
306
|
+
background: none;
|
|
307
|
+
pointer-events: auto;
|
|
121
308
|
cursor: pointer;
|
|
122
309
|
}
|
|
123
|
-
|
|
124
|
-
|
|
310
|
+
/* 24px drawn, 44px to a finger. The button never scales, so its hit area holds still under a press. */
|
|
311
|
+
.rv-pin::before { content: ''; position: absolute; inset: -10px; }
|
|
312
|
+
.rv-pin[hidden] { display: none; }
|
|
313
|
+
.rv-pin:focus-visible { outline: none; }
|
|
314
|
+
.rv-pin-face {
|
|
315
|
+
display: grid;
|
|
316
|
+
place-items: center;
|
|
317
|
+
width: 100%;
|
|
318
|
+
height: 100%;
|
|
319
|
+
border: 2px solid oklch(1 0 0);
|
|
320
|
+
border-radius: 12px 12px 12px 3px;
|
|
321
|
+
background: var(--rv-pin);
|
|
322
|
+
box-shadow: 0 2px 8px oklch(0 0 0 / 0.35);
|
|
323
|
+
color: oklch(1 0 0);
|
|
324
|
+
font: 700 11px/1 var(--sys-font);
|
|
325
|
+
font-variant-numeric: tabular-nums;
|
|
326
|
+
transform-origin: bottom left;
|
|
327
|
+
transition: opacity var(--dur-menu) var(--ease-out), background-color var(--dur-hover) var(--ease-hover), color var(--dur-hover) var(--ease-hover), scale var(--dur-press) var(--ease-press);
|
|
125
328
|
}
|
|
329
|
+
@starting-style { .rv-pin-face { opacity: 0; } }
|
|
330
|
+
/* Near enough that a click opens it: it lifts from its tip. */
|
|
331
|
+
.rv-pin[data-near] .rv-pin-face { scale: 1.12; }
|
|
332
|
+
@media (hover: hover) and (pointer: fine) { .rv-pin:hover .rv-pin-face { scale: 1.12; } }
|
|
333
|
+
.rv-pin:active .rv-pin-face { scale: 0.94; }
|
|
334
|
+
.rv-pin:focus-visible .rv-pin-face { box-shadow: 0 2px 8px oklch(0 0 0 / 0.35), 0 0 0 2px oklch(1 0 0), 0 0 0 4px var(--rv-pin); }
|
|
335
|
+
.rv-pin[data-active] .rv-pin-face { background: oklch(1 0 0); color: var(--rv-pin); border-color: var(--rv-pin); }
|
|
336
|
+
.rv-pin[data-resolved] { width: 20px; height: 20px; top: -20px; }
|
|
337
|
+
.rv-pin[data-resolved] .rv-pin-face { border-color: oklch(1 0 0 / 0.9); background: oklch(0.88 0 0); color: oklch(0.42 0 0); box-shadow: 0 1px 4px oklch(0 0 0 / 0.25); }
|
|
338
|
+
.rv-pin[data-resolved][data-active] .rv-pin-face { background: var(--rv-pin); color: var(--rv-done); border-color: oklch(1 0 0); }
|
|
339
|
+
.rv-pin[data-new] { pointer-events: none; }
|
|
340
|
+
.rv-pin[data-new] .rv-pin-face { background: oklch(1 0 0); border-color: var(--rv-pin); }
|
|
126
341
|
|
|
127
|
-
|
|
128
|
-
.rv-
|
|
129
|
-
|
|
342
|
+
/* ---------- the card ---------- */
|
|
343
|
+
.rv-card {
|
|
344
|
+
position: fixed;
|
|
345
|
+
z-index: calc(var(--rv-z) - 1);
|
|
346
|
+
display: flex;
|
|
347
|
+
flex-direction: column;
|
|
348
|
+
width: 320px;
|
|
349
|
+
max-width: calc(100vw - 32px);
|
|
350
|
+
max-height: min(480px, calc(100dvh - 32px));
|
|
351
|
+
border-radius: 16px;
|
|
352
|
+
background: var(--harness-bg);
|
|
353
|
+
box-shadow: var(--rv-raised);
|
|
354
|
+
overflow: hidden;
|
|
355
|
+
transition: opacity var(--dur-menu) var(--ease-out), transform var(--dur-menu) var(--ease-out);
|
|
356
|
+
}
|
|
357
|
+
@starting-style { .rv-card { opacity: 0; transform: scale(0.97); } }
|
|
130
358
|
|
|
131
|
-
/*
|
|
132
|
-
.rv-
|
|
133
|
-
display:
|
|
359
|
+
/* The head: what the comment is on, then its one decision and the rest. 44px, no rule under it: the body's own air separates them. */
|
|
360
|
+
.rv-card-head {
|
|
361
|
+
display: flex;
|
|
362
|
+
flex: none;
|
|
134
363
|
align-items: center;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
padding: 0 12px;
|
|
139
|
-
border: 1px solid var(--harness-border);
|
|
140
|
-
border-radius: 8px;
|
|
141
|
-
background: var(--rv-fill);
|
|
142
|
-
color: var(--rv-fg-strong);
|
|
143
|
-
font-weight: 500;
|
|
144
|
-
cursor: pointer;
|
|
145
|
-
transition: background-color var(--dur-hover) var(--ease-hover), transform var(--dur-press) var(--ease-press);
|
|
364
|
+
gap: 4px;
|
|
365
|
+
min-height: 44px;
|
|
366
|
+
padding: 6px 6px 0 14px;
|
|
146
367
|
}
|
|
147
|
-
.rv-
|
|
148
|
-
.rv-
|
|
149
|
-
.rv-
|
|
150
|
-
.rv-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
368
|
+
.rv-card-head .rv-title + .rv-muted { margin-left: 6px; }
|
|
369
|
+
.rv-about { flex: 1; min-width: 0; margin-left: 4px; color: var(--harness-fg-muted); font-size: 12px; }
|
|
370
|
+
.rv-step { margin: 0 2px; font-size: 12px; }
|
|
371
|
+
.rv-no {
|
|
372
|
+
display: inline-grid;
|
|
373
|
+
flex: none;
|
|
374
|
+
place-items: center;
|
|
375
|
+
min-width: 20px;
|
|
376
|
+
height: 20px;
|
|
377
|
+
padding: 0 4px;
|
|
378
|
+
border-radius: 999px 999px 999px 3px;
|
|
379
|
+
background: var(--rv-accent);
|
|
380
|
+
color: var(--rv-on-accent);
|
|
381
|
+
font-size: 11px;
|
|
382
|
+
font-weight: 700;
|
|
383
|
+
font-variant-numeric: tabular-nums;
|
|
157
384
|
}
|
|
158
|
-
|
|
385
|
+
/* Resolve: the head's one labelled control, quiet until the pointer finds it; done, its check turns the layer's one hue. */
|
|
386
|
+
.rv .btn.rv-resolve { height: 28px; padding: 0 10px 0 8px; color: var(--harness-fg); background: var(--rv-fill); }
|
|
387
|
+
.rv .btn.rv-resolve .icon { color: var(--rv-done); }
|
|
388
|
+
.rv .btn.rv-resolve.is-done .icon { color: var(--harness-fg-muted); }
|
|
389
|
+
@media (hover: hover) and (pointer: fine) { .rv .btn.rv-resolve:hover { background: var(--rv-fill-hover); color: var(--rv-fg-strong); } }
|
|
390
|
+
|
|
391
|
+
.rv-card-body { display: flex; flex-direction: column; gap: 16px; padding: 12px 14px 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: oklch(1 0 0 / 0.2) transparent; }
|
|
392
|
+
.rv-card-foot { display: flex; flex: none; align-items: flex-end; gap: 6px; padding: 0 10px 10px; }
|
|
393
|
+
.rv-card-head + .rv-card-foot { padding-top: 10px; }
|
|
394
|
+
.rv-card-foot.rv-confirm { flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; padding: 12px 10px 10px 14px; border-top: 1px solid var(--harness-border); color: var(--rv-fg-strong); }
|
|
395
|
+
.rv-card-foot.rv-confirm > span { flex: 1 1 100%; margin-bottom: 4px; }
|
|
396
|
+
@starting-style { .rv-card-foot.rv-confirm { opacity: 0; } }
|
|
397
|
+
.rv-card-foot.rv-confirm { transition: opacity var(--dur-menu) var(--ease-out); }
|
|
398
|
+
|
|
399
|
+
/* Resolved: the badge becomes a check, a band names who closed it, the words step back. */
|
|
400
|
+
.rv-card[data-resolved] .rv-no { background: var(--rv-fill-open); color: var(--rv-done); }
|
|
401
|
+
.rv-band { display: flex; align-items: center; gap: 6px; margin: 8px 10px 0; padding: 8px 10px; border-radius: 10px; background: var(--rv-fill); color: var(--harness-fg-muted); transition: opacity var(--dur-dialog) var(--ease-out), translate var(--dur-dialog) var(--ease-out); }
|
|
402
|
+
@starting-style { .rv-band { opacity: 0; translate: 0 -4px; } }
|
|
403
|
+
.rv-band .icon { color: var(--rv-done); }
|
|
404
|
+
.rv-card[data-resolved] .rv-text { color: var(--harness-fg-muted); transition: color var(--dur-dialog) var(--ease-out); }
|
|
405
|
+
|
|
406
|
+
/* A message, and a new one arriving: it rises 4px into place. */
|
|
407
|
+
.rv-msg { display: flex; gap: 10px; transition: opacity var(--dur-dialog) var(--ease-out), translate var(--dur-dialog) var(--ease-out); }
|
|
408
|
+
@starting-style { .rv-msg { opacity: 0; translate: 0 4px; } }
|
|
409
|
+
.rv-msg-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
|
|
410
|
+
.rv-msg-head { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 20px; }
|
|
411
|
+
.rv-msg-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--rv-fg-strong); font-weight: 600; }
|
|
412
|
+
.rv-msg-head time { flex: none; font-size: 12px; }
|
|
413
|
+
.rv-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--harness-fg); }
|
|
414
|
+
.rv-avatar { display: inline-grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: oklch(0.42 0 0); color: var(--rv-fg-strong); font-size: 10px; font-weight: 600; letter-spacing: 0.02em; }
|
|
415
|
+
/* The edit control hangs in the header without making the row taller, and stays out of the way until the message is pointed at. */
|
|
416
|
+
.rv .btn.rv-edit { width: 28px; height: 28px; margin: -4px -6px -4px auto; }
|
|
159
417
|
@media (hover: hover) and (pointer: fine) {
|
|
160
|
-
.rv-
|
|
161
|
-
.rv-
|
|
418
|
+
.rv .btn.rv-edit { opacity: 0; transition: opacity var(--dur-hover) var(--ease-hover), background-color var(--dur-hover) var(--ease-hover); }
|
|
419
|
+
.rv-msg:is(:hover, :focus-within) .btn.rv-edit { opacity: 1; }
|
|
162
420
|
}
|
|
163
421
|
|
|
164
|
-
|
|
165
|
-
.rv
|
|
166
|
-
.rv textarea
|
|
167
|
-
.rv select {
|
|
422
|
+
/* Editing in place: the same words at the same size, on a quiet field that sits where the text was. */
|
|
423
|
+
.rv-edit-box { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0 -8px; }
|
|
424
|
+
.rv-edit-box textarea {
|
|
168
425
|
width: 100%;
|
|
169
|
-
|
|
426
|
+
min-height: 34px;
|
|
427
|
+
padding: 7px 8px;
|
|
428
|
+
border: 0;
|
|
170
429
|
border-radius: 8px;
|
|
171
|
-
background: oklch(0 0 0
|
|
430
|
+
background: oklch(0.225 0 0);
|
|
431
|
+
box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.35);
|
|
172
432
|
color: var(--rv-fg-strong);
|
|
433
|
+
line-height: 18px;
|
|
434
|
+
resize: none;
|
|
435
|
+
outline: none;
|
|
173
436
|
}
|
|
174
|
-
|
|
175
|
-
.rv
|
|
176
|
-
.rv
|
|
437
|
+
@media (pointer: coarse) { .rv-edit-box textarea { font-size: 16px; line-height: 20px; } }
|
|
438
|
+
.rv-edit-actions { display: flex; justify-content: flex-end; gap: 4px; }
|
|
439
|
+
.rv-edit-actions .btn { height: 28px; padding: 0 12px; border-radius: 8px; }
|
|
440
|
+
@starting-style { .rv-edit-box { opacity: 0; } }
|
|
441
|
+
.rv-edit-box { transition: opacity var(--dur-menu) var(--ease-out); }
|
|
177
442
|
|
|
178
|
-
.rv-
|
|
179
|
-
.rv-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
443
|
+
.rv-tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; }
|
|
444
|
+
.rv-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--rv-fill-open); color: var(--harness-fg); font-size: 11px; font-weight: 500; }
|
|
445
|
+
|
|
446
|
+
.rv-note { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
|
|
447
|
+
.rv-note strong { color: var(--rv-fg-strong); font-weight: 600; }
|
|
448
|
+
|
|
449
|
+
/* Text actions: 28px tall, the fill showing only under the pointer. */
|
|
450
|
+
.rv .btn.rv-act { height: 28px; padding: 0 8px; color: var(--harness-fg-muted); }
|
|
451
|
+
.rv .btn.rv-act-danger { color: var(--rv-danger); }
|
|
452
|
+
@media (hover: hover) and (pointer: fine) {
|
|
453
|
+
.rv .btn.rv-act:hover:not(:disabled) { color: var(--rv-fg-strong); }
|
|
454
|
+
.rv .btn.rv-act-danger:hover:not(:disabled) { color: var(--rv-danger); background: oklch(0.779 0.131 23.4 / 0.12); }
|
|
186
455
|
}
|
|
187
|
-
.rv-filter [aria-pressed="true"] { border-color: var(--harness-border); background: var(--rv-fill); color: var(--rv-fg-strong); }
|
|
188
456
|
|
|
189
|
-
/* ----------
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
.rv-
|
|
457
|
+
/* ---------- the text box ---------- */
|
|
458
|
+
/* A 36px pill with a 28px round send 4px in: radius 18 outside, 14 inside.
|
|
459
|
+
Send stays faint until there are words, then brightens and grows into place. */
|
|
460
|
+
.rv-field {
|
|
193
461
|
display: flex;
|
|
194
|
-
flex
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
462
|
+
flex: 1;
|
|
463
|
+
align-items: flex-end;
|
|
464
|
+
gap: 4px;
|
|
465
|
+
min-width: 0;
|
|
466
|
+
min-height: 36px;
|
|
467
|
+
padding: 4px 4px 4px 12px;
|
|
468
|
+
border-radius: 18px;
|
|
469
|
+
background: oklch(0.225 0 0);
|
|
470
|
+
box-shadow: inset 0 0 0 1px var(--harness-border);
|
|
471
|
+
transition: box-shadow var(--dur-hover) var(--ease-hover);
|
|
202
472
|
}
|
|
203
|
-
.rv-
|
|
204
|
-
.rv-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
473
|
+
.rv-field:focus-within { box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.3); }
|
|
474
|
+
.rv-field textarea {
|
|
475
|
+
flex: 1;
|
|
476
|
+
min-width: 0;
|
|
477
|
+
min-height: 28px;
|
|
478
|
+
padding: 5px 0;
|
|
479
|
+
border: 0;
|
|
480
|
+
background: transparent;
|
|
481
|
+
color: var(--rv-fg-strong);
|
|
482
|
+
line-height: 18px;
|
|
483
|
+
resize: none;
|
|
484
|
+
outline: none;
|
|
485
|
+
}
|
|
486
|
+
.rv-field textarea:focus-visible { box-shadow: none; }
|
|
487
|
+
.rv-field textarea::placeholder { color: var(--harness-fg-muted); }
|
|
488
|
+
@media (pointer: coarse) { .rv-field textarea { font-size: 16px; line-height: 20px; padding-block: 4px; } }
|
|
489
|
+
.rv-send {
|
|
490
|
+
position: relative;
|
|
491
|
+
display: grid;
|
|
492
|
+
flex: none;
|
|
210
493
|
place-items: center;
|
|
211
|
-
|
|
212
|
-
height:
|
|
213
|
-
padding: 0
|
|
214
|
-
border
|
|
494
|
+
width: 28px;
|
|
495
|
+
height: 28px;
|
|
496
|
+
padding: 0;
|
|
497
|
+
border: 0;
|
|
498
|
+
border-radius: 14px;
|
|
215
499
|
background: var(--rv-accent);
|
|
216
500
|
color: var(--rv-on-accent);
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
font-variant-numeric: tabular-nums;
|
|
501
|
+
cursor: pointer;
|
|
502
|
+
transition: background-color var(--dur-hover) var(--ease-hover), color var(--dur-hover) var(--ease-hover), opacity var(--dur-hover) var(--ease-out), scale var(--dur-press) var(--ease-press);
|
|
220
503
|
}
|
|
221
|
-
.rv-
|
|
222
|
-
.rv-
|
|
223
|
-
.rv-
|
|
224
|
-
.rv-
|
|
225
|
-
.rv-
|
|
226
|
-
|
|
227
|
-
.rv-hint { margin-left: auto; font-size: 12px; }
|
|
228
|
-
.rv-composer { display: flex; flex-direction: column; gap: 8px; }
|
|
504
|
+
.rv-send::before { content: ''; position: absolute; inset: -8px; border-radius: inherit; }
|
|
505
|
+
.rv-send .icon { rotate: -90deg; }
|
|
506
|
+
.rv-send:disabled { background: transparent; color: var(--harness-fg-muted); opacity: 0.6; scale: 0.86; cursor: default; }
|
|
507
|
+
.rv-send:active:not(:disabled) { scale: 0.92; }
|
|
508
|
+
.rv-field[aria-busy="true"] .rv-send { opacity: 0.6; }
|
|
509
|
+
@media (hover: hover) and (pointer: fine) { .rv-send:not(:disabled):hover { background: oklch(1 0 0); } }
|
|
229
510
|
|
|
230
511
|
/* ---------- people ---------- */
|
|
231
|
-
.rv-
|
|
232
|
-
.rv-
|
|
233
|
-
.rv-
|
|
512
|
+
.rv-card .rv-body { display: flex; flex-direction: column; gap: 12px; padding: 14px; overflow-y: auto; overscroll-behavior: contain; }
|
|
513
|
+
.rv-card .rv-body > * { flex-shrink: 0; }
|
|
514
|
+
.rv-invite { display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--harness-border); }
|
|
515
|
+
.rv-invite > .btn { margin-top: 4px; }
|
|
516
|
+
.rv-share { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; background: var(--rv-fill); }
|
|
234
517
|
.rv-share-row { display: flex; gap: 6px; }
|
|
235
|
-
.rv-
|
|
236
|
-
|
|
237
|
-
.rv
|
|
238
|
-
.rv-people
|
|
518
|
+
.rv-share-row .input { flex: 1; min-width: 0; }
|
|
519
|
+
/* Copy and Copied are one width, so the row holds still when the word changes. */
|
|
520
|
+
.rv .btn.rv-copy { flex: none; width: 68px; padding: 0; }
|
|
521
|
+
.rv-people { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
|
|
522
|
+
.rv-people li { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--harness-border); }
|
|
523
|
+
.rv-people li:last-child { border-bottom: 0; }
|
|
524
|
+
.rv-person { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
|
|
525
|
+
.rv-person strong { color: var(--rv-fg-strong); font-weight: 600; }
|
|
239
526
|
.rv-people [data-revoked] { opacity: 0.55; }
|
|
527
|
+
.rv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
528
|
+
.rv-acts { gap: 0; margin: 0 -8px -4px; }
|
|
529
|
+
.rv-acts .rv-confirm { flex: 1; min-width: 0; padding: 0 8px; }
|
|
240
530
|
|
|
241
|
-
/* ----------
|
|
242
|
-
|
|
243
|
-
.
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}
|
|
262
|
-
.rv-
|
|
263
|
-
.rv-
|
|
531
|
+
/* ---------- a phone ---------- */
|
|
532
|
+
/* The card becomes a bottom sheet: docked to the edge, a grab handle on top,
|
|
533
|
+
dragged down by its head to dismiss (sheet.ts), lifted over the iOS
|
|
534
|
+
keyboard by --rv-kb. The bar docks to the edge as a toolbar and stands in
|
|
535
|
+
for the button, which steps aside while comment mode is on. */
|
|
536
|
+
.rv-grab { display: none; }
|
|
537
|
+
@media (max-width: 560px) {
|
|
538
|
+
.rv-card[data-sheet] {
|
|
539
|
+
left: 0;
|
|
540
|
+
right: 0;
|
|
541
|
+
bottom: var(--rv-kb, 0px);
|
|
542
|
+
width: auto;
|
|
543
|
+
max-width: none;
|
|
544
|
+
max-height: min(85dvh, calc(var(--rv-vh, 100dvh) - 48px));
|
|
545
|
+
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
546
|
+
border-radius: 16px 16px 0 0;
|
|
547
|
+
transform-origin: bottom center;
|
|
548
|
+
transition: transform var(--dur-sheet, 320ms) var(--ease-drawer), opacity var(--dur-menu) var(--ease-out);
|
|
549
|
+
}
|
|
550
|
+
@starting-style { .rv-card[data-sheet] { opacity: 1; transform: translateY(100%); } }
|
|
551
|
+
.rv-card[data-sheet][data-dragging] { transition: none; }
|
|
552
|
+
.rv-card[data-sheet][data-leaving] { transition: transform 200ms var(--ease-out); }
|
|
553
|
+
.rv-card[data-sheet] .rv-card-head { touch-action: none; min-height: 44px; padding-top: 4px; }
|
|
554
|
+
/* The pin shows above the sheet; the head keeps its room for the controls. */
|
|
555
|
+
.rv-card[data-sheet] .rv-about { visibility: hidden; }
|
|
556
|
+
.rv-grab { display: block; flex: none; width: 36px; height: 4px; margin: 8px auto 0; border-radius: 999px; background: oklch(1 0 0 / 0.25); touch-action: none; }
|
|
557
|
+
.rv-card[data-sheet] .rv-card-body { padding-inline: 16px; }
|
|
558
|
+
.rv-card[data-sheet] .rv-card-foot { padding: 0 12px 12px; }
|
|
559
|
+
.rv-card[data-sheet] .rv-field { min-height: 44px; border-radius: 22px; padding: 6px 6px 6px 14px; }
|
|
560
|
+
.rv-card[data-sheet] .rv-send { width: 32px; height: 32px; border-radius: 16px; }
|
|
561
|
+
.rv-card[data-sheet] .rv-card-foot > .btn { height: 40px; }
|
|
264
562
|
|
|
265
|
-
.rv
|
|
266
|
-
.rv-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}
|
|
276
|
-
.rv-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
display: flex;
|
|
282
|
-
align-items: center;
|
|
283
|
-
gap: 12px;
|
|
284
|
-
padding: 6px 6px 6px 16px;
|
|
285
|
-
transform: translateX(-50%);
|
|
286
|
-
border: 1px solid var(--harness-border);
|
|
287
|
-
border-radius: 999px;
|
|
288
|
-
background: var(--harness-bg);
|
|
289
|
-
box-shadow: var(--harness-shadow);
|
|
290
|
-
white-space: nowrap;
|
|
563
|
+
.rv:has(.rv-card) .rv-bar-stack { display: none; }
|
|
564
|
+
.rv-bar-stack { left: 0; right: 0; bottom: 0; translate: none; align-items: stretch; gap: 0; }
|
|
565
|
+
.rv-bar {
|
|
566
|
+
height: auto;
|
|
567
|
+
padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
|
|
568
|
+
border-radius: 20px 20px 0 0;
|
|
569
|
+
}
|
|
570
|
+
@starting-style { .rv-bar { opacity: 1; transform: translateY(100%); } }
|
|
571
|
+
.rv-bar { transition: transform var(--dur-sheet, 320ms) var(--ease-drawer), opacity var(--dur-dialog) var(--ease-out); }
|
|
572
|
+
.rv-toggle { height: 40px; border-radius: 20px; margin-right: auto; }
|
|
573
|
+
.rv-bar-rule { display: none; }
|
|
574
|
+
.rv-toggle button { height: 36px; border-radius: 18px; }
|
|
575
|
+
.rv-bar .btn { width: 40px; height: 40px; border-radius: 20px; }
|
|
576
|
+
.rv-stepper-count { min-width: 52px; }
|
|
577
|
+
.rv-alert { margin: 0 12px 8px; max-width: none; }
|
|
578
|
+
.rv-launch[aria-pressed="true"] { opacity: 0; visibility: hidden; scale: 0.9; transition: opacity var(--dur-dialog-out, 150ms) var(--ease-out), scale var(--dur-dialog-out, 150ms) var(--ease-out), visibility 0s linear var(--dur-dialog-out, 150ms); }
|
|
291
579
|
}
|
|
292
580
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
.rv-
|
|
581
|
+
/* The narrowest phones: the toggle keeps its icons, its words go to the screen reader. */
|
|
582
|
+
@media (max-width: 400px) {
|
|
583
|
+
.rv-toggle button { width: 44px; padding: 0; justify-content: center; }
|
|
584
|
+
.rv-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
585
|
+
.rv-stepper-count { min-width: 44px; }
|
|
296
586
|
}
|
|
587
|
+
|
|
588
|
+
/* ---------- reduced motion: the fades stay, the travel goes ---------- */
|
|
589
|
+
:root[data-motion="reduce"] :is(.rv-launch, .rv-tab, .rv-card, .rv-card[data-sheet], .rv-bar) { transition-property: opacity, background-color, color, visibility; }
|
|
590
|
+
:root[data-motion="reduce"] :is(.rv-launch, .rv-tab, .rv-send, .rv-toggle button):active,
|
|
591
|
+
:root[data-motion="reduce"] .rv-pin:is(:active, [data-near], :hover) .rv-pin-face { scale: none; }
|
|
592
|
+
:root[data-motion="reduce"] :is(.rv-launch[data-away], .rv-tab[data-away]) { transform: none; }
|
|
593
|
+
@starting-style { :root[data-motion="reduce"] :is(.rv-card, .rv-card[data-sheet], .rv-bar) { transform: none; opacity: 0; } }
|
|
594
|
+
@starting-style { :root[data-motion="reduce"] :is(.rv-msg, .rv-band) { translate: none; } }
|
|
595
|
+
:root[data-motion="reduce"] :is(.rv-send, .rv-send:disabled, .rv-send:active) { scale: none; }
|