clio.css 0.9.1 → 0.12.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.
Files changed (86) hide show
  1. package/AGENTS.md +10 -6
  2. package/EVIDENCE.md +130 -9
  3. package/README.md +96 -3
  4. package/THIRD-PARTY.md +37 -3
  5. package/dist/art/cursors/arrow-2x.png +0 -0
  6. package/dist/art/cursors/arrow-3x.png +0 -0
  7. package/dist/art/cursors/arrow.png +0 -0
  8. package/dist/art/cursors/ibeam-2x.png +0 -0
  9. package/dist/art/cursors/ibeam-3x.png +0 -0
  10. package/dist/art/cursors/ibeam.png +0 -0
  11. package/dist/art/cursors/watch-2x.png +0 -0
  12. package/dist/art/cursors/watch-3x.png +0 -0
  13. package/dist/art/cursors/watch.png +0 -0
  14. package/dist/art/drawingboard/help-button.png +0 -0
  15. package/dist/art/drawingboard/parts/chasing-arrows.png +0 -0
  16. package/dist/art/drawingboard/parts/disclosure-open.png +0 -0
  17. package/dist/art/drawingboard/parts/disclosure.png +0 -0
  18. package/dist/art/drawingboard/parts/hpair-dec-on.png +0 -0
  19. package/dist/art/drawingboard/parts/hpair-inc-on.png +0 -0
  20. package/dist/art/drawingboard/parts/hpair-off.png +0 -0
  21. package/dist/art/drawingboard/parts/hpair.png +0 -0
  22. package/dist/art/drawingboard/parts/little-arrows-disabled.png +0 -0
  23. package/dist/art/drawingboard/parts/little-arrows-down.png +0 -0
  24. package/dist/art/drawingboard/parts/little-arrows-up.png +0 -0
  25. package/dist/art/drawingboard/parts/little-arrows.png +0 -0
  26. package/dist/art/drawingboard/parts/menu-scroll-down.png +0 -0
  27. package/dist/art/drawingboard/parts/menu-scroll-up.png +0 -0
  28. package/dist/art/drawingboard/parts/slider-thumb.png +0 -0
  29. package/dist/art/drawingboard/parts/vpair-dec-on.png +0 -0
  30. package/dist/art/drawingboard/parts/vpair-inc-on.png +0 -0
  31. package/dist/art/drawingboard/parts/vpair-off.png +0 -0
  32. package/dist/art/drawingboard/parts/vpair.png +0 -0
  33. package/dist/art/drawingboard/slider-track.png +0 -0
  34. package/dist/art/drawingboard/window-bottom-inactive-tiled.svg +1 -0
  35. package/dist/art/drawingboard/window-bottom-tiled.svg +1 -0
  36. package/dist/art/drawingboard/window-top-inactive-tiled.svg +1 -0
  37. package/dist/art/drawingboard/window-top-tiled.svg +1 -0
  38. package/dist/art/platinum/balloon-tail.png +0 -0
  39. package/dist/art/platinum/balloon.png +0 -0
  40. package/dist/art/platinum/bevel-held.png +0 -0
  41. package/dist/art/platinum/bevel-menu-arrow.png +0 -0
  42. package/dist/art/platinum/bevel.png +0 -0
  43. package/dist/art/platinum/chasing-arrows.png +0 -0
  44. package/dist/art/platinum/disclosure-open.png +0 -0
  45. package/dist/art/platinum/disclosure.png +0 -0
  46. package/dist/art/platinum/help-button.png +0 -0
  47. package/dist/art/platinum/little-arrows-disabled.png +0 -0
  48. package/dist/art/platinum/little-arrows.png +0 -0
  49. package/dist/art/platinum/slider-thumb.png +0 -0
  50. package/dist/art/platinum/slider-track.png +0 -0
  51. package/dist/art/platinum/sort-direction.png +0 -0
  52. package/dist/art/platinum/utility-close.png +0 -0
  53. package/dist/art/platinum/utility-collapse-side.png +0 -0
  54. package/dist/art/platinum/utility-collapse.png +0 -0
  55. package/dist/art/platinum/utility-dots.png +0 -0
  56. package/dist/art/platinum/utility-zoom.png +0 -0
  57. package/dist/art/system7/disclosure-open.png +0 -0
  58. package/dist/art/system7/disclosure.png +0 -0
  59. package/dist/art/system7/little-arrows.png +0 -0
  60. package/dist/art/system7/menu-scroll-down.png +0 -0
  61. package/dist/art/system7/menu-scroll-up.png +0 -0
  62. package/dist/clio.css +3632 -1044
  63. package/dist/clio.drawingboard.css +2650 -324
  64. package/dist/clio.drawingboard.min.css +2 -2
  65. package/dist/clio.js +1024 -0
  66. package/dist/clio.min.css +2 -2
  67. package/dist/clio.min.js +13 -0
  68. package/dist/clio.platinum.css +3096 -856
  69. package/dist/clio.platinum.min.css +2 -2
  70. package/dist/clio.system6.css +1640 -174
  71. package/dist/clio.system6.min.css +2 -2
  72. package/dist/clio.system7.css +1685 -181
  73. package/dist/clio.system7.min.css +2 -2
  74. package/dist/components.json +1102 -21
  75. package/dist/fonts/ClioSans97Plain.woff2 +0 -0
  76. package/dist/fonts/ClioSans97PlainExact.woff2 +0 -0
  77. package/dist/fonts/ClioSans97TitlePlain.woff2 +0 -0
  78. package/dist/fonts/ClioSans97TitlePlainExact.woff2 +0 -0
  79. package/dist/fonts/FusionPixel12-JA.woff2 +0 -0
  80. package/dist/fonts/FusionPixel12-KO.woff2 +0 -0
  81. package/dist/fonts/FusionPixel12-SC.woff2 +0 -0
  82. package/dist/fonts/FusionPixel12-TC.woff2 +0 -0
  83. package/dist/fonts/OFL-FusionPixel.txt +399 -0
  84. package/dist/fonts/Virtue.woff2 +0 -0
  85. package/llms.txt +14 -1
  86. package/package.json +6 -3
@@ -1,4 +1,4 @@
1
- /*! clio.css 0.9.1 (System 7 default) | MIT | https://surfine.github.io/clio.css/
1
+ /*! clio.css 0.12.0 (System 7 default) | MIT | https://surfine.github.io/clio.css/
2
2
  * Classic Mac OS interface CSS: System 6, System 7, Mac OS 8.5 Drawing Board and Mac OS 9 Platinum.
3
3
  * Measured values traced to AI System 6; see EVIDENCE.md.
4
4
  * Includes art from system.css (MIT) and pixel reconstructions of Apple control art; see THIRD-PARTY.md. */
@@ -28,6 +28,16 @@
28
28
  /* Clio Sans '97: Charcoal 12 rebuilt the same way from Mac OS 9.0's Key Caps
29
29
  (fonts-src/clio-sans-97.txt). Charcoal has one weight, so the face covers
30
30
  every weight and the browser never thickens it. */
