@blueshed/joined 0.3.0 → 0.3.2

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.
Files changed (109) hide show
  1. package/.claude/skills/joined/reference.md +57 -18
  2. package/docs/design.md +93 -38
  3. package/docs/introduction.md +9 -9
  4. package/docs/light-and-shadow.svg +1 -0
  5. package/docs/links-and-trust.svg +1 -0
  6. package/docs/stories-to-code.svg +2 -1
  7. package/docs/wire-op.svg +1 -0
  8. package/examples/app.css +9 -0
  9. package/examples/cafe/cafe.css +87 -69
  10. package/examples/cafe/generated/staff.elements.ts +7 -2
  11. package/examples/cafe/generated/staff.rules.ts +3 -0
  12. package/examples/cafe/generated/supplies.rules.ts +5 -0
  13. package/examples/cafe/kitchen.css +11 -19
  14. package/examples/cafe/kitchen.ts +6 -2
  15. package/examples/cafe/migrations/002-guard-supplies.ts +15 -0
  16. package/examples/cafe/order.html +2 -1
  17. package/examples/cafe/order.ts +1 -1
  18. package/examples/cafe/staff.json +5 -0
  19. package/examples/cafe/stories.jsonl +4 -2
  20. package/examples/cafe/supplies.html +1 -0
  21. package/examples/cafe/supplies.ts +45 -28
  22. package/examples/cafe/till.ts +14 -10
  23. package/examples/cafe/views.ts +7 -5
  24. package/examples/chart/arches.ts +5 -3
  25. package/examples/chart/chart.css +7 -2
  26. package/examples/desk/desk.css +6 -10
  27. package/examples/desk/generated/elements.ts +1 -1
  28. package/examples/desk/index.html +1 -1
  29. package/examples/desk/lanes.css +21 -19
  30. package/examples/desk/stories.jsonl +1 -1
  31. package/examples/desk/tally.css +1 -1
  32. package/examples/docs.ts +7 -4
  33. package/examples/index.html +16 -7
  34. package/examples/notes/generated/queries.ts +8 -2
  35. package/examples/notes/index.html +1 -1
  36. package/examples/notes/stories.jsonl +3 -0
  37. package/examples/page.ts +9 -2
  38. package/examples/people/links.ts +7 -9
  39. package/examples/people/people.css +1 -1
  40. package/examples/people/view.ts +1 -1
  41. package/examples/trip/generated/elements.ts +1 -1
  42. package/examples/trip/stays.css +1 -1
  43. package/examples/trip/stays.ts +1 -1
  44. package/examples/trips/generated/elements.ts +1 -1
  45. package/examples/trips/trips.css +24 -23
  46. package/examples/welcome.css +41 -33
  47. package/package.json +1 -1
  48. package/src/attachment.ts +17 -2
  49. package/src/board.css +2 -1
  50. package/src/board.ts +4 -4
  51. package/src/cli.ts +14 -2
  52. package/src/compile.ts +255 -77
  53. package/src/definitions.ts +62 -14
  54. package/src/demo.css +2 -5
  55. package/src/draft.ts +10 -4
  56. package/src/drawer.ts +30 -4
  57. package/src/engine.ts +14 -5
  58. package/src/fields.ts +88 -15
  59. package/src/file-value.ts +12 -2
  60. package/src/files.ts +113 -35
  61. package/src/icon-names.ts +4 -0
  62. package/src/keep.ts +16 -3
  63. package/src/map.css +23 -16
  64. package/src/map.ts +3 -3
  65. package/src/mcp.ts +24 -3
  66. package/src/members/group.ts +41 -17
  67. package/src/members/keys.ts +3 -3
  68. package/src/members/panel.css +17 -18
  69. package/src/members/panel.ts +9 -2
  70. package/src/migrate.ts +58 -21
  71. package/src/migrations/005-change-kept.ts +7 -0
  72. package/src/month.css +6 -2
  73. package/src/month.ts +5 -5
  74. package/src/ops.ts +40 -1
  75. package/src/page.css +3 -2
  76. package/src/page.ts +64 -16
  77. package/src/parts.css +178 -86
  78. package/src/parts.ts +60 -20
  79. package/src/plane.css +9 -4
  80. package/src/plane.ts +4 -2
  81. package/src/reading.css +1 -5
  82. package/src/rows.css +2 -21
  83. package/src/rows.ts +123 -39
  84. package/src/server.ts +157 -30
  85. package/src/sheet.ts +4 -2
  86. package/src/slots.css +0 -4
  87. package/src/specs.ts +1 -1
  88. package/src/starter.ts +15 -1
  89. package/src/store.ts +40 -18
  90. package/src/surface.ts +7 -2
  91. package/src/time.ts +2 -0
  92. package/src/timeline.ts +14 -5
  93. package/src/together.ts +15 -17
  94. package/src/tokens.css +12 -3
  95. package/src/tokens.json +38 -7
  96. package/src/tool.ts +6 -7
  97. package/src/upkeep.ts +31 -4
  98. package/src/views.css +8 -9
  99. package/src/views.ts +23 -6
  100. package/src/week.css +1 -2
  101. package/src/week.ts +11 -7
  102. package/src/write.ts +130 -15
  103. package/starter/CHANGELOG.md +8 -0
  104. package/starter/CLAUDE.md +7 -1
  105. package/starter/bunfig +2 -1
  106. package/starter/githooks/pre-commit +13 -0
  107. package/starter/prettierignore +1 -0
  108. package/starter/tests/records.test.ts +40 -0
  109. package/starter/todo.jsonl +0 -0