31
+ /* Each colour face is declared twice: the Plain file alone first, then both. An
32
+ engine that cannot parse tech() (Safari before 17) drops the second rule and
33
+ keeps the first instead of losing the face. */
34
+ @font-face {
35
+ font-family: "Clio Sans '97";
36
+ src: url("fonts/ClioSans97Plain.woff2") format("woff2");
37
+ font-weight: 100 900;
38
+ font-display: swap;
39
+ }
40
+
31
41
  @font-face {
32
42
  font-family: "Clio Sans '97";
33
43
  src: url("fonts/ClioSans97.woff2") format("woff2") tech(color-COLRv1),
@@ -38,9 +48,18 @@
38
48
 
39
49
  /* Clio Sans '97's antialiasing is COLRv1 colour layers. A browser without
40
50
  COLRv1 (Safari) would paint every layer solid, so it gets the Plain file:
41
- the outlines alone, each pixel at least half covered. */
51
+ the same levels as COLRv0 layers, which Safari draws (fully covered pixels
52
+ in the text colour, the others black at their alpha unless a palette below
53
+ recolours them), over outlines for browsers with no colour fonts. */
42
54
  /* Clio Sans '97 Title: the same face as window titles draw it (a few faint
43
55
  pixels fewer than menus and buttons), for title bars only. */
56
+ @font-face {
57
+ font-family: "Clio Sans '97 Title";
58
+ src: url("fonts/ClioSans97TitlePlain.woff2") format("woff2");
59
+ font-weight: 100 900;
60
+ font-display: swap;
61
+ }
62
+
44
63
  @font-face {
45
64
  font-family: "Clio Sans '97 Title";
46
65
  src: url("fonts/ClioSans97Title.woff2") format("woff2") tech(color-COLRv1),
@@ -56,10 +75,24 @@
56
75
  page that recolours a title or a button label also sets --clio-font-window-title
57
76
  or --clio-font-button back to a stack without "Exact", and gets Clio Sans
58
77
  '97 in its colour, within one level of the real screen. */
78
+ @font-face {
79
+ font-family: "Clio Sans '97 Exact";
80
+ src: url("fonts/ClioSans97PlainExact.woff2") format("woff2");
81
+ font-weight: 100 900;
82
+ font-display: swap;
83
+ }
84
+
59
85
  @font-face {
60
86
  font-family: "Clio Sans '97 Exact";
61
87
  src: url("fonts/ClioSans97Exact.woff2") format("woff2") tech(color-COLRv1),
62
- url("fonts/ClioSans97Plain.woff2") format("woff2");
88
+ url("fonts/ClioSans97PlainExact.woff2") format("woff2");
89
+ font-weight: 100 900;
90
+ font-display: swap;
91
+ }
92
+
93
+ @font-face {
94
+ font-family: "Clio Sans '97 Title Exact";
95
+ src: url("fonts/ClioSans97TitlePlainExact.woff2") format("woff2");
63
96
  font-weight: 100 900;
64
97
  font-display: swap;
65
98
  }
@@ -67,7 +100,7 @@
67
100
  @font-face {
68
101
  font-family: "Clio Sans '97 Title Exact";
69
102
  src: url("fonts/ClioSans97TitleExact.woff2") format("woff2") tech(color-COLRv1),
70
- url("fonts/ClioSans97TitlePlain.woff2") format("woff2");
103
+ url("fonts/ClioSans97TitlePlainExact.woff2") format("woff2");
71
104
  font-weight: 100 900;
72
105
  font-display: swap;
73
106
  }
@@ -213,6 +246,126 @@
213
246
  14 #9c9c94;
214
247
  }
215
248
 
249
+ @font-palette-values --clio-aa-rdoc-title {
250
+ font-family: "Clio Sans '97 Title Exact";
251
+ override-colors:
252
+ 0 #101010,
253
+ 1 #212121,
254
+ 2 #323232,
255
+ 3 #444444,
256
+ 4 #555555,
257
+ 5 #666666,
258
+ 6 #777777,
259
+ 7 #878787,
260
+ 8 #989898,
261
+ 9 #a9a9a9,
262
+ 10 #bababa,
263
+ 11 #cccccc,
264
+ 12 #dddddd,
265
+ 13 #eeeeee,
266
+ 14 #ffffff;
267
+ }
268
+
269
+ @font-palette-values --clio-aa-rdoc-title-inactive {
270
+ font-family: "Clio Sans '97 Title Exact";
271
+ override-colors:
272
+ 0 #eeeeee,
273
+ 1 #dddddd,
274
+ 2 #cccccc,
275
+ 3 #bababa,
276
+ 4 #a9a9a9,
277
+ 5 #989898,
278
+ 6 #878787,
279
+ 7 #777777,
280
+ 8 #666666,
281
+ 9 #555555,
282
+ 10 #444444,
283
+ 11 #323232,
284
+ 12 #212121,
285
+ 13 #101010,
286
+ 14 #000000;
287
+ }
288
+
289
+ /* COLRv0 edge levels in other text colours (Safari; Chrome's COLRv1 file
290
+ follows the text colour by itself and ignores these): white for chosen
291
+ menu titles, items and icon labels, #6f6f6f for dimmed items. */
292
+ @font-palette-values --clio-aa-white {
293
+ font-family: "Clio Sans '97";
294
+ override-colors:
295
+ 0 rgb(255 255 255 / 0.0667),
296
+ 1 rgb(255 255 255 / 0.1333),
297
+ 2 rgb(255 255 255 / 0.2000),
298
+ 3 rgb(255 255 255 / 0.2667),
299
+ 4 rgb(255 255 255 / 0.3333),
300
+ 5 rgb(255 255 255 / 0.4000),
301
+ 6 rgb(255 255 255 / 0.4667),
302
+ 7 rgb(255 255 255 / 0.5333),
303
+ 8 rgb(255 255 255 / 0.6000),
304
+ 9 rgb(255 255 255 / 0.6667),
305
+ 10 rgb(255 255 255 / 0.7333),
306
+ 11 rgb(255 255 255 / 0.8000),
307
+ 12 rgb(255 255 255 / 0.8667),
308
+ 13 rgb(255 255 255 / 0.9333);
309
+ }
310
+
311
+ @font-palette-values --clio-aa-6f6f6f {
312
+ font-family: "Clio Sans '97";
313
+ override-colors:
314
+ 0 rgb(111 111 111 / 0.0667),
315
+ 1 rgb(111 111 111 / 0.1333),
316
+ 2 rgb(111 111 111 / 0.2000),
317
+ 3 rgb(111 111 111 / 0.2667),
318
+ 4 rgb(111 111 111 / 0.3333),
319
+ 5 rgb(111 111 111 / 0.4000),
320
+ 6 rgb(111 111 111 / 0.4667),
321
+ 7 rgb(111 111 111 / 0.5333),
322
+ 8 rgb(111 111 111 / 0.6000),
323
+ 9 rgb(111 111 111 / 0.6667),
324
+ 10 rgb(111 111 111 / 0.7333),
325
+ 11 rgb(111 111 111 / 0.8000),
326
+ 12 rgb(111 111 111 / 0.8667),
327
+ 13 rgb(111 111 111 / 0.9333);
328
+ }
329
+
330
+ /* Drawing Board's menu text (#313131) and dimmed text (#8c8c8c), for Safari's COLRv0 file. */
331
+ @font-palette-values --clio-aa-313131 {
332
+ font-family: "Clio Sans '97";
333
+ override-colors:
334
+ 0 rgb(49 49 49 / 0.0667),
335
+ 1 rgb(49 49 49 / 0.1333),
336
+ 2 rgb(49 49 49 / 0.2000),
337
+ 3 rgb(49 49 49 / 0.2667),
338
+ 4 rgb(49 49 49 / 0.3333),
339
+ 5 rgb(49 49 49 / 0.4000),
340
+ 6 rgb(49 49 49 / 0.4667),
341
+ 7 rgb(49 49 49 / 0.5333),
342
+ 8 rgb(49 49 49 / 0.6000),
343
+ 9 rgb(49 49 49 / 0.6667),
344
+ 10 rgb(49 49 49 / 0.7333),
345
+ 11 rgb(49 49 49 / 0.8000),
346
+ 12 rgb(49 49 49 / 0.8667),
347
+ 13 rgb(49 49 49 / 0.9333);
348
+ }
349
+
350
+ @font-palette-values --clio-aa-8c8c8c {
351
+ font-family: "Clio Sans '97";
352
+ override-colors:
353
+ 0 rgb(140 140 140 / 0.0667),
354
+ 1 rgb(140 140 140 / 0.1333),
355
+ 2 rgb(140 140 140 / 0.2000),
356
+ 3 rgb(140 140 140 / 0.2667),
357
+ 4 rgb(140 140 140 / 0.3333),
358
+ 5 rgb(140 140 140 / 0.4000),
359
+ 6 rgb(140 140 140 / 0.4667),
360
+ 7 rgb(140 140 140 / 0.5333),
361
+ 8 rgb(140 140 140 / 0.6000),
362
+ 9 rgb(140 140 140 / 0.6667),
363
+ 10 rgb(140 140 140 / 0.7333),
364
+ 11 rgb(140 140 140 / 0.8000),
365
+ 12 rgb(140 140 140 / 0.8667),
366
+ 13 rgb(140 140 140 / 0.9333);
367
+ }
368
+
216
369
  /* Clio Sans '97 Display: Charcoal's outlines, traced from Mac OS 9.0 drawing it
217
370
  at 72 points (fonts/ClioSans97Display.woff2, tooling/trace-outline.py), for
218
371
  every size that is not 12px or a multiple of it. */
@@ -270,6 +423,12 @@
270
423
  fallback colour where background-clip: text is missing. */
271
424
  --clio-disabled-dither: var(--clio-art-s6-gray50);
272
425
  --clio-disabled-fill: transparent;
426
+ /* A dimmed pop-up menu: the whole control (frame, shadow, title, arrow) drawn
427
+ through the 50% gray, the ink where x + y is odd surviving (System 7.5.3,
428
+ Memory's Select Hard Disk with virtual memory off, measured). The pattern
429
+ starts at the control's corner, not the screen's. */
430
+ --clio-popup-disabled-mask: var(--clio-art-s6-gray50) 0 0 / 2px 2px; /* a crisp 2x2 picture: a gradient blurs at 2x in Firefox */
431
+ --clio-popup-disabled-fg: var(--clio-ink);
273
432
  --clio-selection-bg: #000000;
274
433
  --clio-selection-fg: #ffffff;
275
434
 
@@ -279,6 +438,7 @@
279
438
  /* Geneva 9: the Finder info line, icon names, status lines. */
280
439
  --clio-font-small: "Clio Text '84 9", Geneva, "Helvetica Neue", Arial, sans-serif;
281
440
  --clio-text-smoothing: none;
441
+ --clio-text-smoothing-moz: grayscale; /* Firefox's nearest to none */
282
442
  --clio-font-mono: Monaco, Menlo, Consolas, "Courier New", monospace;
283
443
  /* Chrome type at sizes other than 12px and its multiples (.display): an
284
444
  outline face, smoothed. */
@@ -298,6 +458,12 @@
298
458
  --clio-radius: 0;
299
459
  --clio-control-height: 20px;
300
460
  --clio-field-height: 20px;
461
+ /* clio.js's insertion point: the font's line height, 16px for 12pt (System
462
+ 7.5.3, Find File's 20px field: rows 2-17), whatever the field's line-height. */
463
+ --clio-caret-height: 16px;
464
+ /* ...and its blink: CaretTime, 32 ticks lit and 32 dark (System 6.0.8 and 7.5.3 Find File;
465
+ PRAM's factory value in the Mac IIx and Quadra 650 ROMs). */
466
+ --clio-caret-ticks: 32;
301
467
  --clio-row-height: 16px;
302
468
  --clio-gap: 8px;
303
469
 
@@ -422,6 +588,7 @@
422
588
  /* Edit text: 1px frame, text inset 3px (Control Panel RAM cache field). */
423
589
  --clio-field-padding: 3px;
424
590
  --clio-field-focus-shadow: none;
591
+ --clio-field-focus-outline: var(--clio-focus-outline);
425
592
 
426
593
  /* Pop-up menus */
427
594
  --clio-popup-bg: var(--clio-paper);
@@ -440,12 +607,43 @@
440
607
  QuickDraw's ltGray, one dot in four. */
441
608
  --clio-scrollbar-size: 15px;
442
609
  --clio-scrollbar-track: var(--clio-art-s6-ltgray) 0 0 / 4px 2px repeat, #ffffff;
610
+ /* clio.js scroll bars: System 6 and 7 drag an outline of the box and scroll
611
+ on release; the box keeps one length, whatever the document's. */
612
+ --clio-scrollbar-thumb-length: 16px;
613
+ --clio-scrollbar-thumb-tracking: outline;
614
+ --clio-scrollbar-thumb-overlap: 0px;
615
+ --clio-scrollbar-thumb-after: none;
616
+ /* clio.js: a held arrow or lane repeats at once (System 6 and 7's TrackControl
617
+ calls the action on every pass while the button is down) */
618
+ --clio-scrollbar-repeat-delay: 0ms;
619
+ /* clio.js menus: System 6 and 7 menus stay open only while the button is held */
620
+ --clio-menu-sticky: 0;
621
+ /* clio.js: the grey outline of a dragged window (System 6.0.8 and 7.5.3: 1px) */
622
+ --clio-drag-outline-width: 1px;
623
+ /* ... around the window and its 1px shadow (both measured) */
624
+ --clio-drag-outline-extra: 1px;
625
+ /* clio.zoomRects() (System 7.5.3, measured): 8 outlines at (1.6^k - 1) / (1.6^8 - 1)
626
+ of the way, 4 on screen at once */
627
+ --clio-zoom-count: 8;
628
+ --clio-zoom-steps: 8;
629
+ --clio-zoom-ratio: 1.6;
630
+ --clio-zoom-offset: 1;
631
+ --clio-zoom-keep: 4;
632
+ --clio-drag-outline-shadow-inset: 0px; /* System 6: the region is the whole rectangle, though the shadow is drawn from a pixel in */
633
+ /* clio.js: a dragged scroll box leaves its frame XORed with dkGray (System
634
+ 6.0.8, measured): white where dkGray is set, in step with the lane's ltGray,
635
+ inverting what is under it, so over the lane it comes out solid black. */
636
+ --clio-scrollbar-ghost: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='2' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M1 0h3v1H1zM0 1h2v1H0zM3 1h1v1H3z'/%3E%3C/svg%3E") 0 0 / 4px 2px repeat;
637
+ --clio-scrollbar-ghost-blend: difference;
638
+ /* clio.js: the box sits inside the bar's line, 14px wide (System 6.0.8, System Folder list) */
639
+ --clio-scrollbar-thumb-inset: 1px;
443
640
  --clio-scrollbar-track-shadow: none;
444
641
  --clio-scrollbar-thumb-bg: var(--clio-paper);
445
642
  --clio-scrollbar-thumb-border: 1px solid var(--clio-ink);
446
643
  --clio-scrollbar-thumb-shadow: none;
447
644
  --clio-scrollbar-button-bg: var(--clio-paper);
448
645
  --clio-scrollbar-button-shadow: none;
646
+ --clio-scrollbar-button-bevel: none;
449
647
  --clio-scrollbar-up: var(--clio-art-s6-up);
450
648
  --clio-scrollbar-up-on: var(--clio-art-s6-up-on);
451
649
  --clio-scrollbar-down: var(--clio-art-s6-down);
@@ -548,6 +746,99 @@
548
746
  --clio-art-s6-grow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M2 2h7v1h-7zM2 3h1v1h-1zM8 3h1v1h-1zM2 4h1v1h-1zM8 4h5v1h-5zM2 5h1v1h-1zM8 5h1v1h-1zM12 5h1v1h-1zM2 6h1v1h-1zM8 6h1v1h-1zM12 6h1v1h-1zM2 7h1v1h-1zM8 7h1v1h-1zM12 7h1v1h-1zM2 8h7v1h-7zM12 8h1v1h-1zM4 9h1v1h-1zM12 9h1v1h-1zM4 10h1v1h-1zM12 10h1v1h-1zM4 11h1v1h-1zM12 11h1v1h-1zM4 12h9v1h-9z'/%3E%3C/svg%3E");
549
747
  --clio-art-s6-dkgray: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='2' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h1v1h-1zM2 0h2v1h-2zM0 1h3v1h-3z'/%3E%3Cpath fill='%23fff' d='M1 0h1v1h-1zM3 1h1v1h-1z'/%3E%3C/svg%3E");
550
748
  --clio-art-s6-menucheck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M8 0h1v1h-1zM7 1h2v1h-2zM6 2h2v1h-2zM5 3h2v1h-2zM0 4h1v1h-1zM4 4h2v1h-2zM0 5h2v1h-2zM3 5h2v1h-2zM1 6h3v1h-3zM2 7h1v1h-1z'/%3E%3C/svg%3E");
749
+ /* Disclosure triangle: System 6 had none; it takes System 7's (Finder list
750
+ view, 11px, black with a blue and white checker). */
751
+ --clio-disclosure-size: 11px;
752
+ --clio-disclosure-gap: 4px;
753
+ --clio-art-disclosure: url("art/system7/disclosure.png");
754
+ --clio-art-disclosure-open: url("art/system7/disclosure-open.png");
755
+
756
+ /* List view (Finder, View by Name; System 7.5.3): headers on the window's
757
+ white, the sorted one underlined, a double rule (black, white, black) below. */
758
+ --clio-list-view-bg: var(--clio-paper);
759
+ --clio-list-view-row: 16px;
760
+ --clio-list-view-header-height: 20px;
761
+ --clio-list-view-header-padding: 0 4px 3px;
762
+ --clio-list-view-header-bg: linear-gradient(var(--clio-ink), var(--clio-ink)) 0 calc(100% - 2px) / 100% 1px no-repeat, linear-gradient(var(--clio-ink), var(--clio-ink)) 0 100% / 100% 1px no-repeat;
763
+ --clio-list-view-sorted-header-bg: var(--clio-list-view-header-bg);
764
+ --clio-list-view-sorted-decoration: underline;
765
+ --clio-list-view-sorted-bg: transparent;
766
+ --clio-list-view-sort-width: 0;
767
+
768
+ /* Slider: System 6 had none; it takes Platinum's (Mouse control panel,
769
+ Mac OS 9.0) until an era draws its own. */
770
+ --clio-slider-height: 16px;
771
+ --clio-slider-track-height: 7px;
772
+ --clio-slider-track-top: 3px;
773
+ --clio-slider-track-slice: 3px;
774
+ --clio-slider-track-slice-n: 3;
775
+ --clio-slider-thumb-width: 15px;
776
+ --clio-slider-thumb-height: 16px;
777
+ --clio-art-slider-track: url("art/platinum/slider-track.png");
778
+ --clio-art-slider-thumb: url("art/platinum/slider-thumb.png");
779
+ --clio-slider-tick-gap: 0px;
780
+ --clio-slider-tick-count: 5;
781
+ --clio-slider-tick-offset: 9px;
782
+ --clio-slider-tick-run: 18px;
783
+ --clio-slider-tick-light: #ffffff;
784
+ --clio-slider-tick-ink: #000000;
785
+ --clio-slider-tick-shade: #888888;
786
+
787
+ /* Little arrows: System 6 had none; it takes System 7's (Memory control
788
+ panel, Cache Size: 15x25). Held and dimmed states are not on System 7's
789
+ screens and keep the normal picture. */
790
+ --clio-little-arrows-width: 15px;
791
+ --clio-little-arrows-height: 25px;
792
+ --clio-art-little-arrows: url("art/system7/little-arrows.png");
793
+ --clio-art-little-arrows-up: var(--clio-art-little-arrows);
794
+ --clio-art-little-arrows-down: var(--clio-art-little-arrows);
795
+ --clio-art-little-arrows-disabled: var(--clio-art-little-arrows);
796
+
797
+ /* Bevel button: System 6 and 7 had none; they take Platinum's
798
+ (Navigation Services, Mac OS 9.0). */
799
+ --clio-bevel-min: 20px;
800
+ --clio-bevel-padding: 0 2px;
801
+ --clio-bevel-slice: 3px;
802
+ --clio-bevel-slice-n: 3;
803
+ --clio-art-bevel: url("art/platinum/bevel.png");
804
+ --clio-art-bevel-held: url("art/platinum/bevel-held.png");
805
+ --clio-art-bevel-menu-arrow: url("art/platinum/bevel-menu-arrow.png");
806
+ --clio-bevel-arrow-right: 5px;
807
+ --clio-bevel-arrow-bottom: 4px;
808
+ --clio-bevel-arrow-width: 3px;
809
+ --clio-bevel-arrow-height: 2px;
810
+
811
+ /* Chasing arrows: Platinum's three frames (Network Browser, Mac OS 9.0). */
812
+ --clio-art-chasing-arrows: url("art/platinum/chasing-arrows.png");
813
+ --clio-chasing-arrows-frames: 3;
814
+
815
+ /* Separator: a 1px ink line. */
816
+ --clio-separator-height: 1px;
817
+ --clio-separator-margin: 8px 0;
818
+ --clio-separator-bg: var(--clio-ink);
819
+
820
+ /* Help button: Platinum's (Keyboard control panel, Mac OS 9.0). */
821
+ --clio-art-help-button: url("art/platinum/help-button.png");
822
+ --clio-image-well-bg: #ffffff;
823
+
824
+ /* Utility window: the document window's parts at the size of System 7's
825
+ floating windows (inferred: none was on the captured screens). */
826
+ --clio-utility-titlebar-height: 13px;
827
+ --clio-utility-titlebar-row: 11px;
828
+ --clio-utility-box-size: 9px;
829
+ --clio-utility-slot: 13px;
830
+ --clio-utility-title-size: 9px;
831
+
832
+ /* Help balloon: Mac OS 9.0's (Balloon Help), the same in every era. */
833
+ --clio-art-balloon: url("art/platinum/balloon.png");
834
+ --clio-art-balloon-tail: url("art/platinum/balloon-tail.png");
835
+
836
+ /* Scrolling menu arrows: System 6 and 7 (Control Panels submenu, System
837
+ 7.5.3), black, 5px in from the item's left (up arrow inferred, mirrored). */
838
+ --clio-art-menu-scroll-down: url("art/system7/menu-scroll-down.png");
839
+ --clio-art-menu-scroll-up: url("art/system7/menu-scroll-up.png");
840
+ --clio-menu-scroll-left: 5px;
841
+
551
842
  /* Frames cut from captures by tooling/frame-art.py. */
552
843
  --clio-art-frame-s6-button: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAgMAAACd/+6DAAAACVBMVEUAAAAAAAD///+D3c/SAAAAAXRSTlMAQObYZgAAACpJREFUeJxjYAxgYBINZWBiYWFgCmB0YGJgYABhBqmVDEx//jAwMAYwAAA66QRtNyAoFwAAAABJRU5ErkJggg==");
553
844
  --clio-art-frame-s6-button-held: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAQMAAADaX5RTAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAAB1JREFUeJxjkGFgSmZgYmBg/N/IxABiMNSDSRkGACm1Aqb7EOVpAAAAAElFTkSuQmCC");
@@ -557,6 +848,7 @@
557
848
  --clio-art-frame-p9-ring: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANBAMAAACAxflPAAAAG1BMVEUAAAAAAAB3d3fd3d3MzMy7u7uqqqoiIiKIiIhznn7oAAAAAXRSTlMAQObYZgAAAFpJREFUeJxjZGDnYmB7ycDCwKPAwPjzAwujgjEDg+x6xuLDrx6oOXEwCCcxMDAlCTAx/GMAISYGCEDQTGAOUyKLAoOKQgIjY6gAA9PO+4wMElwMDO8+MELNBwCaGBDQEM8mggAAAABJRU5ErkJggg==");
558
849
  --clio-art-frame-p9-button-disabled: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAgMAAACd/+6DAAAACVBMVEUAAACIiIjd3d2RXqmqAAAAAXRSTlMAQObYZgAAACFJREFUeJxjYA1hYBINZWAKYHRgYmBgQMYMUisZGFhDGAAtsQJ9dgAT/gAAAABJRU5ErkJggg==");
559
850
  --clio-art-frame-p9-popup: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHBAMAAAA2fErgAAAAGFBMVEUAAAAAAAB3d3fd3d27u7uqqqoiIiL///+EaqngAAAAAXRSTlMAQObYZgAAACtJREFUeJxjYEhMYGBi5H/IwJh+klWbQYCBQYAl/OQnOwbGAEUGpv+C9gwAea0HTcaLsPwAAAAASUVORK5CYII=");
851
+ --clio-art-frame-p9-popup-open: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHBAMAAAA2fErgAAAAGFBMVEUAAAAAAADd3d1mZmZEREQiIiKIiIj///+MKsksAAAAAXRSTlMAQObYZgAAACtJREFUeJxjEBQMYGBii//IwCjOKSbFIMDAIMAozun2iomB4fcGJgbG9wwAWK0GLJJZmp8AAAAASUVORK5CYII="); /* 7x7, slice 3 */
560
852
  --clio-art-frame-p9-popup-disabled: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAgMAAAC5PL9AAAAACVBMVEUAAACIiIjd3d2RXqmqAAAAAXRSTlMAQObYZgAAAB1JREFUeJxjZLVmEg5gChBhcGBh0ljAtOENI6s1ACDmA/qjrWTUAAAAAElFTkSuQmCC");
561
853
  --clio-art-s6-gray50: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h1v1H1zM0 1h1v1H0z'/%3E%3C/svg%3E");
562
854
  --clio-art-s6-menucheck-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M8 0h1v1h-1zM7 1h2v1h-2zM6 2h2v1h-2zM5 3h2v1h-2zM0 4h1v1h-1zM4 4h2v1h-2zM0 5h2v1h-2zM3 5h2v1h-2zM1 6h3v1h-3zM2 7h1v1h-1z'/%3E%3C/svg%3E");
@@ -566,6 +858,15 @@
566
858
  --clio-art-s6-strip-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v7H0zM1 1h1v5H1zM2 2h1v3H2zM3 3h1v1H3z'/%3E%3C/svg%3E");
567
859
  --clio-art-s6-strip-handle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M0 1h9l8 8v6l-8 8H0z'/%3E%3Cpath d='M0 0h10v1H0zM10 1h1v1h-1zM11 2h1v1h-1zM12 3h1v1h-1zM13 4h1v1h-1zM14 5h1v1h-1zM15 6h1v1h-1zM16 7h1v1h-1zM17 8h1v8h-1zM16 16h1v1h-1zM15 17h1v1h-1zM14 18h1v1h-1zM13 19h1v1h-1zM12 20h1v1h-1zM11 21h1v1h-1zM10 22h1v1h-1zM0 23h10v1H0zM5 6h1v1H5zM5 9h1v1H5zM5 12h1v1H5zM5 15h1v1H5zM5 18h1v1H5z'/%3E%3C/svg%3E");
568
860
  --clio-art-s6-strip-tab: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M0 1h9l8 8v6l-8 8H0z'/%3E%3Cpath d='M0 0h10v1H0zM10 1h1v1h-1zM11 2h1v1h-1zM12 3h1v1h-1zM13 4h1v1h-1zM14 5h1v1h-1zM15 6h1v1h-1zM16 7h1v1h-1zM17 8h1v8h-1zM16 16h1v1h-1zM15 17h1v1h-1zM14 18h1v1h-1zM13 19h1v1h-1zM12 20h1v1h-1zM11 21h1v1h-1zM10 22h1v1h-1zM0 23h10v1H0zM5 6h1v1H5zM5 9h1v1H5zM5 12h1v1H5zM5 15h1v1H5zM5 18h1v1H5z'/%3E%3C/svg%3E");
861
+ /* Rounded-corner window (rDocProc): corner masks and frame curves, tooling/rare-art.py. */
862
+ --clio-art-rdoc-mask-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M5 0h1v1h-1zM3 1h3v1h-3zM2 2h4v1h-4zM1 3h5v1h-5zM1 4h5v1h-5zM0 5h6v1h-6z'/%3E%3C/svg%3E");
863
+ --clio-art-rdoc-frame-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M5 0h1v1h-1zM3 1h3v1h-3zM2 2h2v1h-2zM1 3h2v1h-2zM1 4h1v1h-1zM0 5h2v1h-2z'/%3E%3C/svg%3E");
864
+ --clio-art-rdoc-mask-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h1v1h-1zM0 1h3v1h-3zM0 2h4v1h-4zM0 3h5v1h-5zM0 4h5v1h-5zM0 5h6v1h-6z'/%3E%3C/svg%3E");
865
+ --clio-art-rdoc-frame-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h1v1h-1zM0 1h3v1h-3zM2 2h2v1h-2zM3 3h2v1h-2zM4 4h1v1h-1zM4 5h2v1h-2z'/%3E%3C/svg%3E");
866
+ --clio-art-rdoc-mask-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h6v1h-6zM1 1h5v1h-5zM1 2h5v1h-5zM2 3h4v1h-4zM3 4h3v1h-3zM5 5h1v1h-1z'/%3E%3C/svg%3E");
867
+ --clio-art-rdoc-frame-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h2v1h-2zM1 1h1v1h-1zM1 2h2v1h-2zM2 3h2v1h-2zM3 4h3v1h-3zM5 5h1v1h-1z'/%3E%3C/svg%3E");
868
+ --clio-art-rdoc-mask-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h6v1h-6zM0 1h5v1h-5zM0 2h5v1h-5zM0 3h4v1h-4zM0 4h3v1h-3zM0 5h1v1h-1z'/%3E%3C/svg%3E");
869
+ --clio-art-rdoc-frame-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M4 0h2v1h-2zM4 1h1v1h-1zM3 2h2v1h-2zM2 3h2v1h-2zM0 4h3v1h-3zM0 5h1v1h-1z'/%3E%3C/svg%3E");
569
870
  }
570
871
 
571
872
  /* Base. clio.css styles elements only inside its own components, plus bare
@@ -580,7 +881,7 @@
580
881
  }
581
882
 
582
883
  :where(.window, .menu-bar, [role="menubar"], [role="menu-bar"], .menu, [role="menu"],
583
- .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .clio) {
884
+ .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .rounded-window, .clio) {
584
885
  box-sizing: border-box;
585
886
  color: var(--clio-ink);
586
887
  font-family: var(--clio-font-chrome);
@@ -590,6 +891,7 @@
590
891
  font-synthesis: none;
591
892
  line-height: 16px;
592
893
  -webkit-font-smoothing: var(--clio-font-smoothing);
894
+ -moz-osx-font-smoothing: grayscale; /* Firefox on macOS otherwise thickens the pixel squares with a grey fringe */
593
895
  }
594
896
 
595
897
  :where(.window, .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .clio) *,
@@ -603,6 +905,7 @@
603
905
  font-family: var(--clio-font-text);
604
906
  font-stretch: var(--clio-font-stretch-text);
605
907
  -webkit-font-smoothing: var(--clio-text-smoothing);
908
+ -moz-osx-font-smoothing: var(--clio-text-smoothing-moz);
606
909
  }
607
910
 
608
911
  :where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(h1, h2, h3, h4, .heading) {
@@ -669,6 +972,37 @@
669
972
  white-space: nowrap;
670
973
  }
671
974
 
975
+ /* Cursors: the arrow, the I-beam and the watch redrawn pixel for pixel from System 7.5.3
976
+ and Mac OS 9.0 (tooling/cursor-art.py; the arrow is the same in both), at
977
+ 1x, 2x and 3x. On by default; class="clio-system-cursors" on <html> gives
978
+ the system's own back. The Mac had no pointing hand: links and buttons
979
+ inside clio.css's windows keep the arrow. aria-busy="true" shows the watch
980
+ (its first frame; hot spot 8,8). */
981
+ :where(:root) {
982
+ --clio-cursor-arrow: image-set(url("art/cursors/arrow.png") 1x, url("art/cursors/arrow-2x.png") 2x, url("art/cursors/arrow-3x.png") 3x) 1 1, default;
983
+ --clio-cursor-text: image-set(url("art/cursors/ibeam.png") 1x, url("art/cursors/ibeam-2x.png") 2x, url("art/cursors/ibeam-3x.png") 3x) 3 4, text;
984
+ --clio-cursor-wait: image-set(url("art/cursors/watch.png") 1x, url("art/cursors/watch-2x.png") 2x, url("art/cursors/watch-3x.png") 3x) 8 8, wait;
985
+ cursor: var(--clio-cursor-arrow);
986
+ }
987
+
988
+ :where(:root.clio-system-cursors) {
989
+ --clio-cursor-arrow: default;
990
+ --clio-cursor-text: text;
991
+ --clio-cursor-wait: wait;
992
+ }
993
+
994
+ :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="button"], [type="submit"], [type="reset"], [type="color"], [type="file"], [type="image"]), textarea, [contenteditable]:not([contenteditable="false"])) {
995
+ cursor: var(--clio-cursor-text);
996
+ }
997
+
998
+ :where(.window, .menu-bar, [role="menubar"], .menu, [role="menu"], .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .control-strip, .clio, .desktop) :where(a:any-link, button, label, summary, select, [role="button"], [role="tab"]) {
999
+ cursor: var(--clio-cursor-arrow);
1000
+ }
1001
+
1002
+ :where([aria-busy="true"]), :where([aria-busy="true"]) * {
1003
+ cursor: var(--clio-cursor-wait);
1004
+ }
1005
+
672
1006
  /* Windows.
673
1007
  Markup: .window > .title-bar (> .close, .title, .resize [, .shade]) >
674
1008
  optional .details-bar > .window-pane. system.css markup (.title-bar
@@ -760,7 +1094,7 @@
760
1094
  font-size: 0;
761
1095
  appearance: none;
762
1096
  -webkit-appearance: none;
763
- cursor: default;
1097
+ cursor: var(--clio-cursor-arrow);
764
1098
  touch-action: manipulation;
765
1099
  }
766
1100
 
@@ -785,7 +1119,7 @@
785
1119
 
786
1120
  /* Held close or zoom box: System 6 draws the same starburst in both
787
1121
  (measured, 6.0.8); the zoom box's inner square goes while it is held. */
788
- .title-bar > :is(.close, .close-box, .resize, .resize-box, .zoom):is(:active, .active) {
1122
+ .title-bar > :is(.close, .close-box, .resize, .resize-box, .zoom):is(:active:where(:not([data-clio-off])), .active) {
789
1123
  background: var(--clio-art-s6-burst) 0 0 / 11px 11px no-repeat border-box, var(--clio-paper);
790
1124
  }
791
1125
 
@@ -803,7 +1137,7 @@
803
1137
  box-sizing: border-box;
804
1138
  }
805
1139
 
806
- .title-bar > :is(.resize, .resize-box, .zoom):is(:active, .active)::before {
1140
+ .title-bar > :is(.resize, .resize-box, .zoom):is(:active:where(:not([data-clio-off])), .active)::before {
807
1141
  opacity: 0;
808
1142
  }
809
1143
 
@@ -858,9 +1192,15 @@
858
1192
  white-space: nowrap;
859
1193
  }
860
1194
 
1195
+ /* A separator line between groups in a window or dialog (Mac OS 8 HIG:
1196
+ "Separator Lines"): <hr class="separator"> or <div class="separator">. */
861
1197
  :where(.separator) {
862
1198
  flex: none;
863
- border-top: var(--clio-border);
1199
+ box-sizing: border-box;
1200
+ height: var(--clio-separator-height);
1201
+ margin: var(--clio-separator-margin);
1202
+ border: 0;
1203
+ background: var(--clio-separator-bg);
864
1204
  }
865
1205
 
866
1206
  /* A status line under the pane. */
@@ -876,6 +1216,17 @@
876
1216
  line-height: 14px;
877
1217
  }
878
1218
 
1219
+ /* Collapsed (WindowShade; clio.js toggles .collapsed from the collapse box):
1220
+ only the title bar stays. */
1221
+ :where(.window.collapsed) {
1222
+ height: auto !important;
1223
+ min-height: 0 !important;
1224
+ }
1225
+
1226
+ :where(.window.collapsed) > :not(.title-bar) {
1227
+ display: none !important;
1228
+ }
1229
+
879
1230
  /* Menu bar and menus.
880
1231
  Markup: <ul role="menubar" class="menu-bar"> <li role="none"><button
881
1232
  role="menuitem" aria-haspopup="true" aria-expanded="false">File</button>
@@ -923,12 +1274,12 @@
923
1274
  white-space: nowrap;
924
1275
  appearance: none;
925
1276
  -webkit-appearance: none;
926
- cursor: default;
1277
+ cursor: var(--clio-cursor-arrow);
927
1278
  }
928
1279
 
929
1280
  :where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a, span):is([aria-expanded="true"], .active),
930
1281
  :where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li.open > :is(button, a, span),
931
- :where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a):active,
1282
+ :where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a):active:where(:not([data-clio-off])),
932
1283
  :where([role="menu-bar"]) > [role="menu-item"]:is(:focus, :focus-within) {
933
1284
  background: var(--clio-menu-title-active-bg);
934
1285
  box-shadow: var(--clio-menu-title-active-shadow);
@@ -978,6 +1329,12 @@
978
1329
  display: block;
979
1330
  }
980
1331
 
1332
+ /* With clio.js (data-clio-menus) a menu opens from the pointer or the arrow
1333
+ keys, not merely because focus sits on its title. */
1334
+ :where([data-clio-menus]) li:focus-within:not(.open) > :is(.menu, ul[role="menu"]) {
1335
+ display: none;
1336
+ }
1337
+
981
1338
  /* ---- Menu items ---------------------------------------------------------- */
982
1339
  :where(.menu, [role="menu"]) > li {
983
1340
  position: relative;
@@ -988,7 +1345,7 @@
988
1345
  font-weight: var(--clio-menu-item-weight);
989
1346
  line-height: var(--clio-menu-item-height);
990
1347
  white-space: nowrap;
991
- cursor: default;
1348
+ cursor: var(--clio-cursor-arrow);
992
1349
  }
993
1350
 
994
1351
  :where(.menu, [role="menu"]) > li:has(> :is(a, button)) {
@@ -1014,11 +1371,11 @@
1014
1371
  text-decoration: none;
1015
1372
  appearance: none;
1016
1373
  -webkit-appearance: none;
1017
- cursor: default;
1374
+ cursor: var(--clio-cursor-arrow);
1018
1375
  }
1019
1376
 
1020
- :where(.menu, [role="menu"]) > li:not(.disabled, [aria-disabled="true"], .separator, [role="separator"]):is(:hover, :focus-within, .active),
1021
- :where(.menu, [role="menu"]) > li > :is(a, button):not([aria-disabled="true"], :disabled):is(:hover, :focus-visible, .active) {
1377
+ :where(.menu, [role="menu"]) > li:not(.disabled, [aria-disabled="true"], .separator, [role="separator"]):is(:hover, :focus-within, .active):where(:not([data-clio-blink])),
1378
+ :where(.menu, [role="menu"]) > li > :is(a, button):not([aria-disabled="true"], :disabled):is(:hover, :focus-visible, .active):where(:not([data-clio-blink])) {
1022
1379
  background: var(--clio-menu-item-active-bg);
1023
1380
  box-shadow: var(--clio-menu-item-active-shadow);
1024
1381
  color: var(--clio-menu-item-active-fg);
@@ -1056,8 +1413,8 @@
1056
1413
  background: var(--clio-art-s6-menucheck) 0 0 / 9px 8px no-repeat;
1057
1414
  }
1058
1415
 
1059
- :where(.menu, [role="menu"]) > li:is(.checked, [aria-checked="true"]):is(:hover, :focus-within, .active)::before,
1060
- :where(.menu, [role="menu"]) > li > :is([aria-checked="true"], .checked):is(:hover, :focus-visible, .active)::before {
1416
+ :where(.menu, [role="menu"]) > li:is(.checked, [aria-checked="true"]):is(:hover, :focus-within, .active):where(:not([data-clio-blink]))::before,
1417
+ :where(.menu, [role="menu"]) > li > :is([aria-checked="true"], .checked):is(:hover, :focus-visible, .active):where(:not([data-clio-blink]))::before {
1061
1418
  background-image: var(--clio-art-s6-menucheck-on);
1062
1419
  }
1063
1420
 
@@ -1074,7 +1431,7 @@
1074
1431
  background: var(--clio-art-s6-submenu) 0 0 / 6px 11px no-repeat;
1075
1432
  }
1076
1433
 
1077
- :where(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"])):is(:hover, :focus-within, .active)::after {
1434
+ :where(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"])):is(:hover, :focus-within, .active):where(:not([data-clio-blink]))::after {
1078
1435
  background-image: var(--clio-art-s6-submenu-on);
1079
1436
  }
1080
1437
 
@@ -1094,6 +1451,33 @@
1094
1451
  border-bottom: 1px dotted var(--clio-ink);
1095
1452
  }
1096
1453
 
1454
+ /* ---- Scrolling menus, menu bar extras, item icons ------------------------------
1455
+ A menu longer than the screen ends in a scroll arrow row: <li class="scroll-down"
1456
+ aria-hidden="true"> (or "scroll-up" at the top). Menu bar items pushed to
1457
+ the right (the Help and Application menus) take class "menu-extras"; an
1458
+ icon in a title or an item is an <img> 16px square. */
1459
+ :where(.menu, [role="menu"]) > :where(li.scroll-down, li.scroll-up) {
1460
+ min-height: var(--clio-menu-item-height);
1461
+ padding: 0;
1462
+ background: var(--clio-art-menu-scroll-down) var(--clio-menu-scroll-left) 50% / auto no-repeat;
1463
+ }
1464
+
1465
+ :where(.menu, [role="menu"]) > :where(li.scroll-up) {
1466
+ background-image: var(--clio-art-menu-scroll-up);
1467
+ }
1468
+
1469
+ :where(.menu-bar, [role="menubar"]) > :where(li.menu-extras) {
1470
+ margin-left: auto;
1471
+ }
1472
+
1473
+ :where(.menu-bar, [role="menubar"], .menu, [role="menu"]) :where(img) {
1474
+ width: 16px;
1475
+ height: 16px;
1476
+ margin-right: 4px;
1477
+ vertical-align: -3px;
1478
+ image-rendering: pixelated;
1479
+ }
1480
+
1097
1481
  /* Controls. Bare elements are styled through :where(), so the rules carry no
1098
1482
  specificity. State model (from AI System 6's fidelity contract): hover never
1099
1483
  changes a push button; pressed comes only from pointer-down, Space or
@@ -1120,18 +1504,19 @@
1120
1504
  font-stretch: var(--clio-font-stretch-text);
1121
1505
  font-weight: var(--clio-button-weight);
1122
1506
  -webkit-font-smoothing: var(--clio-font-smoothing);
1507
+ -moz-osx-font-smoothing: grayscale; /* Firefox on macOS otherwise thickens the pixel squares with a grey fringe */
1123
1508
  line-height: 14px;
1124
1509
  text-align: center;
1125
1510
  text-decoration: none;
1126
1511
  white-space: nowrap;
1127
1512
  appearance: none;
1128
1513
  -webkit-appearance: none;
1129
- cursor: default;
1514
+ cursor: var(--clio-cursor-arrow);
1130
1515
  touch-action: manipulation;
1131
1516
  -webkit-tap-highlight-color: transparent;
1132
1517
  }
1133
1518
 