package/src/parts.css CHANGED
@@ -4,7 +4,7 @@
4
4
  sits, or what it alone has). A layer, joined, beneath any rule of an app's, which wins whatever its
5
5
  specificity. Its colours and its motion are src/tokens.css's.
6
6
 
7
- .act a button with words, its icon before them: 13px, 32px tall (44px under a finger)
7
+ .act a button with words, its icon before them: a field's 16px (600 for .ink), 32px tall (44px under a finger)
8
8
  .ink the one that makes or keeps (Add, Save)
9
9
  .danger the one that takes away: its words red; in a modal, the answer, filled
10
10
  .quiet a way out, its words alone (Sign out)
@@ -24,7 +24,7 @@
24
24
  (or a phone zooms in); a textarea the same, taller. A field drawn otherwise (a name changed
25
25
  in place) says so in its own sheet: these weigh nothing, so any rule there wins.
26
26
  a label over its field: 13px, 600, in plain case
27
- .drawer where a thing is changed: docked at the right, 320px, sliding in from it (src/surface.ts).
27
+ .drawer where a thing is changed: docked at the right, 360px, sliding in from it (src/surface.ts).
28
28
  Its head the thing's name (h2, 17px) and its ×; its deeds at its foot, removing first.
29
29
  .sheet a popover that holds a list (the group, People): its head a title and its ×.
30
30
  wa-drawer on a phone, a drawer and a sheet are Web Awesome's, risen from the foot: rounded at the top,
@@ -39,23 +39,32 @@
39
39
  @layer reset, joined;
40
40
 