1134
- :where(button, .btn, .btn-default, .standard-button, input[type="button"], input[type="submit"], input[type="reset"]):not(:disabled, .disabled):is(:active, .active) {
1519
+ :where(button, .btn, .btn-default, .standard-button, input[type="button"], input[type="submit"], input[type="reset"]):not(:disabled, .disabled):is(:active:where(:not([data-clio-off])), .active) {
1135
1520
  background: var(--clio-button-active-bg);
1136
1521
  box-shadow: var(--clio-button-active-shadow);
1137
1522
  border-image-source: var(--clio-button-frame-held);
@@ -1195,7 +1580,7 @@
1195
1580
  vertical-align: -2px;
1196
1581
  appearance: none;
1197
1582
  -webkit-appearance: none;
1198
- cursor: default;
1583
+ cursor: var(--clio-cursor-arrow);
1199
1584
  }
1200
1585
 
1201
1586
  :where(input[type="checkbox"]):checked {
@@ -1203,7 +1588,7 @@
1203
1588
  background-origin: var(--clio-check-mark-origin);
1204
1589
  }
1205
1590
 
1206
- :where(input[type="checkbox"]):not(:disabled):active {
1591
+ :where(input[type="checkbox"]):not(:disabled):active:where(:not([data-clio-off])) {
1207
1592
  border-width: var(--clio-check-pressed-border-width);
1208
1593
  }
1209
1594
 
@@ -1225,18 +1610,18 @@
1225
1610
  vertical-align: -2px;
1226
1611
  appearance: none;
1227
1612
  -webkit-appearance: none;
1228
- cursor: default;
1613
+ cursor: var(--clio-cursor-arrow);
1229
1614
  }
1230
1615
 
1231
1616
  :where(input[type="radio"]):checked {
1232
1617
  background: var(--clio-radio-on);
1233
1618
  }
1234
1619
 
1235
- :where(input[type="radio"]):not(:disabled):active {
1620
+ :where(input[type="radio"]):not(:disabled):active:where(:not([data-clio-off])) {
1236
1621
  background: var(--clio-radio-pressed);
1237
1622
  }
1238
1623
 
1239
- :where(input[type="radio"]):checked:not(:disabled):active {
1624
+ :where(input[type="radio"]):checked:not(:disabled):active:where(:not([data-clio-off])) {
1240
1625
  background: var(--clio-radio-pressed-on);
1241
1626
  }
1242
1627
 
@@ -1300,7 +1685,7 @@
1300
1685
  }
1301
1686
 
1302
1687
  :where(input, textarea):focus-visible {
1303
- outline: var(--clio-focus-outline);
1688
+ outline: var(--clio-field-focus-outline, var(--clio-focus-outline));
1304
1689
  outline-offset: var(--clio-focus-offset);
1305
1690
  box-shadow: var(--clio-field-focus-shadow);
1306
1691
  }
@@ -1336,10 +1721,14 @@
1336
1721
  font-stretch: var(--clio-font-stretch-text);
1337
1722
  font-weight: var(--clio-popup-weight);
1338
1723
  -webkit-font-smoothing: var(--clio-font-smoothing);
1724
+ -moz-osx-font-smoothing: grayscale; /* Firefox on macOS otherwise thickens the pixel squares with a grey fringe */
1339
1725
  line-height: 16px;
1726
+ white-space: nowrap; /* one line, cut short with an ellipsis, as the Mac truncated a pop-up's title */
1727
+ overflow: hidden;
1728
+ text-overflow: ellipsis;
1340
1729
  appearance: none;
1341
1730
  -webkit-appearance: none;
1342
- cursor: default;
1731
+ cursor: var(--clio-cursor-arrow);
1343
1732
  }
1344
1733
 
1345
1734
  :where(select):focus-visible {
@@ -1348,7 +1737,93 @@
1348
1737
  }
1349
1738
 
1350
1739
  :where(select):disabled {
1351
- color: var(--clio-disabled);
1740
+ color: var(--clio-popup-disabled-fg, var(--clio-disabled));
1741
+ opacity: 1; /* Chrome fades a disabled select it draws itself; the Mac did not */
1742
+ mask: var(--clio-popup-disabled-mask, none);
1743
+ mask-clip: no-clip; /* the shadow outside the frame is dimmed too */
1744
+ }
1745
+
1746
+ /* The open pop-up menu. Where the browser lets CSS draw it (appearance:
1747
+ base-select: Chrome 135, Safari 27), it is the era's menu, laid over the
1748
+ button with the current item on the button's row (clio.js sets
1749
+ --clio-picker-shift; without it the first item sits there). clio.js draws
1750
+ the same menu as elements elsewhere. */
1751
+ @supports (appearance: base-select) {
1752
+ /* a mouse or trackpad only: on touch screens the system's own picker
1753
+ (the iOS wheel, Android's sheet) stays, as it is the better tool there */
1754
+ @media (pointer: fine) {
1755
+ :where(select:not([multiple], [size]:not([size="1"]))),
1756
+ :where(select:not([multiple], [size]:not([size="1"])))::picker(select) {
1757
+ appearance: base-select;
1758
+ }
1759
+
1760
+ /* keep the closed button laid out as before (the base-select default is a
1761
+ centred inline-flex box, a pixel off the measured text) */
1762
+ :where(select:not([multiple], [size]:not([size="1"]))) {
1763
+ display: inline-block;
1764
+ align-items: normal;
1765
+ gap: normal;
1766
+ text-align: start;
1767
+ }
1768
+
1769
+ :where(select)::picker-icon {
1770
+ display: none; /* the era's arrow is the button's own art */
1771
+ }
1772
+
1773
+ :where(select)::picker(select) {
1774
+ position-area: span-block-end span-inline-end; /* top and left on the button's */
1775
+ position-try-fallbacks: none;
1776
+ inset: auto;
1777
+ min-width: anchor-size(width);
1778
+ margin: 0;
1779
+ padding: 0;
1780
+ translate: 0 var(--clio-picker-shift, 0px);
1781
+ border: var(--clio-menu-border);
1782
+ border-top-width: var(--clio-menu-border-top-width, 1px);
1783
+ border-radius: 0; /* Safari rounds its picker */
1784
+ background: var(--clio-menu-bg);
1785
+ box-shadow: var(--clio-menu-shadow);
1786
+ color: var(--clio-ink);
1787
+ }
1788
+
1789
+ :where(select) option {
1790
+ position: relative;
1791
+ display: flex;
1792
+ align-items: center;
1793
+ min-height: var(--clio-menu-item-height);
1794
+ padding: var(--clio-menu-item-padding);
1795
+ font: inherit;
1796
+ font-weight: var(--clio-menu-item-weight, inherit);
1797
+ line-height: var(--clio-menu-item-height);
1798
+ white-space: nowrap;
1799
+ outline: none;
1800
+ }
1801
+
1802
+ :where(select) option:is(:hover, :focus-visible):not(:disabled) {
1803
+ background: var(--clio-menu-item-active-bg);
1804
+ box-shadow: var(--clio-menu-item-active-shadow);
1805
+ color: var(--clio-menu-item-active-fg);
1806
+ }
1807
+
1808
+ :where(select) option:disabled {
1809
+ color: var(--clio-disabled);
1810
+ }
1811
+
1812
+ :where(select) option::checkmark {
1813
+ content: "";
1814
+ position: absolute;
1815
+ top: 50%;
1816
+ left: 3px;
1817
+ width: 9px;
1818
+ height: 8px;
1819
+ margin-top: -4px;
1820
+ background: var(--clio-art-s6-menucheck) 0 0 / 9px 8px no-repeat;
1821
+ }
1822
+
1823
+ :where(select) option:is(:hover, :focus-visible)::checkmark {
1824
+ background-image: var(--clio-art-s6-menucheck-on);
1825
+ }
1826
+ }
1352
1827
  }
1353
1828
 
1354
1829
  /* A list box: <select multiple> or <select size="n">. */
@@ -1391,7 +1866,7 @@
1391
1866
  padding: 0 4px;
1392
1867
  line-height: var(--clio-list-row);
1393
1868
  white-space: nowrap;
1394
- cursor: default;
1869
+ cursor: var(--clio-cursor-arrow);
1395
1870
  }
1396
1871
 
1397
1872
  :where(.listbox, [role="listbox"]) > :is(li, [role="option"]):is([aria-selected="true"], .selected) {
@@ -1477,7 +1952,7 @@
1477
1952
  font-family: var(--clio-font-chrome);
1478
1953
  font-size: var(--clio-font-size);
1479
1954
  font-weight: var(--clio-chrome-weight);
1480
- cursor: default;
1955
+ cursor: var(--clio-cursor-arrow);
1481
1956
  }
1482
1957
 
1483
1958
  :where([role="tablist"], .tabs) > :is([role="tab"], li, button):is([aria-selected="true"], .active) {
@@ -1513,7 +1988,7 @@
1513
1988
  font-family: var(--clio-font-small);
1514
1989
  font-size: var(--clio-font-size-small);
1515
1990
  text-align: center;
1516
- cursor: default;
1991
+ cursor: var(--clio-cursor-arrow);
1517
1992
  }
1518
1993
 
1519
1994
  :where(.icon) > :is(img, svg, .icon-image) {
@@ -1539,198 +2014,899 @@
1539
2014
  color: var(--clio-label-selected-fg);
1540
2015
  }
1541
2016
 
1542
- /* Dialogs and alerts.
1543
- .modal-dialog / .alert-box: the double-framed modal box (dBoxProc).
1544
- .standard-dialog: the plain box with a drop shadow (altDBoxProc).
1545
- .modeless-dialog: a movable dialog, which is a .window.
1546
- Use them on <dialog> or on a <div role="dialog">. system.css's
1547
- .outer-border / .inner-border wrappers are accepted and draw nothing extra. */
1548
- :where(.modal-dialog, .alert-box, dialog.modal) {
1549
- box-sizing: border-box;
1550
- max-width: 100%;
1551
- margin: 0;
1552
- padding: var(--clio-modal-padding);
1553
- border: var(--clio-modal-border);
1554
- background: var(--clio-dialog-bg);
1555
- box-shadow: var(--clio-modal-frame);
1556
- color: var(--clio-ink);
1557
- }
2017
+ /* Controls the classic guidelines add to the first set (Macintosh Human
2018
+ Interface Guidelines 1992, ch. 7; Mac OS 8 Human Interface Guidelines,
2019
+ ch. 2), each drawn per era from tokens. COVERAGE.md lists them all. */
1558
2020
 
1559
- :where(.standard-dialog) {
2021
+ /* ---- Disclosure triangle ---------------------------------------------------
2022
+ Markup: <button class="disclosure" aria-expanded="false" aria-label="Show">
2023
+ or <details><summary>…</summary>…</details>. System 7 brought it to the
2024
+ Finder's list views; System 6 had none (it uses System 7's). */
2025
+ :where(.disclosure) {
2026
+ display: inline-block;
1560
2027
  box-sizing: border-box;
1561
- max-width: 100%;
2028
+ width: var(--clio-disclosure-size);
2029
+ height: var(--clio-disclosure-size);
2030
+ min-width: 0;
2031
+ min-height: 0;
1562
2032
  margin: 0;
1563
- padding: 12px 14px;
1564
- border: var(--clio-plain-dialog-border);
1565
- background: var(--clio-dialog-bg);
1566
- box-shadow: var(--clio-plain-dialog-shadow);
1567
- color: var(--clio-ink);
1568
- }
1569
-
1570
- :where(dialog):is(.modal-dialog, .alert-box, .standard-dialog, .modal)::backdrop {
1571
- background: transparent;
1572
- }
1573
-
1574
- :where(.modal-dialog, .alert-box, .standard-dialog) :where(.outer-border, .inner-border) {
1575
2033
  padding: 0;
1576
2034
  border: 0;
2035
+ background: var(--clio-art-disclosure) 0 0 / var(--clio-disclosure-size) var(--clio-disclosure-size) no-repeat;
2036
+ box-shadow: none;
2037
+ vertical-align: middle;
2038
+ appearance: none;
2039
+ -webkit-appearance: none;
2040
+ cursor: var(--clio-cursor-arrow);
1577
2041
  }
1578
2042
 
1579
- /* Alert layout: icon on the left, message, buttons bottom-right. */
1580
- :where(.alert-box) {
1581
- display: grid;
1582
- grid-template-columns: auto 1fr;
1583
- column-gap: 16px;
1584
- row-gap: 12px;
1585
- align-items: start;
2043
+ :where(.disclosure):is([aria-expanded="true"], .open) {
2044
+ background-image: var(--clio-art-disclosure-open);
1586
2045
  }
1587
2046
 
1588
- :where(.alert-box) > :where(.alert-icon) {
1589
- grid-row: 1;
1590
- width: 32px;
1591
- height: 32px;
2047
+ :where(details) > :where(summary) {
2048
+ display: flex;
2049
+ align-items: center;
2050
+ gap: var(--clio-disclosure-gap);
2051
+ list-style: none;
2052
+ cursor: var(--clio-cursor-arrow);
1592
2053
  }
1593
2054
 
1594
- :where(.alert-box) > :where(.alert-contents, .modal-contents, p) {
1595
- grid-column: 2;
1596
- margin: 0;
2055
+ :where(details) > :where(summary)::-webkit-details-marker {
2056
+ display: none;
1597
2057
  }
1598
2058
 
1599
- :where(.alert-box) > :where(.alert-buttons, .dialog-buttons) {
1600
- grid-column: 1 / -1;
2059
+ :where(details) > :where(summary)::before {
2060
+ content: "";
2061
+ flex: none;
2062
+ width: var(--clio-disclosure-size);
2063
+ height: var(--clio-disclosure-size);
2064
+ background: var(--clio-art-disclosure) 0 0 / var(--clio-disclosure-size) var(--clio-disclosure-size) no-repeat;
1601
2065
  }
1602
2066
 
1603
- :where(.dialog-buttons, .alert-buttons) {
1604
- display: flex;
1605
- flex-wrap: wrap;
1606
- justify-content: flex-end;
1607
- gap: 12px;
1608
- margin-top: 12px;
2067
+ :where(details[open]) > :where(summary)::before {
2068
+ background-image: var(--clio-art-disclosure-open);
1609
2069
  }
1610
2070
 
1611
- /* An alert icon drawn here, not Apple's: a rounded speech box with "!". */
1612
- :where(.alert-icon.caution, .alert-icon.note, .alert-icon.stop) {
1613
- display: block;
1614
- box-sizing: border-box;
1615
- border: 2px solid var(--clio-ink);
1616
- border-radius: 6px;
1617
- background: var(--clio-paper);
1618
- color: var(--clio-ink);
1619
- font: 700 22px/28px var(--clio-font-display);
1620
- text-align: center;
2071
+ /* ---- List view --------------------------------------------------------------
2072
+ The Finder's list view: column headers, the sorted column marked, rows of
2073
+ name and details. Markup: <table class="list-view"> with <th aria-sort> on
2074
+ the sorted column and an optional empty <th class="sort-direction">.
2075
+ System 7: plain headers in the small font, the sorted one underlined, a
2076
+ double rule below (Finder, View by Name). */
2077
+ :where(.list-view) {
2078
+ border-collapse: collapse;
2079
+ border-spacing: 0;
2080
+ background: var(--clio-list-view-bg);
2081
+ font-family: var(--clio-font-small);
2082
+ font-size: var(--clio-font-size-small);
2083
+ line-height: var(--clio-list-view-row);
1621
2084
  }
1622
2085
 
1623
- :where(.alert-icon.caution)::before { content: "!"; }
1624
- :where(.alert-icon.note)::before { content: "i"; }
1625
- :where(.alert-icon.stop) { border-radius: 50%; }
1626
- :where(.alert-icon.stop)::before { content: "\00D7"; }
1627
-
1628
- /* Scroll bars, for scroll areas clio.css owns (.window-pane, .listbox,
1629
- textarea, list-box selects) and for anything you mark with .clio-scroll.
1630
- Add class="clio-scrollbars" to <html> to give every scroll area the era's
1631
- scroll bar.
2086
+ :where(.list-view) :where(th, td) {
2087
+ box-sizing: border-box;
2088
+ }
1632
2089
 
1633
- WebKit/Blink draw the full bar: two arrow boxes, the patterned lane and the
1634
- scroll box. The scroll box is proportional to the content here (a browser
1635
- limit), where System 6 drew a fixed 16px square. Firefox has no scroll bar
1636
- parts, so it gets the era's colours through scrollbar-color. */
1637
- :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar,
1638
- :where(html.clio-scrollbars)::-webkit-scrollbar {
1639
- width: var(--clio-scrollbar-size);
1640
- height: var(--clio-scrollbar-size);
1641
- background: var(--clio-paper);
2090
+ :where(.list-view) :where(th) {
2091
+ height: var(--clio-list-view-header-height);
2092
+ padding: var(--clio-list-view-header-padding);
2093
+ background: var(--clio-list-view-header-bg);
2094
+ font-weight: normal;
2095
+ line-height: 14px;
2096
+ text-align: left;
2097
+ vertical-align: top;
2098
+ white-space: nowrap;
1642
2099
  }
1643
2100
 
1644
- :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track,
1645
- :where(html.clio-scrollbars)::-webkit-scrollbar-track {
1646
- background: var(--clio-scrollbar-track);
1647
- box-shadow: var(--clio-scrollbar-track-shadow);
2101
+ :where(.list-view) :where(th[aria-sort]:not([aria-sort="none"])) {
2102
+ background: var(--clio-list-view-sorted-header-bg);
2103
+ text-decoration: var(--clio-list-view-sorted-decoration);
2104
+ text-underline-offset: 2px;
1648
2105
  }
1649
2106
 
1650
- :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track:vertical,
1651
- :where(html.clio-scrollbars)::-webkit-scrollbar-track:vertical {
1652
- border-left: 1px solid var(--clio-ink);
2107
+ :where(.list-view) :where(td) {
2108
+ height: var(--clio-list-view-row);
2109
+ padding: 0 4px;
2110
+ vertical-align: middle;
2111
+ white-space: nowrap;
1653
2112
  }
1654
2113
 
1655
- :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track:horizontal,
1656
- :where(html.clio-scrollbars)::-webkit-scrollbar-track:horizontal {
1657
- border-top: 1px solid var(--clio-ink);
2114
+ :where(.list-view) :where(td.sorted) {
2115
+ background: var(--clio-list-view-sorted-bg);
1658
2116
  }
1659
2117
 
1660
- :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb,
1661
- :where(html.clio-scrollbars)::-webkit-scrollbar-thumb {
1662
- min-width: var(--clio-scrollbar-size);
1663
- min-height: var(--clio-scrollbar-size);
1664
- border: var(--clio-scrollbar-thumb-border);
1665
- background: var(--clio-scrollbar-thumb-bg);
1666
- box-shadow: var(--clio-scrollbar-thumb-shadow);
2118
+ :where(.list-view) :where(.sort-direction) {
2119
+ width: var(--clio-list-view-sort-width);
2120
+ padding: 0;
1667
2121
  }
1668
2122
 
1669
- :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb:horizontal,
1670
- :where(html.clio-scrollbars)::-webkit-scrollbar-thumb:horizontal {
1671
- background: var(--clio-scrollbar-thumb-bg-horizontal, var(--clio-scrollbar-thumb-bg));
1672
- box-shadow: var(--clio-scrollbar-thumb-shadow-horizontal, var(--clio-scrollbar-thumb-shadow));
2123
+ /* ---- Slider ------------------------------------------------------------------
2124
+ <input type="range">, the Appearance slider (Mac OS 8 HIG: "Sliders and Tick
2125
+ Marks"). Add class "ticks" and --clio-slider-tick-count for tick marks under
2126
+ the track. System 6 and System 7 had no slider in the Toolbox; System 7.5's
2127
+ control panels drew their own (see the System 7 layer). */
2128
+ :where(input[type="range"]) {
2129
+ box-sizing: border-box;
2130
+ height: var(--clio-slider-height);
2131
+ margin: 0;
2132
+ /* Chrome centres the track in the content box: the padding puts it
2133
+ --clio-slider-track-top below the thumb's top. */
2134
+ padding: 0 0 calc(var(--clio-slider-height) - var(--clio-slider-track-height) - 2 * var(--clio-slider-track-top));
2135
+ background: transparent;
2136
+ appearance: none;
2137
+ -webkit-appearance: none;
2138
+ cursor: var(--clio-cursor-arrow);
1673
2139
  }
1674
2140
 
1675
- :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:start:decrement,
1676
- :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:end:increment,
1677
- :where(html.clio-scrollbars)::-webkit-scrollbar-button:start:decrement,
1678
- :where(html.clio-scrollbars)::-webkit-scrollbar-button:end:increment {
1679
- display: block;
1680
- width: var(--clio-scrollbar-size);
1681
- height: var(--clio-scrollbar-size);
1682
- background-color: var(--clio-scrollbar-button-bg);
1683
- background-position: center;
1684
- background-repeat: no-repeat;
1685
- box-shadow: var(--clio-scrollbar-button-shadow);
2141
+ :where(input[type="range"].ticks) {
2142
+ /* A whole number of pixels: each engine rounds a fractional period its own way. */
2143
+ --clio-slider-tick-spacing: round((100% - var(--clio-slider-tick-run)) / (var(--clio-slider-tick-count) - 1), 1px);
2144
+ height: calc(var(--clio-slider-height) + var(--clio-slider-tick-gap) + 4px);
2145
+ background:
2146
+ repeating-linear-gradient(to right, var(--clio-slider-tick-light) 0 1px, var(--clio-slider-tick-ink) 1px 2px, var(--clio-slider-tick-shade) 2px 3px, transparent 3px var(--clio-slider-tick-spacing)) var(--clio-slider-tick-offset) 100% / 100% 3px no-repeat,
2147
+ repeating-linear-gradient(to right, var(--clio-slider-tick-light) 0 2px, transparent 2px var(--clio-slider-tick-spacing)) var(--clio-slider-tick-offset) calc(100% - 3px) / 100% 1px no-repeat;
1686
2148
  }
1687
2149
 
1688
- :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:decrement,
1689
- :where(html.clio-scrollbars)::-webkit-scrollbar-button:vertical:decrement {
1690
- border-left: 1px solid var(--clio-ink);
1691
- border-bottom: 1px solid var(--clio-ink);
1692
- background-image: var(--clio-scrollbar-up);
2150
+ :where(input[type="range"])::-webkit-slider-runnable-track {
2151
+ box-sizing: border-box;
2152
+ height: var(--clio-slider-track-height);
2153
+ border-style: solid;
2154
+ border-width: var(--clio-slider-track-slice);
2155
+ border-color: transparent;
2156
+ border-image: var(--clio-art-slider-track) var(--clio-slider-track-slice-n) fill / var(--clio-slider-track-slice) stretch;
2157
+ }
2158
+
2159
+ :where(input[type="range"])::-webkit-slider-thumb {
2160
+ width: var(--clio-slider-thumb-width);
2161
+ height: var(--clio-slider-thumb-height);
2162
+ /* the thumb sits in the track's content box, inside the border-image slice */
2163
+ margin-top: calc(-1 * (var(--clio-slider-track-top) + var(--clio-slider-track-slice)));
2164
+ border: 0;
2165
+ background: var(--clio-art-slider-thumb) 0 0 / 100% 100% no-repeat;
2166
+ appearance: none;
2167
+ -webkit-appearance: none;
1693
2168
  }
1694
2169
 
1695
- :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:increment,
1696
- :where(html.clio-scrollbars)::-webkit-scrollbar-button:vertical:increment {
1697
- border-left: 1px solid var(--clio-ink);
1698
- border-top: 1px solid var(--clio-ink);
1699
- background-image: var(--clio-scrollbar-down);
2170
+ /* Firefox: the same track and thumb through its own parts. Its thumb travels
2171
+ the whole content box: the padding keeps it inside the track's ends, as
2172
+ Chrome's and the Mac's (Mouse control panel at both ends), and the track
2173
+ reaches back over the padding. */
2174
+ @supports selector(::-moz-range-thumb) {
2175
+ :where(input[type="range"]) {
2176
+ padding-inline: var(--clio-slider-track-slice);
2177
+ }
1700
2178
  }
1701
2179
 
1702
- :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal:decrement,
1703
- :where(html.clio-scrollbars)::-webkit-scrollbar-button:horizontal:decrement {
1704
- border-top: 1px solid var(--clio-ink);
1705
- border-right: 1px solid var(--clio-ink);
1706
- background-image: var(--clio-scrollbar-left);
2180
+ :where(input[type="range"])::-moz-range-track {
2181
+ margin-inline: calc(-1 * var(--clio-slider-track-slice));
1707
2182
  }
1708
2183
 
1709
- :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal:increment,
1710
- :where(html.clio-scrollbars)::-webkit-scrollbar-button:horizontal:increment {
1711
- border-top: 1px solid var(--clio-ink);
1712
- border-left: 1px solid var(--clio-ink);
1713
- background-image: var(--clio-scrollbar-right);
2184
+ :where(input[type="range"])::-moz-range-track {
2185
+ box-sizing: border-box;
2186
+ height: var(--clio-slider-track-height);
2187
+ border-style: solid;
2188
+ border-width: var(--clio-slider-track-slice);
2189
+ border-color: transparent;
2190
+ border-image: var(--clio-art-slider-track) var(--clio-slider-track-slice-n) fill / var(--clio-slider-track-slice) stretch;
1714
2191
  }
1715
2192
 
1716
- :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:decrement:active,
1717
- :where(html.clio-scrollbars)::-webkit-scrollbar-button:vertical:decrement:active {
1718
- background-image: var(--clio-scrollbar-up-on);
2193
+ :where(input[type="range"])::-moz-range-thumb {
2194
+ box-sizing: border-box;
2195
+ width: var(--clio-slider-thumb-width);
2196
+ height: var(--clio-slider-thumb-height);
2197
+ border: 0;
2198
+ border-radius: 0;
2199
+ background: var(--clio-art-slider-thumb) 0 0 / 100% 100% no-repeat;
2200
+ /* Firefox centres the thumb in the content box (its top lands half a pixel
2201
+ above, then on the pixel below); this brings its top to the content box's. */
2202
+ translate: 0 round(down, (var(--clio-slider-thumb-height) - var(--clio-slider-track-height) - 2 * var(--clio-slider-track-top)) / 2, 1px);
2203
+ }
2204
+
2205
+ /* ---- Little arrows -----------------------------------------------------------
2206
+ The up/down pair beside a number or clock field (Mac OS 8 HIG: "Little
2207
+ Arrows"; System 7's control panels drew them too). Markup:
2208
+ <span class="little-arrows" role="group" aria-label="Cache size">
2209
+ <button class="up" aria-label="Increase"></button>
2210
+ <button class="down" aria-label="Decrease"></button></span>
2211
+ Add aria-disabled="true" (or disabled buttons) for the dimmed pair. */
2212
+ :where(.little-arrows) {
2213
+ display: inline-flex;
2214
+ flex-direction: column;
2215
+ width: var(--clio-little-arrows-width);
2216
+ height: var(--clio-little-arrows-height);
2217
+ background: var(--clio-art-little-arrows) 0 0 / 100% 100% no-repeat;
2218
+ vertical-align: middle;
1719
2219
  }
1720
2220
 
1721
- :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:increment:active,
2221
+ :where(.little-arrows) > :where(button) {
2222
+ flex: 1 1 50%;
2223
+ min-width: 0;
2224
+ min-height: 0;
2225
+ margin: 0;
2226
+ padding: 0;
2227
+ border: 0;
2228
+ border-image: none;
2229
+ background: transparent;
2230
+ box-shadow: none;
2231
+ appearance: none;
2232
+ -webkit-appearance: none;
2233
+ }
2234
+
2235
+ :where(.little-arrows) > :where(button)::before,
2236
+ :where(.little-arrows) > :where(button)::after {
2237
+ content: none;
2238
+ }
2239
+
2240
+ :where(.little-arrows):has(> .up:active:where(:not([data-clio-off]))) {
2241
+ background-image: var(--clio-art-little-arrows-up, var(--clio-art-little-arrows));
2242
+ }
2243
+
2244
+ :where(.little-arrows):has(> .down:active:where(:not([data-clio-off]))) {
2245
+ background-image: var(--clio-art-little-arrows-down, var(--clio-art-little-arrows));
2246
+ }
2247
+
2248
+ :where(.little-arrows):is([aria-disabled="true"], :has(> button:disabled)) {
2249
+ background-image: var(--clio-art-little-arrows-disabled, var(--clio-art-little-arrows));
2250
+ }
2251
+
2252
+ /* ---- Bevel button ------------------------------------------------------------
2253
+ A square bevelled button for an icon or a short label, which can act as a
2254
+ push button, a toggle (aria-pressed) or a menu (class "menu", aria-haspopup)
2255
+ (Mac OS 8 HIG: "Bevel Buttons"). Earlier eras had none and use push buttons'
2256
+ square cousin from Platinum. */
2257
+ :where(.bevel) {
2258
+ display: inline-flex;
2259
+ align-items: center;
2260
+ justify-content: center;
2261
+ box-sizing: border-box;
2262
+ min-width: var(--clio-bevel-min);
2263
+ min-height: var(--clio-bevel-min);
2264
+ margin: 0;
2265
+ padding: var(--clio-bevel-padding);
2266
+ border: var(--clio-bevel-slice) solid transparent;
2267
+ border-radius: 0;
2268
+ border-image: var(--clio-art-bevel) var(--clio-bevel-slice-n) fill / var(--clio-bevel-slice) stretch;
2269
+ background: transparent;
2270
+ box-shadow: none;
2271
+ color: var(--clio-ink);
2272
+ font: inherit;
2273
+ appearance: none;
2274
+ -webkit-appearance: none;
2275
+ cursor: var(--clio-cursor-arrow);
2276
+ }
2277
+
2278
+ :where(.bevel):is(:active:where(:not([data-clio-off])), .active, [aria-pressed="true"]):not(:disabled) {
2279
+ border-image-source: var(--clio-art-bevel-held);
2280
+ }
2281
+
2282
+ :where(.bevel) {
2283
+ position: relative;
2284
+ }
2285
+
2286
+ :where(.bevel)::before,
2287
+ :where(.bevel)::after {
2288
+ content: none;
2289
+ }
2290
+
2291
+ /* The menu arrow, over the face (border-image fill paints over backgrounds). */
2292
+ :where(.bevel.menu, .bevel[aria-haspopup])::after {
2293
+ content: "";
2294
+ position: absolute;
2295
+ right: calc(var(--clio-bevel-arrow-right) - var(--clio-bevel-slice));
2296
+ bottom: calc(var(--clio-bevel-arrow-bottom) - var(--clio-bevel-slice));
2297
+ width: var(--clio-bevel-arrow-width);
2298
+ height: var(--clio-bevel-arrow-height);
2299
+ background: var(--clio-art-bevel-menu-arrow) 0 0 / 100% 100% no-repeat;
2300
+ }
2301
+
2302
+ /* ---- Keyboard focus on lists ---------------------------------------------------
2303
+ Mac OS 8 draws the same ring round a list box that has the keyboard focus
2304
+ (Appearance, Desktop tab, the pattern list); text fields take it from
2305
+ --clio-field-focus-shadow. */
2306
+ :where(.listbox, [role="listbox"], select[multiple]):is(:focus-visible, :focus-within) {
2307
+ box-shadow: var(--clio-list-focus-shadow, var(--clio-list-shadow));
2308
+ }
2309
+
2310
+ /* ---- Chasing arrows ------------------------------------------------------------
2311
+ The asynchronous progress indicator (Mac OS 8 HIG: "Asynchronous Arrows").
2312
+ Markup: <span class="chasing-arrows" role="status" aria-label="Looking…">.
2313
+ It turns by stepping through the era's frames; with reduced motion it
2314
+ stands still on the first. Earlier eras had a spinning watch cursor
2315
+ instead, and use Platinum's arrows. */
2316
+ :where(.chasing-arrows) {
2317
+ position: relative;
2318
+ display: inline-block;
2319
+ width: 16px;
2320
+ height: 16px;
2321
+ overflow: hidden;
2322
+ vertical-align: middle;
2323
+ }
2324
+
2325
+ /* The frames side by side on a strip that moves a frame at a time (transform
2326
+ only, so the turning stays off the main thread). */
2327
+ :where(.chasing-arrows)::before {
2328
+ content: "";
2329
+ position: absolute;
2330
+ top: 0;
2331
+ left: 0;
2332
+ width: calc(16px * var(--clio-chasing-arrows-frames));
2333
+ height: 16px;
2334
+ background: var(--clio-art-chasing-arrows) 0 0 / 100% 100% no-repeat;
2335
+ animation: clio-chase calc(var(--clio-chasing-arrows-frames) * 0.12s) steps(var(--clio-chasing-arrows-frames)) infinite;
2336
+ }
2337
+
2338
+ @keyframes clio-chase {
2339
+ to { transform: translateX(calc(-16px * var(--clio-chasing-arrows-frames))); }
2340
+ }
2341
+
2342
+ @media (prefers-reduced-motion: reduce) {
2343
+ :where(.chasing-arrows)::before { animation: none; }
2344
+ }
2345
+
2346
+ /* ---- Help button -----------------------------------------------------------------
2347
+ The square button with the help icon in a dialog's lower left (Mac OS 8 HIG:
2348
+ "Help Button Layout"). <button class="help-button" aria-label="Help">.
2349
+ Earlier eras put a "Help" push button there instead, and use Platinum's. */
2350
+ :where(.help-button) {
2351
+ box-sizing: border-box;
2352
+ width: 21px;
2353
+ min-width: 0;
2354
+ height: 20px;
2355
+ min-height: 0;
2356
+ margin: 0;
2357
+ padding: 0;
2358
+ border: 0;
2359
+ border-radius: 0;
2360
+ border-image: none;
2361
+ background: var(--clio-art-help-button) 0 0 / 21px 20px no-repeat;
2362
+ box-shadow: none;
2363
+ color: transparent;
2364
+ font-size: 0;
2365
+ appearance: none;
2366
+ -webkit-appearance: none;
2367
+ cursor: var(--clio-cursor-arrow);
2368
+ }
2369
+
2370
+ :where(.help-button)::before,
2371
+ :where(.help-button)::after {
2372
+ content: none;
2373
+ }
2374
+
2375
+ /* ---- Image well ---------------------------------------------------------------------
2376
+ A sunken well that holds a picture or an icon (Mac OS 8 HIG: "Image Wells"),
2377
+ drawn like the era's field frame round a white face (inferred: no image
2378
+ well was on the captured screens). <div class="image-well"><img …></div> */
2379
+ :where(.image-well) {
2380
+ display: inline-flex;
2381
+ align-items: center;
2382
+ justify-content: center;
2383
+ box-sizing: border-box;
2384
+ border: var(--clio-field-border);
2385
+ background: var(--clio-image-well-bg);
2386
+ box-shadow: var(--clio-field-shadow);
2387
+ }
2388
+
2389
+ /* ---- Group boxes: secondary, and titled by a check box ---------------------------
2390
+ <fieldset class="secondary"> is the lighter group for a subordinate set
2391
+ (Mac OS 8 HIG: "Group Boxes"). A check box or pop-up menu as the title goes
2392
+ in the legend: <legend><label><input type="checkbox"> Use a server</label></legend>.
2393
+ Before Mac OS 8 every group box is the one kind. */
2394
+ :where(fieldset > legend) > :where(label) {
2395
+ display: inline-flex;
2396
+ align-items: center;
2397
+ gap: 4px;
2398
+ }
2399
+
2400
+ /* ---- Utility window ------------------------------------------------------------------
2401
+ A floating palette (Mac OS 8 HIG: "Utility Windows"; HIG 1992: floating
2402
+ windows): <div class="window utility"> with the usual .title-bar. Its title
2403
+ bar is thinner, its boxes smaller and its title in the small font. Before
2404
+ Mac OS 8 the eras draw it from the document window's parts (inferred). */
2405
+ :where(.window.utility) {
2406
+ --clio-titlebar-height: var(--clio-utility-titlebar-height);
2407
+ --clio-titlebar-row: var(--clio-utility-titlebar-row);
2408
+ --clio-box-size: var(--clio-utility-box-size);
2409
+ --clio-titlebar-slot: var(--clio-utility-slot);
2410
+ min-width: 80px;
2411
+ }
2412
+
2413
+ :where(.window.utility) > :where(.title-bar) > :is(.title, h1, h2, h3) {
2414
+ font-size: var(--clio-utility-title-size, var(--clio-title-font-size));
2415
+ }
2416
+
2417
+ /* ---- Help balloon ------------------------------------------------------------------
2418
+ Balloon Help (HIG 1992, ch. 11; Mac OS 8 and 9 kept it): a white balloon
2419
+ with a rounded outline, a 2px drop on the right and below, and a tail rising
2420
+ from its top edge near the right towards the object it describes.
2421
+ <div class="balloon" role="tooltip">…</div>. The tail's tip, under the
2422
+ pointer in the capture, is inferred. */
2423
+ :where(.balloon) {
2424
+ position: relative;
2425
+ box-sizing: border-box;
2426
+ width: max-content;
2427
+ max-width: 260px;
2428
+ margin-top: 14px;
2429
+ padding: 8px 12px 10px 10px;
2430
+ border: 10px solid transparent;
2431
+ border-image: var(--clio-art-balloon) 10 fill / 10px stretch;
2432
+ font-family: var(--clio-font-small);
2433
+ font-size: var(--clio-font-size-small);
2434
+ line-height: 13px;
2435
+ }
2436
+
2437
+ :where(.balloon) {
2438
+ padding: 0 2px 0 0;
2439
+ }
2440
+
2441
+ :where(.balloon)::before {
2442
+ content: "";
2443
+ position: absolute;
2444
+ top: -23px;
2445
+ right: -5px;
2446
+ width: 12px;
2447
+ height: 14px;
2448
+ background: var(--clio-art-balloon-tail) 0 0 / 12px 14px no-repeat;
2449
+ }
2450
+
2451
+ /* The rare controls (ROADMAP "Can wait" 10): the rounded-corner window, placards,
2452
+ split bars and the side-title utility window (its Platinum drawing is in
2453
+ 90-platinum.css). Measured in Infinite Mac; see EVIDENCE.md. */
2454
+
2455
+ /* ---- Rounded-corner window (rDocProc, desk accessories) ----------------------
2456
+ <div class="rounded-window"> > <div class="rounded-title"> (> .close, h2) and
2457
+ any content. The Calculator draws the same window in System 6.0.8, 7.5.3,
2458
+ Mac OS 8.5 (Drawing Board) and 9.0: a 1px black frame whose corners step in
2459
+ 5, 3, 2, 1, 1 pixels; a 17-row black title bar ruled below, the title in
2460
+ white centred in the space right of an 11px white close box at (9,4). In the
2461
+ background the bar turns white, the title black, and the close box goes. */
2462
+ :where(.rounded-window) {
2463
+ --clio-rounded-bg: #ffffff;
2464
+ position: relative;
2465
+ display: flex;
2466
+ flex-direction: column;
2467
+ box-sizing: border-box;
2468
+ min-width: 60px;
2469
+ border: 1px solid #000000;
2470
+ background: var(--clio-rounded-bg);
2471
+ -webkit-mask:
2472
+ var(--clio-art-rdoc-mask-tl) left top / 6px 6px no-repeat,
2473
+ var(--clio-art-rdoc-mask-tr) right top / 6px 6px no-repeat,
2474
+ var(--clio-art-rdoc-mask-bl) left bottom / 6px 6px no-repeat,
2475
+ var(--clio-art-rdoc-mask-br) right bottom / 6px 6px no-repeat,
2476
+ linear-gradient(#000000, #000000) 0 6px / 100% calc(100% - 12px) no-repeat,
2477
+ linear-gradient(#000000, #000000) 6px 0 / calc(100% - 12px) 100% no-repeat;
2478
+ mask:
2479
+ var(--clio-art-rdoc-mask-tl) left top / 6px 6px no-repeat,
2480
+ var(--clio-art-rdoc-mask-tr) right top / 6px 6px no-repeat,
2481
+ var(--clio-art-rdoc-mask-bl) left bottom / 6px 6px no-repeat,
2482
+ var(--clio-art-rdoc-mask-br) right bottom / 6px 6px no-repeat,
2483
+ linear-gradient(#000000, #000000) 0 6px / 100% calc(100% - 12px) no-repeat,
2484
+ linear-gradient(#000000, #000000) 6px 0 / calc(100% - 12px) 100% no-repeat;
2485
+ }
2486
+
2487
+ /* The frame's curve inside each corner, over the title bar and the content. */
2488
+ .rounded-window::after {
2489
+ content: "";
2490
+ position: absolute;
2491
+ inset: -1px;
2492
+ z-index: 1;
2493
+ background:
2494
+ var(--clio-art-rdoc-frame-tl) left top / 6px 6px no-repeat,
2495
+ var(--clio-art-rdoc-frame-tr) right top / 6px 6px no-repeat,
2496
+ var(--clio-art-rdoc-frame-bl) left bottom / 6px 6px no-repeat,
2497
+ var(--clio-art-rdoc-frame-br) right bottom / 6px 6px no-repeat;
2498
+ pointer-events: none;
2499
+ }
2500
+
2501
+ .rounded-window > .rounded-title {
2502
+ position: relative;
2503
+ display: flex;
2504
+ flex: none;
2505
+ justify-content: center;
2506
+ box-sizing: border-box;
2507
+ height: 18px;
2508
+ padding: 1px 1px 0 18px;
2509
+ border-bottom: 1px solid #000000;
2510
+ background: #000000;
2511
+ color: #ffffff;
2512
+ font-family: var(--clio-font-window-title, var(--clio-font-chrome));
2513
+ user-select: none;
2514
+ -webkit-user-select: none;
2515
+ }
2516
+
2517
+ .rounded-window > .rounded-title > :is(.title, h1, h2, h3) {
2518
+ margin: 0;
2519
+ overflow: hidden;
2520
+ color: inherit;
2521
+ font: inherit;
2522
+ font-size: var(--clio-title-font-size);
2523
+ font-stretch: var(--clio-font-stretch-title);
2524
+ font-weight: var(--clio-chrome-weight);
2525
+ line-height: 16px;
2526
+ text-overflow: ellipsis;
2527
+ white-space: nowrap;
2528
+ }
2529
+
2530
+ .rounded-window > .rounded-title > :is(button.close, .close) {
2531
+ position: absolute;
2532
+ top: 3px;
2533
+ left: 8px;
2534
+ box-sizing: border-box;
2535
+ width: 11px;
2536
+ min-width: 0;
2537
+ height: 11px;
2538
+ min-height: 0;
2539
+ margin: 0;
2540
+ padding: 0;
2541
+ border: 1px solid #ffffff;
2542
+ border-image: none;
2543
+ border-radius: 0;
2544
+ background: transparent;
2545
+ box-shadow: none;
2546
+ font-size: 0;
2547
+ appearance: none;
2548
+ -webkit-appearance: none;
2549
+ cursor: var(--clio-cursor-arrow);
2550
+ }
2551
+
2552
+ .rounded-window > .rounded-title > :is(button.close, .close)::before,
2553
+ .rounded-window > .rounded-title > :is(button.close, .close)::after {
2554
+ content: none;
2555
+ }
2556
+
2557
+ .rounded-window > .rounded-title > :is(button.close, .close):focus-visible {
2558
+ outline: 1px dotted #ffffff;
2559
+ outline-offset: 1px;
2560
+ }
2561
+
2562
+ .rounded-window.inactive > .rounded-title {
2563
+ background: #ffffff;
2564
+ color: #000000;
2565
+ }
2566
+
2567
+ .rounded-window.inactive > .rounded-title > :is(button.close, .close) {
2568
+ visibility: hidden;
2569
+ }
2570
+
2571
+ /* ---- Placard ------------------------------------------------------------------
2572
+ A framed strip for status at the foot of a window, beside the horizontal scroll
2573
+ bar (Mac OS 8 HIG: "Placards"). The control came with the Appearance Manager;
2574
+ before it, the eras draw a 1px frame on the paper (adapted). */
2575
+ :where(.placard) {
2576
+ display: inline-flex;
2577
+ align-items: center;
2578
+ box-sizing: border-box;
2579
+ min-height: 16px;
2580
+ margin: 0;
2581
+ padding: 0 4px;
2582
+ border: 1px solid var(--clio-ink);
2583
+ border-radius: 0;
2584
+ background: var(--clio-paper);
2585
+ box-shadow: none;
2586
+ color: var(--clio-ink);
2587
+ font-family: var(--clio-font-small);
2588
+ font-size: var(--clio-font-size-small, 9px);
2589
+ line-height: 12px;
2590
+ white-space: nowrap;
2591
+ }
2592
+
2593
+ /* ---- Split bar and split line ---------------------------------------------------
2594
+ <div class="split-view"> > .split-bar (above the vertical scroll bar), panes,
2595
+ and a .split-line between two panes. Apple's guidelines (1992) give the split
2596
+ bar as a control 5 pixels high by the width of the scroll bar, at its top, and
2597
+ the split line as two lines with a one-pixel space; BBEdit 5.1 in Mac OS 9 draws
2598
+ it 7 rows high (90-platinum.css). Moving it is the application's: clio.css only
2599
+ draws it. */
2600
+ :where(.split-view) {
2601
+ display: flex;
2602
+ flex-direction: column;
2603
+ min-height: 0;
2604
+ background: var(--clio-split-bg, var(--clio-pane-bg));
2605
+ }
2606
+
2607
+ :where(.split-view) > :where(.split-bar) {
2608
+ align-self: flex-end;
2609
+ }
2610
+
2611
+ :where(.split-bar) {
2612
+ flex: none;
2613
+ box-sizing: border-box;
2614
+ width: var(--clio-scrollbar-size);
2615
+ height: var(--clio-split-bar-height, 5px);
2616
+ background: var(--clio-split-ink, var(--clio-ink));
2617
+ cursor: row-resize;
2618
+ }
2619
+
2620
+ :where(.split-line) {
2621
+ --clio-split-line-1: 1px;
2622
+ flex: none;
2623
+ box-sizing: border-box;
2624
+ height: var(--clio-split-bar-height, 5px);
2625
+ margin: 0;
2626
+ border: 0;
2627
+ background:
2628
+ linear-gradient(var(--clio-split-ink, var(--clio-ink)), var(--clio-split-ink, var(--clio-ink))) right top / var(--clio-scrollbar-size) 100% no-repeat,
2629
+ linear-gradient(var(--clio-split-ink, var(--clio-ink)), var(--clio-split-ink, var(--clio-ink))) 0 var(--clio-split-line-1) / 100% 1px no-repeat,
2630
+ linear-gradient(var(--clio-split-ink, var(--clio-ink)), var(--clio-split-ink, var(--clio-ink))) 0 calc(var(--clio-split-line-1) + 2px) / 100% 1px no-repeat,
2631
+ var(--clio-split-bg, var(--clio-pane-bg));
2632
+ cursor: row-resize;
2633
+ }
2634
+
2635
+ /* Dialogs and alerts.
2636
+ .modal-dialog / .alert-box: the double-framed modal box (dBoxProc).
2637
+ .standard-dialog: the plain box with a drop shadow (altDBoxProc).
2638
+ .modeless-dialog: a movable dialog, which is a .window.
2639
+ Use them on <dialog> or on a <div role="dialog">. system.css's
2640
+ .outer-border / .inner-border wrappers are accepted and draw nothing extra. */
2641
+ :where(.modal-dialog, .alert-box, dialog.modal) {
2642
+ box-sizing: border-box;
2643
+ max-width: 100%;
2644
+ margin: 0;
2645
+ padding: var(--clio-modal-padding);
2646
+ border: var(--clio-modal-border);
2647
+ background: var(--clio-dialog-bg);
2648
+ box-shadow: var(--clio-modal-frame);
2649
+ color: var(--clio-ink);
2650
+ }
2651
+
2652
+ :where(.standard-dialog) {
2653
+ box-sizing: border-box;
2654
+ max-width: 100%;
2655
+ margin: 0;
2656
+ padding: 12px 14px;
2657
+ border: var(--clio-plain-dialog-border);
2658
+ background: var(--clio-dialog-bg);
2659
+ box-shadow: var(--clio-plain-dialog-shadow);
2660
+ color: var(--clio-ink);
2661
+ }
2662
+
2663
+ :where(dialog):is(.modal-dialog, .alert-box, .standard-dialog, .modal)::backdrop {
2664
+ background: transparent;
2665
+ }
2666
+
2667
+ :where(.modal-dialog, .alert-box, .standard-dialog) :where(.outer-border, .inner-border) {
2668
+ padding: 0;
2669
+ border: 0;
2670
+ }
2671
+
2672
+ /* Alert layout: icon on the left, message, buttons bottom-right. */
2673
+ :where(.alert-box) {
2674
+ display: grid;
2675
+ grid-template-columns: auto 1fr;
2676
+ column-gap: 16px;
2677
+ row-gap: 12px;
2678
+ align-items: start;
2679
+ }
2680
+
2681
+ :where(.alert-box) > :where(.alert-icon) {
2682
+ grid-row: 1;
2683
+ width: 32px;
2684
+ height: 32px;
2685
+ }
2686
+
2687
+ :where(.alert-box) > :where(.alert-contents, .modal-contents, p) {
2688
+ grid-column: 2;
2689
+ margin: 0;
2690
+ }
2691
+
2692
+ :where(.alert-box) > :where(.alert-buttons, .dialog-buttons) {
2693
+ grid-column: 1 / -1;
2694
+ }
2695
+
2696
+ :where(.dialog-buttons, .alert-buttons) {
2697
+ display: flex;
2698
+ flex-wrap: wrap;
2699
+ justify-content: flex-end;
2700
+ gap: 12px;
2701
+ margin-top: 12px;
2702
+ }
2703
+
2704
+ /* An alert icon drawn here, not Apple's: a rounded speech box with "!". */
2705
+ :where(.alert-icon.caution, .alert-icon.note, .alert-icon.stop) {
2706
+ display: block;
2707
+ box-sizing: border-box;
2708
+ border: 2px solid var(--clio-ink);
2709
+ border-radius: 6px;
2710
+ background: var(--clio-paper);
2711
+ color: var(--clio-ink);
2712
+ font: 700 22px/28px var(--clio-font-display);
2713
+ text-align: center;
2714
+ }
2715
+
2716
+ :where(.alert-icon.caution)::before { content: "!"; }
2717
+ :where(.alert-icon.note)::before { content: "i"; }
2718
+ :where(.alert-icon.stop) { border-radius: 50%; }
2719
+ :where(.alert-icon.stop)::before { content: "\00D7"; }
2720
+
2721
+ /* Scroll bars, for scroll areas clio.css owns (.window-pane, .listbox,
2722
+ textarea, list-box selects) and for anything you mark with .clio-scroll.
2723
+ Add class="clio-scrollbars" to <html> to give every scroll area the era's
2724
+ scroll bar.
2725
+
2726
+ WebKit/Blink draw the full bar: two arrow boxes, the patterned lane and the
2727
+ scroll box. The scroll box is proportional to the content here (a browser
2728
+ limit), where System 6 drew a fixed 16px square. Firefox has no scroll bar
2729
+ parts, so it gets the era's colours through scrollbar-color. */
2730
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar,
2731
+ :where(html.clio-scrollbars)::-webkit-scrollbar {
2732
+ width: var(--clio-scrollbar-size);
2733
+ height: var(--clio-scrollbar-size);
2734
+ background: var(--clio-paper);
2735
+ }
2736
+
2737
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb {
2738
+ width: var(--clio-scrollbar-size);
2739
+ height: var(--clio-scrollbar-size);
2740
+ background: var(--clio-paper);
2741
+ }
2742
+
2743
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track,
2744
+ :where(html.clio-scrollbars)::-webkit-scrollbar-track {
2745
+ background: var(--clio-scrollbar-track);
2746
+ box-shadow: var(--clio-scrollbar-track-shadow);
2747
+ }
2748
+
2749
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-track {
2750
+ background: var(--clio-scrollbar-track);
2751
+ box-shadow: var(--clio-scrollbar-track-shadow);
2752
+ }
2753
+
2754
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track:vertical,
2755
+ :where(html.clio-scrollbars)::-webkit-scrollbar-track:vertical {
2756
+ border-left: 1px solid var(--clio-ink);
2757
+ }
2758
+
2759
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-v > .clio-sb-track {
2760
+ border-left: 1px solid var(--clio-ink);
2761
+ }
2762
+
2763
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track:horizontal,
2764
+ :where(html.clio-scrollbars)::-webkit-scrollbar-track:horizontal {
2765
+ border-top: 1px solid var(--clio-ink);
2766
+ }
2767
+
2768
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-track {
2769
+ border-top: 1px solid var(--clio-ink);
2770
+ }
2771
+
2772
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb,
2773
+ :where(html.clio-scrollbars)::-webkit-scrollbar-thumb {
2774
+ min-width: var(--clio-scrollbar-size);
2775
+ min-height: var(--clio-scrollbar-size);
2776
+ border: var(--clio-scrollbar-thumb-border);
2777
+ background: var(--clio-scrollbar-thumb-bg);
2778
+ box-shadow: var(--clio-scrollbar-thumb-shadow);
2779
+ }
2780
+
2781
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-thumb {
2782
+ min-width: var(--clio-scrollbar-size);
2783
+ min-height: var(--clio-scrollbar-size);
2784
+ border: var(--clio-scrollbar-thumb-border);
2785
+ background: var(--clio-scrollbar-thumb-bg);
2786
+ box-shadow: var(--clio-scrollbar-thumb-shadow);
2787
+ }
2788
+
2789
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb:horizontal,
2790
+ :where(html.clio-scrollbars)::-webkit-scrollbar-thumb:horizontal {
2791
+ background: var(--clio-scrollbar-thumb-bg-horizontal, var(--clio-scrollbar-thumb-bg));
2792
+ box-shadow: var(--clio-scrollbar-thumb-shadow-horizontal, var(--clio-scrollbar-thumb-shadow));
2793
+ }
2794
+
2795
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-thumb {
2796
+ background: var(--clio-scrollbar-thumb-bg-horizontal, var(--clio-scrollbar-thumb-bg));
2797
+ box-shadow: var(--clio-scrollbar-thumb-shadow-horizontal, var(--clio-scrollbar-thumb-shadow));
2798
+ }
2799
+
2800
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:start:decrement,
2801
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:end:increment,
2802
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:start:decrement,
2803
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:end:increment {
2804
+ display: block;
2805
+ width: var(--clio-scrollbar-size);
2806
+ height: var(--clio-scrollbar-size);
2807
+ background-color: var(--clio-scrollbar-button-bg);
2808
+ background-position: center;
2809
+ background-repeat: no-repeat;
2810
+ box-shadow: var(--clio-scrollbar-button-shadow);
2811
+ }
2812
+
2813
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-button:not(.clio-sb-never).clio-sb-dec,
2814
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-button:not(.clio-sb-never).clio-sb-inc {
2815
+ display: block;
2816
+ width: var(--clio-scrollbar-size);
2817
+ height: var(--clio-scrollbar-size);
2818
+ background-color: var(--clio-scrollbar-button-bg);
2819
+ background-position: center;
2820
+ background-repeat: no-repeat;
2821
+ box-shadow: var(--clio-scrollbar-button-shadow);
2822
+ }
2823
+
2824
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:decrement,
2825
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:vertical:decrement {
2826
+ border-left: 1px solid var(--clio-ink);
2827
+ border-bottom: 1px solid var(--clio-ink);
2828
+ background-image: var(--clio-scrollbar-up), var(--clio-scrollbar-button-bevel);
2829
+ }
2830
+
2831
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-v > .clio-sb-button.clio-sb-dec {
2832
+ border-left: 1px solid var(--clio-ink);
2833
+ border-bottom: 1px solid var(--clio-ink);
2834
+ background-image: var(--clio-scrollbar-up), var(--clio-scrollbar-button-bevel);
2835
+ }
2836
+
2837
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:increment,
2838
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:vertical:increment {
2839
+ border-left: 1px solid var(--clio-ink);
2840
+ border-top: 1px solid var(--clio-ink);
2841
+ background-image: var(--clio-scrollbar-down), var(--clio-scrollbar-button-bevel);
2842
+ }
2843
+
2844
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-v > .clio-sb-button.clio-sb-inc {
2845
+ border-left: 1px solid var(--clio-ink);
2846
+ border-top: 1px solid var(--clio-ink);
2847
+ background-image: var(--clio-scrollbar-down), var(--clio-scrollbar-button-bevel);
2848
+ }
2849
+
2850
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal:decrement,
2851
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:horizontal:decrement {
2852
+ border-top: 1px solid var(--clio-ink);
2853
+ border-right: 1px solid var(--clio-ink);
2854
+ background-image: var(--clio-scrollbar-left), var(--clio-scrollbar-button-bevel);
2855
+ }
2856
+
2857
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-button.clio-sb-dec {
2858
+ border-top: 1px solid var(--clio-ink);
2859
+ border-right: 1px solid var(--clio-ink);
2860
+ background-image: var(--clio-scrollbar-left), var(--clio-scrollbar-button-bevel);
2861
+ }
2862
+
2863
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal:increment,
2864
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:horizontal:increment {
2865
+ border-top: 1px solid var(--clio-ink);
2866
+ border-left: 1px solid var(--clio-ink);
2867
+ background-image: var(--clio-scrollbar-right), var(--clio-scrollbar-button-bevel);
2868
+ }
2869
+
2870
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-button.clio-sb-inc {
2871
+ border-top: 1px solid var(--clio-ink);
2872
+ border-left: 1px solid var(--clio-ink);
2873
+ background-image: var(--clio-scrollbar-right), var(--clio-scrollbar-button-bevel);
2874
+ }
2875
+
2876
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:decrement:active,
2877
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:vertical:decrement:active {
2878
+ background-image: var(--clio-scrollbar-up-on), var(--clio-scrollbar-button-bevel-on, none);
2879
+ }
2880
+
2881
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-v > .clio-sb-button.clio-sb-dec.clio-held {
2882
+ background-image: var(--clio-scrollbar-up-on), var(--clio-scrollbar-button-bevel-on, none);
2883
+ }
2884
+
2885
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:increment:active,
1722
2886
  :where(html.clio-scrollbars)::-webkit-scrollbar-button:vertical:increment:active {
1723
- background-image: var(--clio-scrollbar-down-on);
2887
+ background-image: var(--clio-scrollbar-down-on), var(--clio-scrollbar-button-bevel-on, none);
2888
+ }
2889
+
2890
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-v > .clio-sb-button.clio-sb-inc.clio-held {
2891
+ background-image: var(--clio-scrollbar-down-on), var(--clio-scrollbar-button-bevel-on, none);
1724
2892
  }
1725
2893
 
1726
2894
  :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal:decrement:active,
1727
2895
  :where(html.clio-scrollbars)::-webkit-scrollbar-button:horizontal:decrement:active {
1728
- background-image: var(--clio-scrollbar-left-on);
2896
+ background-image: var(--clio-scrollbar-left-on), var(--clio-scrollbar-button-bevel-on, none);
2897
+ }
2898
+
2899
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-button.clio-sb-dec.clio-held {
2900
+ background-image: var(--clio-scrollbar-left-on), var(--clio-scrollbar-button-bevel-on, none);
1729
2901
  }
1730
2902
 
1731
2903
  :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal:increment:active,
1732
2904
  :where(html.clio-scrollbars)::-webkit-scrollbar-button:horizontal:increment:active {
1733
- background-image: var(--clio-scrollbar-right-on);
2905
+ background-image: var(--clio-scrollbar-right-on), var(--clio-scrollbar-button-bevel-on, none);
2906
+ }
2907
+
2908
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-button.clio-sb-inc.clio-held {
2909
+ background-image: var(--clio-scrollbar-right-on), var(--clio-scrollbar-button-bevel-on, none);
1734
2910
  }
1735
2911
 
1736
2912
  /* Only the single arrow box at each end, as on the Mac. */
@@ -1748,12 +2924,224 @@
1748
2924
  background: var(--clio-scrollbar-corner);
1749
2925
  }
1750
2926
 
2927
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb-corner {
2928
+ border-top: 1px solid var(--clio-ink);
2929
+ border-left: 1px solid var(--clio-ink);
2930
+ background: var(--clio-scrollbar-corner);
2931
+ }
2932
+
1751
2933
  @supports not selector(::-webkit-scrollbar) {
1752
2934
  :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, html.clio-scrollbars, .clio-scrollbars *) {
1753
2935
  scrollbar-color: var(--clio-scrollbar-thumb-color, var(--clio-ink)) var(--clio-scrollbar-track-color, #c0c0c0);
1754
2936
  }
1755
2937
  }
1756
2938
 
2939
+ /* Scroll bars drawn by clio.js (optional): the same parts as the browser's
2940
+ scroll bar, as elements, so the scroll box keeps its era's fixed length, an
2941
+ arrow repeats while held and a dragged box can leave an outline behind.
2942
+ The parts take every ::-webkit-scrollbar rule (the build copies each one onto
2943
+ .clio-sb-*); this file only places them. clio.js sets each bar's geometry. */
2944
+ .clio-sb-host {
2945
+ box-sizing: border-box; /* the bar comes out of the box, as the browser's does (everything in a clio.css window already is) */
2946
+ scrollbar-width: none;
2947
+ }
2948
+
2949
+ .clio-sb-host::-webkit-scrollbar {
2950
+ display: none;
2951
+ }
2952
+
2953
+ /* The bar sits in the scroller's padding, which grows by the bar's width. */
2954
+ .clio-sb-host.clio-sb-y {
2955
+ padding-right: calc(var(--clio-sb-pr, 0px) + var(--clio-scrollbar-size));
2956
+ }
2957
+
2958
+ .clio-sb-host.clio-sb-x {
2959
+ padding-bottom: calc(var(--clio-sb-pb, 0px) + var(--clio-scrollbar-size));
2960
+ }
2961
+
2962
+ /* A zero-size first child that sticks to the scroller's corner, so the bars
2963
+ inside it stay put while the content moves. */
2964
+ .clio-sb-anchor {
2965
+ position: sticky;
2966
+ top: var(--clio-sb-pt, 0px);
2967
+ left: var(--clio-sb-pl, 0px);
2968
+ z-index: 2;
2969
+ display: block;
2970
+ width: 0;
2971
+ height: 0;
2972
+ margin: 0;
2973
+ padding: 0;
2974
+ border: 0;
2975
+ float: none;
2976
+ }
2977
+
2978
+ .clio-sb-anchor > :is(.clio-sb, .clio-sb-corner) {
2979
+ position: absolute;
2980
+ box-sizing: border-box;
2981
+ overflow: hidden;
2982
+ user-select: none;
2983
+ -webkit-user-select: none;
2984
+ touch-action: none;
2985
+ }
2986
+
2987
+ .clio-sb-anchor > .clio-sb > * {
2988
+ position: absolute;
2989
+ box-sizing: border-box;
2990
+ margin: 0;
2991
+ }
2992
+
2993
+ .clio-sb-anchor > .clio-sb-v > .clio-sb-dec { top: 0; left: 0; }
2994
+ .clio-sb-anchor > .clio-sb-v > .clio-sb-inc { bottom: 0; left: 0; }
2995
+ .clio-sb-anchor > .clio-sb-v > .clio-sb-track { top: var(--clio-scrollbar-size); bottom: var(--clio-scrollbar-size); left: 0; right: 0; }
2996
+ .clio-sb-anchor > .clio-sb-v > .clio-sb-thumb { top: var(--clio-scrollbar-size); left: var(--clio-scrollbar-thumb-inset, 0px); right: 0; min-width: 0; } /* the bar's min-width is the box's length */
2997
+ .clio-sb-anchor > .clio-sb-h > .clio-sb-dec { left: 0; top: 0; }
2998
+ .clio-sb-anchor > .clio-sb-h > .clio-sb-inc { right: 0; top: 0; }
2999
+ .clio-sb-anchor > .clio-sb-h > .clio-sb-track { left: var(--clio-scrollbar-size); right: var(--clio-scrollbar-size); top: 0; bottom: 0; }
3000
+ .clio-sb-anchor > .clio-sb-h > .clio-sb-thumb { left: var(--clio-scrollbar-size); top: var(--clio-scrollbar-thumb-inset, 0px); bottom: 0; min-height: 0; }
3001
+
3002
+ /* Smart Scrolling (Mac OS 8/9, Appearance > Options): both arrows at the far
3003
+ end, the up or left arrow first. */
3004
+ .clio-sb-anchor > .clio-sb-v.clio-sb-smart > .clio-sb-dec { top: auto; bottom: var(--clio-scrollbar-size); }
3005
+ .clio-sb-anchor > .clio-sb-v.clio-sb-smart > .clio-sb-track { top: 0; bottom: calc(2 * var(--clio-scrollbar-size)); }
3006
+ .clio-sb-anchor > .clio-sb-v.clio-sb-smart > .clio-sb-thumb { top: 0; }
3007
+ .clio-sb-anchor > .clio-sb-h.clio-sb-smart > .clio-sb-dec { left: auto; right: var(--clio-scrollbar-size); }
3008
+ .clio-sb-anchor > .clio-sb-h.clio-sb-smart > .clio-sb-track { left: 0; right: calc(2 * var(--clio-scrollbar-size)); }
3009
+ .clio-sb-anchor > .clio-sb-h.clio-sb-smart > .clio-sb-thumb { left: 0; }
3010
+
3011
+ /* QuickDraw kept a lane's pattern in step with the screen (System 6.0.8, System
3012
+ 7.5.3): clio.js sets --clio-sb-px/-py on each bar to keep it in step with the
3013
+ page. A rule, not a token: the offsets belong to each bar. Eras whose tracks
3014
+ have their own rules (Drawing Board) place their layers themselves. */
3015
+ .clio-sb-anchor > .clio-sb > .clio-sb-track {
3016
+ background-position: var(--clio-sb-px, 0px) var(--clio-sb-py, 0px);
3017
+ }
3018
+
3019
+ /* The arrows lie over the box's ends and its shadow. */
3020
+ .clio-sb-anchor > .clio-sb > .clio-sb-button { z-index: 1; }
3021
+
3022
+ /* Mac OS 8/9: the lane's top shading also falls just past the box's far end
3023
+ (--clio-scrollbar-thumb-after, drawn only by clio.js's bars). */
3024
+ .clio-sb-anchor > .clio-sb > .clio-sb-thumb::after {
3025
+ content: "";
3026
+ position: absolute;
3027
+ background: var(--clio-scrollbar-thumb-after, none);
3028
+ }
3029
+
3030
+ .clio-sb-anchor > .clio-sb-v > .clio-sb-thumb::after { top: calc(100% + 1px); left: 0; right: 0; height: 2px; } /* past the box's end line */
3031
+ .clio-sb-anchor > .clio-sb-h > .clio-sb-thumb::after { left: calc(100% + 1px); top: 0; bottom: 0; width: 2px; }
3032
+
3033
+ /* Nothing to scroll: the lane stays, the box goes (as on the Mac). */
3034
+ .clio-sb-anchor > .clio-sb.clio-sb-off > .clio-sb-thumb {
3035
+ display: none;
3036
+ }
3037
+
3038
+ /* The outline a dragged scroll box leaves in System 6 and 7: the box's frame,
3039
+ drawn over the lane, until the button comes up. */
3040
+ .clio-sb-anchor > .clio-sb > .clio-sb-ghost {
3041
+ z-index: 1;
3042
+ padding: 1px;
3043
+ background: var(--clio-scrollbar-ghost, #000000);
3044
+ background-position: calc(var(--clio-sb-px, 0px) + var(--clio-sb-gx, 0px)) calc(var(--clio-sb-py, 0px) + var(--clio-sb-gy, 0px)); /* in step with the lane's pattern */
3045
+ mix-blend-mode: var(--clio-scrollbar-ghost-blend, normal);
3046
+ mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
3047
+ pointer-events: none;
3048
+ }
3049
+
3050
+ /* clio.js outlines (a dragged window, zoom rects): QuickDraw's grey pattern,
3051
+ inverting what lies under it, in step with the screen. */
3052
+ .clio-outline {
3053
+ /* The outline is the frame of the window's structure region (QuickDraw's
3054
+ InsetRgn, rows and columns apart): the frame and its 1px shadow, which starts
3055
+ --clio-drag-outline-shadow-inset in from the top-right and bottom-left corners,
3056
+ so the region and the band step in there (all measured). e, k, w below. */
3057
+ --e: var(--clio-drag-outline-extra, 0px);
3058
+ --k: var(--clio-drag-outline-shadow-inset, 1px);
3059
+ --w: var(--clio-drag-outline-width, 1px);
3060
+ position: fixed;
3061
+ z-index: 2147483000;
3062
+ box-sizing: border-box;
3063
+ margin: 0;
3064
+ /* gray inverts the pixels whose x + y is odd on the screen (System 6.0.8, 7.5.3
3065
+ and Mac OS 9.0, measured); clio.js sets the position that keeps it to the page */
3066
+ background: repeating-conic-gradient(#ffffff 0 25%, transparent 0 50%) 0 0 / 2px 2px;
3067
+ mix-blend-mode: difference;
3068
+ /* the band (box less content box), the region's two notches taken out and the
3069
+ two pieces of the inset region they remove put back: every piece lies wholly
3070
+ in or out of what is below it, so xor does each */
3071
+ mask:
3072
+ linear-gradient(#000 0 0) left 0 bottom 0 / var(--k) var(--e) no-repeat border-box exclude,
3073
+ linear-gradient(#000 0 0) right 0 top 0 / var(--e) var(--k) no-repeat border-box exclude,
3074
+ linear-gradient(#000 0 0) left var(--w) bottom var(--w) / var(--k) var(--e) no-repeat border-box exclude,
3075
+ linear-gradient(#000 0 0) right var(--w) top var(--w) / var(--e) var(--k) no-repeat border-box exclude,
3076
+ linear-gradient(#000 0 0) content-box exclude,
3077
+ linear-gradient(#000 0 0) border-box;
3078
+ pointer-events: none;
3079
+ image-rendering: pixelated;
3080
+ }
3081
+
3082
+ /* clio.js: the move button of a movable window and the live region. Out of
3083
+ sight but in reach; with keyboard focus the title bar shows the ring. */
3084
+ :is(.clio-move, .clio-live) {
3085
+ /* !important: the title bar's own button rules (the close box's art and
3086
+ place) must not reach it */
3087
+ position: absolute !important;
3088
+ width: 1px !important;
3089
+ height: 1px !important;
3090
+ margin: -1px !important;
3091
+ padding: 0 !important;
3092
+ overflow: hidden !important;
3093
+ clip-path: inset(50%) !important;
3094
+ white-space: nowrap !important;
3095
+ border: 0 !important;
3096
+ background: none !important;
3097
+ box-shadow: none !important;
3098
+ }
3099
+
3100
+ .title-bar:has(> .clio-move:focus-visible) {
3101
+ outline: var(--clio-focus-outline);
3102
+ outline-offset: -1px;
3103
+ }
3104
+
3105
+
3106
+ /* clio.js: a movable window's title bar takes a finger's drag itself (on a
3107
+ touch screen the browser would otherwise pan the page and cancel the drag). */
3108
+ .clio-drag-bar {
3109
+ touch-action: none;
3110
+ }
3111
+
3112
+ /* ---- clio.js: the insertion point --------------------------------------------
3113
+ TextEdit inverted a 1px line for its caret, as tall as the line: white in a
3114
+ difference blend inverts what is under it the same way. The field's own caret
3115
+ is hidden only while clio.js draws this one. */
3116
+ .clio-caret {
3117
+ position: absolute;
3118
+ z-index: 2147483646;
3119
+ width: 1px;
3120
+ background: #ffffff;
3121
+ mix-blend-mode: difference;
3122
+ pointer-events: none;
3123
+ }
3124
+
3125
+ .clio-caret-off,
3126
+ .clio-caret[hidden] {
3127
+ visibility: hidden;
3128
+ }
3129
+
3130
+ .clio-caret-field {
3131
+ caret-color: transparent;
3132
+ }
3133
+
3134
+ /* Forced colours repaint the line and may drop the blend: the system's caret instead. */
3135
+ @media (forced-colors: active) {
3136
+ .clio-caret {
3137
+ display: none;
3138
+ }
3139
+
3140
+ .clio-caret-field {
3141
+ caret-color: auto;
3142
+ }
3143
+ }
3144
+
1757
3145
  /* Control Strip (System 7.5 to Mac OS 9): a row of module buttons with scroll
1758
3146
  arrows and a tab that folds the strip away. Markup follows AI System 6:
1759
3147
  .control-strip > button.control-strip-scroll.control-strip-scroll-back,
@@ -1814,7 +3202,7 @@
1814
3202
  border-radius: 0;
1815
3203
  appearance: none;
1816
3204
  -webkit-appearance: none;
1817
- cursor: default;
3205
+ cursor: var(--clio-cursor-arrow);
1818
3206
  }
1819
3207
 
1820
3208
  /* Scroll arrows: 13px cells, sunken and hollow while there is nothing to scroll. */
@@ -1843,8 +3231,8 @@
1843
3231
  background-image: var(--clio-strip-forward);
1844
3232
  }
1845
3233
 
1846
- :where(.control-strip) > .control-strip-scroll:not(:disabled):active,
1847
- :where(.control-strip-module):not(:disabled):is(:active, [aria-expanded="true"]) {
3234
+ :where(.control-strip) > .control-strip-scroll:not(:disabled):active:where(:not([data-clio-off])),
3235
+ :where(.control-strip-module):not(:disabled):is(:active:where(:not([data-clio-off])), [aria-expanded="true"]) {
1848
3236
  background-color: var(--clio-strip-pressed-bg);
1849
3237
  box-shadow: var(--clio-strip-pressed-shadow);
1850
3238
  }
@@ -1878,7 +3266,7 @@
1878
3266
  color: var(--clio-ink);
1879
3267
  appearance: none;
1880
3268
  -webkit-appearance: none;
1881
- cursor: default;
3269
+ cursor: var(--clio-cursor-arrow);
1882
3270
  }
1883
3271
 
1884
3272
  :where(.control-strip-module) > :is(svg, img, .sys-icon) {
@@ -1944,6 +3332,11 @@
1944
3332
  Every value: System 7.5.3 in Infinite Mac, the 800x600 canvas read 1:1
1945
3333
  (npm run capture:system7); see EVIDENCE.md. */
1946
3334
  :root {
3335
+ /* Separator (Memory control panel, System 7.5.3): a 3px band of QuickDraw's
3336
+ 50% grey, aligned to the screen. */
3337
+ --clio-separator-height: 3px;
3338
+ --clio-separator-bg: var(--clio-art-s6-gray50) 0 0 / 2px 2px fixed;
3339
+
1947
3340
  /* 1px #666/#aaa checker desktop. */
1948
3341
  --clio-desktop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Cpath fill='%23aaa' d='M0 0h1v1H0zM1 1h1v1H1z'/%3E%3Cpath fill='%23666' d='M1 0h1v1H1zM0 1h1v1H0z'/%3E%3C/svg%3E") 0 0 / 2px 2px repeat, #888888;
1949
3342
 
@@ -1962,10 +3355,16 @@
1962
3355
 
1963
3356
  /* Scroll bars */
1964
3357
  --clio-scrollbar-track: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='2' shape-rendering='crispEdges'%3E%3Cpath fill='%23ddd' d='M0 0h4v2H0z'/%3E%3Cpath fill='%23777' d='M2 0h1v1H2zM0 1h1v1H0z'/%3E%3C/svg%3E") 0 0 / 4px 2px repeat, #dddddd;
3358
+ /* System 7.5.3 Finder, scroll box dragged (frame hig/system7/finder-thumb-drag):
3359
+ a 14x16 frame in which the lane's #ddd turns black and its #777 dots stay. */
3360
+ --clio-scrollbar-thumb-length: 16px; /* the #555 line and 15 rows (frame finder-scroll) */
3361
+ --clio-scrollbar-ghost: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='2' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h4v2H0z'/%3E%3Cpath fill='%23777' d='M2 0h1v1H2zM0 1h1v1H0z'/%3E%3C/svg%3E") 0 0 / 4px 2px repeat;
3362
+ --clio-scrollbar-thumb-inset: 0px; /* its #555 line is drawn over the bar's */
3363
+ --clio-scrollbar-ghost-blend: normal; /* painted: the lane's #ddd black, its #777 dots kept (measured) */
1965
3364
  /* The grip sits where System 7's fixed 16px scroll box has it: 3px from the
1966
3365
  leading edge, whatever length the browser gives the box. */
1967
- --clio-scrollbar-thumb-bg: var(--clio-art-s7-grip-v) 50% 2px / 6px 10px no-repeat, #aaaaaa;
1968
- --clio-scrollbar-thumb-bg-horizontal: var(--clio-art-s7-grip-h) 2px 50% / 10px 6px no-repeat, #aaaaaa;
3366
+ --clio-scrollbar-thumb-bg: var(--clio-art-s7-grip-v) 50% 3px / 6px 10px no-repeat, #aaaaaa;
3367
+ --clio-scrollbar-thumb-bg-horizontal: var(--clio-art-s7-grip-h) 3px 50% / 10px 6px no-repeat, #aaaaaa;
1969
3368
  --clio-scrollbar-thumb-border: 0;
1970
3369
  --clio-scrollbar-thumb-shadow: inset -1px -1px 0 #333366, inset 1px 1px 0 #ccccff; /* the shade owns the corners */
1971
3370
  --clio-scrollbar-button-bg: #dddddd;
@@ -2016,7 +3415,7 @@
2016
3415
  the label 15px in. */
2017
3416
  --clio-popup-shadow: 2px 2px 0 -1px #000000;
2018
3417
  --clio-popup-padding: 0 22px 0 14px;
2019
- --clio-popup-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='6' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h11v1H0zM1 1h9v1H1zM2 2h7v1H2zM3 3h5v1H3zM4 4h3v1H4zM5 5h1v1H5z'/%3E%3C/svg%3E") right 5px center / 11px 6px no-repeat;
3418
+ --clio-popup-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='6' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h11v1H0zM1 1h9v1H1zM2 2h7v1H2zM3 3h5v1H3zM4 4h3v1H4zM5 5h1v1H5z'/%3E%3C/svg%3E") right 5px top round(down, 50%, 1px) / 11px 6px no-repeat; /* QuickDraw centred it at floor(spare / 2) */
2020
3419
 
2021
3420
  /* Progress (Finder copy): 11px, a 1px black frame, #ccf track, #444 fill. */
2022
3421
  --clio-progress-height: 11px;
@@ -2064,7 +3463,7 @@
2064
3463
  background:
2065
3464
  linear-gradient(#333366, #333366) 0 0 / 100% 1px no-repeat,
2066
3465
  linear-gradient(#333366, #333366) 0 0 / 1px 100% no-repeat,
2067
- linear-gradient(#aaaaaa, #aaaaaa),
3466
+ linear-gradient(#aaaaaa, #aaaaaa) 0 0 / 100% 100% no-repeat, /* tiled, WebKit dithers it ±1 */
2068
3467
  #ccccff;
2069
3468
  background-origin: border-box, border-box, padding-box, border-box;
2070
3469
  background-clip: border-box, border-box, padding-box, border-box;
@@ -2082,7 +3481,7 @@
2082
3481
  }
2083
3482
 
2084
3483
  /* Held: a black square with a #99c face and the starburst. */
2085
- :root .title-bar > :is(.close, .close-box, .resize, .resize-box, .zoom):is(:active, .active) {
3484
+ :root .title-bar > :is(.close, .close-box, .resize, .resize-box, .zoom):is(:active:where(:not([data-clio-off])), .active) {
2086
3485
  border-color: #000000;
2087
3486
  background: var(--clio-art-s6-burst) 0 0 / 11px 11px no-repeat border-box, #9999cc;
2088
3487
  background-clip: border-box;
@@ -2110,15 +3509,31 @@
2110
3509
  :root :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb:vertical,
2111
3510
  :root:is(html.clio-scrollbars)::-webkit-scrollbar-thumb:vertical {
2112
3511
  min-height: 17px; /* the lane's black line, then 16 rows of box */
2113
- border-top: 1px solid #555555;
2114
3512
  border-left: 1px solid #000000; /* the lane's own line, which the box covers */
3513
+ /* the #555 line as a shadow, so the black line keeps the corner (two borders
3514
+ would split it into a blend) */
3515
+ box-shadow: inset 0 1px 0 #555555, inset -1px -1px 0 #333366, inset 1px 2px 0 #ccccff;
3516
+ }
3517
+
3518
+ :root :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-v > .clio-sb-thumb {
3519
+ min-height: 17px; /* the lane's black line, then 16 rows of box */
3520
+ border-left: 1px solid #000000; /* the lane's own line, which the box covers */
3521
+ /* the #555 line as a shadow, so the black line keeps the corner (two borders
3522
+ would split it into a blend) */
3523
+ box-shadow: inset 0 1px 0 #555555, inset -1px -1px 0 #333366, inset 1px 2px 0 #ccccff;
2115
3524
  }
2116
3525
 
2117
3526
  :root :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb:horizontal,
2118
3527
  :root:is(html.clio-scrollbars)::-webkit-scrollbar-thumb:horizontal {
2119
3528
  min-width: 17px;
2120
- border-left: 1px solid #555555;
2121
3529
  border-top: 1px solid #000000;
3530
+ box-shadow: inset 1px 0 0 #555555, inset -1px -1px 0 #333366, inset 2px 1px 0 #ccccff;
3531
+ }
3532
+
3533
+ :root :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-thumb {
3534
+ min-width: 17px;
3535
+ border-top: 1px solid #000000;
3536
+ box-shadow: inset 1px 0 0 #555555, inset -1px -1px 0 #333366, inset 2px 1px 0 #ccccff;
2122
3537
  }
2123
3538
 
2124
3539
  /* The arrow art already carries its face, light and shade. */
@@ -2127,6 +3542,17 @@
2127
3542
  background-size: 14px 14px;
2128
3543
  }
2129
3544
 
3545
+ :root :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-button {
3546
+ background-size: 14px 14px;
3547
+ }
3548
+
3549
+ /* Collapsed: the title bar's bottom line is the frame's foot, so the shaded
3550
+ window is 19px tall and its shadow starts 1px in under it (System 7.5.3,
3551
+ Infinite HD shaded, measured). */
3552
+ :root .window.collapsed {
3553
+ border-bottom-width: 0;
3554
+ }
3555
+
2130
3556
  /* Adaptations the historical machines never needed. Historical sizes are
2131
3557
  calibration, not a cage: on a touch screen the controls grow to the
2132
3558
  "coarse pointer" sizes from AI System 6's fidelity contract, without any
@@ -2170,3 +3596,81 @@
2170
3596
  box-shadow: none;
2171
3597
  }
2172
3598
  }
3599
+
3600
+ /* Retina and other whole-number pixel ratios: every Mac pixel becomes a solid
3601
+ 2x2 or 3x3 block (nearest neighbour), as a 1x screen magnified would show it.
3602
+ At fractional ratios (1.25, 1.5, browser zoom) the browser's smoothing stays:
3603
+ nearest neighbour there gives uneven pixel widths. image-rendering inherits,
3604
+ so the page's own pictures, video and canvas are handed back to smoothing. */
3605
+ @media (resolution: 2dppx), (resolution: 3dppx), (resolution: 4dppx) {
3606
+ :root {
3607
+ image-rendering: pixelated;
3608
+ }
3609
+
3610
+ :where(img, picture, video, canvas, iframe, object, embed) {
3611
+ image-rendering: auto;
3612
+ }
3613
+ }
3614
+
3615
+ /* Chinese, Japanese and Korean (owner decisions 9 and 10, 2026-11-14).
3616
+
3617
+ Measured: KanjiTalk 7.5.3 and Mac OS 9.0 with the Chinese Language Kits draw CJK text
3618
+ at the Roman geometry: 16px menu and text rows, the same baseline, 12px ideographs whose
3619
+ ink runs from 10px above the baseline to 1px below (tooling/emulator/measure-cjk.sh).
3620
+ So nothing moves; only the fonts change. A localized system's system font is the
3621
+ script's font, Latin included (KanjiTalk draws "Infinite HD" and OK in Osaka), so the
3622
+ CJK font leads every stack.
3623
+
3624
+ Each stack names the period bitmap interface font (Taipei, Beijing, Osaka, Seoul), then
3625
+ Clio's stand-in, Fusion Pixel 12px proportional (OFL-1.1, THIRD-PARTY.md) cut to the
3626
+ character set that bitmap font drew (Big5, GB 2312, JIS X 0208, KS X 1001), then an
3627
+ outline family of the period. The outline families come after the stand-in because
3628
+ current macOS still installs some of them (AppleGothic) as antialiased outlines.
3629
+ A browser fetches a stand-in only for an element in that language that has text in
3630
+ its unicode-range: pages without CJK text never load them. */
3631
+ @font-face {
3632
+ font-family: "Clio Pixel TC";
3633
+ src: url("fonts/FusionPixel12-TC.woff2") format("woff2");
3634
+ font-weight: 100 900;
3635
+ font-display: swap;
3636
+ unicode-range: U+20-F7, U+391-451, U+2013-203E, U+2103-2199, U+2460-247D, U+2500-2642, U+3000-3129, U+32A3, U+4E00-7E9C, U+7F36-8B9E, U+8C37-9483, U+9577-9FA4, U+FA0C-FA0D, U+FE30-FE4F, U+FF01-FFE3;
3637
+ }
3638
+
3639
+ @font-face {
3640
+ font-family: "Clio Pixel SC";
3641
+ src: url("fonts/FusionPixel12-SC.woff2") format("woff2");
3642
+ font-weight: 100 900;
3643
+ font-display: swap;
3644
+ unicode-range: U+20-1DC, U+391-451, U+2015-203B, U+2103-2193, U+2312, U+2460-2642, U+3000-3129, U+3220-3229, U+4E00-7DAE, U+7E3B-8C98, U+8D1D-8ECE, U+8F66-91DC, U+9274-99A8, U+9A6C-9B54, U+9C7C-9CE2, U+9E1F-9FA0, U+FF01-FF5E, U+FFE0-FFE5;
3645
+ }
3646
+
3647
+ @font-face {
3648
+ font-family: "Clio Pixel JA";
3649
+ src: url("fonts/FusionPixel12-JA.woff2") format("woff2");
3650
+ font-weight: 100 900;
3651
+ font-display: swap;
3652
+ unicode-range: U+20-F7, U+391-451, U+2010-203B, U+2103-21D4, U+2312, U+2500-266F, U+3000-30FE, U+4E00-7E9C, U+7F36-8B9A, U+8C37-9481, U+9577-9FA0, U+FF01-FFE5;
3653
+ }
3654
+
3655
+ @font-face {
3656
+ font-family: "Clio Pixel KO";
3657
+ src: url("fonts/FusionPixel12-KO.woff2") format("woff2");
3658
+ font-weight: 100 900;
3659
+ font-display: swap;
3660
+ unicode-range: U+20-167, U+391-451, U+2015-21D4, U+2312, U+2460-266D, U+3000-318E, U+327F, U+4E00-7E9C, U+7F36-8B9A, U+8C37-947F, U+9577-9C57, U+9CE5-9F9C, U+AC00-D79D, U+F900-FA0B, U+FF01-FF5E, U+FFE0-FFE6;
3661
+ }
3662
+
3663
+ :lang(zh) { --clio-font-cjk: Beijing, "Clio Pixel SC", Hei; }
3664
+ :is(:lang(zh-Hant), :lang(zh-TW), :lang(zh-HK), :lang(zh-MO)) { --clio-font-cjk: Taipei, "Clio Pixel TC", "Apple LiGothic"; }
3665
+ :lang(ja) { --clio-font-cjk: Osaka, "Clio Pixel JA"; }
3666
+ :lang(ko) { --clio-font-cjk: Seoul, "Clio Pixel KO", AppleGothic; }
3667
+
3668
+ /* Declared beside --clio-font-cjk, on every element in the language, so var() resolves there. */
3669
+ :is(:lang(zh), :lang(ja), :lang(ko)) {
3670
+ --clio-font-chrome: var(--clio-font-cjk), "Clio Sans '84", Chicago, "ChicagoFLF", Charcoal, Geneva, "Helvetica Neue", Arial, sans-serif;
3671
+ --clio-font-text: var(--clio-font-cjk), "Clio Text '84", Geneva, "Helvetica Neue", Arial, sans-serif;
3672
+ /* Small text keeps the 9px Latin face: the stand-in is a 12px font (KanjiTalk's Finder
3673
+ drew 8px kanji here, from a 9-point Osaka clio.css does not have). */
3674
+ --clio-font-small: "Clio Text '84 9", var(--clio-font-cjk), Geneva, "Helvetica Neue", Arial, sans-serif;
3675
+ --clio-font-display: var(--clio-font-cjk), Chicago, "ChicagoFLF", Charcoal, "Helvetica Neue", Arial, sans-serif;
3676
+ }