41
41
  @layer joined {
42
+ /* hidden always hides: whatever display a part's or an app's own rules give it (a tab, a reading, a bar). An
43
+ important declaration in this layer outweighs any an app makes, so no rule of its can undo it (docs/design.md,
44
+ How the look is built). Adopted in the page and in every display's shadow */
45
+ [hidden] {
46
+ display: none !important;
47
+ }
42
48
  .act {
43
49
  box-sizing: border-box;
44
- min-height: 32px;
50
+ min-height: var(--size-touch);
45
51
  display: inline-flex;
46
52
  align-items: center;
47
53
  justify-content: center;
48
- gap: 6px;
49
- padding: 0 12px;
54
+ gap: var(--space-6);
55
+ padding: 0 var(--space-12);
50
56
  border: 1px solid var(--ink);
51
- border-radius: 4px;
57
+ border-radius: var(--radius);
52
58
  background: var(--card);
53
59
  color: var(--ink);
54
60
  font: var(--font-tool);
55
61
  white-space: nowrap;
56
62
  cursor: pointer;
57
63
  }
64
+ /* the deed that makes or keeps: heavier than the rest, never lighter than a field (Apple's HIG: the main action is
65
+ the bolder) */
58
66
  .act.ink {
67
+ font-weight: 600;
59
68
  border-color: var(--add);
60
69
  background: var(--add);
61
70
  color: var(--add-ink);
@@ -77,23 +86,32 @@
77
86
  background: var(--accent);
78
87
  color: var(--card);
79
88
  }
89
+ /* a refusal said in a form's note (a Draft's, refused: src/draft.ts) is danger, wherever the note is (design.md, Colour) */
90
+ .j-refused {
91
+ color: var(--danger);
92
+ }
93
+ /* focus, from the keyboard, is accent on whatever takes it: an app's own buttons and links too (design.md, Colour) */
94
+ :where(button, a[href], summary, [tabindex]):focus-visible {
95
+ outline: var(--size-ring) solid var(--accent);
96
+ outline-offset: var(--size-ring);
97
+ }
80
98
  .act.quiet {
81
99
  border-color: transparent;
82
100
  background: none;
83
- padding: 0 4px;
101
+ padding: 0 var(--space-4);
84
102
  color: var(--muted);
85
103
  }
86
104
  .icon-only {
87
105
  box-sizing: border-box;
88
- width: 32px;
89
- height: 32px;
106
+ width: var(--size-touch);
107
+ height: var(--size-touch);
90
108
  display: inline-flex;
91
109
  align-items: center;
92
110
  justify-content: center;
93
111
  flex: none;
94
112
  padding: 0;
95
113
  border: 0;
96
- border-radius: 4px;
114
+ border-radius: var(--radius);
97
115
  background: none;
98
116
  color: var(--muted);
99
117
  cursor: pointer;
@@ -120,19 +138,21 @@
120
138
  margin: 0;
121
139
  }
122
140
  /* one not offered isn't there: hidden wins over a tool's own display */
123
- :is(.act, .icon-only)[hidden] {
124
- display: none;
125
- }
126
- :is(.act, .icon-only):disabled {
127
- opacity: 0.45;
141
+ /* one that can't be pressed yet is quiet, whatever it is (Save before there's anything to keep, a flavour's, a
142
+ danger's): its edge and its words muted, no ground; never a grey slab */
143
+ :is(.act, .icon-only):disabled,
144
+ :is(.act, .icon-only):disabled:hover {
145
+ border-color: var(--line);
146
+ background: none;
147
+ color: var(--muted);
128
148
  cursor: default;
129
149
  }
130
- /* a lesser tool among words, its words small: a way to what links here, to another week */
150
+ /* a lesser tool among words, its edge quieter and its padding less: a way to what links here, to another week. Its
151
+ words are a tool's, as every control's are */
131
152
  .act.small {
132
- min-height: 24px;
133
- padding: 0 8px;
153
+ min-height: var(--size-touch);
154
+ padding: 0 var(--space-8);
134
155
  border-color: var(--control-edge);
135
- font: var(--font-small);
136
156
  }
137
157
  .act.small:hover {
138
158
  background: var(--card-hover);
@@ -149,26 +169,32 @@
149
169
  }
150
170
  .j-choices > button {
151
171
  box-sizing: border-box;
152
- min-height: 32px;
172
+ min-height: var(--size-touch);
153
173
  display: flex;
154
174
  align-items: center;
155
- gap: 6px;
156
- padding: 4px 8px;
175
+ gap: var(--space-6);
176
+ padding: var(--space-4) var(--space-8);
157
177
  border: 0;
158
- border-radius: 3px;
178
+ border-radius: var(--radius-inner);
159
179
  background: none;
160
180
  color: var(--ink);
161
181
  font: var(--font-row);
162
182
  text-align: left;
163
183
  cursor: pointer;
164
184
  }
165
- .j-choices > button:is(:hover, :focus-visible) {
185
+ .j-choices > button:is(:hover, :focus-visible, [aria-selected="true"]) {
166
186
  background: color-mix(in srgb, var(--ink) 6%, transparent);
167
187
  }
188
+ /* a typeahead's active match, what Enter chooses: ringed as a focused button is, inside its row (the focus itself
189
+ stays in the field) */
190
+ .j-choices > button[aria-selected="true"] {
191
+ outline: var(--size-ring) solid var(--accent);
192
+ outline-offset: calc(-1 * var(--size-ring));
193
+ }
168
194
  .j-choices > button.danger {
169
- margin-top: 4px;
195
+ margin-top: var(--space-4);
170
196
  border-top: 1px solid var(--line);
171
- border-radius: 0 0 3px 3px;
197
+ border-radius: 0 0 var(--radius-inner) var(--radius-inner);
172
198
  color: var(--danger);
173
199
  }
174
200
 
@@ -182,8 +208,8 @@
182
208
  place-items: center;
183
209
  width: 22px;
184
210
  height: 22px;
185
- border: 2px solid var(--hue);
186
- border-radius: 50%;
211
+ border: var(--size-ring) solid var(--hue);
212
+ border-radius: var(--radius-dot);
187
213
  background: color-mix(in srgb, var(--hue) var(--tint-strong), var(--card));
188
214
  color: var(--ink);
189
215
  font: var(--font-tiny);
@@ -194,8 +220,8 @@
194
220
  content: attr(data-initial);
195
221
  }
196
222
  .j-face:not([data-initial]) {
197
- width: 7px;
198
- height: 7px;
223
+ width: var(--size-dot);
224
+ height: var(--size-dot);
199
225
  border: 0;
200
226
  background: var(--hue);
201
227
  }
@@ -203,17 +229,17 @@
203
229
  display: flex;
204
230
  flex-wrap: wrap;
205
231
  align-items: center;
206
- gap: 6px;
232
+ gap: var(--space-6);
207
233
  }
208
234
  :is(.j-chip, .j-chips > button) {
209
235
  box-sizing: border-box;
210
236
  display: inline-flex;
211
237
  align-items: center;
212
- gap: 6px;
213
- min-height: 32px;
214
- padding: 0 10px 0 4px;
238
+ gap: var(--space-6);
239
+ min-height: var(--size-touch);
240
+ padding: 0 var(--space-10) 0 var(--space-4);
215
241
  border: 1px solid var(--control-edge);
216
- border-radius: 4px;
242
+ border-radius: var(--radius);
217
243
  background: var(--card);
218
244
  color: var(--muted);
219
245
  font: var(--font-tool);
@@ -225,11 +251,11 @@
225
251
  .j-chip > .icon-only {
226
252
  width: 24px;
227
253
  height: 24px;
228
- margin-right: -6px;
254
+ margin-right: calc(-1 * var(--space-6));
229
255
  }
230
256
  :is(.j-chip, .j-chips > button[aria-pressed="true"]) {
231
257
  border-color: transparent;
232
- border-left: 3px solid var(--hue);
258
+ border-left: var(--size-stripe) solid var(--hue);
233
259
  background: color-mix(in srgb, var(--hue) var(--tint), var(--card));
234
260
  color: var(--ink);
235
261
  }
@@ -239,15 +265,69 @@
239
265
 
240
266
  :where(input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"]), select, textarea) {
241
267
  box-sizing: border-box;
242
- min-height: 32px;
268
+ min-height: var(--size-touch);
243
269
  min-width: 0;
244
- padding: 0 10px;
270
+ padding: 0 var(--space-10);
245
271
  border: 1px solid var(--control-edge);
246
- border-radius: 4px;
272
+ border-radius: var(--radius);
247
273
  background: var(--card);
248
274
  color: var(--ink);
249
275
  font: var(--font-field);
250
276
  }
277
+ /* a select's chevron is joined's (--choose), set in from its edge as its words are, with room between them: a
278
+ browser's own sits at the edge (Chrome's), or is two (Safari's). The whole field is what's tapped, the chevron
279
+ only says it opens */
280
+ :where(select) {
281
+ appearance: none;
282
+ padding-inline-end: calc(var(--space-10) * 2 + var(--space-16));
283
+ background: var(--card) var(--choose) no-repeat right var(--space-10) center / var(--space-16);
284
+ }
285
+ /* a disclosure (<details>): its summary says it opens by the same chevron, turned to point at it while closed,
286
+ down once open; never the browser's triangle */
287
+ :where(summary) {
288
+ display: flex;
289
+ align-items: center;
290
+ gap: var(--space-4);
291
+ min-height: var(--size-touch);
292
+ font: var(--font-tool);
293
+ list-style: none;
294
+ cursor: pointer;
295
+ }
296
+ :where(summary)::-webkit-details-marker {
297
+ display: none;
298
+ }
299
+ :where(summary)::before {
300
+ content: "";
301
+ flex: none;
302
+ width: var(--space-16);
303
+ height: var(--space-16);
304
+ background: var(--choose) no-repeat center / contain;
305
+ transform: rotate(-90deg);
306
+ }
307
+ :where(details[open]) > :where(summary)::before {
308
+ transform: none;
309
+ }
310
+ /* a file's field: its button a tool's, as an .act is drawn (design.md, Surfaces); "no file chosen" in muted */
311
+ :where(input[type="file"]) {
312
+ min-height: auto;
313
+ padding: 0;
314
+ border: 0;
315
+ background: none;
316
+ color: var(--muted);
317
+ font: var(--font-small);
318
+ }
319
+ :where(input[type="file"])::file-selector-button {
320
+ box-sizing: border-box;
321
+ min-height: var(--size-touch);
322
+ margin-right: var(--space-8);
323
+ padding: 0 var(--space-12);
324
+ border: 1px solid var(--ink);
325
+ border-radius: var(--radius);
326
+ background: var(--card);
327
+ color: var(--ink);
328
+ font: var(--font-tool);
329
+ cursor: pointer;
330
+ }
251
331
  /* a field said, not asked (a value once it's there, joined/kit's readonly): its words, with no box to type in */
252
332
  :where(input:read-only:not([type="checkbox"], [type="radio"], [type="hidden"])) {
253
333
  padding-inline: 0;
@@ -256,12 +336,17 @@
256
336
  }
257
337
  :where(textarea) {
258
338
  min-height: 4.5rem;
259
- padding: 8px 10px;
339
+ padding: var(--space-8) var(--space-10);
260
340
  resize: vertical;
261
341
  }
342
+ /* a field's hint (<j-field hint="…">): a line under its words, muted, as Web Awesome's own hint is */
343
+ .j-hint {
344
+ color: var(--muted);
345
+ font: var(--font-small);
346
+ }
262
347
  :where(form, wa-dialog) label {
263
348
  display: grid;
264
- gap: 4px;
349
+ gap: var(--space-4);
265
350
  font: var(--font-label);
266
351
  }
267
352
  /* a request's refusal, said beside what sent it (Said): its why in danger; nothing while there's none */
@@ -280,10 +365,7 @@
280
365
  display: flex;
281
366
  flex-wrap: wrap;
282
367
  align-items: center;
283
- gap: 8px;
284
- }
285
- .j-file > [hidden] {
286
- display: none;
368
+ gap: var(--space-8);
287
369
  }
288
370
  .j-file > a.act {
289
371
  text-decoration: none;
@@ -299,13 +381,13 @@
299
381
  max-height: 240px;
300
382
  object-fit: cover;
301
383
  border: 1px solid var(--edge);
302
- border-radius: 4px;
384
+ border-radius: var(--radius);
303
385
  }
304
386
  .j-file label {
305
387
  position: relative;
306
388
  }
307
389
  .j-file label:focus-within {
308
- outline: 2px solid var(--accent);
390
+ outline: var(--size-ring) solid var(--accent);
309
391
  }
310
392
  .j-file input[type="file"] {
311
393
  position: absolute;
@@ -319,7 +401,7 @@
319
401
  :where(.drawer, .sheet) {
320
402
  box-sizing: border-box;
321
403
  border: 1px solid var(--edge);
322
- border-radius: 4px;
404
+ border-radius: var(--radius);
323
405
  background: var(--card);
324
406
  color: var(--ink);
325
407
  font: var(--font-row);
@@ -332,7 +414,7 @@
332
414
  :where(.drawer, .sheet) header {
333
415
  display: flex;
334
416
  align-items: center;
335
- gap: 8px;
417
+ gap: var(--space-8);
336
418
  }
337
419
  /* its head and its foot always show, what it is and what you may do: only what's between them scrolls (each to its
338
420
  surface's edge, over what scrolls under it, a band of its card between; held past its padding, which a held thing
@@ -352,12 +434,13 @@
352
434
  bottom: calc(-1 * var(--pad-end, var(--pad)));
353
435
  z-index: 1;
354
436
  margin: 0 calc(-1 * var(--pad)) calc(-1 * var(--pad-end, var(--pad)));
355
- padding: var(--space-8) var(--pad) var(--pad-end, var(--pad));
437
+ /* its deeds stand apart from the last field, more than the fields from each other: never glued to a row */
438
+ padding: var(--space-16) var(--pad) var(--pad-end, var(--pad));
356
439
  background: var(--card);
357
440
  display: flex;
358
441
  flex-wrap: wrap;
359
442
  justify-content: flex-end;
360
- gap: 8px;
443
+ gap: var(--space-8);
361
444
  }
362
445
  /* removing stands apart, first at the foot */
363
446
  :where(.drawer, .sheet) footer > .danger:first-child {
@@ -367,9 +450,9 @@
367
450
  position: fixed;
368
451
  inset: 0 0 0 auto;
369
452
  z-index: 15;
370
- width: min(320px, 100vw);
453
+ width: min(var(--size-panel), 100vw);
371
454
  overflow: auto;
372
- --pad: 14px;
455
+ --pad: var(--space-14);
373
456
  padding: var(--pad);
374
457
  border-width: 0 0 0 1px;
375
458
  border-radius: 0;
@@ -379,13 +462,13 @@
379
462
  :where(.drawer, .sheet) form {
380
463
  display: grid;
381
464
  grid-template-columns: minmax(0, 1fr);
382
- gap: 12px;
465
+ gap: var(--space-12);
383
466
  }
384
467
  .sheet {
385
- width: min(22rem, calc(100vw - 2rem));
386
- max-height: calc(100dvh - 2rem);
468
+ width: min(var(--size-sheet), calc(100vw - 2 * var(--space-16)));
469
+ max-height: calc(100dvh - 2 * var(--space-16));
387
470
  overflow: auto;
388
- --pad: 12px;
471
+ --pad: var(--space-12);
389
472
  padding: var(--pad);
390
473
  /* its one column no wider than it: a field (your name, changed in place) would stretch it past its edge */
391
474
  grid-template-columns: minmax(0, 1fr);
@@ -394,7 +477,7 @@
394
477
  }
395
478
  .sheet:popover-open {
396
479
  display: grid;
397
- gap: 10px;
480
+ gap: var(--space-10);
398
481
  }
399
482
  /* on a phone, a sheet an app pops itself (joined's own are Web Awesome's there, by Surface) rises from the foot:
400
483
  the screen's width, rounded at the top */
@@ -459,7 +542,7 @@
459
542
  bottom: calc(-1 * var(--spacing));
460
543
  z-index: 1;
461
544
  margin: 0 calc(-1 * var(--spacing)) calc(-1 * var(--spacing));
462
- padding: var(--space-8) var(--spacing) var(--spacing);
545
+ padding: var(--space-16) var(--spacing) var(--spacing);
463
546
  background: var(--card);
464
547
  }
465
548
  wa-drawer > .j-sheet-body > footer:last-child {
@@ -473,7 +556,7 @@
473
556
  padding-block-end: var(--space-8);
474
557
  }
475
558
  :where(wa-drawer, wa-dialog)::part(footer) {
476
- padding-block-start: var(--space-8);
559
+ padding-block-start: var(--space-16);
477
560
  }
478
561
  :where(wa-drawer, wa-dialog) h2 {
479
562
  flex: 1;
@@ -484,7 +567,7 @@
484
567
  wa-dialog:not(:has(> :not([slot])))::part(body) {
485
568
  display: none;
486
569
  }
487
- /* asked first (askFirst, the group's): as Apple's alerts are, room around it, its question, a line saying what
570
+ /* asked first (askFirst, the group's): room around it, its title saying what will happen, a line saying what
488
571
  follows in the ink's own size, and its two answers a finger tall, sharing its width, Never mind first, apart */
489
572
  wa-dialog.j-ask {
490
573
  --spacing: var(--space-24);
@@ -518,7 +601,7 @@
518
601
  gap: var(--space-8);
519
602
  width: 100%;
520
603
  }
521
- :where(wa-drawer, wa-dialog) footer > [variant="danger"]:first-child {
604
+ :where(wa-drawer, wa-dialog) footer > :is([variant="danger"], .act.danger):first-child {
522
605
  margin-right: auto;
523
606
  }
524
607
  :where(wa-drawer, wa-dialog) form {
@@ -649,7 +732,7 @@
649
732
  padding-left: var(--space-4);
650
733
  }
651
734
  .j-open:focus-visible {
652
- outline: 2px solid var(--accent);
735
+ outline: var(--size-ring) solid var(--accent);
653
736
  outline-offset: -2px;
654
737
  }
655
738
  /* its words, and under them what more is said of it, one line, cut short */
@@ -661,6 +744,8 @@
661
744
  }
662
745
  .j-open > .j-words > b {
663
746
  font: inherit;
747
+ /* the row's name bold, as the kit's rows draw it (src/rows.css) */
748
+ font-weight: 600;
664
749
  overflow-wrap: anywhere;
665
750
  }
666
751
  .j-open > .j-words > span {
@@ -711,27 +796,33 @@
711
796
  /* .j-mention: a thing named away from its own place (design.md, "A peek"): a pill in the page's ground, its words
712
797
  small; a tap peeks. In a row it stands under the row's words, in line with them */
713
798
  .j-mention {
714
- display: block;
799
+ display: flex;
800
+ align-items: center;
715
801
  box-sizing: border-box;
716
- min-height: var(--space-24);
802
+ max-width: calc(100% - 2 * var(--space-16));
803
+ padding: 0;
804
+ border: 0;
805
+ background: none;
806
+ color: var(--ink);
807
+ cursor: pointer;
808
+ }
809
+ /* its look, a pill: what's tapped may be taller than what's drawn (a finger tall on a phone, below) */
810
+ .j-mention > span {
811
+ display: block;
812
+ min-width: 0;
717
813
  padding: 0 var(--space-10);
718
814
  border: 1px solid var(--edge);
719
815
  border-radius: var(--radius-pill);
720
816
  background: var(--paper);
721
- color: var(--ink);
722
- font: var(--font-small);
723
- cursor: pointer;
724
- max-width: calc(100% - 2 * var(--space-16));
817
+ font: var(--font-tool);
818
+ line-height: calc(var(--space-24) - 2 * 1px);
725
819
  overflow: hidden;
726
820
  text-overflow: ellipsis;
727
821
  white-space: nowrap;
728
822
  }
729
- .j-mention:is(:hover, :focus-visible, [aria-expanded="true"]) {
823
+ .j-mention:is(:hover, :focus-visible, [aria-expanded="true"]) > span {
730
824
  border-color: var(--ink);
731
825
  }
732
- .j-mention[hidden] {
733
- display: none;
734
- }
735
826
  /* a row that mentions something: its words keep their line, all its width, and the mention stands under them */
736
827
  :where(:has(> .j-open)):has(> .j-mention) {
737
828
  flex-wrap: wrap;
@@ -787,9 +878,6 @@
787
878
  display: flex;
788
879
  justify-content: flex-end;
789
880
  }
790
- .j-peek > footer[hidden] {
791
- display: none;
792
- }
793
881
  /* a place popped: a small map of it, its pin at its middle, on the well a map has before its tiles */
794
882
  .j-place {
795
883
  position: relative;
@@ -884,27 +972,31 @@
884
972
  }
885
973
 
886
974
  @media (max-width: 40rem), (pointer: coarse) {
975
+ /* every tool, a small one too (.act.small outweighs .act: named here), and a file's button */
887
976
  .act,
977
+ .act.small,
978
+ :where(input[type="file"])::file-selector-button,
979
+ :where(summary),
888
980
  :where(input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"]), select) {
889
- min-height: 44px;
981
+ min-height: var(--size-finger);
890
982
  }
891
- /* a mention is pressed too: a finger tall, and at that height a tool's corners, not a pill's */
983
+ /* a mention is pressed too: a finger tall, its pill drawn as it is anywhere (Apple's HIG: the target 44pt, not
984
+ the drawing) */
892
985
  .j-mention {
893
986
  min-height: var(--size-finger);
894
- border-radius: var(--radius);
895
987
  }
896
988
  .icon-only {
897
- width: 44px;
898
- height: 44px;
989
+ width: var(--size-finger);
990
+ height: var(--size-finger);
899
991
  }
900
992
  :is(.j-choices, .j-chips) > button,
901
993
  .j-chip:has(> .icon-only) {
902
- min-height: 44px;
994
+ min-height: var(--size-finger);
903
995
  }
904
996
  .j-chip > .icon-only {
905
- width: 44px;
906
- height: 44px;
907
- margin-right: -10px;
997
+ width: var(--size-finger);
998
+ height: var(--size-finger);
999
+ margin-right: calc(-1 * var(--space-10));
908
1000
  }
909
1001
  }
910
1002
  }