clio.css 0.2.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/AGENTS.md +20 -4
  2. package/EVIDENCE.md +90 -30
  3. package/README.md +45 -23
  4. package/THIRD-PARTY.md +61 -10
  5. package/dist/art/drawingboard/alert-bl.png +0 -0
  6. package/dist/art/drawingboard/alert-bottom.png +0 -0
  7. package/dist/art/drawingboard/alert-br.png +0 -0
  8. package/dist/art/drawingboard/alert-left.png +0 -0
  9. package/dist/art/drawingboard/alert-right.png +0 -0
  10. package/dist/art/drawingboard/alert-tl.png +0 -0
  11. package/dist/art/drawingboard/alert-top.png +0 -0
  12. package/dist/art/drawingboard/alert-tr.png +0 -0
  13. package/dist/art/drawingboard/menu-corner-bl.png +0 -0
  14. package/dist/art/drawingboard/menu-corner-br.png +0 -0
  15. package/dist/art/drawingboard/menu-corner-tr.png +0 -0
  16. package/dist/art/drawingboard/menu-foot.png +0 -0
  17. package/dist/art/drawingboard/menu-left.png +0 -0
  18. package/dist/art/drawingboard/menu-paper.png +0 -0
  19. package/dist/art/drawingboard/menu-right.png +0 -0
  20. package/dist/art/drawingboard/menu-separator.png +0 -0
  21. package/dist/art/drawingboard/menu-shade-foot.png +0 -0
  22. package/dist/art/drawingboard/menu-shade-right.png +0 -0
  23. package/dist/art/drawingboard/menu-top.png +0 -0
  24. package/dist/art/drawingboard/menubar.png +0 -0
  25. package/dist/art/drawingboard/modal-bl.png +0 -0
  26. package/dist/art/drawingboard/modal-bottom.png +0 -0
  27. package/dist/art/drawingboard/modal-br.png +0 -0
  28. package/dist/art/drawingboard/modal-left.png +0 -0
  29. package/dist/art/drawingboard/modal-right.png +0 -0
  30. package/dist/art/drawingboard/modal-tl.png +0 -0
  31. package/dist/art/drawingboard/modal-top.png +0 -0
  32. package/dist/art/drawingboard/modal-tr.png +0 -0
  33. package/dist/art/drawingboard/paper.png +0 -0
  34. package/dist/art/drawingboard/parts/btn-bl.png +0 -0
  35. package/dist/art/drawingboard/parts/btn-br-held.png +0 -0
  36. package/dist/art/drawingboard/parts/btn-br.png +0 -0
  37. package/dist/art/drawingboard/parts/btn-tl.png +0 -0
  38. package/dist/art/drawingboard/parts/btn-tr.png +0 -0
  39. package/dist/art/drawingboard/parts/button-corner.png +0 -0
  40. package/dist/art/drawingboard/parts/check-disabled.png +0 -0
  41. package/dist/art/drawingboard/parts/check-mixed.png +0 -0
  42. package/dist/art/drawingboard/parts/check-on-disabled.png +0 -0
  43. package/dist/art/drawingboard/parts/check-on-pressed.png +0 -0
  44. package/dist/art/drawingboard/parts/check-on.png +0 -0
  45. package/dist/art/drawingboard/parts/check-pressed.png +0 -0
  46. package/dist/art/drawingboard/parts/check.png +0 -0
  47. package/dist/art/drawingboard/parts/close-on.png +0 -0
  48. package/dist/art/drawingboard/parts/close.png +0 -0
  49. package/dist/art/drawingboard/parts/collapse-on.png +0 -0
  50. package/dist/art/drawingboard/parts/collapse.png +0 -0
  51. package/dist/art/drawingboard/parts/def-bl.png +0 -0
  52. package/dist/art/drawingboard/parts/def-br.png +0 -0
  53. package/dist/art/drawingboard/parts/def-tl.png +0 -0
  54. package/dist/art/drawingboard/parts/def-tr.png +0 -0
  55. package/dist/art/drawingboard/parts/down-off.png +0 -0
  56. package/dist/art/drawingboard/parts/down-on.png +0 -0
  57. package/dist/art/drawingboard/parts/down.png +0 -0
  58. package/dist/art/drawingboard/parts/grow.png +0 -0
  59. package/dist/art/drawingboard/parts/left-off.png +0 -0
  60. package/dist/art/drawingboard/parts/left-on.png +0 -0
  61. package/dist/art/drawingboard/parts/left.png +0 -0
  62. package/dist/art/drawingboard/parts/menu-underline-left.png +0 -0
  63. package/dist/art/drawingboard/parts/menu-underline-right.png +0 -0
  64. package/dist/art/drawingboard/parts/menu-underline.png +0 -0
  65. package/dist/art/drawingboard/parts/popup-arrow-off.png +0 -0
  66. package/dist/art/drawingboard/parts/popup-arrow.png +0 -0
  67. package/dist/art/drawingboard/parts/popup-corner-off.png +0 -0
  68. package/dist/art/drawingboard/parts/popup-corner.png +0 -0
  69. package/dist/art/drawingboard/parts/progress-arrows.png +0 -0
  70. package/dist/art/drawingboard/parts/radio-disabled.png +0 -0
  71. package/dist/art/drawingboard/parts/radio-on-disabled.png +0 -0
  72. package/dist/art/drawingboard/parts/radio-on-pressed.png +0 -0
  73. package/dist/art/drawingboard/parts/radio-on.png +0 -0
  74. package/dist/art/drawingboard/parts/radio.png +0 -0
  75. package/dist/art/drawingboard/parts/right-off.png +0 -0
  76. package/dist/art/drawingboard/parts/right-on.png +0 -0
  77. package/dist/art/drawingboard/parts/right.png +0 -0
  78. package/dist/art/drawingboard/parts/submenu.png +0 -0
  79. package/dist/art/drawingboard/parts/tab-pressed.png +0 -0
  80. package/dist/art/drawingboard/parts/tab-selected.png +0 -0
  81. package/dist/art/drawingboard/parts/tab.png +0 -0
  82. package/dist/art/drawingboard/parts/thumb-bottom.png +0 -0
  83. package/dist/art/drawingboard/parts/thumb-hgrip.png +0 -0
  84. package/dist/art/drawingboard/parts/thumb-hstretch.png +0 -0
  85. package/dist/art/drawingboard/parts/thumb-left.png +0 -0
  86. package/dist/art/drawingboard/parts/thumb-right.png +0 -0
  87. package/dist/art/drawingboard/parts/thumb-top.png +0 -0
  88. package/dist/art/drawingboard/parts/thumb-vgrip.png +0 -0
  89. package/dist/art/drawingboard/parts/thumb-vstretch.png +0 -0
  90. package/dist/art/drawingboard/parts/title-underline-left.png +0 -0
  91. package/dist/art/drawingboard/parts/title-underline-right.png +0 -0
  92. package/dist/art/drawingboard/parts/title-underline.png +0 -0
  93. package/dist/art/drawingboard/parts/up-off.png +0 -0
  94. package/dist/art/drawingboard/parts/up-on.png +0 -0
  95. package/dist/art/drawingboard/parts/up.png +0 -0
  96. package/dist/art/drawingboard/parts/zoom-on.png +0 -0
  97. package/dist/art/drawingboard/parts/zoom.png +0 -0
  98. package/dist/art/drawingboard/pens/button-bottom.png +0 -0
  99. package/dist/art/drawingboard/pens/button-corners.png +0 -0
  100. package/dist/art/drawingboard/pens/button-default-bottom-2.png +0 -0
  101. package/dist/art/drawingboard/pens/button-default-bottom-3.png +0 -0
  102. package/dist/art/drawingboard/pens/button-default-bottom.png +0 -0
  103. package/dist/art/drawingboard/pens/button-default-corner-bl.png +0 -0
  104. package/dist/art/drawingboard/pens/button-default-corner-br.png +0 -0
  105. package/dist/art/drawingboard/pens/button-default-corner-tl.png +0 -0
  106. package/dist/art/drawingboard/pens/button-default-corner-tr.png +0 -0
  107. package/dist/art/drawingboard/pens/button-default-left-2.png +0 -0
  108. package/dist/art/drawingboard/pens/button-default-left-3.png +0 -0
  109. package/dist/art/drawingboard/pens/button-default-left.png +0 -0
  110. package/dist/art/drawingboard/pens/button-default-right-2.png +0 -0
  111. package/dist/art/drawingboard/pens/button-default-right-3.png +0 -0
  112. package/dist/art/drawingboard/pens/button-default-right.png +0 -0
  113. package/dist/art/drawingboard/pens/button-default-top-2.png +0 -0
  114. package/dist/art/drawingboard/pens/button-default-top-3.png +0 -0
  115. package/dist/art/drawingboard/pens/button-default-top.png +0 -0
  116. package/dist/art/drawingboard/pens/button-held-bottom.png +0 -0
  117. package/dist/art/drawingboard/pens/button-held-corners.png +0 -0
  118. package/dist/art/drawingboard/pens/button-held-left.png +0 -0
  119. package/dist/art/drawingboard/pens/button-held-right.png +0 -0
  120. package/dist/art/drawingboard/pens/button-held-shade-bottom.png +0 -0
  121. package/dist/art/drawingboard/pens/button-held-shade-right.png +0 -0
  122. package/dist/art/drawingboard/pens/button-held-top.png +0 -0
  123. package/dist/art/drawingboard/pens/button-left.png +0 -0
  124. package/dist/art/drawingboard/pens/button-right.png +0 -0
  125. package/dist/art/drawingboard/pens/button-shade-bottom.png +0 -0
  126. package/dist/art/drawingboard/pens/button-shade-right.png +0 -0
  127. package/dist/art/drawingboard/pens/button-top.png +0 -0
  128. package/dist/art/drawingboard/pens/field-bottom.png +0 -0
  129. package/dist/art/drawingboard/pens/field-corners.png +0 -0
  130. package/dist/art/drawingboard/pens/field-left.png +0 -0
  131. package/dist/art/drawingboard/pens/field-right.png +0 -0
  132. package/dist/art/drawingboard/pens/field-top.png +0 -0
  133. package/dist/art/drawingboard/pens/popup-bottom.png +0 -0
  134. package/dist/art/drawingboard/pens/popup-corners.png +0 -0
  135. package/dist/art/drawingboard/pens/popup-disabled-bottom.png +0 -0
  136. package/dist/art/drawingboard/pens/popup-disabled-corners.png +0 -0
  137. package/dist/art/drawingboard/pens/popup-disabled-left.png +0 -0
  138. package/dist/art/drawingboard/pens/popup-disabled-right.png +0 -0
  139. package/dist/art/drawingboard/pens/popup-disabled-top.png +0 -0
  140. package/dist/art/drawingboard/pens/popup-left.png +0 -0
  141. package/dist/art/drawingboard/pens/popup-right.png +0 -0
  142. package/dist/art/drawingboard/pens/popup-top.png +0 -0
  143. package/dist/art/drawingboard/tab-paper.png +0 -0
  144. package/dist/art/drawingboard/track-h-bottom.png +0 -0
  145. package/dist/art/drawingboard/track-h-mid1.png +0 -0
  146. package/dist/art/drawingboard/track-h-mid2.png +0 -0
  147. package/dist/art/drawingboard/track-h-top.png +0 -0
  148. package/dist/art/drawingboard/track-v-left.png +0 -0
  149. package/dist/art/drawingboard/track-v-mid1.png +0 -0
  150. package/dist/art/drawingboard/track-v-mid2.png +0 -0
  151. package/dist/art/drawingboard/track-v-right.png +0 -0
  152. package/dist/art/drawingboard/window-bl-inactive.png +0 -0
  153. package/dist/art/drawingboard/window-bl.png +0 -0
  154. package/dist/art/drawingboard/window-bottom-inactive.png +0 -0
  155. package/dist/art/drawingboard/window-bottom.png +0 -0
  156. package/dist/art/drawingboard/window-br-inactive.png +0 -0
  157. package/dist/art/drawingboard/window-br.png +0 -0
  158. package/dist/art/drawingboard/window-left-inactive.png +0 -0
  159. package/dist/art/drawingboard/window-left.png +0 -0
  160. package/dist/art/drawingboard/window-right-inactive.png +0 -0
  161. package/dist/art/drawingboard/window-right.png +0 -0
  162. package/dist/art/drawingboard/window-tl-inactive.png +0 -0
  163. package/dist/art/drawingboard/window-tl.png +0 -0
  164. package/dist/art/drawingboard/window-top-inactive.png +0 -0
  165. package/dist/art/drawingboard/window-top.png +0 -0
  166. package/dist/art/drawingboard/window-tr-inactive.png +0 -0
  167. package/dist/art/drawingboard/window-tr.png +0 -0
  168. package/dist/art/drawingboard/window-ur-inactive.png +0 -0
  169. package/dist/art/drawingboard/window-ur.png +0 -0
  170. package/dist/clio.css +1946 -155
  171. package/dist/clio.drawingboard.css +3569 -0
  172. package/dist/clio.drawingboard.min.css +2 -0
  173. package/dist/clio.min.css +2 -2
  174. package/dist/clio.platinum.css +809 -107
  175. package/dist/clio.platinum.min.css +2 -2
  176. package/dist/clio.system6.css +551 -32
  177. package/dist/clio.system6.min.css +2 -2
  178. package/dist/clio.system7.css +2172 -0
  179. package/dist/clio.system7.min.css +2 -0
  180. package/dist/components.json +555 -82
  181. package/dist/fonts/ClioSans84.woff2 +0 -0
  182. package/dist/fonts/ClioSans97.woff2 +0 -0
  183. package/dist/fonts/ClioSans97Display.woff2 +0 -0
  184. package/dist/fonts/ClioSans97Exact.woff2 +0 -0
  185. package/dist/fonts/ClioSans97Plain.woff2 +0 -0
  186. package/dist/fonts/ClioSans97Title.woff2 +0 -0
  187. package/dist/fonts/ClioSans97TitleExact.woff2 +0 -0
  188. package/dist/fonts/ClioSans97TitlePlain.woff2 +0 -0
  189. package/dist/fonts/ClioText84-9.woff2 +0 -0
  190. package/dist/fonts/ClioText84.woff2 +0 -0
  191. package/llms.txt +5 -4
  192. package/package.json +17 -4
package/dist/clio.css CHANGED
@@ -1,12 +1,234 @@
1
- /*! clio.css 0.2.0 | MIT | https://surfine.github.io/clio.css/
2
- * Classic Mac OS interface CSS: System 6 and Mac OS 9 Platinum.
1
+ /*! clio.css 0.9.1 | MIT | https://surfine.github.io/clio.css/
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
- * Includes art from system.css (MIT) and classic-stylesheets (MIT); see THIRD-PARTY.md. */
5
- /* Fonts. Only two faces ship, both with a licence that allows it:
4
+ * Includes art from system.css (MIT) and pixel reconstructions of Apple control art; see THIRD-PARTY.md. */
5
+ /* Clio Sans '84: Chicago 12 rebuilt pixel for pixel from System 6.0.8
6
+ (fonts-src/clio-sans-84.txt). Every pixel is a square on a 1200-unit em, so
7
+ at 12px and its multiples it draws exactly the original bitmap. */
8
+ @font-face {
9
+ font-family: "Clio Sans '84";
10
+ src: url("fonts/ClioSans84.woff2") format("woff2");
11
+ font-display: swap;
12
+ }
13
+
14
+ /* Clio Text '84: Geneva 12, and Clio Text '84 9: Geneva 9, rebuilt the same
15
+ way (fonts-src/clio-text-84*.txt). */
16
+ @font-face {
17
+ font-family: "Clio Text '84";
18
+ src: url("fonts/ClioText84.woff2") format("woff2");
19
+ font-display: swap;
20
+ }
21
+
22
+ @font-face {
23
+ font-family: "Clio Text '84 9";
24
+ src: url("fonts/ClioText84-9.woff2") format("woff2");
25
+ font-display: swap;
26
+ }
27
+
28
+ /* Clio Sans '97: Charcoal 12 rebuilt the same way from Mac OS 9.0's Key Caps
29
+ (fonts-src/clio-sans-97.txt). Charcoal has one weight, so the face covers
30
+ every weight and the browser never thickens it. */
31
+ @font-face {
32
+ font-family: "Clio Sans '97";
33
+ src: url("fonts/ClioSans97.woff2") format("woff2") tech(color-COLRv1),
34
+ url("fonts/ClioSans97Plain.woff2") format("woff2");
35
+ font-weight: 100 900;
36
+ font-display: swap;
37
+ }
38
+
39
+ /* Clio Sans '97's antialiasing is COLRv1 colour layers. A browser without
40
+ COLRv1 (Safari) would paint every layer solid, so it gets the Plain file:
41
+ the outlines alone, each pixel at least half covered. */
42
+ /* Clio Sans '97 Title: the same face as window titles draw it (a few faint
43
+ pixels fewer than menus and buttons), for title bars only. */
44
+ @font-face {
45
+ font-family: "Clio Sans '97 Title";
46
+ src: url("fonts/ClioSans97Title.woff2") format("woff2") tech(color-COLRv1),
47
+ url("fonts/ClioSans97TitlePlain.woff2") format("woff2");
48
+ font-weight: 100 900;
49
+ font-display: swap;
50
+ }
51
+
52
+ /* Clio Sans '97 Exact and Clio Sans '97 Title Exact: the same glyphs with
53
+ each antialiasing level painted from a palette entry, so the palettes below
54
+ give, for clio.css's own title and button colours, the very pixels Mac OS
55
+ blends ((fg * a + bg * (255 - a)) >> 8). They ignore the text colour: a
56
+ page that recolours a title or a button label also sets --clio-font-window-title
57
+ or --clio-font-button back to a stack without "Exact", and gets Clio Sans
58
+ '97 in its colour, within one level of the real screen. */
59
+ @font-face {
60
+ font-family: "Clio Sans '97 Exact";
61
+ src: url("fonts/ClioSans97Exact.woff2") format("woff2") tech(color-COLRv1),
62
+ url("fonts/ClioSans97Plain.woff2") format("woff2");
63
+ font-weight: 100 900;
64
+ font-display: swap;
65
+ }
66
+
67
+ @font-face {
68
+ font-family: "Clio Sans '97 Title Exact";
69
+ src: url("fonts/ClioSans97TitleExact.woff2") format("woff2") tech(color-COLRv1),
70
+ url("fonts/ClioSans97TitlePlain.woff2") format("woff2");
71
+ font-weight: 100 900;
72
+ font-display: swap;
73
+ }
74
+
75
+ /* Written by tooling/aa-palettes.py. */
76
+ @font-palette-values --clio-aa-p9-title {
77
+ font-family: "Clio Sans '97 Title Exact";
78
+ override-colors:
79
+ 0 #bebebe,
80
+ 1 #b0b0b0,
81
+ 2 #a2a2a2,
82
+ 3 #959595,
83
+ 4 #878787,
84
+ 5 #7a7a7a,
85
+ 6 #6c6c6c,
86
+ 7 #5f5f5f,
87
+ 8 #515151,
88
+ 9 #444444,
89
+ 10 #363636,
90
+ 11 #282828,
91
+ 12 #1b1b1b,
92
+ 13 #0d0d0d,
93
+ 14 #000000;
94
+ }
95
+
96
+ @font-palette-values --clio-aa-p9-title-inactive {
97
+ font-family: "Clio Sans '97 Title Exact";
98
+ override-colors:
99
+ 0 #c5c5c5,
100
+ 1 #bfbfbf,
101
+ 2 #bababa,
102
+ 3 #b4b4b4,
103
+ 4 #aeaeae,
104
+ 5 #a9a9a9,
105
+ 6 #a3a3a3,
106
+ 7 #9e9e9e,
107
+ 8 #989898,
108
+ 9 #929292,
109
+ 10 #8d8d8d,
110
+ 11 #878787,
111
+ 12 #818181,
112
+ 13 #7c7c7c,
113
+ 14 #777777;
114
+ }
115
+
116
+ @font-palette-values --clio-aa-p9-button {
117
+ font-family: "Clio Sans '97 Exact";
118
+ override-colors:
119
+ 0 #cecece,
120
+ 1 #bfbfbf,
121
+ 2 #b0b0b0,
122
+ 3 #a2a2a2,
123
+ 4 #939393,
124
+ 5 #848484,
125
+ 6 #757575,
126
+ 7 #676767,
127
+ 8 #585858,
128
+ 9 #494949,
129
+ 10 #3a3a3a,
130
+ 11 #2c2c2c,
131
+ 12 #1d1d1d,
132
+ 13 #0e0e0e,
133
+ 14 #000000;
134
+ }
135
+
136
+ @font-palette-values --clio-aa-p9-button-held {
137
+ font-family: "Clio Sans '97 Exact";
138
+ override-colors:
139
+ 0 #707070,
140
+ 1 #7a7a7a,
141
+ 2 #848484,
142
+ 3 #8e8e8e,
143
+ 4 #999999,
144
+ 5 #a3a3a3,
145
+ 6 #adadad,
146
+ 7 #b7b7b7,
147
+ 8 #c1c1c1,
148
+ 9 #cbcbcb,
149
+ 10 #d6d6d6,
150
+ 11 #e0e0e0,
151
+ 12 #eaeaea,
152
+ 13 #f4f4f4,
153
+ 14 #ffffff;
154
+ }
155
+
156
+ @font-palette-values --clio-aa-p9-button-disabled {
157
+ font-family: "Clio Sans '97 Exact";
158
+ override-colors:
159
+ 0 #d5d5d5,
160
+ 1 #cecece,
161
+ 2 #c7c7c7,
162
+ 3 #c1c1c1,
163
+ 4 #bababa,
164
+ 5 #b3b3b3,
165
+ 6 #acacac,
166
+ 7 #a5a5a5,
167
+ 8 #9f9f9f,
168
+ 9 #989898,
169
+ 10 #919191,
170
+ 11 #8a8a8a,
171
+ 12 #848484,
172
+ 13 #7d7d7d,
173
+ 14 #777777;
174
+ }
175
+
176
+ @font-palette-values --clio-aa-db-button {
177
+ font-family: "Clio Sans '97 Exact";
178
+ override-colors:
179
+ 0 #c3bcac,
180
+ 1 #b9b2a3,
181
+ 2 #aea89a,
182
+ 3 #a49e91,
183
+ 4 #999488,
184
+ 5 #8f8a80,
185
+ 6 #848077,
186
+ 7 #7a766e,
187
+ 8 #6f6c65,
188
+ 9 #65625d,
189
+ 10 #5a5854,
190
+ 11 #504e4b,
191
+ 12 #454442,
192
+ 13 #3b3a39,
193
+ 14 #313131;
194
+ }
195
+
196
+ @font-palette-values --clio-aa-db-button-disabled {
197
+ font-family: "Clio Sans '97 Exact";
198
+ override-colors:
199
+ 0 #cac2b2,
200
+ 1 #c6bfaf,
201
+ 2 #c3bcad,
202
+ 3 #c0b9ab,
203
+ 4 #bdb6a9,
204
+ 5 #bab3a7,
205
+ 6 #b7b0a4,
206
+ 7 #b4ada2,
207
+ 8 #b1aaa0,
208
+ 9 #ada89e,
209
+ 10 #aaa59c,
210
+ 11 #a7a299,
211
+ 12 #a49f97,
212
+ 13 #a19c95,
213
+ 14 #9c9c94;
214
+ }
215
+
216
+ /* Clio Sans '97 Display: Charcoal's outlines, traced from Mac OS 9.0 drawing it
217
+ at 72 points (fonts/ClioSans97Display.woff2, tooling/trace-outline.py), for
218
+ every size that is not 12px or a multiple of it. */
219
+ @font-face {
220
+ font-family: "Clio Sans '97 Display";
221
+ src: url("fonts/ClioSans97Display.woff2") format("woff2");
222
+ font-weight: 100 900;
223
+ font-display: swap;
224
+ }
225
+
226
+ /* Other fonts, each with a licence that allows it:
6
227
  - ChicagoFLF: a public-domain outline revival of Chicago (Robin Casady).
7
228
  - Asap (variable, wdth + wght): SIL OFL 1.1, Omnibus-Type. The legal
8
229
  stand-in for Charcoal that AI System 6 measured its Platinum title bar
9
- against (width axis 113 for text, 123 for titles).
230
+ against (width axis 113 for text, 123 for titles); now the fallback
231
+ behind Clio Sans '97.
10
232
  Apple's own faces (Chicago, Geneva, Charcoal, Monaco) are never shipped;
11
233
  the stacks below reach them only when the visitor already has them. */
12
234
  @font-face {
@@ -33,7 +255,8 @@
33
255
  adaptation (contrast, focus, touch). Platinum re-declares these tokens in
34
256
  90-platinum.css under [data-era="platinum"]. */
35
257
  :root,
36
- [data-era="system6"] {
258
+ [data-era="system6"],
259
+ [data-era="system7"] {
37
260
  /* 1-bit palette. System 6 on a compact Mac had two colours. */
38
261
  --clio-ink: #000000;
39
262
  --clio-paper: #ffffff;
@@ -41,14 +264,28 @@
41
264
  /* [A] Disabled text: System 6 drew it through a 50% grey pattern; a solid
42
265
  grey keeps 5.6:1 on white instead of a dither the browser would blur. */
43
266
  --clio-disabled: #696969;
267
+ /* Dimmed text is drawn through QuickDraw's 50% gray pattern, aligned to the
268
+ screen: the ink where x + y is odd survives (measured, File menu). The
269
+ pattern is fixed to the viewport the same way; #696969 is only the
270
+ fallback colour where background-clip: text is missing. */
271
+ --clio-disabled-dither: var(--clio-art-s6-gray50);
272
+ --clio-disabled-fill: transparent;
44
273
  --clio-selection-bg: #000000;
45
274
  --clio-selection-fg: #ffffff;
46
275
 
47
276
  /* Type. Chicago 12 is the system font; Geneva is the application font. */
48
- --clio-font-chrome: Chicago, "ChicagoFLF", Charcoal, Geneva, "Helvetica Neue", Arial, sans-serif;
49
- --clio-font-text: Geneva, "Clio Asap", "Helvetica Neue", Arial, sans-serif;
277
+ --clio-font-chrome: "Clio Sans '84", Chicago, "ChicagoFLF", Charcoal, Geneva, "Helvetica Neue", Arial, sans-serif;
278
+ --clio-font-text: "Clio Text '84", Geneva, "Helvetica Neue", Arial, sans-serif;
279
+ /* Geneva 9: the Finder info line, icon names, status lines. */
280
+ --clio-font-small: "Clio Text '84 9", Geneva, "Helvetica Neue", Arial, sans-serif;
281
+ --clio-text-smoothing: none;
50
282
  --clio-font-mono: Monaco, Menlo, Consolas, "Courier New", monospace;
283
+ /* Chrome type at sizes other than 12px and its multiples (.display): an
284
+ outline face, smoothed. */
285
+ --clio-font-display: Chicago, "ChicagoFLF", Charcoal, "Helvetica Neue", Arial, sans-serif;
51
286
  --clio-font-size: 12px;
287
+ /* A bitmap face: no antialiasing, so a glyph on a half pixel stays 1-bit. */
288
+ --clio-font-smoothing: none;
52
289
  /* Geneva 9: the Finder info line and icon names. */
53
290
  --clio-font-size-small: 9px;
54
291
  --clio-chrome-weight: 400;
@@ -122,7 +359,7 @@
122
359
  --clio-menu-border-top-width: 0;
123
360
  --clio-menu-shadow: 1px 1px 0 var(--clio-ink);
124
361
  --clio-menu-item-height: 16px;
125
- --clio-menu-item-padding: 0 12px 0 15px;
362
+ --clio-menu-item-padding: 0 12px 0 13px;
126
363
  --clio-menu-item-weight: 400;
127
364
  --clio-menu-item-active-bg: var(--clio-ink);
128
365
  --clio-menu-item-active-fg: var(--clio-paper);
@@ -136,18 +373,30 @@
136
373
  --clio-button-bg: var(--clio-paper);
137
374
  --clio-button-fg: var(--clio-ink);
138
375
  --clio-button-border: 1px solid var(--clio-ink);
139
- /* 20px tall; corners turn over about 4px (alert OK button, 6.0.8). */
140
- --clio-button-radius: 4px;
376
+ /* 20px tall; the corner steps in 3, 1, 1 pixels on its first three rows
377
+ (OK and Cancel, 6.0.8), which a 4.5px radius reproduces exactly. */
378
+ /* The frame and the default ring are the real pixel staircases, cut from
379
+ System 6.0.8's Alert and Save dialog (tooling/frame-art.py) and drawn with
380
+ border-image; border-radius would antialias an arc. */
381
+ --clio-button-radius: 0;
382
+ --clio-button-frame: var(--clio-art-frame-s6-button);
383
+ --clio-button-frame-held: var(--clio-art-frame-s6-button-held);
384
+ --clio-button-frame-slice: 4;
385
+ --clio-ring-frame: var(--clio-art-frame-s6-ring);
386
+ --clio-ring-frame-slice: 7;
387
+ --clio-popup-frame: none;
388
+ --clio-popup-frame-slice: 3;
141
389
  --clio-button-shadow: 0 0 0 0 transparent;
142
390
  --clio-button-padding: 0 12px;
143
391
  --clio-button-min-width: 59px;
144
392
  --clio-button-weight: 400;
145
- --clio-button-active-bg: var(--clio-ink);
393
+ --clio-button-active-bg: transparent; /* the held frame carries the ink face */
146
394
  --clio-button-active-fg: var(--clio-paper);
147
395
  --clio-button-active-shadow: 0 0 0 0 transparent;
148
396
  /* Default button: Inside Macintosh's recipe is PenSize(3,3) around the
149
397
  button inset by -4, so a 1px gap then a 3px ring. */
150
- --clio-button-default-ring: 0 0 0 1px var(--clio-paper), 0 0 0 4px var(--clio-ink);
398
+ --clio-button-default-gap: 1px;
399
+ --clio-button-default-width: 3px;
151
400
  --clio-button-default-radius: 8px;
152
401
  --clio-button-disabled-fg: var(--clio-disabled);
153
402
  --clio-button-disabled-border: 1px solid var(--clio-ink);
@@ -179,8 +428,11 @@
179
428
  --clio-popup-border: 1px solid var(--clio-ink);
180
429
  --clio-popup-radius: 0;
181
430
  --clio-popup-shadow: 1px 1px 0 var(--clio-ink);
182
- --clio-popup-padding: 0 24px 0 6px;
183
- --clio-popup-arrow: var(--clio-art-s6-popup) right 6px center / 11px 6px no-repeat;
431
+ /* System 6 pop-up (Standard File folder menu, 6.0.8): an 18px box, 1px
432
+ frame, 1px shadow, no arrow; held, it inverts. */
433
+ --clio-popup-height: 18px;
434
+ --clio-popup-padding: 0 8px;
435
+ --clio-popup-arrow: none;
184
436
  --clio-popup-weight: 400;
185
437
 
186
438
  /* Scroll bars */
@@ -232,7 +484,8 @@
232
484
  --clio-progress-bg: var(--clio-paper);
233
485
  --clio-progress-border: 1px solid var(--clio-ink);
234
486
  --clio-progress-shadow: none;
235
- --clio-progress-fill: var(--clio-ink);
487
+ /* Finder copy progress (6.0.8): 12px, 1px frame, dkGray fill. */
488
+ --clio-progress-fill: var(--clio-art-s6-dkgray) 0 0 / 4px 2px repeat, var(--clio-ink);
236
489
  --clio-tab-height: 20px;
237
490
  --clio-tab-bg: var(--clio-paper);
238
491
  --clio-tab-active-bg: var(--clio-paper);
@@ -242,6 +495,31 @@
242
495
  --clio-label-fg: var(--clio-ink);
243
496
  --clio-label-selected-bg: var(--clio-ink);
244
497
  --clio-label-selected-fg: var(--clio-paper);
498
+
499
+ /* Control Strip: System 6 had none; drawn here in its ink and paper, at the
500
+ Mac OS 9 geometry (adapted). */
501
+ --clio-strip-height: 24px;
502
+ --clio-strip-bg: var(--clio-paper);
503
+ --clio-strip-line: 1px solid var(--clio-ink);
504
+ --clio-strip-cell-shadow: none;
505
+ --clio-strip-sunken-shadow: none;
506
+ --clio-strip-sunken-lines: linear-gradient(transparent, transparent);
507
+ --clio-strip-pressed-bg: var(--clio-ink);
508
+ --clio-strip-pressed-shadow: inset 0 0 0 2px var(--clio-paper);
509
+ --clio-strip-cap-width: 13px;
510
+ --clio-strip-scroll-width: 13px;
511
+ --clio-strip-module-width: 30px;
512
+ --clio-strip-icon-inset: 2px;
513
+ --clio-strip-menu-top: 7px;
514
+ --clio-strip-menu-inset: 4px;
515
+ --clio-strip-handle-width: 18px;
516
+ --clio-strip-tab-width: 18px;
517
+ --clio-strip-cap: var(--clio-art-s6-strip-cap);
518
+ --clio-strip-back: var(--clio-art-s6-strip-back);
519
+ --clio-strip-forward: var(--clio-art-s6-strip-forward);
520
+ --clio-strip-menu: var(--clio-art-s6-strip-menu);
521
+ --clio-strip-handle: var(--clio-art-s6-strip-handle);
522
+ --clio-strip-tab: var(--clio-art-s6-strip-tab);
245
523
  }
246
524
 
247
525
  /* Inline art. Pixel-grid SVGs, never Apple bitmaps: the System 6 check, radio
@@ -253,7 +531,6 @@
253
531
  --clio-art-s6-radio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' shape-rendering='crispEdges'%3E%3Cpath d='M4 0h4v1H4zM0 4h1v4H0zM11 4h1v4h-1zM2 1h2v1H2zM8 1h2v1H8zM10 2h1v2h-1zM1 2h1v2H1zM4 11h4v1H4zM2 10h2v1H2zM8 10h2v1H8zM10 8h1v2h-1zM1 8h1v2H1z'/%3E%3C/svg%3E");
254
532
  --clio-art-s6-radio-focus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' shape-rendering='crispEdges'%3E%3Cpath d='M4 0h4v2H4zM0 4h2v4H0zM10 4h2v4h-2zM2 1h2v2H2zM8 1h2v2H8zM9 2h2v2H9zM1 2h2v2H1zM4 10h4v2H4zM2 9h2v2H2zM8 9h2v2H8zM9 8h2v2H9zM1 8h2v2H1z'/%3E%3C/svg%3E");
255
533
  --clio-art-s6-radio-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h4v1H1zM1 5h4v1H1zM0 1h6v4H0z'/%3E%3C/svg%3E");
256
- --clio-art-s6-popup: 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");
257
534
  --clio-art-s6-submenu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='11'%3E%3Cpath d='m0 0 6 5.5L0 11Z'/%3E%3C/svg%3E");
258
535
  --clio-art-s6-submenu-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='11'%3E%3Cpath fill='%23fff' d='m0 0 6 5.5L0 11Z'/%3E%3C/svg%3E");
259
536
  --clio-art-s6-desktop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM1 1h1v1H1z'/%3E%3Cpath fill='%23fff' d='M1 0h1v1H1zM0 1h1v1H0z'/%3E%3C/svg%3E");
@@ -262,15 +539,33 @@
262
539
  --clio-art-s6-up-on: 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='M5 2h3v1h-3zM4 3h5v1h-5zM3 4h7v1h-7zM2 5h9v1h-9zM1 6h11v1h-11zM0 7h13v1h-13zM3 8h7v1h-7zM3 9h7v1h-7zM3 10h7v1h-7zM3 11h7v1h-7z'/%3E%3C/svg%3E");
263
540
  --clio-art-s6-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M4 3h5v1h-5zM4 4h5v1h-5zM4 5h5v1h-5zM4 6h5v1h-5zM2 7h9v1h-9zM3 8h7v1h-7zM4 9h5v1h-5zM5 10h3v1h-3zM6 11h1v1h-1z'/%3E%3Cpath fill='%23000' d='M3 2h7v1h-7zM3 3h1v1h-1zM9 3h1v1h-1zM3 4h1v1h-1zM9 4h1v1h-1zM3 5h1v1h-1zM9 5h1v1h-1zM0 6h4v1h-4zM9 6h4v1h-4zM1 7h1v1h-1zM11 7h1v1h-1zM2 8h1v1h-1zM10 8h1v1h-1zM3 9h1v1h-1zM9 9h1v1h-1zM4 10h1v1h-1zM8 10h1v1h-1zM5 11h1v1h-1zM7 11h1v1h-1zM6 12h1v1h-1z'/%3E%3C/svg%3E");
264
541
  --clio-art-s6-down-on: 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='M3 2h7v1h-7zM3 3h7v1h-7zM3 4h7v1h-7zM3 5h7v1h-7zM0 6h13v1h-13zM1 7h11v1h-11zM2 8h9v1h-9zM3 9h7v1h-7zM4 10h5v1h-5zM5 11h3v1h-3z'/%3E%3C/svg%3E");
265
- --clio-art-s6-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M6 2h1v1h-1zM5 3h2v1h-2zM4 4h7v1h-7zM3 5h8v1h-8zM2 6h9v1h-9zM3 7h8v1h-8zM4 8h7v1h-7zM5 9h2v1h-2zM6 10h1v1h-1z'/%3E%3Cpath fill='%23000' d='M7 0h1v1h-1zM6 1h2v1h-2zM5 2h1v1h-1zM7 2h1v1h-1zM4 3h1v1h-1zM7 3h5v1h-5zM3 4h1v1h-1zM11 4h1v1h-1zM2 5h1v1h-1zM11 5h1v1h-1zM1 6h1v1h-1zM11 6h1v1h-1zM2 7h1v1h-1zM11 7h1v1h-1zM3 8h1v1h-1zM11 8h1v1h-1zM4 9h1v1h-1zM7 9h5v1h-5zM5 10h1v1h-1zM7 10h1v1h-1zM6 11h2v1h-2zM7 12h1v1h-1z'/%3E%3C/svg%3E");
266
- --clio-art-s6-left-on: 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='M7 0h1v1h-1zM6 1h2v1h-2zM5 2h3v1h-3zM4 3h8v1h-8zM3 4h9v1h-9zM2 5h10v1h-10zM2 6h10v1h-10zM2 7h10v1h-10zM3 8h9v1h-9zM4 9h8v1h-8zM5 10h3v1h-3zM6 11h2v1h-2zM7 12h1v1h-1z'/%3E%3C/svg%3E");
267
- --clio-art-s6-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M6 2h1v1h-1zM5 3h2v1h-2zM4 4h7v1h-7zM3 5h8v1h-8zM2 6h9v1h-9zM3 7h8v1h-8zM4 8h7v1h-7zM5 9h2v1h-2zM6 10h1v1h-1z'/%3E%3Cpath fill='%23000' d='M7 0h1v1h-1zM6 1h2v1h-2zM5 2h1v1h-1zM7 2h1v1h-1zM4 3h1v1h-1zM7 3h5v1h-5zM3 4h1v1h-1zM11 4h1v1h-1zM2 5h1v1h-1zM11 5h1v1h-1zM1 6h1v1h-1zM11 6h1v1h-1zM2 7h1v1h-1zM11 7h1v1h-1zM3 8h1v1h-1zM11 8h1v1h-1zM4 9h1v1h-1zM7 9h5v1h-5zM5 10h1v1h-1zM7 10h1v1h-1zM6 11h2v1h-2zM7 12h1v1h-1z'/%3E%3C/svg%3E");
268
- --clio-art-s6-right-on: 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='M7 0h1v1h-1zM6 1h2v1h-2zM5 2h3v1h-3zM4 3h8v1h-8zM3 4h9v1h-9zM2 5h10v1h-10zM2 6h10v1h-10zM2 7h10v1h-10zM3 8h9v1h-9zM4 9h8v1h-8zM5 10h3v1h-3zM6 11h2v1h-2zM7 12h1v1h-1z'/%3E%3C/svg%3E");
542
+ --clio-art-s6-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M5 2h1v1h-1zM4 3h2v1h-2zM3 4h7v1h-7zM2 5h8v1h-8zM1 6h9v1h-9zM2 7h8v1h-8zM3 8h7v1h-7zM4 9h2v1h-2zM5 10h1v1h-1z'/%3E%3Cpath fill='%23000' d='M6 0h1v1h-1zM5 1h2v1h-2zM4 2h1v1h-1zM6 2h1v1h-1zM3 3h1v1h-1zM6 3h5v1h-5zM2 4h1v1h-1zM10 4h1v1h-1zM1 5h1v1h-1zM10 5h1v1h-1zM0 6h1v1h-1zM10 6h1v1h-1zM1 7h1v1h-1zM10 7h1v1h-1zM2 8h1v1h-1zM10 8h1v1h-1zM3 9h1v1h-1zM6 9h5v1h-5zM4 10h1v1h-1zM6 10h1v1h-1zM5 11h2v1h-2zM6 12h1v1h-1z'/%3E%3C/svg%3E");
543
+ --clio-art-s6-left-on: 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='M6 0h1v1h-1zM5 1h2v1h-2zM4 2h3v1h-3zM3 3h8v1h-8zM2 4h9v1h-9zM1 5h10v1h-10zM1 6h10v1h-10zM1 7h10v1h-10zM2 8h9v1h-9zM3 9h8v1h-8zM4 10h3v1h-3zM5 11h2v1h-2zM6 12h1v1h-1z'/%3E%3C/svg%3E");
544
+ --clio-art-s6-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M8 2h1v1h-1zM8 3h2v1h-2zM4 4h7v1h-7zM4 5h8v1h-8zM4 6h9v1h-9zM4 7h8v1h-8zM4 8h7v1h-7zM8 9h2v1h-2zM8 10h1v1h-1z'/%3E%3Cpath fill='%23000' d='M7 0h1v1h-1zM7 1h2v1h-2zM7 2h1v1h-1zM9 2h1v1h-1zM3 3h5v1h-5zM10 3h1v1h-1zM3 4h1v1h-1zM11 4h1v1h-1zM3 5h1v1h-1zM12 5h1v1h-1zM3 6h1v1h-1zM13 6h1v1h-1zM3 7h1v1h-1zM12 7h1v1h-1zM3 8h1v1h-1zM11 8h1v1h-1zM3 9h5v1h-5zM10 9h1v1h-1zM7 10h1v1h-1zM9 10h1v1h-1zM7 11h2v1h-2zM7 12h1v1h-1z'/%3E%3C/svg%3E");
545
+ --clio-art-s6-right-on: 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='M7 0h1v1h-1zM7 1h2v1h-2zM7 2h3v1h-3zM3 3h8v1h-8zM3 4h9v1h-9zM3 5h10v1h-10zM3 6h10v1h-10zM3 7h10v1h-10zM3 8h9v1h-9zM3 9h8v1h-8zM7 10h3v1h-3zM7 11h2v1h-2zM7 12h1v1h-1z'/%3E%3C/svg%3E");
269
546
  --clio-art-s6-burst: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M5 1h1v1h-1zM2 2h1v1h-1zM5 2h1v1h-1zM8 2h1v1h-1zM3 3h1v1h-1zM5 3h1v1h-1zM7 3h1v1h-1zM1 5h3v1h-3zM5 5h1v1h-1zM7 5h3v1h-3zM3 7h1v1h-1zM5 7h1v1h-1zM7 7h1v1h-1zM2 8h1v1h-1zM5 8h1v1h-1zM8 8h1v1h-1zM5 9h1v1h-1z'/%3E%3C/svg%3E");
270
547
  --clio-art-s6-ltgray: 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 1h1v1h-1z'/%3E%3Cpath fill='%23fff' d='M1 0h3v1h-3zM0 1h2v1h-2zM3 1h1v1h-1z'/%3E%3C/svg%3E");
271
548
  --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
+ --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");
272
550
  --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");
551
+ /* Frames cut from captures by tooling/frame-art.py. */
552
+ --clio-art-frame-s6-button: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAgMAAACd/+6DAAAACVBMVEUAAAAAAAD///+D3c/SAAAAAXRSTlMAQObYZgAAACpJREFUeJxjYAxgYBINZWBiYWFgCmB0YGJgYABhBqmVDEx//jAwMAYwAAA66QRtNyAoFwAAAABJRU5ErkJggg==");
553
+ --clio-art-frame-s6-button-held: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAQMAAADaX5RTAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAAB1JREFUeJxjkGFgSmZgYmBg/N/IxABiMNSDSRkGACm1Aqb7EOVpAAAAAElFTkSuQmCC");
554
+ --clio-art-frame-s6-ring: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPAQMAAAABGAcJAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAADRJREFUeJxjYD/AIP+BSYGDsYaB5csahg9yTB8+MDEwgJCAAFPDPyaeBAb7H0wPfjCwHwAAEpMM/gNXK+MAAAAASUVORK5CYII=");
555
+ --clio-art-frame-p9-button: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJBAMAAAASvxsjAAAAGFBMVEUAAAAAAAB3d3fd3d27u7uqqqoiIiL///+EaqngAAAAAXRSTlMAQObYZgAAADxJREFUeJxjYEgUTGBgYnyk9JCBMUWYYa8O03qGPXIbmBj+MDAwMIERY8pFhbN2jIyOD/7fZ/ov/96eAQBghg8JraaOFgAAAABJRU5ErkJggg==");
556
+ --clio-art-frame-p9-button-held: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJBAMAAAASvxsjAAAAGFBMVEUAAAAAAAB3d3dVVVVmZmYiIiKIiIhEREQ39d/AAAAAAXRSTlMAQObYZgAAAD9JREFUeJxjYAgUDGBgYVRT+8XAGC5zgJ+PUVxG8NErJgZGBgYGJgaGfwwMLA6vH7i8YmRUdfg9n+m/9ur3DAAxwg5nPuolSwAAAABJRU5ErkJggg==");
557
+ --clio-art-frame-p9-ring: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANBAMAAACAxflPAAAAG1BMVEUAAAAAAAB3d3fd3d3MzMy7u7uqqqoiIiKIiIhznn7oAAAAAXRSTlMAQObYZgAAAFpJREFUeJxjZGDnYmB7ycDCwKPAwPjzAwujgjEDg+x6xuLDrx6oOXEwCCcxMDAlCTAx/GMAISYGCEDQTGAOUyKLAoOKQgIjY6gAA9PO+4wMElwMDO8+MELNBwCaGBDQEM8mggAAAABJRU5ErkJggg==");
558
+ --clio-art-frame-p9-button-disabled: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAgMAAACd/+6DAAAACVBMVEUAAACIiIjd3d2RXqmqAAAAAXRSTlMAQObYZgAAACFJREFUeJxjYA1hYBINZWAKYHRgYmBgQMYMUisZGFhDGAAtsQJ9dgAT/gAAAABJRU5ErkJggg==");
559
+ --clio-art-frame-p9-popup: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHBAMAAAA2fErgAAAAGFBMVEUAAAAAAAB3d3fd3d27u7uqqqoiIiL///+EaqngAAAAAXRSTlMAQObYZgAAACtJREFUeJxjYEhMYGBi5H/IwJh+klWbQYCBQYAl/OQnOwbGAEUGpv+C9gwAea0HTcaLsPwAAAAASUVORK5CYII=");
560
+ --clio-art-frame-p9-popup-disabled: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAgMAAAC5PL9AAAAACVBMVEUAAACIiIjd3d2RXqmqAAAAAXRSTlMAQObYZgAAAB1JREFUeJxjZLVmEg5gChBhcGBh0ljAtOENI6s1ACDmA/qjrWTUAAAAAElFTkSuQmCC");
561
+ --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");
273
562
  --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");
563
+ --clio-art-s6-strip-cap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M1 1h13v22H1z'/%3E%3Cpath d='M0 0h15v1H0zM0 23h15v1H0zM0 1h1v22H0zM14 1h1v22h-1zM3 8h8v1H3zM3 15h8v1H3zM3 9h1v6H3zM10 9h1v6h-1z'/%3E%3C/svg%3E");
564
+ --clio-art-s6-strip-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' shape-rendering='crispEdges'%3E%3Cpath d='M4 1h1v8H4zM3 2h1v6H3zM2 3h1v4H2zM1 4h1v2H1z'/%3E%3C/svg%3E");
565
+ --clio-art-s6-strip-forward: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' shape-rendering='crispEdges'%3E%3Cpath d='M5 1h1v8H5zM6 2h1v6H6zM7 3h1v4H7zM8 4h1v2H8z'/%3E%3C/svg%3E");
566
+ --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
+ --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
+ --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");
274
569
  }
275
570
 
276
571
  /* Base. clio.css styles elements only inside its own components, plus bare
@@ -294,7 +589,7 @@
294
589
  font-stretch: var(--clio-font-stretch-text);
295
590
  font-synthesis: none;
296
591
  line-height: 16px;
297
- -webkit-font-smoothing: auto;
592
+ -webkit-font-smoothing: var(--clio-font-smoothing);
298
593
  }
299
594
 
300
595
  :where(.window, .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .clio) *,
@@ -304,9 +599,10 @@
304
599
  }
305
600
 
306
601
  /* Application text (Geneva role) for content areas. */
307
- :where(.window-pane, .modal-contents, .alert-contents, .text) {
602
+ :where(.window-pane, .modal-contents, .alert-contents, .text, .details-bar, .listbox, [role="listbox"], .status-bar, .icon, input, textarea) {
308
603
  font-family: var(--clio-font-text);
309
604
  font-stretch: var(--clio-font-stretch-text);
605
+ -webkit-font-smoothing: var(--clio-text-smoothing);
310
606
  }
311
607
 
312
608
  :where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(h1, h2, h3, h4, .heading) {
@@ -317,6 +613,11 @@
317
613
  line-height: 16px;
318
614
  }
319
615
 
616
+ :where(.display) {
617
+ font-family: var(--clio-font-display);
618
+ -webkit-font-smoothing: auto;
619
+ }
620
+
320
621
  :where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(p) {
321
622
  margin: 0 0 8px;
322
623
  }
@@ -431,7 +732,7 @@
431
732
  overflow: hidden;
432
733
  background: var(--clio-title-bg);
433
734
  color: var(--clio-title-fg);
434
- font-family: var(--clio-font-chrome);
735
+ font-family: var(--clio-font-window-title, var(--clio-font-chrome));
435
736
  font-size: var(--clio-title-font-size);
436
737
  font-stretch: var(--clio-font-stretch-title);
437
738
  font-weight: var(--clio-chrome-weight);
@@ -551,7 +852,7 @@
551
852
  border-bottom: var(--clio-details-border);
552
853
  background: var(--clio-details-bg);
553
854
  box-shadow: var(--clio-details-shadow, none);
554
- font-family: var(--clio-font-text);
855
+ font-family: var(--clio-font-small);
555
856
  font-size: var(--clio-details-font-size);
556
857
  line-height: var(--clio-details-height);
557
858
  white-space: nowrap;
@@ -570,7 +871,7 @@
570
871
  padding: 1px 8px;
571
872
  border-top: var(--clio-border);
572
873
  background: var(--clio-details-bg);
573
- font-family: var(--clio-font-text);
874
+ font-family: var(--clio-font-small);
574
875
  font-size: var(--clio-font-size-small);
575
876
  line-height: 14px;
576
877
  }
@@ -727,6 +1028,12 @@
727
1028
  :where(.menu, [role="menu"]) > li:is(.disabled, [aria-disabled="true"]),
728
1029
  :where(.menu, [role="menu"]) > li > :is(a, button):is(:disabled, [aria-disabled="true"]) {
729
1030
  color: var(--clio-disabled);
1031
+ background-image: var(--clio-disabled-dither);
1032
+ background-size: 2px 2px;
1033
+ background-attachment: fixed;
1034
+ -webkit-background-clip: text;
1035
+ background-clip: text;
1036
+ -webkit-text-fill-color: var(--clio-disabled-fill);
730
1037
  }
731
1038
 
732
1039
  /* Keyboard shortcut column, right-aligned. */
@@ -806,11 +1113,13 @@
806
1113
  border-radius: var(--clio-button-radius);
807
1114
  background: var(--clio-button-bg);
808
1115
  box-shadow: var(--clio-button-shadow);
1116
+ border-image: var(--clio-button-frame) var(--clio-button-frame-slice) fill / calc(var(--clio-button-frame-slice) * 1px) stretch;
809
1117
  color: var(--clio-button-fg);
810
1118
  font-family: var(--clio-font-chrome);
811
1119
  font-size: var(--clio-font-size);
812
1120
  font-stretch: var(--clio-font-stretch-text);
813
1121
  font-weight: var(--clio-button-weight);
1122
+ -webkit-font-smoothing: var(--clio-font-smoothing);
814
1123
  line-height: 14px;
815
1124
  text-align: center;
816
1125
  text-decoration: none;
@@ -825,22 +1134,41 @@
825
1134
  :where(button, .btn, .btn-default, .standard-button, input[type="button"], input[type="submit"], input[type="reset"]):not(:disabled, .disabled):is(:active, .active) {
826
1135
  background: var(--clio-button-active-bg);
827
1136
  box-shadow: var(--clio-button-active-shadow);
1137
+ border-image-source: var(--clio-button-frame-held);
828
1138
  color: var(--clio-button-active-fg);
829
1139
  }
830
1140
 
831
- /* Default button: the ring that says Return will press it. */
1141
+ /* Default button: the ring that says Return will press it. Drawn as its own
1142
+ rounded rectangle (Inside Macintosh: PenSize(3,3), InsetRect(-4,-4),
1143
+ FrameRoundRect(16,16)), so its corners do not follow the button's. */
832
1144
  :where(.default, .btn-default, button[type="submit"].default) {
1145
+ position: relative;
833
1146
  border-radius: var(--clio-button-radius);
834
- box-shadow: var(--clio-button-shadow), var(--clio-button-default-ring);
835
1147
  }
836
1148
 
837
- :where(.default, .btn-default):not(:disabled, .disabled):is(:active, .active) {
838
- box-shadow: var(--clio-button-active-shadow), var(--clio-button-default-ring);
1149
+ :where(.default, .btn-default)::before {
1150
+ content: "";
1151
+ position: absolute;
1152
+ inset: calc(-1px - var(--clio-button-default-gap) - var(--clio-button-default-width));
1153
+ border: var(--clio-button-default-width) solid var(--clio-ink);
1154
+ border-radius: var(--clio-button-default-radius);
1155
+ border-image: var(--clio-ring-frame) var(--clio-ring-frame-slice) / calc(var(--clio-ring-frame-slice) * 1px) stretch;
1156
+ pointer-events: none;
839
1157
  }
840
1158
 
841
1159
  :where(button, .btn, .btn-default, .standard-button, input[type="button"], input[type="submit"], input[type="reset"]):is(:disabled, .disabled) {
842
1160
  border: var(--clio-button-disabled-border);
843
1161
  color: var(--clio-button-disabled-fg);
1162
+ /* System 6: the label through the 50% pattern, the frame left solid. */
1163
+ background-image: var(--clio-disabled-dither), linear-gradient(var(--clio-button-bg), var(--clio-button-bg));
1164
+ background-size: 2px 2px, auto;
1165
+ background-attachment: fixed, scroll;
1166
+ -webkit-background-clip: text, border-box;
1167
+ background-clip: text, border-box;
1168
+ -webkit-text-fill-color: var(--clio-disabled-fill);
1169
+ /* The frame without its face, so the dimmed label shows through. */
1170
+ border-image-source: var(--clio-button-frame-disabled, var(--clio-button-frame));
1171
+ border-image-slice: var(--clio-button-frame-slice);
844
1172
  }
845
1173
 
846
1174
  :where(button, .btn, .btn-default, .standard-button, input[type="button"], input[type="submit"], input[type="reset"]):focus-visible {
@@ -936,6 +1264,12 @@
936
1264
  :where(input[type="checkbox"], input[type="radio"]):disabled + label,
937
1265
  :where(label):has(> :is(input[type="checkbox"], input[type="radio"]):disabled) {
938
1266
  color: var(--clio-disabled);
1267
+ background-image: var(--clio-disabled-dither);
1268
+ background-size: 2px 2px;
1269
+ background-attachment: fixed;
1270
+ -webkit-background-clip: text;
1271
+ background-clip: text;
1272
+ -webkit-text-fill-color: var(--clio-disabled-fill);
939
1273
  }
940
1274
 
941
1275
  /* ---- Text fields ---------------------------------------------------------- */
@@ -988,18 +1322,20 @@
988
1322
  /* ---- Pop-up menus (select) ------------------------------------------------ */
989
1323
  :where(select) {
990
1324
  box-sizing: border-box;
991
- min-height: var(--clio-control-height);
1325
+ min-height: var(--clio-popup-height, var(--clio-control-height));
992
1326
  margin: 0;
993
1327
  padding: var(--clio-popup-padding);
994
1328
  border: var(--clio-popup-border);
995
1329
  border-radius: var(--clio-popup-radius);
996
1330
  background: var(--clio-popup-arrow), var(--clio-popup-bg);
997
1331
  box-shadow: var(--clio-popup-shadow);
1332
+ border-image: var(--clio-popup-frame) var(--clio-popup-frame-slice) / calc(var(--clio-popup-frame-slice) * 1px) stretch;
998
1333
  color: var(--clio-ink);
999
1334
  font-family: var(--clio-font-chrome);
1000
1335
  font-size: var(--clio-font-size);
1001
1336
  font-stretch: var(--clio-font-stretch-text);
1002
1337
  font-weight: var(--clio-popup-weight);
1338
+ -webkit-font-smoothing: var(--clio-font-smoothing);
1003
1339
  line-height: 16px;
1004
1340
  appearance: none;
1005
1341
  -webkit-appearance: none;
@@ -1174,7 +1510,7 @@
1174
1510
  background: none;
1175
1511
  box-shadow: none;
1176
1512
  color: var(--clio-ink);
1177
- font-family: var(--clio-font-text);
1513
+ font-family: var(--clio-font-small);
1178
1514
  font-size: var(--clio-font-size-small);
1179
1515
  text-align: center;
1180
1516
  cursor: default;
@@ -1280,7 +1616,7 @@
1280
1616
  border-radius: 6px;
1281
1617
  background: var(--clio-paper);
1282
1618
  color: var(--clio-ink);
1283
- font: 700 22px/28px var(--clio-font-chrome);
1619
+ font: 700 22px/28px var(--clio-font-display);
1284
1620
  text-align: center;
1285
1621
  }
1286
1622
 
@@ -1418,25 +1754,415 @@
1418
1754
  }
1419
1755
  }
1420
1756
 
1757
+ /* Control Strip (System 7.5 to Mac OS 9): a row of module buttons with scroll
1758
+ arrows and a tab that folds the strip away. Markup follows AI System 6:
1759
+ .control-strip > button.control-strip-scroll.control-strip-scroll-back,
1760
+ .control-strip-modules[role=toolbar] > .control-strip-module-track >
1761
+ button.control-strip-module (an icon inside; aria-haspopup="menu" draws the
1762
+ menu triangle), button.control-strip-scroll.control-strip-scroll-forward,
1763
+ button.control-strip-handle. Add .is-collapsed to fold it to the tab, and
1764
+ data-edge="right" for a strip on the right edge. Placement is yours
1765
+ (AI System 6 fixes it to the screen's lower left). */
1766
+ /* The strip's art is the same in System 7.5.3, Mac OS 8.5 and Mac OS 9.0
1767
+ (compared pixel for pixel with the backdrop removed); only the cell colours
1768
+ differ, so it lives here for every era. Redrawn by tooling/p9-art.py. */
1769
+ :root {
1770
+ --clio-art-p9-strip-cap: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAYBAMAAADXK7paAAAAHlBMVEUAAAAAAABERERVVVWAgICIiIigoKDAwMDMzP/////+VYXkAAAAAXRSTlMAQObYZgAAAGlJREFUeJxjFGQAg/8sbAlgxkwWBiUQfZuBheHfAwYGhg8MTBAlDPgYLAx/9jAwsOgysDAwhDIw/L8LYvy98NcVry4mBoa/Zy+AtTOwlzP8AzFY3r0jYBfC0l/3P4AZjILMBiD6DCPMOwBKOxgiile5lQAAAABJRU5ErkJggg==");
1771
+ --clio-art-s7-strip-cap: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAYBAMAAADXK7paAAAAG1BMVEUAAAAAAABERERVVVWIiIiqqqrMzMzMzP/////JRvoVAAAAAXRSTlMAQObYZgAAAGVJREFUeJxjFGQAg/8srAFgxioWBiUQfYeBheHfAwYGhg8MTBAlDPgYLAx/zzIwMMsxsDAwuDAw/L8HYvy98M+FgC6Gf/egDLY0hn8gBvO7dwTsQmj/ff8DmMEoyGwAos8wwrwDAP+1F0dci98qAAAAAElFTkSuQmCC");
1772
+ --clio-art-p9-strip-back: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKAgMAAADwXCcuAAAACVBMVEUAAABVVVXd3d2apXz3AAAAAXRSTlMAQObYZgAAACxJREFUeJwFwaERwCAABLD0j3oE7IPBs/8KrcBjSKhiKM/cebs0gvzkfFioLlg9BPcTGNP4AAAAAElFTkSuQmCC");
1773
+ --clio-art-p9-strip-forward: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKAgMAAADwXCcuAAAACVBMVEUAAABVVVXd3d2apXz3AAAAAXRSTlMAQObYZgAAAC1JREFUeJwFwSESABAUQMHnzegC9/nFqRX3IegCuxBIwVYxdySFgLzpHbg2cvhWkAdTrBZiqwAAAABJRU5ErkJggg==");
1774
+ --clio-art-p9-strip-menu: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAHAQMAAAAVq36TAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAABZJREFUeJxjaGA4wPCA4QMTA9MHpgcAIQYE58W2/JQAAAAASUVORK5CYII=");
1775
+ --clio-art-p9-strip-handle: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAYBAMAAAAFe7ACAAAAFVBMVEUAAAAAAABERERVVVWIiIjMzMz///8V67gPAAAAAXRSTlMAQObYZgAAAINJREFUeJxVz7ENAjEMheE/IbQokRiAUVJQUjAs5RXZhJvgkp6LjGwfBU309PzFkkMBZAApVVgAIqWUZ9bORsE6fWvWJCukoIlbtjICG0sK5iLnVrM7Hqefsy3qPKnzZM6n/+41D/epbbi772IOaOPYsIv/sIrEG6YA4XqB3vWO2UErvmVcJ4BylohjAAAAAElFTkSuQmCC");
1776
+ --clio-art-p9-strip-tab: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAYBAMAAAAFe7ACAAAAFVBMVEUAAAAAAABERERVVVWIiIjMzMz///8V67gPAAAAAXRSTlMAQObYZgAAAIFJREFUeJxVz7ENAjEMQNHvKPS+DRiBEVJQMi49WeAkRrgJSHoijOyEgipf1pPlyAbQgMwVxqN7iYIACVprRaMUskS9gKJeSWKYADtGLRruzC3Lcqd6WW7uw45V7ma5m/Xv3uW53H3YdLnU7g4YFg9Q+6phfv2nw95BNlGsRf1++QW6eCj9rQPMHAAAAABJRU5ErkJggg==");
1777
+ }
1778
+
1779
+ :where(.control-strip) {
1780
+ display: inline-flex;
1781
+ align-items: stretch;
1782
+ height: var(--clio-strip-height);
1783
+ max-width: 100%;
1784
+ vertical-align: bottom;
1785
+ user-select: none;
1786
+ -webkit-user-select: none;
1787
+ }
1788
+
1789
+ /* The end cap, then every cell: one bevelled box between 1px lines. */
1790
+ :where(.control-strip)::before,
1791
+ :where(.control-strip) > :is(.control-strip-scroll, .control-strip-modules),
1792
+ :where(.control-strip-module) {
1793
+ box-sizing: border-box;
1794
+ border: var(--clio-strip-line);
1795
+ border-left: 0;
1796
+ background: var(--clio-strip-bg);
1797
+ box-shadow: var(--clio-strip-cell-shadow);
1798
+ }
1799
+
1800
+ /* The end cap is one picture: frame, bevel, icon and the rounded lower-left corner. */
1801
+ :where(.control-strip)::before {
1802
+ content: "";
1803
+ flex: none;
1804
+ width: calc(var(--clio-strip-cap-width) + 2px);
1805
+ border: 0;
1806
+ background: var(--clio-strip-cap) 0 0 / 100% 100% no-repeat;
1807
+ box-shadow: none;
1808
+ }
1809
+
1810
+ :where(.control-strip) > :is(.control-strip-scroll, .control-strip-handle) {
1811
+ flex: none;
1812
+ margin: 0;
1813
+ padding: 0;
1814
+ border-radius: 0;
1815
+ appearance: none;
1816
+ -webkit-appearance: none;
1817
+ cursor: default;
1818
+ }
1819
+
1820
+ /* Scroll arrows: 13px cells, sunken and hollow while there is nothing to scroll. */
1821
+ :where(.control-strip) > .control-strip-scroll {
1822
+ width: calc(var(--clio-strip-scroll-width) + 1px);
1823
+ min-width: 0;
1824
+ height: auto;
1825
+ min-height: 0;
1826
+ background: var(--clio-strip-back) 1px 6px / 10px 10px no-repeat, var(--clio-strip-bg);
1827
+ box-shadow: var(--clio-strip-cell-shadow);
1828
+ }
1829
+
1830
+ :where(.control-strip) > .control-strip-scroll-forward {
1831
+ background-image: var(--clio-strip-forward);
1832
+ }
1833
+
1834
+ :where(.control-strip) > .control-strip-scroll:disabled {
1835
+ background:
1836
+ var(--clio-strip-back) 1px 6px / 10px 10px no-repeat,
1837
+ var(--clio-strip-sunken-lines),
1838
+ var(--clio-strip-bg);
1839
+ box-shadow: var(--clio-strip-sunken-shadow);
1840
+ }
1841
+
1842
+ :where(.control-strip) > .control-strip-scroll-forward:disabled {
1843
+ background-image: var(--clio-strip-forward);
1844
+ }
1845
+
1846
+ :where(.control-strip) > .control-strip-scroll:not(:disabled):active,
1847
+ :where(.control-strip-module):not(:disabled):is(:active, [aria-expanded="true"]) {
1848
+ background-color: var(--clio-strip-pressed-bg);
1849
+ box-shadow: var(--clio-strip-pressed-shadow);
1850
+ }
1851
+
1852
+ :where(.control-strip-modules) {
1853
+ display: flex;
1854
+ min-width: 0;
1855
+ overflow: hidden;
1856
+ border: 0;
1857
+ background: none;
1858
+ box-shadow: none;
1859
+ }
1860
+
1861
+ :where(.control-strip-module-track) {
1862
+ display: flex;
1863
+ }
1864
+
1865
+ /* A module: the 16px icon 2px in, the menu triangle 3px from the right. */
1866
+ :where(.control-strip-module) {
1867
+ position: relative;
1868
+ display: flex;
1869
+ flex: none;
1870
+ align-items: center;
1871
+ width: calc(var(--clio-strip-module-width) + 1px);
1872
+ min-width: 0;
1873
+ height: var(--clio-strip-height);
1874
+ min-height: 0;
1875
+ margin: 0;
1876
+ padding: 0 0 0 var(--clio-strip-icon-inset);
1877
+ border-radius: 0;
1878
+ color: var(--clio-ink);
1879
+ appearance: none;
1880
+ -webkit-appearance: none;
1881
+ cursor: default;
1882
+ }
1883
+
1884
+ :where(.control-strip-module) > :is(svg, img, .sys-icon) {
1885
+ width: 16px;
1886
+ height: 16px;
1887
+ }
1888
+
1889
+ :where(.control-strip-module)[aria-haspopup]::after {
1890
+ content: "";
1891
+ position: absolute;
1892
+ top: var(--clio-strip-menu-top);
1893
+ right: calc(var(--clio-strip-menu-inset) + 1px);
1894
+ width: 4px;
1895
+ height: 7px;
1896
+ background: var(--clio-strip-menu) 0 0 / 4px 7px no-repeat;
1897
+ }
1898
+
1899
+ :where(.control-strip-module):disabled {
1900
+ color: var(--clio-disabled);
1901
+ opacity: 0.5;
1902
+ }
1903
+
1904
+ /* The tab: open, a slanted end with a grip; folded, the strip shrinks to it. */
1905
+ :where(.control-strip) > .control-strip-handle {
1906
+ width: var(--clio-strip-handle-width);
1907
+ min-width: 0;
1908
+ height: var(--clio-strip-height);
1909
+ min-height: 0;
1910
+ border: 0;
1911
+ background: var(--clio-strip-handle) 0 0 / 100% 100% no-repeat;
1912
+ box-shadow: none;
1913
+ }
1914
+
1915
+ :where(.control-strip.is-collapsed)::before,
1916
+ :where(.control-strip.is-collapsed) > :not(.control-strip-handle) {
1917
+ display: none;
1918
+ }
1919
+
1920
+ :where(.control-strip.is-collapsed) > .control-strip-handle {
1921
+ width: var(--clio-strip-tab-width);
1922
+ background-image: var(--clio-strip-tab);
1923
+ }
1924
+
1925
+ :where(.control-strip)[data-edge="right"] {
1926
+ flex-direction: row-reverse;
1927
+ }
1928
+
1929
+ :where(.control-strip)[data-edge="right"]::before,
1930
+ :where(.control-strip)[data-edge="right"] > .control-strip-handle {
1931
+ transform: scaleX(-1);
1932
+ }
1933
+
1934
+ :where(.control-strip) > :focus-visible,
1935
+ :where(.control-strip-module):focus-visible {
1936
+ outline: var(--clio-focus-outline);
1937
+ outline-offset: -3px;
1938
+ }
1939
+
1940
+ /* Macintosh System 7 in colour (7.5.3). System 7 keeps System 6's geometry,
1941
+ fonts and black-and-white controls; colour reaches the window frame, the
1942
+ title bar, the scroll bars and alerts. Applies inside data-era="system7";
1943
+ clio.system7.css is a build with System 7 as the page default.
1944
+ Every value: System 7.5.3 in Infinite Mac, the 800x600 canvas read 1:1
1945
+ (npm run capture:system7); see EVIDENCE.md. */
1946
+ [data-era="system7"] {
1947
+ /* 1px #666/#aaa checker desktop. */
1948
+ --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
+
1950
+ /* Title bar: S6 rows, #eee ground, six #777 stripes, #ccf light on the
1951
+ top and left inside edges, #99c shade on the bottom and right. */
1952
+ --clio-titlebar-height: 18px;
1953
+ --clio-titlebar-margin: 0;
1954
+ --clio-titlebar-padding: 3px 1px;
1955
+ --clio-titlebar-bg:
1956
+ linear-gradient(to bottom, #777777 0 1px, transparent 1px 2px)
1957
+ 0 0 / 100% 2px repeat-y content-box content-box,
1958
+ #eeeeee;
1959
+ --clio-title-bg: #eeeeee;
1960
+ --clio-title-inactive-fg: #888888;
1961
+ --clio-titlebar-inactive-bg: #ffffff;
1962
+
1963
+ /* Scroll bars */
1964
+ --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;
1965
+ /* The grip sits where System 7's fixed 16px scroll box has it: 3px from the
1966
+ 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;
1969
+ --clio-scrollbar-thumb-border: 0;
1970
+ --clio-scrollbar-thumb-shadow: inset -1px -1px 0 #333366, inset 1px 1px 0 #ccccff; /* the shade owns the corners */
1971
+ --clio-scrollbar-button-bg: #dddddd;
1972
+ --clio-scrollbar-up: var(--clio-art-s7-up);
1973
+ --clio-scrollbar-up-on: var(--clio-art-s7-up);
1974
+ --clio-scrollbar-down: var(--clio-art-s7-down);
1975
+ --clio-scrollbar-down-on: var(--clio-art-s7-down);
1976
+ --clio-scrollbar-left: var(--clio-art-s7-left);
1977
+ --clio-scrollbar-left-on: var(--clio-art-s7-left);
1978
+ --clio-scrollbar-right: var(--clio-art-s7-right);
1979
+ --clio-scrollbar-right-on: var(--clio-art-s7-right);
1980
+ --clio-scrollbar-corner: var(--clio-art-s7-grow) 0 0 / 14px 14px no-repeat, #eeeeee;
1981
+ --clio-scrollbar-thumb-color: #aaaaaa;
1982
+ --clio-scrollbar-track-color: #dddddd;
1983
+
1984
+ /* Menus: disabled items and the separator are solid #888 (System 6 used a
1985
+ 50% dither); the separator is still a full 16px row, ruled on its ninth line. */
1986
+ --clio-disabled: #888888;
1987
+ --clio-disabled-dither: none;
1988
+
1989
+ /* Control Strip, measured from System 7.5.3 (frame folder-window): the
1990
+ Mac OS 9 geometry and art in System 7 greys, #ccc cells with a #aaa then
1991
+ #888 shade; the held module is inferred from Mac OS 9's in these greys. */
1992
+ --clio-strip-bg: #cccccc;
1993
+ --clio-strip-line: 1px solid #000000;
1994
+ --clio-strip-cell-shadow: inset -1px -1px 0 #888888, inset -2px -2px 0 #aaaaaa, inset 1px 1px 0 #cccccc, inset 2px 2px 0 #ffffff;
1995
+ --clio-strip-sunken-shadow: none;
1996
+ /* Idle scroll cells: #888 along the top and left, white along the bottom and
1997
+ right, the two odd corners left in the face. */
1998
+ --clio-strip-sunken-lines:
1999
+ linear-gradient(#888888, #888888) 0 0 / calc(100% - 1px) 1px no-repeat,
2000
+ linear-gradient(#888888, #888888) 0 0 / 1px calc(100% - 1px) no-repeat,
2001
+ linear-gradient(#ffffff, #ffffff) 1px 100% / calc(100% - 1px) 1px no-repeat,
2002
+ linear-gradient(#ffffff, #ffffff) 100% 1px / 1px calc(100% - 1px) no-repeat;
2003
+ --clio-strip-pressed-bg: #888888;
2004
+ --clio-strip-pressed-shadow: inset 2px 2px 0 #555555, inset -2px -2px 0 #cccccc;
2005
+ --clio-strip-cap: var(--clio-art-s7-strip-cap);
2006
+ --clio-strip-back: var(--clio-art-p9-strip-back);
2007
+ --clio-strip-forward: var(--clio-art-p9-strip-forward);
2008
+ --clio-strip-menu: var(--clio-art-p9-strip-menu);
2009
+ --clio-strip-handle: var(--clio-art-p9-strip-handle);
2010
+ --clio-strip-tab: var(--clio-art-p9-strip-tab);
2011
+ --clio-disabled-fill: currentcolor;
2012
+ --clio-menu-separator: linear-gradient(#888888, #888888) 0 8px / 100% 1px no-repeat;
2013
+
2014
+ /* Pop-up menu (Numbers control panel): an 18px box, a 1px shadow that starts
2015
+ 3px in from the corner, an 11x6 black triangle 5px from the right edge,
2016
+ the label 15px in. */
2017
+ --clio-popup-shadow: 2px 2px 0 -1px #000000;
2018
+ --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;
2020
+
2021
+ /* Progress (Finder copy): 11px, a 1px black frame, #ccf track, #444 fill. */
2022
+ --clio-progress-height: 11px;
2023
+ --clio-progress-bg: #ccccff;
2024
+ --clio-progress-fill: #444444;
2025
+
2026
+ /* Group box (General Controls, Numbers): a grey 1px line (#777 and #888
2027
+ alternate in the original; drawn #777 here). */
2028
+ --clio-group-border: 1px solid #777777;
2029
+
2030
+ /* Alert and modal frame: 1px black, a raised #ccf/#669 ring, #bbb, a
2031
+ sunken #669/#ccf ring, 1px black; the same 5px as System 6. */
2032
+ --clio-modal-border: 1px solid #000000;
2033
+ --clio-modal-frame:
2034
+ inset 1px 1px 0 #ccccff,
2035
+ inset -1px -1px 0 #666699,
2036
+ inset 0 0 0 2px #bbbbbb,
2037
+ inset 3px 3px 0 #666699,
2038
+ inset -3px -3px 0 #ccccff,
2039
+ inset 0 0 0 4px #000000;
2040
+
2041
+ /* Art redrawn from the captured pixels (tooling/s7-art.py). */
2042
+ --clio-art-s7-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23dddddd' d='M1 1h12v1h-12zM1 2h5v1h-5zM7 2h6v1h-6zM1 3h4v1h-4zM8 3h5v1h-5zM1 4h3v1h-3zM9 4h4v1h-4zM1 5h2v1h-2zM10 5h3v1h-3zM1 6h1v1h-1zM11 6h2v1h-2zM12 7h1v1h-1zM1 8h3v1h-3zM9 8h4v1h-4zM1 9h3v1h-3zM9 9h4v1h-4zM1 10h3v1h-3zM9 10h4v1h-4zM1 11h3v1h-3zM9 11h4v1h-4zM1 12h12v1h-12z'/%3E%3Cpath fill='%23333366' d='M6 2h1v1h-1zM5 3h1v1h-1zM7 3h1v1h-1zM4 4h1v1h-1zM8 4h1v1h-1zM3 5h1v1h-1zM9 5h1v1h-1zM2 6h1v1h-1zM10 6h1v1h-1zM1 7h4v1h-4zM8 7h4v1h-4zM4 8h1v1h-1zM8 8h1v1h-1zM4 9h1v1h-1zM8 9h1v1h-1zM4 10h1v1h-1zM8 10h1v1h-1zM4 11h5v1h-5z'/%3E%3Cpath fill='%239999cc' d='M6 3h1v1h-1zM5 4h3v1h-3zM4 5h5v1h-5zM3 6h7v1h-7zM5 7h3v1h-3zM5 8h3v1h-3zM5 9h3v1h-3zM5 10h3v1h-3z'/%3E%3Cpath fill='%23777777' d='M13 0h1v1h-1zM13 1h1v1h-1zM13 2h1v1h-1zM13 3h1v1h-1zM13 4h1v1h-1zM13 5h1v1h-1zM13 6h1v1h-1zM13 7h1v1h-1zM13 8h1v1h-1zM13 9h1v1h-1zM13 10h1v1h-1zM13 11h1v1h-1zM13 12h1v1h-1zM0 13h14v1h-14z'/%3E%3Cpath fill='%23ffffff' d='M0 0h13v1h-13zM0 1h1v1h-1zM0 2h1v1h-1zM0 3h1v1h-1zM0 4h1v1h-1zM0 5h1v1h-1zM0 6h1v1h-1zM0 7h1v1h-1zM0 8h1v1h-1zM0 9h1v1h-1zM0 10h1v1h-1zM0 11h1v1h-1zM0 12h1v1h-1z'/%3E%3C/svg%3E");
2043
+ --clio-art-s7-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23dddddd' d='M1 1h12v1h-12zM1 2h3v1h-3zM9 2h4v1h-4zM1 3h3v1h-3zM9 3h4v1h-4zM1 4h3v1h-3zM9 4h4v1h-4zM1 5h3v1h-3zM9 5h4v1h-4zM12 6h1v1h-1zM1 7h1v1h-1zM11 7h2v1h-2zM1 8h2v1h-2zM10 8h3v1h-3zM1 9h3v1h-3zM9 9h4v1h-4zM1 10h4v1h-4zM8 10h5v1h-5zM1 11h5v1h-5zM7 11h6v1h-6zM1 12h12v1h-12z'/%3E%3Cpath fill='%23333366' d='M4 2h5v1h-5zM4 3h1v1h-1zM8 3h1v1h-1zM4 4h1v1h-1zM8 4h1v1h-1zM4 5h1v1h-1zM8 5h1v1h-1zM1 6h4v1h-4zM8 6h4v1h-4zM2 7h1v1h-1zM10 7h1v1h-1zM3 8h1v1h-1zM9 8h1v1h-1zM4 9h1v1h-1zM8 9h1v1h-1zM5 10h1v1h-1zM7 10h1v1h-1zM6 11h1v1h-1z'/%3E%3Cpath fill='%239999cc' d='M5 3h3v1h-3zM5 4h3v1h-3zM5 5h3v1h-3zM5 6h3v1h-3zM3 7h7v1h-7zM4 8h5v1h-5zM5 9h3v1h-3zM6 10h1v1h-1z'/%3E%3Cpath fill='%23777777' d='M13 0h1v1h-1zM13 1h1v1h-1zM13 2h1v1h-1zM13 3h1v1h-1zM13 4h1v1h-1zM13 5h1v1h-1zM13 6h1v1h-1zM13 7h1v1h-1zM13 8h1v1h-1zM13 9h1v1h-1zM13 10h1v1h-1zM13 11h1v1h-1zM13 12h1v1h-1zM0 13h14v1h-14z'/%3E%3Cpath fill='%23ffffff' d='M0 0h13v1h-13zM0 1h1v1h-1zM0 2h1v1h-1zM0 3h1v1h-1zM0 4h1v1h-1zM0 5h1v1h-1zM0 6h1v1h-1zM0 7h1v1h-1zM0 8h1v1h-1zM0 9h1v1h-1zM0 10h1v1h-1zM0 11h1v1h-1zM0 12h1v1h-1z'/%3E%3C/svg%3E");
2044
+ --clio-art-s7-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23dddddd' d='M1 1h6v1h-6zM8 1h5v1h-5zM1 2h5v1h-5zM8 2h5v1h-5zM1 3h4v1h-4zM8 3h5v1h-5zM1 4h3v1h-3zM12 4h1v1h-1zM1 5h2v1h-2zM12 5h1v1h-1zM1 6h1v1h-1zM12 6h1v1h-1zM1 7h2v1h-2zM12 7h1v1h-1zM1 8h3v1h-3zM12 8h1v1h-1zM1 9h4v1h-4zM8 9h5v1h-5zM1 10h5v1h-5zM8 10h5v1h-5zM1 11h6v1h-6zM8 11h5v1h-5zM1 12h12v1h-12z'/%3E%3Cpath fill='%23333366' d='M7 1h1v1h-1zM6 2h2v1h-2zM5 3h1v1h-1zM7 3h1v1h-1zM4 4h1v1h-1zM7 4h5v1h-5zM3 5h1v1h-1zM11 5h1v1h-1zM2 6h1v1h-1zM11 6h1v1h-1zM3 7h1v1h-1zM11 7h1v1h-1zM4 8h1v1h-1zM7 8h5v1h-5zM5 9h1v1h-1zM7 9h1v1h-1zM6 10h2v1h-2zM7 11h1v1h-1z'/%3E%3Cpath fill='%239999cc' d='M6 3h1v1h-1zM5 4h2v1h-2zM4 5h7v1h-7zM3 6h8v1h-8zM4 7h7v1h-7zM5 8h2v1h-2zM6 9h1v1h-1z'/%3E%3Cpath fill='%23777777' d='M13 0h1v1h-1zM13 1h1v1h-1zM13 2h1v1h-1zM13 3h1v1h-1zM13 4h1v1h-1zM13 5h1v1h-1zM13 6h1v1h-1zM13 7h1v1h-1zM13 8h1v1h-1zM13 9h1v1h-1zM13 10h1v1h-1zM13 11h1v1h-1zM13 12h1v1h-1zM0 13h14v1h-14z'/%3E%3Cpath fill='%23ffffff' d='M0 0h13v1h-13zM0 1h1v1h-1zM0 2h1v1h-1zM0 3h1v1h-1zM0 4h1v1h-1zM0 5h1v1h-1zM0 6h1v1h-1zM0 7h1v1h-1zM0 8h1v1h-1zM0 9h1v1h-1zM0 10h1v1h-1zM0 11h1v1h-1zM0 12h1v1h-1z'/%3E%3C/svg%3E");
2045
+ --clio-art-s7-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23dddddd' d='M1 1h5v1h-5zM7 1h6v1h-6zM1 2h5v1h-5zM8 2h5v1h-5zM1 3h5v1h-5zM9 3h4v1h-4zM1 4h1v1h-1zM10 4h3v1h-3zM1 5h1v1h-1zM11 5h2v1h-2zM1 6h1v1h-1zM12 6h1v1h-1zM1 7h1v1h-1zM11 7h2v1h-2zM1 8h1v1h-1zM10 8h3v1h-3zM1 9h5v1h-5zM9 9h4v1h-4zM1 10h5v1h-5zM8 10h5v1h-5zM1 11h5v1h-5zM7 11h6v1h-6zM1 12h12v1h-12z'/%3E%3Cpath fill='%23333366' d='M6 1h1v1h-1zM6 2h2v1h-2zM6 3h1v1h-1zM8 3h1v1h-1zM2 4h5v1h-5zM9 4h1v1h-1zM2 5h1v1h-1zM10 5h1v1h-1zM2 6h1v1h-1zM11 6h1v1h-1zM2 7h1v1h-1zM10 7h1v1h-1zM2 8h5v1h-5zM9 8h1v1h-1zM6 9h1v1h-1zM8 9h1v1h-1zM6 10h2v1h-2zM6 11h1v1h-1z'/%3E%3Cpath fill='%239999cc' d='M7 3h1v1h-1zM7 4h2v1h-2zM3 5h7v1h-7zM3 6h8v1h-8zM3 7h7v1h-7zM7 8h2v1h-2zM7 9h1v1h-1z'/%3E%3Cpath fill='%23777777' d='M13 0h1v1h-1zM13 1h1v1h-1zM13 2h1v1h-1zM13 3h1v1h-1zM13 4h1v1h-1zM13 5h1v1h-1zM13 6h1v1h-1zM13 7h1v1h-1zM13 8h1v1h-1zM13 9h1v1h-1zM13 10h1v1h-1zM13 11h1v1h-1zM13 12h1v1h-1zM0 13h14v1h-14z'/%3E%3Cpath fill='%23ffffff' d='M0 0h13v1h-13zM0 1h1v1h-1zM0 2h1v1h-1zM0 3h1v1h-1zM0 4h1v1h-1zM0 5h1v1h-1zM0 6h1v1h-1zM0 7h1v1h-1zM0 8h1v1h-1zM0 9h1v1h-1zM0 10h1v1h-1zM0 11h1v1h-1zM0 12h1v1h-1z'/%3E%3C/svg%3E");
2046
+ --clio-art-s7-grow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23eeeeee' d='M0 0h14v1h-14zM0 1h14v1h-14zM0 2h2v1h-2zM8 2h6v1h-6zM0 3h2v1h-2zM12 3h2v1h-2zM0 4h2v1h-2zM12 4h2v1h-2zM0 5h2v1h-2zM12 5h2v1h-2zM0 6h2v1h-2zM12 6h2v1h-2zM0 7h2v1h-2zM12 7h2v1h-2zM0 8h3v1h-3zM12 8h2v1h-2zM0 9h3v1h-3zM12 9h2v1h-2zM0 10h3v1h-3zM12 10h2v1h-2zM0 11h3v1h-3zM12 11h2v1h-2zM0 12h14v1h-14zM0 13h14v1h-14z'/%3E%3Cpath fill='%23333366' d='M2 2h6v1h-6zM2 3h1v1h-1zM8 3h4v1h-4zM2 4h1v1h-1zM7 4h1v1h-1zM2 5h1v1h-1zM7 5h1v1h-1zM11 5h1v1h-1zM2 6h1v1h-1zM7 6h1v1h-1zM11 6h1v1h-1zM2 7h1v1h-1zM4 7h4v1h-4zM11 7h1v1h-1zM3 8h1v1h-1zM11 8h1v1h-1zM3 9h1v1h-1zM11 9h1v1h-1zM3 10h1v1h-1zM11 10h1v1h-1zM3 11h1v1h-1zM5 11h7v1h-7z'/%3E%3Cpath fill='%23aaaaaa' d='M8 5h3v1h-3zM8 6h3v1h-3zM8 7h3v1h-3zM5 8h6v1h-6zM5 9h6v1h-6zM5 10h6v1h-6z'/%3E%3Cpath fill='%23ccccff' d='M3 3h5v1h-5zM3 4h1v1h-1zM8 4h4v1h-4zM3 5h1v1h-1zM3 6h1v1h-1zM3 7h1v1h-1zM4 8h1v1h-1zM4 9h1v1h-1zM4 10h1v1h-1zM4 11h1v1h-1z'/%3E%3Cpath fill='%23bbbbbb' d='M4 4h3v1h-3zM4 5h3v1h-3zM4 6h3v1h-3z'/%3E%3C/svg%3E");
2047
+ --clio-art-s7-grip-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='10' shape-rendering='crispEdges'%3E%3Cpath fill='%23ccccff' d='M0 1h6v1h-6zM0 3h6v1h-6zM0 5h6v1h-6zM0 7h6v1h-6zM0 9h6v1h-6z'/%3E%3Cpath fill='%23666699' d='M0 2h6v1h-6zM0 4h6v1h-6zM0 6h6v1h-6zM0 8h6v1h-6z'/%3E%3Cpath fill='%239999cc' d='M0 0h6v1h-6z'/%3E%3C/svg%3E");
2048
+ --clio-art-s7-grip-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23ccccff' d='M1 0h1v1h-1zM3 0h1v1h-1zM5 0h1v1h-1zM7 0h1v1h-1zM9 0h1v1h-1zM1 1h1v1h-1zM3 1h1v1h-1zM5 1h1v1h-1zM7 1h1v1h-1zM9 1h1v1h-1zM1 2h1v1h-1zM3 2h1v1h-1zM5 2h1v1h-1zM7 2h1v1h-1zM9 2h1v1h-1zM1 3h1v1h-1zM3 3h1v1h-1zM5 3h1v1h-1zM7 3h1v1h-1zM9 3h1v1h-1zM1 4h1v1h-1zM3 4h1v1h-1zM5 4h1v1h-1zM7 4h1v1h-1zM9 4h1v1h-1zM1 5h1v1h-1zM3 5h1v1h-1zM5 5h1v1h-1zM7 5h1v1h-1zM9 5h1v1h-1z'/%3E%3Cpath fill='%23666699' d='M2 0h1v1h-1zM4 0h1v1h-1zM6 0h1v1h-1zM8 0h1v1h-1zM2 1h1v1h-1zM4 1h1v1h-1zM6 1h1v1h-1zM8 1h1v1h-1zM2 2h1v1h-1zM4 2h1v1h-1zM6 2h1v1h-1zM8 2h1v1h-1zM2 3h1v1h-1zM4 3h1v1h-1zM6 3h1v1h-1zM8 3h1v1h-1zM2 4h1v1h-1zM4 4h1v1h-1zM6 4h1v1h-1zM8 4h1v1h-1zM2 5h1v1h-1zM4 5h1v1h-1zM6 5h1v1h-1zM8 5h1v1h-1z'/%3E%3Cpath fill='%239999cc' d='M0 0h1v1h-1zM0 1h1v1h-1zM0 2h1v1h-1zM0 3h1v1h-1zM0 4h1v1h-1zM0 5h1v1h-1z'/%3E%3C/svg%3E");
2049
+ }
2050
+
2051
+ /* The title bar's light and shade edges. */
2052
+ [data-era="system7"] .title-bar {
2053
+ /* The shade is drawn last: it owns the bottom-left and top-right corners. */
2054
+ box-shadow: inset -1px -1px 0 #9999cc, inset 1px 1px 0 #ccccff;
2055
+ }
2056
+
2057
+ /* Close and zoom boxes: an 11px square sunk into the bar (#336 above-left,
2058
+ #ccf below-right) with a raised #ccf/#336 inner ring around #aaa, and 1px
2059
+ of #eee between the box and the stripes. */
2060
+ [data-era="system7"] .title-bar > :is(button, .close, .close-box, .resize, .resize-box, .zoom) {
2061
+ /* The outer ring is painted, not bordered: the whole top row and left column
2062
+ are #336 (a CSS border would mitre the corners into a blend). */
2063
+ border: 1px solid transparent;
2064
+ background:
2065
+ linear-gradient(#333366, #333366) 0 0 / 100% 1px no-repeat,
2066
+ linear-gradient(#333366, #333366) 0 0 / 1px 100% no-repeat,
2067
+ linear-gradient(#aaaaaa, #aaaaaa),
2068
+ #ccccff;
2069
+ background-origin: border-box, border-box, padding-box, border-box;
2070
+ background-clip: border-box, border-box, padding-box, border-box;
2071
+ box-shadow: inset 1px 1px 0 #ccccff, inset -1px -1px 0 #333366, 0 0 0 1px #eeeeee;
2072
+ }
2073
+
2074
+ /* Zoom: a 5px square in the top-left of the grey centre, drawn #336. */
2075
+ [data-era="system7"] .title-bar > :is(.resize, .resize-box, .zoom)::before {
2076
+ top: 1px;
2077
+ left: 1px;
2078
+ width: 5px;
2079
+ height: 5px;
2080
+ border-right: 1px solid #333366;
2081
+ border-bottom: 1px solid #333366;
2082
+ }
2083
+
2084
+ /* Held: a black square with a #99c face and the starburst. */
2085
+ [data-era="system7"] .title-bar > :is(.close, .close-box, .resize, .resize-box, .zoom):is(:active, .active) {
2086
+ border-color: #000000;
2087
+ background: var(--clio-art-s6-burst) 0 0 / 11px 11px no-repeat border-box, #9999cc;
2088
+ background-clip: border-box;
2089
+ box-shadow: 0 0 0 1px #eeeeee;
2090
+ }
2091
+
2092
+ /* Background window: #555 frame, a plain white title bar, #888 title. */
2093
+ [data-era="system7"] .window.inactive {
2094
+ border-color: #555555;
2095
+ }
2096
+
2097
+ [data-era="system7"] .window.inactive > .title-bar,
2098
+ [data-era="system7"] .inactive-title-bar {
2099
+ border-bottom-color: #555555;
2100
+ box-shadow: none;
2101
+ --clio-title-bg: #ffffff;
2102
+ }
2103
+
2104
+ [data-era="system7"] .window.inactive > .title-bar > :is(.title, h1, h2, h3),
2105
+ [data-era="system7"] .inactive-title-bar > :is(.title, h1, h2, h3) {
2106
+ background: #ffffff;
2107
+ }
2108
+
2109
+ /* The scroll box's leading edge is a #555 line (16 rows in all, as in System 6). */
2110
+ [data-era="system7"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb:vertical,
2111
+ [data-era="system7"]:is(html.clio-scrollbars)::-webkit-scrollbar-thumb:vertical {
2112
+ min-height: 17px; /* the lane's black line, then 16 rows of box */
2113
+ border-top: 1px solid #555555;
2114
+ border-left: 1px solid #000000; /* the lane's own line, which the box covers */
2115
+ }
2116
+
2117
+ [data-era="system7"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb:horizontal,
2118
+ [data-era="system7"]:is(html.clio-scrollbars)::-webkit-scrollbar-thumb:horizontal {
2119
+ min-width: 17px;
2120
+ border-left: 1px solid #555555;
2121
+ border-top: 1px solid #000000;
2122
+ }
2123
+
2124
+ /* The arrow art already carries its face, light and shade. */
2125
+ [data-era="system7"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button,
2126
+ [data-era="system7"]:is(html.clio-scrollbars)::-webkit-scrollbar-button {
2127
+ background-size: 14px 14px;
2128
+ }
2129
+
1421
2130
  /* Mac OS 8/9 Platinum. Applies inside any element with data-era="platinum"
1422
2131
  (put it on <html> for a whole page). clio.platinum.css is a build of this
1423
2132
  same file with Platinum as the page default.
1424
2133
  Values: AI System 6's Platinum tables, each tied to a Mac OS 9.0 capture
1425
2134
  (GUIdebook, Infinite Mac). P-numbers in comments are AI System 6's patch
1426
2135
  ids; see EVIDENCE.md. */
1427
- [data-era="platinum"] {
2136
+ :is([data-era="platinum"], [data-era="drawingboard"]) {
1428
2137
  --clio-ink: #000000;
1429
2138
  --clio-paper: #dddddd;
1430
2139
  --clio-face: #dddddd;
1431
2140
  --clio-disabled: #6f6f6f;
2141
+ --clio-disabled-dither: none;
2142
+ /* Push button, disabled button and default ring: the real pixel frames
2143
+ (tooling/frame-art.py: Mac OS 9.0 Appearance and GUIdebook's Mac OS 9.0). */
2144
+ --clio-button-frame: var(--clio-art-frame-p9-button);
2145
+ --clio-button-frame-held: var(--clio-art-frame-p9-button-held);
2146
+ --clio-button-frame-disabled: var(--clio-art-frame-p9-button-disabled);
2147
+ --clio-ring-frame: var(--clio-art-frame-p9-ring);
2148
+ --clio-ring-frame-slice: 6;
2149
+ --clio-disabled-fill: currentcolor;
1432
2150
  --clio-selection-bg: #ccccff;
1433
2151
  --clio-selection-fg: #000000;
1434
2152
 
1435
- /* Charcoal if the visitor has it; Geneva for text on a Mac; Asap (OFL) at
1436
- the widths AI System 6 measured against Charcoal everywhere else. */
1437
- --clio-font-chrome: Charcoal, "Charcoal CY", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
2153
+ /* Charcoal if the visitor has it, else Clio Sans '97 (Charcoal 12 rebuilt
2154
+ from Mac OS 9.0), drawn without smoothing like the bitmap it is; Asap
2155
+ (OFL) at the widths AI System 6 measured against Charcoal as the last
2156
+ fallback; Geneva for text on a Mac. */
2157
+ --clio-font-chrome: Charcoal, "Charcoal CY", "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
2158
+ --clio-font-display: Charcoal, "Charcoal CY", "Clio Sans '97 Display", "Clio Asap", "Helvetica Neue", Arial, sans-serif;
2159
+ --clio-font-window-title: Charcoal, "Charcoal CY", "Clio Sans '97 Title Exact", "Clio Sans '97 Title", "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
2160
+ --clio-font-button: Charcoal, "Charcoal CY", "Clio Sans '97 Exact", "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
1438
2161
  --clio-font-text: Geneva, "Clio Asap", "Helvetica Neue", Arial, sans-serif;
1439
2162
  --clio-font-size: 12px;
2163
+ --clio-font-smoothing: none;
2164
+ --clio-text-smoothing: auto;
2165
+ --clio-font-small: var(--clio-font-text);
1440
2166
  --clio-font-size-small: 10px;
1441
2167
  --clio-chrome-weight: 700;
1442
2168
  --clio-font-stretch-text: 113%;
@@ -1455,12 +2181,9 @@
1455
2181
  --clio-window-bg: #cccccc;
1456
2182
  --clio-pane-bg: #dddddd;
1457
2183
  --clio-window-border: 1px solid #000000;
1458
- --clio-window-shadow:
1459
- 1px 1px 0 #000000,
1460
- inset 1px 0 0 #ffffff,
1461
- inset 0 1px 0 #ffffff,
1462
- inset -1px 0 0 #999999,
1463
- inset 0 -1px 0 #999999;
2184
+ /* The frame's white light and #999 shade are drawn as lines in the window's
2185
+ background (below), which leave the two odd corners in the frame grey. */
2186
+ --clio-window-shadow: 1px 1px 0 #000000;
1464
2187
  /* AI System 6 pads 5px because its pane has no border; here the pane draws
1465
2188
  the black content line itself, so the strip is 4px. */
1466
2189
  --clio-window-padding: 2px 4px 4px;
@@ -1504,40 +2227,43 @@
1504
2227
  --clio-menu-item-active-bg: #333399;
1505
2228
  --clio-menu-item-active-fg: #ffffff;
1506
2229
  --clio-menu-item-active-shadow: inset 1px 0 0 #6666cc, inset -1px 0 0 #000088;
2230
+ /* Separator: a 6px row, #888 on its third line and white on its fourth,
2231
+ across the menu's full width (Mac OS 9.0 Finder File menu). */
1507
2232
  --clio-menu-separator:
1508
- linear-gradient(#888888, #888888) 0 3px / 100% 1px no-repeat,
1509
- linear-gradient(#ffffff, #ffffff) 0 4px / 100% 1px no-repeat;
1510
- --clio-menu-separator-height: 8px;
2233
+ linear-gradient(#888888, #888888) 0 2px / 100% 1px no-repeat,
2234
+ linear-gradient(#ffffff, #ffffff) 0 3px / 100% 1px no-repeat;
2235
+ --clio-menu-separator-height: 6px;
1511
2236
 
1512
2237
  /* Push buttons: bevel, 3px corners (P29 pressed) */
1513
- --clio-button-bg: #dddddd;
2238
+ --clio-button-bg: transparent;
1514
2239
  --clio-button-fg: #000000;
1515
2240
  --clio-button-border: 1px solid #000000;
1516
2241
  --clio-button-radius: 3px;
1517
- --clio-button-shadow:
1518
- inset 1px 1px 0 #dddddd,
1519
- inset 2px 2px 0 #ffffff,
1520
- inset -1px -1px 0 #777777,
1521
- inset -2px -2px 0 #aaaaaa;
2242
+ --clio-button-shadow: none;
1522
2243
  --clio-button-padding: 0 10px;
1523
2244
  --clio-button-min-width: 58px;
1524
2245
  --clio-button-weight: 700;
1525
- --clio-button-active-bg: #666666;
2246
+ /* Held: the frame and its dark face cut from Mac OS 9.0 (frame-art.py). */
2247
+ --clio-button-active-bg: transparent;
1526
2248
  --clio-button-active-fg: #ffffff;
1527
- --clio-button-active-shadow:
1528
- inset 1px 1px 0 #444444,
1529
- inset 2px 2px 0 #555555,
1530
- inset -1px -1px 0 #888888,
1531
- inset -2px -2px 0 #777777;
2249
+ --clio-button-active-shadow: none;
1532
2250
  --clio-button-disabled-fg: #777777;
1533
2251
  --clio-button-disabled-border: 1px solid #888888;
1534
2252
 
1535
- /* Check boxes (classic-stylesheets check) and radio buttons */
2253
+ /* Check boxes and radio buttons: the mark and both radio states are redrawn
2254
+ from Mac OS 9.0's General Controls (tooling/p9-art.py). */
1536
2255
  --clio-check-size: 12px;
1537
- --clio-check-bg: #dddddd;
2256
+ /* The well's white light and #888 shade as lines that leave the odd corners
2257
+ in the face (an inset shadow would also paint over the check mark). */
2258
+ --clio-check-bg:
2259
+ linear-gradient(#ffffff, #ffffff) 0 0 / calc(100% - 1px) 1px no-repeat padding-box,
2260
+ linear-gradient(#ffffff, #ffffff) 0 0 / 1px calc(100% - 1px) no-repeat padding-box,
2261
+ linear-gradient(#888888, #888888) 1px 100% / calc(100% - 1px) 1px no-repeat padding-box,
2262
+ linear-gradient(#888888, #888888) 100% 1px / 1px calc(100% - 1px) no-repeat padding-box,
2263
+ #dddddd;
1538
2264
  --clio-check-border: 1px solid #000000;
1539
- --clio-check-shadow: inset -1px -1px 0 #888888, inset 1px 1px 0 #ffffff;
1540
- --clio-check-mark: var(--clio-art-p-check) center / 9px 8px no-repeat;
2265
+ --clio-check-shadow: none;
2266
+ --clio-check-mark: var(--clio-art-p9-check) 0 0 / 10px 10px no-repeat;
1541
2267
  --clio-check-mark-origin: padding-box;
1542
2268
  --clio-check-pressed-border-width: 1px;
1543
2269
 
@@ -1548,17 +2274,30 @@
1548
2274
  --clio-field-padding: 2px 3px;
1549
2275
  --clio-field-focus-shadow: -1px -1px 0 #888888, 1px 1px 0 #ffffff;
1550
2276
 
1551
- /* Pop-up menus (P31) */
2277
+ /* Pop-up menus, measured from Mac OS 9.0 (Appearance tab, "Apple platinum"):
2278
+ 20px, black frame, #ddd face with a white top line and #aaa foot; a #aaa
2279
+ divider 20px from the right, then a raised arrow box (white left and top,
2280
+ #aaa then #777 shade) with the 7x10 arrows 7px from the right, 4px down. */
1552
2281
  --clio-popup-bg: #dddddd;
1553
2282
  --clio-popup-border: 1px solid #000000;
1554
- --clio-popup-radius: 3px;
1555
- --clio-popup-shadow: inset 1px 1px #ffffff, inset -1px -1px #aaaaaa;
2283
+ --clio-popup-radius: 0;
2284
+ --clio-popup-frame: var(--clio-art-frame-p9-popup); /* the real corners */
2285
+ --clio-popup-shadow: none;
2286
+ --clio-popup-height: 20px;
1556
2287
  --clio-popup-padding: 0 28px 0 7px;
1557
2288
  --clio-popup-weight: 700;
1558
2289
  --clio-popup-arrow:
1559
- var(--clio-art-p-dropdown) right 6px center / 7px 10px no-repeat,
1560
- linear-gradient(#ffffff, #ffffff) right 18px top 1px / 1px calc(100% - 2px) no-repeat,
1561
- linear-gradient(#aaaaaa, #aaaaaa) right 19px top 0 / 1px 100% no-repeat;
2290
+ var(--clio-art-p-dropdown) right 7px top 4px / 7px 10px no-repeat,
2291
+ linear-gradient(#777777, #777777) right 0 top 1px / 1px calc(100% - 1px) no-repeat,
2292
+ linear-gradient(#777777, #777777) right 0 bottom 0 / 19px 1px no-repeat,
2293
+ linear-gradient(#aaaaaa, #aaaaaa) right 1px top 1px / 1px calc(100% - 2px) no-repeat,
2294
+ linear-gradient(#aaaaaa, #aaaaaa) right 1px bottom 1px / 17px 1px no-repeat,
2295
+ linear-gradient(#bbbbbb, #bbbbbb) right 19px bottom 0 / 1px 1px no-repeat,
2296
+ linear-gradient(#ffffff, #ffffff) right 18px top 1px / 1px calc(100% - 3px) no-repeat,
2297
+ linear-gradient(#ffffff, #ffffff) right 2px top 1px / 17px 1px no-repeat,
2298
+ linear-gradient(#aaaaaa, #aaaaaa) right 20px top 1px / 1px calc(100% - 1px) no-repeat,
2299
+ linear-gradient(#ffffff, #ffffff) left 0 top 0 / calc(100% - 21px) 1px no-repeat,
2300
+ linear-gradient(#aaaaaa, #aaaaaa) left 0 bottom 0 / calc(100% - 21px) 1px no-repeat;
1562
2301
 
1563
2302
  /* Scroll bars (P16, P17, P27) */
1564
2303
  --clio-scrollbar-size: 16px;
@@ -1608,8 +2347,11 @@
1608
2347
  --clio-list-border: 1px solid #000000;
1609
2348
  --clio-list-shadow: -1px -1px 0 #888888, 1px 1px 0 #ffffff;
1610
2349
  --clio-list-row: 16px;
1611
- --clio-group-border: 1px solid #888888;
1612
- --clio-group-shadow: inset 1px 1px 0 #ffffff, 1px 1px 0 #ffffff;
2350
+ /* Group box: a 1px line of #777 and #888 dots, the pattern aligned to the
2351
+ screen (#777 where x + y is even), no light (Mac OS 9.0 General Controls). */
2352
+ --clio-group-border: 1px solid transparent;
2353
+ --clio-group-shadow: none;
2354
+ --clio-art-p9-group-dots: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACAQMAAABIeJ9nAAAABlBMVEV3d3eIiIjxRXMlAAAADElEQVR4nGNwYHIAAAEIAIMYhovOAAAAAElFTkSuQmCC");
1613
2355
  --clio-progress-height: 12px;
1614
2356
  --clio-progress-bg: #bbbbbb;
1615
2357
  --clio-progress-border: 1px solid #000000;
@@ -1624,14 +2366,36 @@
1624
2366
  --clio-label-selected-fg: #ffffff;
1625
2367
  --clio-icon-selected-filter: brightness(0.5);
1626
2368
 
1627
- /* Art: pop-up arrow, check mark and submenu arrow from classic-stylesheets
1628
- (MIT, Niels Sonnich Poulsen); scroll arrows, grips and tabs drawn here
1629
- (tabs: tooling/tab-art.py). */
1630
- --clio-art-p-dropdown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='10' shape-rendering='crispEdges'%3E%3Cpath d='M3 0h1v1H3zM2 1h3v1H2zM1 2h5v1H1zM0 3h7v1H0zM0 6h7v1H0zM1 7h5v1H1zM2 8h3v1H2zM3 9h1v1H3z'/%3E%3C/svg%3E");
1631
- --clio-art-p-dropdown-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='10' shape-rendering='crispEdges'%3E%3Cpath fill='%23888' d='M3 0h1v1H3zM2 1h3v1H2zM1 2h5v1H1zM0 3h7v1H0zM0 6h7v1H0zM1 7h5v1H1zM2 8h3v1H2zM3 9h1v1H3z'/%3E%3C/svg%3E");
1632
- --clio-art-p-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='8'%3E%3Cpath d='M0 5.5 2.5 8 9 1.5V0h-.5L3 5 1 3 .5 4.25Z' fill-rule='evenodd' shape-rendering='crispEdges'/%3E%3C/svg%3E");
1633
- --clio-art-p-submenu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='11'%3E%3Cpath d='m0 0 6 5.5L0 11Z'/%3E%3C/svg%3E");
1634
- --clio-art-p-submenu-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='11'%3E%3Cpath fill='%23fff' d='m0 0 6 5.5L0 11Z'/%3E%3C/svg%3E");
2369
+ /* Control Strip, measured from Mac OS 9.0 (npm run capture:platinum, frames
2370
+ strip-expanded, strip-collapsed, strip-slider); Mac OS 8.5's is the same
2371
+ under Drawing Board. 24px: 1px black lines, #c0c0c0 cells with a white
2372
+ inner light, #a0a0a0 then #808080 shade; scroll cells sunken while idle. */
2373
+ --clio-strip-bg: #c0c0c0;
2374
+ --clio-strip-line: 1px solid #000000;
2375
+ --clio-strip-cell-shadow: inset -1px -1px 0 #808080, inset -2px -2px 0 #a0a0a0, inset 1px 1px 0 #c0c0c0, inset 2px 2px 0 #ffffff;
2376
+ --clio-strip-sunken-shadow: none;
2377
+ --clio-strip-sunken-lines:
2378
+ linear-gradient(#808080, #808080) 0 0 / calc(100% - 1px) 1px no-repeat,
2379
+ linear-gradient(#808080, #808080) 0 0 / 1px calc(100% - 1px) no-repeat,
2380
+ linear-gradient(#ffffff, #ffffff) 1px 100% / calc(100% - 1px) 1px no-repeat,
2381
+ linear-gradient(#ffffff, #ffffff) 100% 1px / 1px calc(100% - 1px) no-repeat;
2382
+ --clio-strip-pressed-bg: #808080;
2383
+ --clio-strip-pressed-shadow: inset 2px 2px 0 #404040, inset -2px -2px 0 #c0c0c0;
2384
+ --clio-strip-cap: var(--clio-art-p9-strip-cap);
2385
+ --clio-strip-back: var(--clio-art-p9-strip-back);
2386
+ --clio-strip-forward: var(--clio-art-p9-strip-forward);
2387
+ --clio-strip-menu: var(--clio-art-p9-strip-menu);
2388
+ --clio-strip-handle: var(--clio-art-p9-strip-handle);
2389
+ --clio-strip-tab: var(--clio-art-p9-strip-tab);
2390
+
2391
+ /* Art: pop-up arrow, menu check mark and submenu arrow redrawn from
2392
+ Mac OS 9.0 (tooling/p9-art.py, below); scroll arrows, grips and tabs drawn
2393
+ here (tabs: tooling/tab-art.py). */
2394
+ --clio-art-p-dropdown: var(--clio-art-p9-dropdown);
2395
+ --clio-art-p-dropdown-off: var(--clio-art-p9-dropdown-off);
2396
+ --clio-art-p-check: var(--clio-art-p9-menucheck);
2397
+ --clio-art-p-submenu: var(--clio-art-p9-submenu);
2398
+ --clio-art-p-submenu-on: var(--clio-art-p9-submenu-on);
1635
2399
  --clio-art-p-up: 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='M5 5h2v1h-2zM4 6h4v1h-4zM3 7h6v1h-6zM2 8h8v1h-8z'/%3E%3C/svg%3E");
1636
2400
  --clio-art-p-up-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23888' d='M5 5h2v1h-2zM4 6h4v1h-4zM3 7h6v1h-6zM2 8h8v1h-8z'/%3E%3C/svg%3E");
1637
2401
  --clio-art-p-down: 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 5h8v1h-8zM3 6h6v1h-6zM4 7h4v1h-4zM5 8h2v1h-2z'/%3E%3C/svg%3E");
@@ -1647,79 +2411,109 @@
1647
2411
  --clio-art-p-tab-pressed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='33' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23222' d='M11 3h1v1h-1zM9 4h1v1h-1zM8 5h1v1h-1zM7 6h1v1h-1zM25 6h1v1h-1zM6 8h1v1h-1zM26 8h1v1h-1zM5 11h1v1h-1zM27 11h1v1h-1zM4 14h1v1h-1zM28 14h1v1h-1zM3 17h1v1h-1zM29 17h1v1h-1zM2 20h1v1h-1zM30 20h1v1h-1z'/%3E%3Cpath fill='%23000' d='M12 3h10v1h-10zM10 4h1v1h-1zM22 4h2v1h-2zM24 5h1v1h-1zM7 7h1v1h-1zM25 7h1v1h-1zM6 9h1v1h-1zM26 9h1v1h-1zM6 10h1v1h-1zM26 10h1v1h-1zM5 12h1v1h-1zM27 12h1v1h-1zM5 13h1v1h-1zM27 13h1v1h-1zM4 15h1v1h-1zM28 15h1v1h-1zM4 16h1v1h-1zM28 16h1v1h-1zM3 18h1v1h-1zM29 18h1v1h-1zM3 19h1v1h-1zM29 19h1v1h-1zM2 21h1v1h-1zM30 21h1v1h-1zM2 22h1v1h-1zM30 22h1v1h-1zM0 23h33v1h-33z'/%3E%3Cpath fill='%23bbb' d='M11 4h1v1h-1zM21 4h1v1h-1zM9 5h1v1h-1zM8 6h1v1h-1zM23 6h1v1h-1zM7 8h1v1h-1zM24 8h1v1h-1zM6 11h1v1h-1zM25 11h1v1h-1zM5 14h1v1h-1zM26 14h1v1h-1zM4 17h1v1h-1zM27 17h1v1h-1zM3 20h1v1h-1zM28 20h1v1h-1z'/%3E%3Cpath fill='%23ccc' d='M12 4h9v1h-9zM10 5h1v1h-1zM8 7h1v1h-1zM7 9h1v1h-1zM7 10h1v1h-1zM6 12h1v1h-1zM6 13h1v1h-1zM5 15h1v1h-1zM5 16h1v1h-1zM4 18h1v1h-1zM4 19h1v1h-1zM3 21h1v1h-1zM3 22h1v1h-1z'/%3E%3Cpath fill='%23888' d='M11 5h11v1h-11zM23 5h1v1h-1zM9 6h2v1h-2zM9 7h1v1h-1zM24 7h1v1h-1zM8 8h1v1h-1zM8 9h1v1h-1zM25 9h1v1h-1zM8 10h1v1h-1zM25 10h1v1h-1zM7 11h1v1h-1zM7 12h1v1h-1zM26 12h1v1h-1zM7 13h1v1h-1zM26 13h1v1h-1zM6 14h1v1h-1zM6 15h1v1h-1zM27 15h1v1h-1zM6 16h1v1h-1zM27 16h1v1h-1zM5 17h1v1h-1zM5 18h1v1h-1zM28 18h1v1h-1zM5 19h1v1h-1zM28 19h1v1h-1zM4 20h1v1h-1zM4 21h1v1h-1zM29 21h1v1h-1zM4 22h1v1h-1zM29 22h1v1h-1z'/%3E%3Cpath fill='%23ddd' d='M22 5h1v1h-1zM23 7h1v1h-1zM24 9h1v1h-1zM24 10h1v1h-1zM25 12h1v1h-1zM25 13h1v1h-1zM26 15h1v1h-1zM26 16h1v1h-1zM27 18h1v1h-1zM27 19h1v1h-1zM28 21h1v1h-1zM28 22h1v1h-1z'/%3E%3Cpath fill='%23666' d='M11 6h12v1h-12zM10 7h13v1h-13zM9 8h15v1h-15zM9 9h15v1h-15zM9 10h15v1h-15zM8 11h17v1h-17zM8 12h17v1h-17zM8 13h17v1h-17zM7 14h19v1h-19zM7 15h19v1h-19zM7 16h19v1h-19zM6 17h21v1h-21zM6 18h21v1h-21zM6 19h21v1h-21zM5 20h23v1h-23zM5 21h23v1h-23zM5 22h23v1h-23z'/%3E%3Cpath fill='%23444' d='M24 6h1v1h-1zM25 8h1v1h-1zM26 11h1v1h-1zM27 14h1v1h-1zM28 17h1v1h-1zM29 20h1v1h-1z'/%3E%3C/svg%3E");
1648
2412
 
1649
2413
  color: #000000;
2414
+ /* Measured from Mac OS 9.0 frames by tooling/p9-art.py. */
2415
+ --clio-art-p9-check: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKBAMAAAB/HNKOAAAAGFBMVEUAAAAAAABVVVV3d3eIiIiqqqrd3d3///8DgOpFAAAAAXRSTlMAQObYZgAAAEBJREFUeJwVxLENgDAQBMH9k4lxQAPvSuiKtr4iRAUW+QVGTDBxAautFyyA+nfIRaU2WynOGl0cSkSMTpvPfvMB4jgPBUEhtgkAAAAASUVORK5CYII=");
2416
+ --clio-art-p9-check-overhang: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAEAgMAAADZgQaqAAAADFBMVEUAAAAAAAB3d3eqqqoo0Gg2AAAAAXRSTlMAQObYZgAAABBJREFUeJxjcGDYwCTAwAAABXABA8z2jo8AAAAASUVORK5CYII=");
2417
+ --clio-art-p9-radio-on: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMBAMAAACkW0HUAAAAIVBMVEUAAAAAAAAiIiJERERVVVV3d3eIiIiZmZm7u7vd3d3///9FvHqFAAAAAXRSTlMAQObYZgAAAFlJREFUeJwVwUERQEAUgOH/vdlxcni7W8CSQBYh5HBy0kEADeigAQqYoQDG9wEpgJCinavTmKTa9fXLbIWWOYyN3oA8ys/UDCTolkE3OKz1dugzme8voI7wAZyaEH+rqNVXAAAAAElFTkSuQmCC");
2418
+ --clio-art-p9-radio: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMBAMAAACkW0HUAAAAG1BMVEUAAAAAAABERERVVVWIiIiqqqq7u7vd3d3///9N7yqcAAAAAXRSTlMAQObYZgAAAFpJREFUeJwlzLENQEAYBeDn5RJRuZwJiI2IOZTKW0FnB7OICbDC61x1v8I3wAegDYBDM9n+sBjXMHiyigs9+y2V6KgYZxmRSjOwxiwVvF4zu5lPSXJ2ZFzCn32EjiE9A/VQnAAAAABJRU5ErkJggg==");
2419
+ --clio-art-p9-radio-pressed: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMBAMAAACkW0HUAAAAIVBMVEUAAAAAAAAiIiJERERVVVVmZmZ3d3eIiIiZmZm7u7v////rjZGwAAAAAXRSTlMAQObYZgAAAFdJREFUeJwVxKsRgDAURcFz34B/iUaQoQE0ilKogUHREyVQAxKZFnBRfIYVC6QI+n+OymIIyvZK8lZdCkGNXapHfwz3RZiL0kfLwLyZ3CmT3bvDKhhO+ABY6xACXUidtgAAAABJRU5ErkJggg==");
2420
+ --clio-art-p9-checkbox-pressed: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMBAMAAACkW0HUAAAAElBMVEUAAAAAAABVVVV3d3eZmZn///8vNloyAAAAAXRSTlMAQObYZgAAADhJREFUeJxFibENACAMwxzUGegH/f8MxFkdEHQgi2VHzp1pAsO42ttrfLQoW4WM+lYhp8kFW44lHI3DBiNDd4iSAAAAAElFTkSuQmCC");
2421
+ --clio-art-p9-box-face: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJBAMAAAASvxsjAAAAG1BMVEUAAACIiIiZmZmqqqq7u7vMzMzd3d3u7u7///8xpbC+AAAAAXRSTlMAQObYZgAAAClJREFUeJxjbL3AwPCb5exFQcHTTAwCAgIMTIyMjIwMuNgsfw4wMDAAAAO8B0nHBJxRAAAAAElFTkSuQmCC");
2422
+ --clio-art-p9-progress-pole: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAKBAMAAABPkMOvAAAAKlBMVEUAAAAAAFUAAIgzM5lVVVVmZsx3d3eZmZmZmf+qqqq7u7vMzP/d3d3///+RIHmxAAAAAXRSTlMAQObYZgAAAFFJREFUeJwlyrEJgwAQQNF3ciNYiziBIKQ2U7lTpnAAAy4QcYOAtQbRFK/5/GhwyefM1pKPDR3x+q0UtfhY7ism+0j2ufBGFYN/yi8uUbYcMycurhMrVyrlPQAAAABJRU5ErkJggg==");
2423
+ --clio-art-p9-submenu: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAALAQMAAABmnG7VAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAAB9JREFUeJxjaGA4wPCA4QPDD4Y/TH+YfjB9YHrAdAAAZSIJk3jnGdQAAAAASUVORK5CYII=");
2424
+ --clio-art-p9-submenu-on: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAALAQMAAABmnG7VAAAABlBMVEUAAAD///+l2Z/dAAAAAXRSTlMAQObYZgAAAB9JREFUeJxjaGA4wPCA4QPDD4Y/TH+YfjB9YHrAdAAAZSIJk3jnGdQAAAAASUVORK5CYII=");
2425
+ --clio-art-p9-dropdown: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAKAQMAAABCAtZOAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAABlJREFUeJxjEGDSYHJh+McAAv8YahgsGAQAHygDQTD2iPAAAAAASUVORK5CYII=");
2426
+ --clio-art-p9-dropdown-off: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAKAQMAAABCAtZOAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAABlJREFUeJxjEGDSYHJh+McAAv8YahgsGAQAHygDQTD2iPAAAAAASUVORK5CYII=");
2427
+ --clio-art-p9-menucheck: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAICAYAAAArzdW1AAAAP0lEQVR42mNgIAyMiFHwnxgFK2ECLgwMDKFYFJxB1nUGKmiEpOAOAwODALKilVCJ/7gUwMAdQgoYoBIrsSkAAK+iEhBS63EWAAAAAElFTkSuQmCC");
1650
2428
  }
1651
2429
 
1652
2430
  /* ---- Window ---------------------------------------------------------------- */
1653
2431
  /* The strip's inner edge below the title bar: #999 on the left, white on the
1654
2432
  right and bottom (GUIdebook Appearance window, x=4 and x=width-5). */
1655
- [data-era="platinum"] .window:not(.inactive) {
2433
+ :is([data-era="platinum"], [data-era="drawingboard"]) .window:not(.inactive) {
1656
2434
  background:
2435
+ linear-gradient(#ffffff, #ffffff) 0 0 / calc(100% - 1px) 1px no-repeat,
2436
+ linear-gradient(#ffffff, #ffffff) 0 0 / 1px calc(100% - 1px) no-repeat,
2437
+ linear-gradient(#999999, #999999) 1px 100% / calc(100% - 1px) 1px no-repeat,
2438
+ linear-gradient(#999999, #999999) 100% 1px / 1px calc(100% - 1px) no-repeat,
1657
2439
  linear-gradient(#999999, #999999) 3px 19px / 1px calc(100% - 22px) no-repeat,
1658
2440
  linear-gradient(#ffffff, #ffffff) right 3px top 20px / 1px calc(100% - 23px) no-repeat,
1659
2441
  linear-gradient(#ffffff, #ffffff) left 3px bottom 3px / calc(100% - 6px) 1px no-repeat,
1660
2442
  var(--clio-window-bg);
1661
2443
  }
1662
2444
 
1663
- [data-era="platinum"] .window-pane {
2445
+ :is([data-era="platinum"], [data-era="drawingboard"]) .window-pane {
1664
2446
  border: 1px solid #000000;
1665
2447
  background: var(--clio-pane-bg);
1666
2448
  }
1667
2449
 
1668
- [data-era="platinum"] .window > .title-bar + .window-pane,
1669
- [data-era="platinum"] .window > .details-bar + .window-pane {
2450
+ :is([data-era="platinum"], [data-era="drawingboard"]) .window > .title-bar + .window-pane,
2451
+ :is([data-era="platinum"], [data-era="drawingboard"]) .window > .details-bar + .window-pane {
1670
2452
  border-top: 0;
1671
2453
  }
1672
2454
 
1673
- [data-era="platinum"] .window > .details-bar {
2455
+ :is([data-era="platinum"], [data-era="drawingboard"]) .window > .details-bar {
1674
2456
  border-left: 1px solid #000000;
1675
2457
  border-right: 1px solid #000000;
1676
2458
  }
1677
2459
 
1678
2460
  /* The ridged bar. Its covers read the slot sizes the .title-bar itself
1679
2461
  computes, so this is a rule, not a token. */
1680
- [data-era="platinum"] .title-bar {
2462
+ :is([data-era="platinum"], [data-era="drawingboard"]) .title-bar {
2463
+ /* Six ridges: white lines, and #777 lines one pixel to their right (the
2464
+ ridge's shade), between the box slots (Mac OS 9.0, both ends measured). */
2465
+ --clio-tb-ridges: calc(100% - var(--clio-tb-close) - var(--clio-tb-zoom) - var(--clio-tb-shade) - 1px);
1681
2466
  background:
1682
- linear-gradient(#cccccc, #cccccc) left top / var(--clio-tb-close) 17px no-repeat,
1683
- linear-gradient(#cccccc, #cccccc) right top / calc(var(--clio-tb-zoom) + var(--clio-tb-shade) + 1px) 17px no-repeat,
1684
2467
  linear-gradient(to bottom, #cccccc 0 1px, transparent 1px 13px, #cccccc 13px 17px, #999999 17px 18px),
1685
- repeating-linear-gradient(to bottom, #ffffff 0 1px, #777777 1px 2px) 0 1px / 100% 2px repeat-y,
2468
+ repeating-linear-gradient(to bottom, #ffffff 0 1px, transparent 1px 2px) var(--clio-tb-close) 1px / var(--clio-tb-ridges) 2px repeat-y,
2469
+ repeating-linear-gradient(to bottom, transparent 0 1px, #777777 1px 2px) calc(var(--clio-tb-close) + 1px) 1px / var(--clio-tb-ridges) 2px repeat-y,
1686
2470
  #cccccc;
1687
2471
  }
1688
2472
 
1689
- [data-era="platinum"] .window.inactive > .title-bar,
1690
- [data-era="platinum"] .inactive-title-bar {
2473
+ :is([data-era="platinum"], [data-era="drawingboard"]) .window.inactive > .title-bar,
2474
+ :is([data-era="platinum"], [data-era="drawingboard"]) .inactive-title-bar {
1691
2475
  background: var(--clio-titlebar-inactive-bg);
1692
2476
  }
1693
2477
 
1694
2478
  /* The title is cut out of the ridges in the frame grey, drawn wide. */
1695
- [data-era="platinum"] .title-bar > :is(.title, h1, h2, h3) {
1696
- transform: translate(-1px, -1px);
2479
+ :is([data-era="platinum"], [data-era="drawingboard"]) .title-bar > :is(.title, h1, h2, h3) {
2480
+ /* Mac OS 9.0: the cut-out spans the ridges, 4px before the title and 3px
2481
+ after it, and is centred 1px left of the bar's middle; Charcoal sits one
2482
+ row low in it. */
2483
+ padding: 1px 3px 0 4px;
2484
+ transform: translateX(-1px);
2485
+ /* The ridge's #777 lines are its white lines one pixel to the right, and so
2486
+ is their cut: show them in the cut-out's first column, cover them one
2487
+ column past its last. */
2488
+ background:
2489
+ repeating-linear-gradient(to bottom, transparent 0 1px, #777777 1px 2px) 0 0 / 1px 12px no-repeat,
2490
+ #cccccc;
2491
+ overflow: clip; /* still truncates with an ellipsis */
2492
+ overflow-clip-margin: 1px; /* but lets the column past the end show */
1697
2493
  }
1698
2494
 
1699
2495
  /* The close, zoom and collapse boxes: an 11px bevelled square sunk into the
1700
2496
  ridges, no paper isolation. */
1701
- [data-era="platinum"] .title-bar > :is(button, .close, .close-box, .resize, .resize-box, .zoom, .shade, .shade-box, .collapse) {
2497
+ :is([data-era="platinum"], [data-era="drawingboard"]) .title-bar > :is(button, .close, .close-box, .resize, .resize-box, .zoom, .shade, .shade-box, .collapse) {
1702
2498
  margin-top: 1px;
1703
2499
  border-color: #222222;
1704
- background: linear-gradient(to bottom right, #999999, #ffffff);
2500
+ background: var(--clio-art-p9-box-face) 0 0 / 9px 9px no-repeat;
1705
2501
  box-shadow:
1706
2502
  -1px -1px 0 #888888,
1707
2503
  -1px 0 0 #888888,
1708
2504
  0 -1px 0 #888888,
1709
2505
  1px 1px 0 #ffffff,
1710
2506
  1px 0 0 #ffffff,
1711
- 0 1px 0 #ffffff,
1712
- inset 1px 1px 0 #cccccc,
1713
- inset -1px -1px 0 #888888;
2507
+ 0 1px 0 #ffffff;
1714
2508
  }
1715
2509
 
1716
- [data-era="platinum"] .title-bar > :is(button, .close, .close-box, .resize, .resize-box, .zoom, .shade, .shade-box, .collapse):is(:active, .active) {
2510
+ :is([data-era="platinum"], [data-era="drawingboard"]) .title-bar > :is(button, .close, .close-box, .resize, .resize-box, .zoom, .shade, .shade-box, .collapse):is(:active, .active) {
1717
2511
  background: linear-gradient(to bottom right, #444444, #bbbbbb);
1718
2512
  box-shadow: -1px -1px 0 #888888, 1px 1px 0 #ffffff, inset -1px -1px 0 #999999;
1719
2513
  }
1720
2514
 
1721
2515
  /* Zoom: a six-pixel lower-left corner inside the frame. */
1722
- [data-era="platinum"] .title-bar > :is(.resize, .resize-box, .zoom)::before {
2516
+ :is([data-era="platinum"], [data-era="drawingboard"]) .title-bar > :is(.resize, .resize-box, .zoom)::before {
1723
2517
  top: 0;
1724
2518
  left: 0;
1725
2519
  width: 6px;
@@ -1732,7 +2526,7 @@
1732
2526
  }
1733
2527
 
1734
2528
  /* WindowShade: two nine-pixel rules. */
1735
- [data-era="platinum"] .title-bar > :is(.shade, .shade-box, .collapse)::before {
2529
+ :is([data-era="platinum"], [data-era="drawingboard"]) .title-bar > :is(.shade, .shade-box, .collapse)::before {
1736
2530
  content: "";
1737
2531
  position: absolute;
1738
2532
  top: 3px;
@@ -1745,100 +2539,118 @@
1745
2539
  }
1746
2540
 
1747
2541
  /* Background window: flat grey, #555 frame, controls erased, title kept. */
1748
- [data-era="platinum"] .window.inactive {
2542
+ :is([data-era="platinum"], [data-era="drawingboard"]) .window.inactive {
1749
2543
  --clio-button-shadow: 0 0 0 0 transparent;
1750
2544
  --clio-field-shadow: none;
1751
2545
  --clio-check-shadow: none;
1752
2546
  border-color: #555555;
1753
2547
  background: #dddddd;
1754
- box-shadow: 1px 1px 0 #555555, inset 1px 1px 0 #eeeeee, inset -1px -1px 0 #999999;
2548
+ box-shadow: 1px 1px 0 #555555; /* flat: no light or shade inside (Mac OS 9.0 Finder, behind Appearance) */
1755
2549
  color: #555555;
1756
2550
  }
1757
2551
 
1758
- [data-era="platinum"] .window.inactive > .title-bar,
1759
- [data-era="platinum"] .inactive-title-bar {
2552
+ :is([data-era="platinum"], [data-era="drawingboard"]) .window.inactive > .title-bar,
2553
+ :is([data-era="platinum"], [data-era="drawingboard"]) .inactive-title-bar {
1760
2554
  border-bottom-color: #555555;
1761
2555
  --clio-title-bg: #dddddd;
1762
2556
  }
1763
2557
 
1764
- [data-era="platinum"] .window.inactive > .title-bar > :is(.title, h1, h2, h3),
1765
- [data-era="platinum"] .inactive-title-bar > :is(.title, h1, h2, h3) {
2558
+ :is([data-era="platinum"], [data-era="drawingboard"]) .window.inactive > .title-bar > :is(.title, h1, h2, h3),
2559
+ :is([data-era="platinum"], [data-era="drawingboard"]) .inactive-title-bar > :is(.title, h1, h2, h3) {
1766
2560
  background: #dddddd;
1767
2561
  }
1768
2562
 
1769
2563
  /* ---- Default button ring: 1px black, a #aaa bevel band, 1px gap. -------- */
1770
- [data-era="platinum"] :is(.default, .btn-default) {
2564
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.default, .btn-default) {
1771
2565
  position: relative;
1772
2566
  box-shadow: var(--clio-button-shadow);
1773
2567
  }
1774
2568
 
1775
- [data-era="platinum"] :is(.default, .btn-default):not(:disabled, .disabled):is(:active, .active) {
2569
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.default, .btn-default):not(:disabled, .disabled):is(:active, .active) {
1776
2570
  box-shadow: var(--clio-button-active-shadow);
1777
2571
  }
1778
2572
 
1779
- [data-era="platinum"] :is(.default, .btn-default)::before {
2573
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.default, .btn-default)::before {
1780
2574
  content: "";
1781
2575
  position: absolute;
1782
- inset: -3px;
1783
- border-radius: 3px;
1784
- box-shadow:
1785
- 0 0 0 1px #000000,
1786
- inset 1px 1px 0 #dddddd,
1787
- inset -1px -1px 0 #777777,
1788
- inset 0 0 0 2px #aaaaaa;
2576
+ border-width: 1px; /* longhands: the shorthand would reset the ring, which is a border-image */
2577
+ border-style: solid;
2578
+ border-color: transparent;
2579
+ inset: -4px;
2580
+ border-radius: 0;
2581
+ box-shadow: none;
1789
2582
  pointer-events: none;
1790
2583
  }
1791
2584
 
1792
- [data-era="platinum"] :is(.default, .btn-default):is(:disabled, .disabled)::before {
2585
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.default, .btn-default):is(:disabled, .disabled)::before {
1793
2586
  box-shadow: 0 0 0 1px #888888;
1794
2587
  }
1795
2588
 
1796
- [data-era="platinum"] :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *):is(:disabled, .disabled) {
1797
- background: #dddddd;
2589
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *):is(:disabled, .disabled) {
2590
+ background: transparent;
1798
2591
  box-shadow: none;
2592
+ border-image: var(--clio-button-frame-disabled) var(--clio-button-frame-slice) fill / calc(var(--clio-button-frame-slice) * 1px) stretch;
1799
2593
  }
1800
2594
 
1801
2595
  /* ---- Radio buttons: drawn, not cut from a screenshot ------------------------ */
1802
- [data-era="platinum"] input[type="radio"] {
1803
- border: 1px solid #000000;
1804
- border-radius: 50%;
1805
- background: linear-gradient(to bottom right, #ffffff, #888888);
1806
- box-shadow: inset 1px 1px 0 #dddddd, inset -1px -1px 0 #888888;
2596
+ /* Check box mark: inside the frame, plus the two columns that overhang it. */
2597
+ :is([data-era="platinum"], [data-era="drawingboard"]) input[type="checkbox"]:checked::after {
2598
+ content: "";
2599
+ position: absolute;
2600
+ top: 0;
2601
+ right: -3px;
2602
+ width: 2px;
2603
+ height: 4px;
2604
+ background: var(--clio-art-p9-check-overhang) 0 0 / 2px 4px no-repeat;
1807
2605
  }
1808
2606
 
1809
- [data-era="platinum"] input[type="radio"]:checked {
1810
- background:
1811
- radial-gradient(circle, #000000 0 2.5px, transparent 3px),
1812
- linear-gradient(to bottom right, #555555, #ffffff);
2607
+ /* ---- Radio buttons: Mac OS 9's shaded ball (pressed states drawn here). ---- */
2608
+ :is([data-era="platinum"], [data-era="drawingboard"]) input[type="radio"] {
2609
+ border: 0;
2610
+ border-radius: 0;
2611
+ background: var(--clio-art-p9-radio) 0 0 / 12px 12px no-repeat;
2612
+ box-shadow: none;
1813
2613
  }
1814
2614
 
1815
- [data-era="platinum"] input[type="radio"]:not(:disabled):active {
1816
- background: linear-gradient(to bottom right, #444444, #bbbbbb);
2615
+ :is([data-era="platinum"], [data-era="drawingboard"]) input[type="radio"]:checked {
2616
+ background: var(--clio-art-p9-radio-on) 0 0 / 12px 12px no-repeat;
2617
+ }
2618
+
2619
+ :is([data-era="platinum"], [data-era="drawingboard"]) input[type="radio"]:not(:disabled):active {
2620
+ background: var(--clio-art-p9-radio-pressed) 0 0 / 12px 12px no-repeat;
2621
+ }
2622
+
2623
+ /* Held while on: not captured; the on ball stays (inferred). */
2624
+ :is([data-era="platinum"], [data-era="drawingboard"]) input[type="radio"]:checked:not(:disabled):active {
2625
+ background: var(--clio-art-p9-radio-on) 0 0 / 12px 12px no-repeat;
1817
2626
  }
1818
2627
 
1819
- [data-era="platinum"] input[type="radio"]:checked:not(:disabled):active {
2628
+ /* Held while checked: the mark over the held box (inferred; only the empty
2629
+ box was captured held). */
2630
+ :is([data-era="platinum"], [data-era="drawingboard"]) input[type="checkbox"]:checked:not(:disabled):active {
1820
2631
  background:
1821
- radial-gradient(circle, #000000 0 2.5px, transparent 3px),
1822
- linear-gradient(to bottom right, #444444, #bbbbbb);
2632
+ var(--clio-art-p9-check) 0 0 / 10px 10px no-repeat padding-box,
2633
+ var(--clio-art-p9-checkbox-pressed) -1px -1px / 12px 12px no-repeat;
1823
2634
  }
1824
2635
 
1825
- [data-era="platinum"] input[type="checkbox"]:not(:disabled):active {
1826
- background-color: #777777;
1827
- box-shadow: inset 1px 1px 0 #555555, inset -1px -1px 0 #999999;
2636
+ :is([data-era="platinum"], [data-era="drawingboard"]) input[type="checkbox"]:not(:disabled):active {
2637
+ border-color: transparent;
2638
+ background: var(--clio-art-p9-checkbox-pressed) -1px -1px / 12px 12px no-repeat;
2639
+ box-shadow: none;
1828
2640
  }
1829
2641
 
1830
- [data-era="platinum"] :is(input[type="checkbox"], input[type="radio"]):disabled {
2642
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(input[type="checkbox"], input[type="radio"]):disabled {
1831
2643
  border-color: #888888;
1832
2644
  opacity: 0.6;
1833
2645
  }
1834
2646
 
1835
2647
  /* ---- Menus ------------------------------------------------------------------- */
1836
- [data-era="platinum"] :is(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a, span) {
2648
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a, span) {
1837
2649
  font-weight: 700;
1838
2650
  }
1839
2651
 
1840
- [data-era="platinum"] :is(.menu, [role="menu"]) > li:is(.checked, [aria-checked="true"])::before,
1841
- [data-era="platinum"] :is(.menu, [role="menu"]) > li > :is([aria-checked="true"], .checked)::before {
2652
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li:is(.checked, [aria-checked="true"])::before,
2653
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li > :is([aria-checked="true"], .checked)::before {
1842
2654
  left: 7px;
1843
2655
  width: 9px;
1844
2656
  height: 8px;
@@ -1846,32 +2658,32 @@
1846
2658
  background: var(--clio-art-p-check) 0 0 / 9px 8px no-repeat;
1847
2659
  }
1848
2660
 
1849
- [data-era="platinum"] :is(.menu, [role="menu"]) > li:is(.checked, [aria-checked="true"]):is(:hover, :focus-within, .active)::before,
1850
- [data-era="platinum"] :is(.menu, [role="menu"]) > li > :is([aria-checked="true"], .checked):is(:hover, :focus-visible, .active)::before {
2661
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li:is(.checked, [aria-checked="true"]):is(:hover, :focus-within, .active)::before,
2662
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li > :is([aria-checked="true"], .checked):is(:hover, :focus-visible, .active)::before {
1851
2663
  filter: invert(1);
1852
2664
  }
1853
2665
 
1854
- [data-era="platinum"] :is(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"]))::after,
1855
- [data-era="platinum"] :is(.menu, [role="menu"]) > li > [aria-haspopup="true"]::after {
2666
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"]))::after,
2667
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li > [aria-haspopup="true"]::after {
1856
2668
  background-image: var(--clio-art-p-submenu);
1857
2669
  }
1858
2670
 
1859
- [data-era="platinum"] :is(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"])):is(:hover, :focus-within, .active)::after {
2671
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"])):is(:hover, :focus-within, .active)::after {
1860
2672
  background-image: var(--clio-art-p-submenu-on);
1861
2673
  }
1862
2674
 
1863
- [data-era="platinum"] :is(.menu, [role="menu"]) > li.divider {
2675
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li.divider {
1864
2676
  border-bottom: 0;
1865
2677
  box-shadow: inset 0 -2px 0 #dddddd, inset 0 -3px 0 #ffffff, inset 0 -4px 0 #888888;
1866
2678
  }
1867
2679
 
1868
2680
  /* ---- Tabs: drawn from the measured Mac OS 9 tab (tooling/tab-art.py) ------ */
1869
- [data-era="platinum"] :is([role="tablist"], .tabs) {
2681
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is([role="tablist"], .tabs) {
1870
2682
  gap: 0;
1871
2683
  padding: 0 4px;
1872
2684
  }
1873
2685
 
1874
- [data-era="platinum"] :is([role="tablist"], .tabs) > :is([role="tab"], li, button) {
2686
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is([role="tablist"], .tabs) > :is([role="tab"], li, button) {
1875
2687
  min-width: 48px;
1876
2688
  height: 24px;
1877
2689
  min-height: 0;
@@ -1888,13 +2700,13 @@
1888
2700
  line-height: 18px;
1889
2701
  }
1890
2702
 
1891
- [data-era="platinum"] :is([role="tablist"], .tabs) > :is([role="tab"], li, button):not(:disabled):active {
2703
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is([role="tablist"], .tabs) > :is([role="tab"], li, button):not(:disabled):active {
1892
2704
  border-image-source: var(--clio-art-p-tab-pressed);
1893
2705
  background: transparent;
1894
2706
  color: #ffffff;
1895
2707
  }
1896
2708
 
1897
- [data-era="platinum"] :is([role="tablist"], .tabs) > :is([role="tab"], li, button):is([aria-selected="true"], .active) {
2709
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is([role="tablist"], .tabs) > :is([role="tab"], li, button):is([aria-selected="true"], .active) {
1898
2710
  z-index: 1;
1899
2711
  padding-top: 0;
1900
2712
  border-image-source: var(--clio-art-p-tab-selected);
@@ -1902,28 +2714,1006 @@
1902
2714
  color: #000000;
1903
2715
  }
1904
2716
 
1905
- [data-era="platinum"] :is([role="tabpanel"], .tab-panel) {
2717
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is([role="tabpanel"], .tab-panel) {
1906
2718
  border-top: 0;
1907
2719
  box-shadow: inset 1px 0 0 #ffffff, inset -1px -1px 0 #888888;
1908
2720
  }
1909
2721
 
1910
2722
  /* ---- Scroll arrow art sits on the bevelled box ---------------------------- */
1911
- [data-era="platinum"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button,
1912
- [data-era="platinum"]:is(html.clio-scrollbars)::-webkit-scrollbar-button {
2723
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button,
2724
+ :is([data-era="platinum"], [data-era="drawingboard"]):is(html.clio-scrollbars)::-webkit-scrollbar-button {
1913
2725
  background-position: 1px 1px;
1914
2726
  background-size: 14px 14px;
1915
2727
  }
1916
2728
 
1917
- [data-era="platinum"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:active,
1918
- [data-era="platinum"]:is(html.clio-scrollbars)::-webkit-scrollbar-button:active {
2729
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:active,
2730
+ :is([data-era="platinum"], [data-era="drawingboard"]):is(html.clio-scrollbars)::-webkit-scrollbar-button:active {
1919
2731
  background-color: #666666;
1920
2732
  box-shadow: inset 1px 1px #444444, inset -1px -1px #888888;
1921
2733
  }
1922
2734
 
1923
- [data-era="platinum"] :is(fieldset) > legend {
2735
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(fieldset) > legend {
1924
2736
  background: var(--clio-pane-bg);
1925
2737
  }
1926
2738
 
2739
+ :is([data-era="platinum"], [data-era="drawingboard"]) fieldset {
2740
+ background:
2741
+ linear-gradient(var(--clio-pane-bg), var(--clio-pane-bg)) padding-box,
2742
+ var(--clio-art-p9-group-dots) 0 0 / 2px 2px fixed border-box;
2743
+ image-rendering: pixelated; /* keep the dots from blending into one grey */
2744
+ }
2745
+
2746
+ /* The title's gap opens 13px after the corner (General Controls, "Desktop"). */
2747
+ :is([data-era="platinum"], [data-era="drawingboard"]) fieldset > legend {
2748
+ margin-left: 2px;
2749
+ }
2750
+
2751
+ /* Disabled pop-up menu: #888 frame, flat face, the #aaa divider and a grey
2752
+ arrow (Mac OS 9.0 Appearance, "Position Automatically"). Browsers also fade
2753
+ a disabled <select>; Mac OS did not. */
2754
+ :is([data-era="platinum"], [data-era="drawingboard"]) select:disabled {
2755
+ border-color: #888888;
2756
+ background:
2757
+ var(--clio-art-p-dropdown-off) right 7px top 4px / 7px 10px no-repeat,
2758
+ linear-gradient(#aaaaaa, #aaaaaa) right 20px top 0 / 1px 100% no-repeat,
2759
+ #dddddd;
2760
+ background-clip: padding-box;
2761
+ box-shadow: none;
2762
+ color: #888888;
2763
+ opacity: 1;
2764
+ border-image-source: var(--clio-art-frame-p9-popup-disabled);
2765
+ }
2766
+
2767
+ /* The face stays inside the frame, so the rounded corners show what is behind. */
2768
+ :is([data-era="platinum"], [data-era="drawingboard"]) select {
2769
+ background-clip: padding-box;
2770
+ }
2771
+
2772
+ /* Indeterminate progress (no value): Mac OS 9's stripes, one 16px period
2773
+ repeated (Finder copy window). Static: clio.css adds no motion. */
2774
+ :is([data-era="platinum"], [data-era="drawingboard"]) progress:indeterminate,
2775
+ :is([data-era="platinum"], [data-era="drawingboard"]) progress:indeterminate::-webkit-progress-bar {
2776
+ background: var(--clio-art-p9-progress-pole) 0 0 / 16px 10px repeat-x;
2777
+ }
2778
+
2779
+ :is([data-era="platinum"], [data-era="drawingboard"]) .title-bar > :is(.title, h1, h2, h3)::after {
2780
+ content: "";
2781
+ position: absolute;
2782
+ top: 0;
2783
+ right: -1px;
2784
+ width: 1px;
2785
+ height: 12px;
2786
+ background: repeating-linear-gradient(to bottom, transparent 0 1px, #cccccc 1px 2px);
2787
+ }
2788
+
2789
+ :is([data-era="platinum"], [data-era="drawingboard"]) .window.inactive > .title-bar > :is(.title, h1, h2, h3)::after,
2790
+ :is([data-era="platinum"], [data-era="drawingboard"]) .inactive-title-bar > :is(.title, h1, h2, h3)::after {
2791
+ content: none;
2792
+ }
2793
+
2794
+ /* ---- Antialiasing as Mac OS blends it -------------------------------------
2795
+ Window titles and push button labels in their own colours on their own
2796
+ backgrounds take the exact palettes (src/00-fonts.css). */
2797
+ :is([data-era="platinum"], [data-era="drawingboard"]) .title-bar > :is(.title, h1, h2, h3) {
2798
+ font-palette: --clio-aa-p9-title;
2799
+ }
2800
+
2801
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(.window.inactive > .title-bar, .inactive-title-bar) > :is(.title, h1, h2, h3) {
2802
+ font-palette: --clio-aa-p9-title-inactive;
2803
+ }
2804
+
2805
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *) {
2806
+ font-family: var(--clio-font-button);
2807
+ font-palette: --clio-aa-p9-button;
2808
+ }
2809
+
2810
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *):not(:disabled, .disabled):is(:active, .active) {
2811
+ font-palette: --clio-aa-p9-button-held;
2812
+ }
2813
+
2814
+ :is([data-era="platinum"], [data-era="drawingboard"]) :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *):is(:disabled, .disabled) {
2815
+ font-palette: --clio-aa-p9-button-disabled;
2816
+ }
2817
+
2818
+ /* Mac OS 8.5 "Drawing Board" (the beta theme Apple shipped in 8.5b6 and
2819
+ withdrew). Applies inside any element with data-era="drawingboard"; it shares
2820
+ the Platinum layer's structure (both are Appearance Manager themes) and
2821
+ replaces its colours, geometry and art. clio.drawingboard.css is a build of
2822
+ this file with Drawing Board as the page default.
2823
+ Values: Infinite Mac, Mac OS 8.5 with the theme installed
2824
+ (`npm run capture:drawingboard`), read 1:1. The art is the theme's own:
2825
+ its 'pxm#' pictures and 'ppat' patterns (papers and the pattern pens the
2826
+ theme draws its pencil lines with), written to art/drawingboard/ by
2827
+ tooling/db-art.py and tooling/db-pens.py and placed as Mac OS places them,
2828
+ each found 1:1 in the capture. The stylesheet loads them from art/ beside
2829
+ itself, as it loads fonts/. See EVIDENCE.md. */
2830
+ [data-era="drawingboard"] {
2831
+ /* Titles sit on the textured title bar, where no palette can know the
2832
+ background: they keep Clio Sans '97 Title in the text colour. */
2833
+ --clio-font-window-title: Charcoal, "Charcoal CY", "Clio Sans '97 Title", "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
2834
+ /* Where a 128px theme pattern starts. Mac OS sometimes starts one half a
2835
+ tile (64px) earlier, depending on where the window sits on screen; a page
2836
+ matching a particular screen can set 64px on that window or control. */
2837
+ --clio-db-phase: 0px;
2838
+ --clio-ink: #313131;
2839
+ --clio-paper: #e7ded6;
2840
+ --clio-face: #cdc6bd;
2841
+ --clio-disabled: #8c8c8c;
2842
+ --clio-selection-bg: #ccccff;
2843
+
2844
+ --clio-border: 1px solid #555555;
2845
+
2846
+ /* Window: the theme's own nine frame pictures (see the Window rules), on
2847
+ the content paper. The frame is 6px on each side inside the outline; the
2848
+ title bar's 22 rows include the outline and the #555 rule. */
2849
+ --clio-window-bg: #cdc6bd;
2850
+ --clio-pane-bg: #e7ded6;
2851
+ --clio-window-border: 0 none;
2852
+ --clio-window-shadow: none;
2853
+ --clio-window-padding: 0 6px 6px;
2854
+
2855
+ /* Title bar: 22 rows of the frame picture. Boxes 11px, 5px below the top. */
2856
+ --clio-titlebar-height: 22px;
2857
+ --clio-titlebar-padding: 4px 0 0;
2858
+ --clio-titlebar-margin: 0 -1px;
2859
+ --clio-titlebar-border: 0 none;
2860
+ --clio-titlebar-row: 16px;
2861
+ --clio-titlebar-inactive-bg: #cdc6bd;
2862
+ --clio-title-bg: transparent;
2863
+ --clio-title-fg: #313131;
2864
+ --clio-title-inactive-fg: #9f9a94;
2865
+
2866
+ /* Menu bar: 22px of #cec6b5 paper, no rule under it. Menus: #ddd paper,
2867
+ #333 outline, 18px items (20px with an icon); the chosen title and item
2868
+ are underlined in pencil: left, stretched centre and right pieces, 16px
2869
+ in from the menu's left, 15px from its right (Control Panels; the Appearance
2870
+ pop-up's sits 16px from both), 1px above the item's foot. */
2871
+ --clio-menubar-height: 22px;
2872
+ --clio-menubar-bg: url("art/drawingboard/menubar.png") 0 0 / 630px 27px repeat-x, #cec6b5;
2873
+ --clio-menubar-border: 0 none;
2874
+ --clio-menubar-shadow: none;
2875
+ --clio-menu-title-active-bg:
2876
+ var(--clio-art-db-title-underline-left) left 0 bottom 3px / 15px 3px no-repeat,
2877
+ var(--clio-art-db-title-underline-right) right 0 bottom 3px / 16px 3px no-repeat,
2878
+ var(--clio-art-db-title-underline-tiled) left 15px bottom 3px / calc(100% - 31px) 4px no-repeat;
2879
+ --clio-menu-title-active-fg: #313131;
2880
+ --clio-menu-title-active-shadow: none;
2881
+ /* Menus: the theme's paper inside a pencil frame (see the Menus rules). */
2882
+ --clio-menu-bg: #dddddd;
2883
+ --clio-menu-border: 1px solid transparent;
2884
+ --clio-menu-border-top-width: 1px;
2885
+ --clio-menu-shadow: none;
2886
+ --clio-menu-item-height: 18px;
2887
+ --clio-menu-item-active-bg:
2888
+ var(--clio-art-db-menu-underline-left) left 16px bottom 1px / 29px 3px no-repeat,
2889
+ var(--clio-art-db-menu-underline-right) right 15px bottom 1px / 36px 3px no-repeat,
2890
+ var(--clio-art-db-menu-underline-tiled) left 45px bottom 1px / calc(100% - 96px) 3px no-repeat;
2891
+ --clio-menu-item-active-fg: #313131;
2892
+ --clio-menu-item-active-shadow: none;
2893
+ --clio-menu-separator: none;
2894
+ --clio-menu-separator-height: 9px;
2895
+
2896
+ /* Push buttons: four pattern pens (ppat 7070-7072, 7079) tiled from the last
2897
+ column and row, the corner pixels they leave (tooling/db-pens.py), the
2898
+ hatched ButtonFaceCorner in the lower right of the #cec6b5 face, and a
2899
+ 1px pencil shade right and below (the Buttons rules). Held: other pens
2900
+ for the foot and right side, tiled from the second column and row, and no
2901
+ hatch ("Save Theme…" held). */
2902
+ --clio-button-bg:
2903
+ url("art/drawingboard/pens/button-left.png") left 0 bottom 1px / 1px 16px repeat-y border-box,
2904
+ url("art/drawingboard/pens/button-right.png") right 0 bottom 1px / 1px 16px repeat-y border-box,
2905
+ url("art/drawingboard/pens/button-top.png") right 1px top 0 / 64px 1px repeat-x border-box,
2906
+ url("art/drawingboard/pens/button-bottom.png") right 1px bottom 0 / 64px 1px repeat-x border-box,
2907
+ var(--clio-art-db-button-corner) right 0 bottom / 24px 24px no-repeat padding-box,
2908
+ #cec6b5;
2909
+ --clio-button-fg: #313131;
2910
+ /* The label sits 1px lower than Platinum's (themes tab, "Save Theme…"). */
2911
+ --clio-button-padding: 2px 10px 0;
2912
+ --clio-button-border: 1px solid transparent;
2913
+ --clio-button-radius: 0;
2914
+ --clio-button-shadow: none;
2915
+ --clio-button-active-bg:
2916
+ url("art/drawingboard/pens/button-held-left.png") left 0 bottom 1px / 1px 16px repeat-y border-box,
2917
+ url("art/drawingboard/pens/button-held-right.png") right 0 top 1px / 1px 16px repeat-y border-box,
2918
+ url("art/drawingboard/pens/button-held-top.png") right 1px top 0 / 64px 1px repeat-x border-box,
2919
+ url("art/drawingboard/pens/button-held-bottom.png") left 1px bottom 0 / 32px 1px repeat-x border-box,
2920
+ #cec6b5;
2921
+ --clio-button-active-fg: #313131;
2922
+ --clio-button-active-shadow: none;
2923
+ --clio-button-frame: url("art/drawingboard/pens/button-corners.png");
2924
+ --clio-button-frame-held: url("art/drawingboard/pens/button-held-corners.png");
2925
+ --clio-button-frame-disabled: url("art/drawingboard/pens/button-corners.png");
2926
+ --clio-button-frame-slice: 5;
2927
+ --clio-ring-frame: none;
2928
+ /* Pop-up frame: four pattern pens (ppat 7095-7098) tiled from the last
2929
+ column and row, and the corner pixels they leave (tooling/db-pens.py). */
2930
+ --clio-popup-frame: url("art/drawingboard/pens/popup-corners.png");
2931
+ --clio-popup-frame-slice: 5;
2932
+ --clio-popup-bg:
2933
+ url("art/drawingboard/pens/popup-left.png") left 0 bottom 1px / 1px 16px repeat-y border-box,
2934
+ url("art/drawingboard/pens/popup-right.png") right 0 bottom 1px / 1px 16px repeat-y border-box,
2935
+ url("art/drawingboard/pens/popup-top.png") right 1px top 0 / 64px 1px repeat-x border-box,
2936
+ url("art/drawingboard/pens/popup-bottom.png") right 1px bottom 0 / 64px 1px repeat-x border-box,
2937
+ #cec6b5;
2938
+ --clio-popup-border: 1px solid transparent;
2939
+ --clio-popup-radius: 0;
2940
+ --clio-popup-shadow: none;
2941
+ --clio-popup-padding: 0 30px 0 7px;
2942
+ --clio-popup-arrow:
2943
+ var(--clio-art-db-popup-arrow) right 5px top 4px / 7px 9px no-repeat,
2944
+ var(--clio-art-db-popup-corner) right 19px bottom / 24px 24px no-repeat;
2945
+
2946
+ /* Check boxes and radio buttons are the theme's own pictures. */
2947
+ --clio-check-size: 14px;
2948
+ --clio-radio-size: 16px;
2949
+
2950
+ /* Edit text: a 1px pencil line drawn with pattern pens, 1px of whatever is
2951
+ behind (the paper) inside it, then the white field (Date & Time; the
2952
+ Text fields rules). */
2953
+ --clio-field-border: 2px solid transparent;
2954
+ --clio-field-shadow: none;
2955
+ --clio-field-focus-shadow: none;
2956
+ --clio-button-disabled-fg: #8c8c8c;
2957
+ --clio-button-disabled-border: 1px solid #888888;
2958
+
2959
+ /* Scroll bars: the theme's 16px arrow boxes; a #ece6e4 track with a #aaa
2960
+ edge, a two-pixel pencil rail down the middle and a #777 far edge; the
2961
+ scroll box drawn from the theme's ends, stretch and grip. */
2962
+ --clio-scrollbar-up: var(--clio-art-db-up);
2963
+ --clio-scrollbar-up-on: var(--clio-art-db-up-on);
2964
+ --clio-scrollbar-down: var(--clio-art-db-down);
2965
+ --clio-scrollbar-down-on: var(--clio-art-db-down-on);
2966
+ --clio-scrollbar-left: var(--clio-art-db-left);
2967
+ --clio-scrollbar-left-on: var(--clio-art-db-left-on);
2968
+ --clio-scrollbar-right: var(--clio-art-db-right);
2969
+ --clio-scrollbar-right-on: var(--clio-art-db-right-on);
2970
+ --clio-scrollbar-button-bg: transparent;
2971
+ --clio-scrollbar-button-shadow: none;
2972
+ /* Vertical (Desktop tab pattern list): #555 edges, a two-pixel #777 rail. */
2973
+ --clio-scrollbar-track: linear-gradient(to right, #555555 0 1px, #ece6e4 1px 7px, #777777 7px 9px, #ece6e4 9px 15px, #555555 15px);
2974
+ --clio-scrollbar-track-color: #ece6e4;
2975
+ --clio-scrollbar-track-shadow: none;
2976
+ --clio-scrollbar-thumb-bg:
2977
+ var(--clio-art-db-thumb-top) 1px 0 / 14px 7px no-repeat,
2978
+ var(--clio-art-db-thumb-bottom) 1px 100% / 14px 8px no-repeat,
2979
+ var(--clio-art-db-thumb-vgrip) 1px 50% / 14px 2px no-repeat,
2980
+ var(--clio-art-db-thumb-vstretch) 1px 0 / 14px 100% no-repeat;
2981
+ --clio-scrollbar-thumb-bg-horizontal:
2982
+ var(--clio-art-db-thumb-left) 0 1px / 7px 14px no-repeat,
2983
+ var(--clio-art-db-thumb-right) 100% 1px / 8px 14px no-repeat,
2984
+ var(--clio-art-db-thumb-hgrip) 50% 1px / 2px 14px no-repeat,
2985
+ var(--clio-art-db-thumb-hstretch) 0 1px / 100% 14px no-repeat;
2986
+ --clio-scrollbar-thumb-color: #cdc6bd;
2987
+ --clio-scrollbar-thumb-border: 0 none;
2988
+ --clio-scrollbar-thumb-shadow: none;
2989
+ --clio-scrollbar-corner: var(--clio-art-db-grow) 0 0 / 16px 16px no-repeat, #cdc6bd;
2990
+
2991
+ /* Dialogs: the theme's frame pictures (see the Dialogs rules); plain dialogs
2992
+ keep a 1px pencil frame with a #777 band 7px wide on the right and 8px
2993
+ deep below. */
2994
+ --clio-dialog-bg: #e7ded6;
2995
+ --clio-modal-border: 1px solid transparent;
2996
+ --clio-modal-frame: none;
2997
+ --clio-plain-dialog-border: 1px solid #333333;
2998
+ --clio-plain-dialog-shadow: 7px 0 0 #777777, 0 8px 0 #777777, 7px 8px 0 #777777;
2999
+
3000
+ --clio-details-bg: #e7ded6;
3001
+ --clio-details-border: 1px solid #555555;
3002
+ --clio-details-shadow: none;
3003
+ /* List boxes (Desktop tab pattern list): a 2px olive #9c9c63 line, 1px of
3004
+ whatever is behind (the pane's paper) inside it, then white; the chosen
3005
+ row #ccf. */
3006
+ --clio-list-border: 2px solid #9c9c63;
3007
+ --clio-list-shadow: none;
3008
+ --clio-list-bg: #ffffff;
3009
+ --clio-group-border: 1px solid #777777;
3010
+ --clio-group-bg: transparent;
3011
+ --clio-group-shadow: none;
3012
+ /* Progress bar (Finder copy window): 12px, a #756f66 pencil line (#333 on
3013
+ the left) round #ddd6c5; an indeterminate bar shows the theme's arrows.
3014
+ The determinate fill was not captured and stays Platinum's. */
3015
+ --clio-progress-height: 12px;
3016
+ --clio-progress-bg: #ddd6c5;
3017
+ --clio-progress-border: 1px solid #756f66;
3018
+ --clio-progress-shadow: none;
3019
+ --clio-tab-height: 27px;
3020
+ /* Tab pane paper (ppat 7115), from the pane's inner top-left. */
3021
+ --clio-tab-panel-bg: url("art/drawingboard/tab-paper.png") 0 0 / 256px 64px, #e7ded6;
3022
+ --clio-tab-panel-border: 1px solid #555555;
3023
+
3024
+ /* Art: redrawn from the theme's 'pxm#' pixmaps by tooling/db-art.py. */
3025
+ --clio-art-db-close: url("art/drawingboard/parts/close.png"); /* 11x11 */
3026
+ --clio-art-db-close-on: url("art/drawingboard/parts/close-on.png"); /* 11x11 */
3027
+ --clio-art-db-collapse: url("art/drawingboard/parts/collapse.png"); /* 11x11 */
3028
+ --clio-art-db-collapse-on: url("art/drawingboard/parts/collapse-on.png"); /* 11x11 */
3029
+ --clio-art-db-zoom: url("art/drawingboard/parts/zoom.png"); /* 11x11 */
3030
+ --clio-art-db-zoom-on: url("art/drawingboard/parts/zoom-on.png"); /* 11x11 */
3031
+ --clio-art-db-check: url("art/drawingboard/parts/check.png"); /* 14x11 */
3032
+ --clio-art-db-check-on: url("art/drawingboard/parts/check-on.png"); /* 14x11 */
3033
+ --clio-art-db-check-mixed: url("art/drawingboard/parts/check-mixed.png"); /* 14x11 */
3034
+ --clio-art-db-check-pressed: url("art/drawingboard/parts/check-pressed.png"); /* 14x11 */
3035
+ --clio-art-db-check-on-pressed: url("art/drawingboard/parts/check-on-pressed.png"); /* 14x11 */
3036
+ --clio-art-db-check-disabled: url("art/drawingboard/parts/check-disabled.png"); /* 14x11 */
3037
+ --clio-art-db-check-on-disabled: url("art/drawingboard/parts/check-on-disabled.png"); /* 14x11 */
3038
+ --clio-art-db-radio: url("art/drawingboard/parts/radio.png"); /* 16x12 */
3039
+ --clio-art-db-radio-on: url("art/drawingboard/parts/radio-on.png"); /* 16x12 */
3040
+ --clio-art-db-radio-on-pressed: url("art/drawingboard/parts/radio-on-pressed.png"); /* 16x12 */
3041
+ --clio-art-db-radio-disabled: url("art/drawingboard/parts/radio-disabled.png"); /* 16x12 */
3042
+ --clio-art-db-radio-on-disabled: url("art/drawingboard/parts/radio-on-disabled.png"); /* 16x12 */
3043
+ --clio-art-db-up: url("art/drawingboard/parts/up.png"); /* 16x16 */
3044
+ --clio-art-db-up-on: url("art/drawingboard/parts/up-on.png"); /* 16x16 */
3045
+ --clio-art-db-up-off: url("art/drawingboard/parts/up-off.png"); /* 16x16 */
3046
+ --clio-art-db-down: url("art/drawingboard/parts/down.png"); /* 16x16 */
3047
+ --clio-art-db-down-on: url("art/drawingboard/parts/down-on.png"); /* 16x16 */
3048
+ --clio-art-db-down-off: url("art/drawingboard/parts/down-off.png"); /* 16x16 */
3049
+ --clio-art-db-left: url("art/drawingboard/parts/left.png"); /* 16x16 */
3050
+ --clio-art-db-left-on: url("art/drawingboard/parts/left-on.png"); /* 16x16 */
3051
+ --clio-art-db-left-off: url("art/drawingboard/parts/left-off.png"); /* 16x16 */
3052
+ --clio-art-db-right: url("art/drawingboard/parts/right.png"); /* 16x16 */
3053
+ --clio-art-db-right-on: url("art/drawingboard/parts/right-on.png"); /* 16x16 */
3054
+ --clio-art-db-right-off: url("art/drawingboard/parts/right-off.png"); /* 16x16 */
3055
+ --clio-art-db-popup-arrow: url("art/drawingboard/parts/popup-arrow.png"); /* 7x9 */
3056
+ --clio-art-db-popup-arrow-off: url("art/drawingboard/parts/popup-arrow-off.png"); /* 7x9 */
3057
+ --clio-art-db-submenu: url("art/drawingboard/parts/submenu.png"); /* 6x11 */
3058
+ --clio-art-db-grow: url("art/drawingboard/parts/grow.png"); /* 16x16 */
3059
+ --clio-art-db-popup-corner: url("art/drawingboard/parts/popup-corner.png"); /* 24x24 */
3060
+ --clio-art-db-popup-corner-off: url("art/drawingboard/parts/popup-corner-off.png"); /* 24x24 */
3061
+ --clio-art-db-button-corner: url("art/drawingboard/parts/button-corner.png"); /* 24x24 */
3062
+ --clio-art-db-btn-tl: url("art/drawingboard/parts/btn-tl.png"); /* 7x3 */
3063
+ --clio-art-db-btn-tr: url("art/drawingboard/parts/btn-tr.png"); /* 4x3 */
3064
+ --clio-art-db-btn-br: url("art/drawingboard/parts/btn-br.png"); /* 5x6 */
3065
+ --clio-art-db-btn-br-held: url("art/drawingboard/parts/btn-br-held.png"); /* 5x6 */
3066
+ --clio-art-db-btn-bl: url("art/drawingboard/parts/btn-bl.png"); /* 7x4 */
3067
+ --clio-art-db-progress-arrows: url("art/drawingboard/parts/progress-arrows.png"); /* 128x5 */
3068
+ --clio-art-db-def-tl: url("art/drawingboard/parts/def-tl.png"); /* 9x5 */
3069
+ --clio-art-db-def-tr: url("art/drawingboard/parts/def-tr.png"); /* 4x4 */
3070
+ --clio-art-db-def-br: url("art/drawingboard/parts/def-br.png"); /* 5x6 */
3071
+ --clio-art-db-def-bl: url("art/drawingboard/parts/def-bl.png"); /* 9x5 */
3072
+ --clio-art-db-thumb-left: url("art/drawingboard/parts/thumb-left.png"); /* 7x14 */
3073
+ --clio-art-db-thumb-right: url("art/drawingboard/parts/thumb-right.png"); /* 8x14 */
3074
+ --clio-art-db-thumb-hgrip: url("art/drawingboard/parts/thumb-hgrip.png"); /* 2x14 */
3075
+ --clio-art-db-thumb-hstretch: url("art/drawingboard/parts/thumb-hstretch.png"); /* 1x14 */
3076
+ --clio-art-db-thumb-top: url("art/drawingboard/parts/thumb-top.png"); /* 14x7 */
3077
+ --clio-art-db-thumb-bottom: url("art/drawingboard/parts/thumb-bottom.png"); /* 14x8 */
3078
+ --clio-art-db-thumb-vgrip: url("art/drawingboard/parts/thumb-vgrip.png"); /* 14x2 */
3079
+ --clio-art-db-thumb-vstretch: url("art/drawingboard/parts/thumb-vstretch.png"); /* 14x1 */
3080
+ --clio-art-db-tab: url("art/drawingboard/parts/tab.png"); /* 24x27 */
3081
+ --clio-art-db-tab-selected: url("art/drawingboard/parts/tab-selected.png"); /* 24x27 */
3082
+ --clio-art-db-tab-pressed: url("art/drawingboard/parts/tab-pressed.png"); /* 24x27 */
3083
+ --clio-art-db-menu-underline-left: url("art/drawingboard/parts/menu-underline-left.png"); /* 29x3 */
3084
+ --clio-art-db-menu-underline: url("art/drawingboard/parts/menu-underline.png"); /* 48x3 */
3085
+ --clio-art-db-menu-underline-right: url("art/drawingboard/parts/menu-underline-right.png"); /* 36x3 */
3086
+ --clio-art-db-title-underline-left: url("art/drawingboard/parts/title-underline-left.png"); /* 15x3 */
3087
+ --clio-art-db-title-underline: url("art/drawingboard/parts/title-underline.png"); /* 32x4 */
3088
+ --clio-art-db-title-underline-right: url("art/drawingboard/parts/title-underline-right.png"); /* 16x3 */
3089
+ --clio-art-db-menu-underline-tiled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='48' height='3' patternUnits='userSpaceOnUse'%3E%3Cimage width='48' height='3' href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAADBAMAAAAnwpG3AAAAElBMVEUAAADMZmbMmWbMmZnMZjPMMzOFAtjtAAAAAXRSTlMAQObYZgAAACJJREFUeJxjFGSAAMb/DMYMDAxnwWwBBgbGUKgENmCATRAAmjoCqut/JFgAAAAASUVORK5CYII='/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%' height='100%' fill='url(%23p)'/%3E%3C/svg%3E"); /* 48 px tile */
3090
+ --clio-art-db-title-underline-tiled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='32' height='4' patternUnits='userSpaceOnUse'%3E%3Cimage width='32' height='4' href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAEBAMAAAAdaSDnAAAAD1BMVEUAAADMZmbMmWbMmZnMZjOW1IuaAAAAAXRSTlMAQObYZgAAACBJREFUeJxjdGGAgP+MDAwM5/4rs0D5DCA+gxGMhw8AALzeA23Id2x2AAAAAElFTkSuQmCC'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%' height='100%' fill='url(%23p)'/%3E%3C/svg%3E"); /* 32 px tile */
3091
+ }
3092
+
3093
+ /* ---- Window ----------------------------------------------------------------
3094
+ Drawn as the theme draws it: the nine 'pxm#' frame pieces (6176-6184, active
3095
+ and inactive sets), placed where Mac OS 8.5 puts them round a 476x338
3096
+ outline (Appearance window, found 1:1 in the capture), with the edge pieces
3097
+ tiled from their ends. Under them the window paper (ppat 7120): 128x128,
3098
+ origin at the content's top-left, 6px in and 22px down (Date & Time, Finder
3099
+ Preferences windows agree). Corners overrun the outline, so they sit on a
3100
+ pseudo-element larger than the window; the tiled edges sit on one clipped
3101
+ to where each edge runs. Files: art/drawingboard/ (tooling/db-art.py --files). */
3102
+ [data-era="drawingboard"] .window {
3103
+ --db-tl: url("art/drawingboard/window-tl.png");
3104
+ --db-top: url("art/drawingboard/window-top.png");
3105
+ --db-tr: url("art/drawingboard/window-tr.png");
3106
+ --db-ur: url("art/drawingboard/window-ur.png");
3107
+ --db-right: url("art/drawingboard/window-right.png");
3108
+ --db-br: url("art/drawingboard/window-br.png");
3109
+ --db-bottom: url("art/drawingboard/window-bottom.png");
3110
+ --db-bl: url("art/drawingboard/window-bl.png");
3111
+ --db-left: url("art/drawingboard/window-left.png");
3112
+ isolation: isolate;
3113
+ min-width: 128px;
3114
+ min-height: 60px;
3115
+ }
3116
+
3117
+ [data-era="drawingboard"] .window.inactive {
3118
+ --db-tl: url("art/drawingboard/window-tl-inactive.png");
3119
+ --db-top: url("art/drawingboard/window-top-inactive.png");
3120
+ --db-tr: url("art/drawingboard/window-tr-inactive.png");
3121
+ --db-ur: url("art/drawingboard/window-ur-inactive.png");
3122
+ --db-right: url("art/drawingboard/window-right-inactive.png");
3123
+ --db-br: url("art/drawingboard/window-br-inactive.png");
3124
+ --db-bottom: url("art/drawingboard/window-bottom-inactive.png");
3125
+ --db-bl: url("art/drawingboard/window-bl-inactive.png");
3126
+ --db-left: url("art/drawingboard/window-left-inactive.png");
3127
+ }
3128
+
3129
+ [data-era="drawingboard"] .window,
3130
+ [data-era="drawingboard"] .window:not(.inactive) {
3131
+ background: url("art/drawingboard/paper.png") calc(6px - var(--clio-db-phase, 0px)) 22px / 128px 128px;
3132
+ }
3133
+
3134
+ [data-era="drawingboard"] .window::before,
3135
+ [data-era="drawingboard"] .window::after {
3136
+ content: "";
3137
+ position: absolute;
3138
+ z-index: -1;
3139
+ pointer-events: none;
3140
+ }
3141
+
3142
+ /* Edges: the box from 1px left of the outline to the shadow's far side. */
3143
+ [data-era="drawingboard"] .window::before {
3144
+ inset: 0 -7px -8px -1px;
3145
+ background:
3146
+ var(--db-top) 25px 0 / 256px 22px repeat-x,
3147
+ var(--db-left) 0 22px / 7px 214px repeat-y,
3148
+ var(--db-right) right 0 top 54px / 13px 150px repeat-y,
3149
+ var(--db-bottom) left 57px bottom 0 / 183px 14px repeat-x;
3150
+ clip-path: polygon(25px 0, calc(100% - 13px) 0, calc(100% - 13px) 54px, 100% 54px,
3151
+ 100% calc(100% - 54px), calc(100% - 59px) calc(100% - 54px), calc(100% - 59px) 100%,
3152
+ 57px 100%, 57px calc(100% - 22px), 0 calc(100% - 22px), 0 22px, 25px 22px);
3153
+ }
3154
+
3155
+ /* Corners, overrunning the outline by up to 10px. */
3156
+ [data-era="drawingboard"] .window::after {
3157
+ inset: -10px -11px -18px -8px;
3158
+ background:
3159
+ var(--db-tl) 4px 5px / 28px 27px no-repeat,
3160
+ var(--db-tr) right 1px top 0 / 16px 32px no-repeat,
3161
+ var(--db-ur) right 4px top 32px / 13px 32px no-repeat,
3162
+ var(--db-br) right 0 bottom 2px / 63px 62px no-repeat,
3163
+ var(--db-bl) left 0 bottom 0 / 64px 32px no-repeat;
3164
+ }
3165
+
3166
+ /* ---- Menus -----------------------------------------------------------------
3167
+ The shade: 2px of pencil (ppat 130, 131) down the right from 3px below the
3168
+ menu's top and along the foot from 4px in. A menu that is not a drop-down
3169
+ becomes the shade's containing block. --clio-db-phase shifts the pens
3170
+ along the menu (Mac OS drew the Finder's File menu 64px further along). */
3171
+ [data-era="drawingboard"] :is(.menu, ul[role="menu"]):not(li > *) {
3172
+ position: relative;
3173
+ }
3174
+
3175
+ /* Paper (ppat 7125) from the inside top-left, and a frame drawn with pattern
3176
+ pens (ppat 129-132), each tiled from the menu's own corner: the left pen
3177
+ and the top from the top-left, the right pen from 4px lower, the foot from
3178
+ 4px in. Rules, not tokens: the pens read this menu's own top line and phase. */
3179
+ [data-era="drawingboard"] :is(.menu, ul[role="menu"]) {
3180
+ background:
3181
+ url("art/drawingboard/menu-top.png") 0 calc(var(--clio-menu-border-top-width) - 1px) / 128px 1px repeat-x border-box,
3182
+ url("art/drawingboard/menu-left.png") 0 calc(var(--clio-menu-border-top-width) - 1px) / 1px 128px repeat-y border-box,
3183
+ url("art/drawingboard/menu-right.png") right 0 top calc(var(--clio-menu-border-top-width) + 3px) / 1px 128px repeat-y border-box,
3184
+ url("art/drawingboard/menu-foot.png") calc(4px - var(--clio-db-phase, 0px)) 100% / 128px 1px repeat-x border-box,
3185
+ url("art/drawingboard/menu-paper.png") 0 0 / 64px 64px padding-box,
3186
+ #dddddd;
3187
+ }
3188
+
3189
+ [data-era="drawingboard"] :is(.menu, [role="menu"]) > :is(li.separator, li[role="separator"], hr) {
3190
+ background: url("art/drawingboard/menu-separator.png") calc(0px - var(--clio-db-phase, 0px)) 4px / 128px 1px repeat-x;
3191
+ }
3192
+
3193
+ /* A menu bar's menu hangs from the bar's last row, which is its top line. */
3194
+ [data-era="drawingboard"] :is(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(.menu, ul[role="menu"]) {
3195
+ --clio-menu-border-top-width: 0px;
3196
+ }
3197
+
3198
+ [data-era="drawingboard"] :is(.menu, ul[role="menu"])::before {
3199
+ content: "";
3200
+ position: absolute;
3201
+ top: 3px; /* from the padding box: 4px below the top line */
3202
+ right: -3px;
3203
+ bottom: -3px;
3204
+ left: 3px;
3205
+ background:
3206
+ url("art/drawingboard/menu-shade-right.png") right 0 top 0 / 2px 128px repeat-y,
3207
+ url("art/drawingboard/menu-shade-foot.png") calc(0px - var(--clio-db-phase, 0px)) 100% / 128px 2px repeat-x;
3208
+ pointer-events: none;
3209
+ }
3210
+
3211
+ /* The fixed pencil pixels where the pens meet (File and Edit menus agree). */
3212
+ [data-era="drawingboard"] :is(.menu, ul[role="menu"])::after {
3213
+ content: "";
3214
+ position: absolute;
3215
+ top: 1px; /* from the padding box: 2px below the top line */
3216
+ right: -3px;
3217
+ bottom: -3px;
3218
+ left: -1px;
3219
+ background:
3220
+ url("art/drawingboard/menu-corner-tr.png") right 0 top 0 / 3px 2px no-repeat,
3221
+ url("art/drawingboard/menu-corner-br.png") right 0 bottom 0 / 3px 3px no-repeat,
3222
+ url("art/drawingboard/menu-corner-bl.png") left 0 bottom 0 / 4px 3px no-repeat;
3223
+ pointer-events: none;
3224
+ }
3225
+
3226
+ [data-era="drawingboard"] .window-pane {
3227
+ border: 0;
3228
+ background: transparent;
3229
+ }
3230
+
3231
+ [data-era="drawingboard"] .window > .details-bar {
3232
+ border-left: 0;
3233
+ border-right: 0;
3234
+ }
3235
+
3236
+ [data-era="drawingboard"] .title-bar,
3237
+ [data-era="drawingboard"] .window.inactive > .title-bar,
3238
+ [data-era="drawingboard"] .inactive-title-bar {
3239
+ background: transparent;
3240
+ }
3241
+
3242
+ [data-era="drawingboard"] .title-bar > :is(.title, h1, h2, h3) {
3243
+ padding: var(--clio-title-padding);
3244
+ background: transparent;
3245
+ transform: none;
3246
+ }
3247
+
3248
+ [data-era="drawingboard"] .title-bar > :is(.title, h1, h2, h3)::after {
3249
+ content: none;
3250
+ }
3251
+
3252
+ /* Close, zoom and collapse boxes are the theme's 11px pictures. */
3253
+ [data-era="drawingboard"] .title-bar > :is(button, .close, .close-box, .resize, .resize-box, .zoom, .shade, .shade-box, .collapse) {
3254
+ border: 0;
3255
+ background: var(--clio-art-db-close) 0 0 / 11px 11px no-repeat;
3256
+ box-shadow: none;
3257
+ }
3258
+
3259
+ [data-era="drawingboard"] .title-bar > :is(.resize, .resize-box, .zoom) {
3260
+ background-image: var(--clio-art-db-zoom);
3261
+ }
3262
+
3263
+ [data-era="drawingboard"] .title-bar > :is(.shade, .shade-box, .collapse) {
3264
+ background-image: var(--clio-art-db-collapse);
3265
+ }
3266
+
3267
+ [data-era="drawingboard"] .title-bar > :is(button, .close, .close-box):is(:active, .active) {
3268
+ background: var(--clio-art-db-close-on) 0 0 / 11px 11px no-repeat;
3269
+ box-shadow: none;
3270
+ }
3271
+
3272
+ [data-era="drawingboard"] .title-bar > :is(.resize, .resize-box, .zoom):is(:active, .active) {
3273
+ background: var(--clio-art-db-zoom-on) 0 0 / 11px 11px no-repeat;
3274
+ }
3275
+
3276
+ [data-era="drawingboard"] .title-bar > :is(.shade, .shade-box, .collapse):is(:active, .active) {
3277
+ background: var(--clio-art-db-collapse-on) 0 0 / 11px 11px no-repeat;
3278
+ }
3279
+
3280
+ [data-era="drawingboard"] .title-bar > :is(.resize, .resize-box, .zoom, .shade, .shade-box, .collapse)::before {
3281
+ content: none;
3282
+ }
3283
+
3284
+ /* Background window: its own frame set, grey title, boxes erased (base rule). */
3285
+ [data-era="drawingboard"] .window.inactive {
3286
+ color: #555555;
3287
+ }
3288
+
3289
+ [data-era="drawingboard"] .window.inactive > .title-bar > :is(.title, h1, h2, h3),
3290
+ [data-era="drawingboard"] .inactive-title-bar > :is(.title, h1, h2, h3) {
3291
+ background: transparent;
3292
+ }
3293
+
3294
+ /* List boxes: the 1px between the olive line and the white is see-through. */
3295
+ [data-era="drawingboard"] :is(.listbox, ul[role="listbox"], ol[role="listbox"], div[role="listbox"], select[multiple], select[size]:not([size="1"])) {
3296
+ padding: 1px;
3297
+ background-clip: content-box;
3298
+ }
3299
+
3300
+ /* ---- Text fields ---------------------------------------------------------------
3301
+ Pens (ppat 7003-7006): the rows tiled from the white's left edge, the left
3302
+ column from its top, the right column from 1px higher (both of Date & Time's
3303
+ fields agree), and the corner pixels they leave (tooling/db-pens.py). A rule,
3304
+ not a token: the rows read the field's own --clio-db-phase. */
3305
+ [data-era="drawingboard"] :is(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="password"], input[type="number"], input[type="tel"], textarea) {
3306
+ border-image: url("art/drawingboard/pens/field-corners.png") 5 / 5px stretch;
3307
+ background:
3308
+ url("art/drawingboard/pens/field-left.png") left 0 top 2px / 1px 32px repeat-y border-box,
3309
+ url("art/drawingboard/pens/field-right.png") right 0 top 1px / 1px 32px repeat-y border-box,
3310
+ url("art/drawingboard/pens/field-top.png") calc(2px - var(--clio-db-phase, 0px)) 0 / 128px 1px repeat-x border-box,
3311
+ url("art/drawingboard/pens/field-bottom.png") calc(2px - var(--clio-db-phase, 0px)) 100% / 128px 1px repeat-x border-box,
3312
+ #ffffff padding-box;
3313
+ }
3314
+
3315
+ /* ---- Dialogs -----------------------------------------------------------------
3316
+ Alerts and modal dialogs are framed like windows: eight pictures round the
3317
+ 1px outline (Alert 6127-6134, found 1:1 round Energy Saver's start-up
3318
+ notice; Modal 6135-6142, the same sizes, placed the same way, inferred),
3319
+ edges tiled from their ends, on the window paper from 4px inside the
3320
+ outline. Insets are from the padding box, inside the 1px border. */
3321
+ [data-era="drawingboard"] :is(.alert-box, .modal-dialog, dialog.modal) {
3322
+ --db-tl: url("art/drawingboard/modal-tl.png");
3323
+ --db-top: url("art/drawingboard/modal-top.png");
3324
+ --db-tr: url("art/drawingboard/modal-tr.png");
3325
+ --db-right: url("art/drawingboard/modal-right.png");
3326
+ --db-right-h: 150px;
3327
+ --db-br: url("art/drawingboard/modal-br.png");
3328
+ --db-bottom: url("art/drawingboard/modal-bottom.png");
3329
+ --db-bl: url("art/drawingboard/modal-bl.png");
3330
+ --db-left: url("art/drawingboard/modal-left.png");
3331
+ --db-left-h: 214px;
3332
+ position: relative;
3333
+ isolation: isolate;
3334
+ background: url("art/drawingboard/paper.png") calc(4px - var(--clio-db-phase, 0px)) 4px / 128px 128px border-box;
3335
+ }
3336
+
3337
+ [data-era="drawingboard"] :is(.alert-box, dialog.alert-box) {
3338
+ --db-tl: url("art/drawingboard/alert-tl.png");
3339
+ --db-top: url("art/drawingboard/alert-top.png");
3340
+ --db-tr: url("art/drawingboard/alert-tr.png");
3341
+ --db-right: url("art/drawingboard/alert-right.png");
3342
+ --db-right-h: 43px;
3343
+ --db-br: url("art/drawingboard/alert-br.png");
3344
+ --db-bottom: url("art/drawingboard/alert-bottom.png");
3345
+ --db-bl: url("art/drawingboard/alert-bl.png");
3346
+ --db-left: url("art/drawingboard/alert-left.png");
3347
+ --db-left-h: 106px;
3348
+ }
3349
+
3350
+ [data-era="drawingboard"] :is(.alert-box, .modal-dialog, dialog.modal)::before,
3351
+ [data-era="drawingboard"] :is(.alert-box, .modal-dialog, dialog.modal)::after {
3352
+ content: "";
3353
+ position: absolute;
3354
+ z-index: -1;
3355
+ pointer-events: none;
3356
+ }
3357
+
3358
+ /* Edges: from 1px left of the outline to the shade's far side. */
3359
+ [data-era="drawingboard"] :is(.alert-box, .modal-dialog, dialog.modal)::before {
3360
+ inset: -1px -8px -9px -2px;
3361
+ background:
3362
+ var(--db-top) 20px 0 / 256px 1px repeat-x,
3363
+ var(--db-left) 0 22px / 2px var(--db-left-h) repeat-y,
3364
+ var(--db-right) right 0 top 54px / 8px var(--db-right-h) repeat-y,
3365
+ var(--db-bottom) left 57px bottom 0 / 183px 9px repeat-x;
3366
+ clip-path: polygon(20px 0, calc(100% - 8px) 0, calc(100% - 8px) 54px, 100% 54px,
3367
+ 100% calc(100% - 54px), calc(100% - 59px) calc(100% - 54px), calc(100% - 59px) 100%,
3368
+ 57px 100%, 57px calc(100% - 22px), 0 calc(100% - 22px), 0 22px, 20px 22px);
3369
+ }
3370
+
3371
+ /* Corners, overrunning the outline by up to 18px. */
3372
+ [data-era="drawingboard"] :is(.alert-box, .modal-dialog, dialog.modal)::after {
3373
+ inset: -11px -12px -19px -9px;
3374
+ background:
3375
+ var(--db-tl) 5px 5px / 22px 27px no-repeat,
3376
+ var(--db-tr) right 1px top 0 / 11px 64px no-repeat,
3377
+ var(--db-br) right 0 bottom 2px / 63px 62px no-repeat,
3378
+ var(--db-bl) left 0 bottom 0 / 64px 32px no-repeat;
3379
+ }
3380
+
3381
+ /* ---- Default button: a second pencil line round the button and its shade,
3382
+ with a light #9f9a94 pencil line between (Energy Saver notice,
3383
+ "Close Message": ring 2px out on the left and top, 3px right, 2px below). -- */
3384
+ [data-era="drawingboard"] :is(.default, .btn-default)::before {
3385
+ inset: -3px -4px -3px -3px;
3386
+ border: 1px solid;
3387
+ border-color: #555555 #111111 #333333 #555555;
3388
+ border-radius: 0;
3389
+ box-shadow: inset 0 0 0 1px #9f9a94;
3390
+ }
3391
+
3392
+ /* Disabled push button: not captured; the plain button's frame and face with
3393
+ the theme's grey label (inferred). */
3394
+ [data-era="drawingboard"] :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *):is(:disabled, .disabled) {
3395
+ background: var(--clio-button-bg);
3396
+ color: #9f9a94;
3397
+ -webkit-text-fill-color: #9f9a94;
3398
+ }
3399
+
3400
+ /* ---- Check boxes and radio buttons: one picture per state. ---------------- */
3401
+ [data-era="drawingboard"] input[type="checkbox"] {
3402
+ width: 14px;
3403
+ height: 11px;
3404
+ border: 0;
3405
+ background: var(--clio-art-db-check) 0 0 / 14px 11px no-repeat;
3406
+ box-shadow: none;
3407
+ vertical-align: -1px;
3408
+ }
3409
+
3410
+ [data-era="drawingboard"] input[type="checkbox"]:checked {
3411
+ background-image: var(--clio-art-db-check-on);
3412
+ }
3413
+
3414
+ [data-era="drawingboard"] input[type="checkbox"]:checked::after {
3415
+ content: none;
3416
+ }
3417
+
3418
+ [data-era="drawingboard"] input[type="checkbox"]:indeterminate {
3419
+ background-image: var(--clio-art-db-check-mixed);
3420
+ }
3421
+
3422
+ [data-era="drawingboard"] input[type="checkbox"]:not(:disabled):active {
3423
+ background: var(--clio-art-db-check-pressed) 0 0 / 14px 11px no-repeat;
3424
+ box-shadow: none;
3425
+ }
3426
+
3427
+ [data-era="drawingboard"] input[type="checkbox"]:checked:not(:disabled):active {
3428
+ background-image: var(--clio-art-db-check-on-pressed);
3429
+ }
3430
+
3431
+ [data-era="drawingboard"] input[type="checkbox"]:disabled {
3432
+ background-image: var(--clio-art-db-check-disabled);
3433
+ }
3434
+
3435
+ [data-era="drawingboard"] input[type="checkbox"]:checked:disabled {
3436
+ background-image: var(--clio-art-db-check-on-disabled);
3437
+ }
3438
+
3439
+ [data-era="drawingboard"] input[type="radio"],
3440
+ [data-era="drawingboard"] input[type="radio"]:not(:disabled):active {
3441
+ width: 16px;
3442
+ height: 12px;
3443
+ border: 0;
3444
+ border-radius: 0;
3445
+ background: var(--clio-art-db-radio) 0 0 / 16px 12px no-repeat;
3446
+ box-shadow: none;
3447
+ }
3448
+
3449
+ [data-era="drawingboard"] input[type="radio"]:checked {
3450
+ background: var(--clio-art-db-radio-on) 0 0 / 16px 12px no-repeat;
3451
+ }
3452
+
3453
+ [data-era="drawingboard"] input[type="radio"]:checked:not(:disabled):active {
3454
+ background: var(--clio-art-db-radio-on-pressed) 0 0 / 16px 12px no-repeat;
3455
+ }
3456
+
3457
+ [data-era="drawingboard"] input[type="radio"]:disabled {
3458
+ background-image: var(--clio-art-db-radio-disabled);
3459
+ }
3460
+
3461
+ [data-era="drawingboard"] input[type="radio"]:checked:disabled {
3462
+ background-image: var(--clio-art-db-radio-on-disabled);
3463
+ }
3464
+
3465
+ [data-era="drawingboard"] :is(input[type="checkbox"], input[type="radio"]):disabled {
3466
+ opacity: 1;
3467
+ }
3468
+
3469
+ /* ---- Menus ------------------------------------------------------------------ */
3470
+ [data-era="drawingboard"] :is(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"]))::after,
3471
+ [data-era="drawingboard"] :is(.menu, [role="menu"]) > li > [aria-haspopup="true"]::after,
3472
+ [data-era="drawingboard"] :is(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"])):is(:hover, :focus-within, .active)::after {
3473
+ background-image: var(--clio-art-db-submenu);
3474
+ }
3475
+
3476
+ [data-era="drawingboard"] :is(.menu, [role="menu"]) > li:is(.checked, [aria-checked="true"]):is(:hover, :focus-within, .active)::before,
3477
+ [data-era="drawingboard"] :is(.menu, [role="menu"]) > li > :is([aria-checked="true"], .checked):is(:hover, :focus-visible, .active)::before {
3478
+ filter: none;
3479
+ }
3480
+
3481
+ [data-era="drawingboard"] :is(.menu, [role="menu"]) > li.divider {
3482
+ box-shadow: inset 0 -4px 0 #dddddd, inset 0 -5px 0 #888888;
3483
+ }
3484
+
3485
+ /* ---- Tabs: left end, one stretched column, right end. ---------------------- */
3486
+ [data-era="drawingboard"] :is([role="tablist"], .tabs) {
3487
+ padding: 0 8px;
3488
+ }
3489
+
3490
+ [data-era="drawingboard"] :is([role="tablist"], .tabs) > :is([role="tab"], li, button) {
3491
+ height: 27px;
3492
+ margin: 0 -6px -1px 0;
3493
+ padding: 6px 0 0;
3494
+ border-width: 0 17px 0 6px;
3495
+ border-image: var(--clio-art-db-tab) 0 17 0 6 fill / 0 17px 0 6px stretch;
3496
+ color: #313131;
3497
+ line-height: 20px;
3498
+ }
3499
+
3500
+ [data-era="drawingboard"] :is([role="tablist"], .tabs) > :is([role="tab"], li, button):not(:disabled):active {
3501
+ border-image-source: var(--clio-art-db-tab-pressed);
3502
+ color: #313131;
3503
+ }
3504
+
3505
+ [data-era="drawingboard"] :is([role="tablist"], .tabs) > :is([role="tab"], li, button):is([aria-selected="true"], .active) {
3506
+ padding-top: 6px;
3507
+ border-image-source: var(--clio-art-db-tab-selected);
3508
+ color: #313131;
3509
+ }
3510
+
3511
+ /* The panel's top line runs under the back tabs and breaks under the front
3512
+ one (capture: row 121, #555 to #777 under Themes, none under Appearance). */
3513
+ [data-era="drawingboard"] :is([role="tablist"], .tabs) > :is([role="tab"], li, button) {
3514
+ position: relative;
3515
+ margin-bottom: 0;
3516
+ }
3517
+
3518
+ [data-era="drawingboard"] :is([role="tablist"], .tabs) > :is([role="tab"], li, button):is([aria-selected="true"], .active)::after {
3519
+ content: "";
3520
+ position: absolute;
3521
+ left: -5px;
3522
+ right: -12px;
3523
+ bottom: -1px;
3524
+ height: 1px;
3525
+ background: #e7ded6;
3526
+ }
3527
+
3528
+ [data-era="drawingboard"] :is([role="tabpanel"], .tab-panel) {
3529
+ border-top: 1px solid #666666;
3530
+ box-shadow: none;
3531
+ }
3532
+
3533
+ /* ---- Scroll bars ----------------------------------------------------------- */
3534
+ [data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track,
3535
+ [data-era="drawingboard"]:is(html.clio-scrollbars)::-webkit-scrollbar-track {
3536
+ border: 0;
3537
+ }
3538
+
3539
+ /* The scroll box is the theme's 15px picture at its shortest (7px end + 8px end). */
3540
+ [data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb,
3541
+ [data-era="drawingboard"]:is(html.clio-scrollbars)::-webkit-scrollbar-thumb {
3542
+ min-width: 15px;
3543
+ min-height: 15px;
3544
+ }
3545
+
3546
+ /* Tracks: #ece6e4 ruled by pattern pens (ppat 7045-7049) tiled from the
3547
+ track's start: the edges and a double centre line. Rules, not tokens: the
3548
+ pens read the scroller's own --clio-db-phase. */
3549
+ [data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track,
3550
+ [data-era="drawingboard"]:is(html.clio-scrollbars)::-webkit-scrollbar-track {
3551
+ background:
3552
+ url("art/drawingboard/track-v-left.png") 0 0 / 1px 128px repeat-y,
3553
+ url("art/drawingboard/track-v-mid1.png") 7px 0 / 1px 256px repeat-y,
3554
+ url("art/drawingboard/track-v-mid2.png") 8px 0 / 1px 256px repeat-y,
3555
+ url("art/drawingboard/track-v-right.png") 15px 0 / 1px 128px repeat-y,
3556
+ #ece6e4;
3557
+ }
3558
+
3559
+ [data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track:horizontal,
3560
+ [data-era="drawingboard"]:is(html.clio-scrollbars)::-webkit-scrollbar-track:horizontal {
3561
+ background:
3562
+ url("art/drawingboard/track-h-top.png") calc(0px - var(--clio-db-phase, 0px)) 0 / 128px 1px repeat-x,
3563
+ url("art/drawingboard/track-h-mid1.png") calc(0px - var(--clio-db-phase, 0px)) 7px / 256px 1px repeat-x,
3564
+ url("art/drawingboard/track-h-mid2.png") calc(0px - var(--clio-db-phase, 0px)) 8px / 256px 1px repeat-x,
3565
+ url("art/drawingboard/track-h-bottom.png") calc(0px - var(--clio-db-phase, 0px)) 15px / 128px 1px repeat-x,
3566
+ #ece6e4;
3567
+ }
3568
+
3569
+ [data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button,
3570
+ [data-era="drawingboard"]:is(html.clio-scrollbars)::-webkit-scrollbar-button,
3571
+ [data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:active,
3572
+ [data-era="drawingboard"]:is(html.clio-scrollbars)::-webkit-scrollbar-button:active {
3573
+ border: 0;
3574
+ background-color: transparent;
3575
+ background-position: 0 0;
3576
+ background-size: 16px 16px;
3577
+ box-shadow: none;
3578
+ }
3579
+
3580
+ /* Disabled pop-up menu: the pens' lighter rows, the theme's dimmed hatch and
3581
+ arrow (Appearance, "Variation"). */
3582
+ /* The arrow and hatch stay inside the frame; the pens draw on it. */
3583
+ [data-era="drawingboard"] select,
3584
+ [data-era="drawingboard"] select:disabled {
3585
+ background-clip: padding-box, padding-box, border-box, border-box, border-box, border-box, padding-box;
3586
+ }
3587
+
3588
+ [data-era="drawingboard"] select:disabled {
3589
+ border-image: url("art/drawingboard/pens/popup-disabled-corners.png") 5 / 5px stretch;
3590
+ border-color: transparent;
3591
+ background:
3592
+ var(--clio-art-db-popup-arrow-off) right 5px top 4px / 7px 9px no-repeat padding-box,
3593
+ var(--clio-art-db-popup-corner-off) right 19px bottom / 24px 24px no-repeat padding-box,
3594
+ url("art/drawingboard/pens/popup-disabled-left.png") left 0 bottom 1px / 1px 16px repeat-y border-box,
3595
+ url("art/drawingboard/pens/popup-disabled-right.png") right 0 bottom 1px / 1px 16px repeat-y border-box,
3596
+ url("art/drawingboard/pens/popup-disabled-top.png") right 1px top 0 / 64px 1px repeat-x border-box,
3597
+ url("art/drawingboard/pens/popup-disabled-bottom.png") right 1px bottom 0 / 64px 1px repeat-x border-box,
3598
+ #cec6b5;
3599
+ color: #8c8c8c;
3600
+ }
3601
+
3602
+
3603
+ /* The 1px pencil shade right of and below a push button (ppat 7079, 7070 next
3604
+ rows; held: 7127, 7126, tiled from the second column and row). A default
3605
+ button instead wears a 3px pencil band (ppat 7085 rows, 7086 columns) whose
3606
+ inner line is the box's edge, 2px outside it. Insets are from the padding box. */
3607
+ [data-era="drawingboard"] :is(button, .btn, .btn-default):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *)::before {
3608
+ content: "";
3609
+ position: absolute;
3610
+ top: 0;
3611
+ right: -2px;
3612
+ bottom: -2px;
3613
+ left: 4px;
3614
+ border: 0;
3615
+ border-image: none;
3616
+ box-shadow: none;
3617
+ background:
3618
+ url("art/drawingboard/pens/button-shade-right.png") right 0 bottom 2px / 1px 16px repeat-y,
3619
+ url("art/drawingboard/pens/button-shade-bottom.png") right 2px bottom 0 / 64px 1px repeat-x;
3620
+ pointer-events: none;
3621
+ }
3622
+
3623
+ [data-era="drawingboard"] :is(button, .btn, .btn-default):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *, :disabled, .disabled):is(:active, .active)::before {
3624
+ left: 0;
3625
+ background:
3626
+ url("art/drawingboard/pens/button-held-shade-right.png") right 0 top 0 / 1px 16px repeat-y,
3627
+ url("art/drawingboard/pens/button-held-shade-bottom.png") left 0 bottom 0 / 32px 1px repeat-x;
3628
+ }
3629
+
3630
+ [data-era="drawingboard"] :is(button, .btn, .btn-default):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *):is(.default, .btn-default)::before {
3631
+ inset: -3px;
3632
+ background:
3633
+ url("art/drawingboard/pens/button-default-left-3.png") left 0 bottom 3px / 1px 16px repeat-y,
3634
+ url("art/drawingboard/pens/button-default-left-2.png") left 1px bottom 3px / 1px 16px repeat-y,
3635
+ url("art/drawingboard/pens/button-default-left.png") left 2px bottom 3px / 1px 16px repeat-y,
3636
+ url("art/drawingboard/pens/button-default-right.png") right 2px bottom 3px / 1px 16px repeat-y,
3637
+ url("art/drawingboard/pens/button-default-right-2.png") right 1px bottom 3px / 1px 16px repeat-y,
3638
+ url("art/drawingboard/pens/button-default-right-3.png") right 0 bottom 3px / 1px 16px repeat-y,
3639
+ url("art/drawingboard/pens/button-default-top-3.png") right 3px top 0 / 64px 1px repeat-x,
3640
+ url("art/drawingboard/pens/button-default-top-2.png") right 3px top 1px / 64px 1px repeat-x,
3641
+ url("art/drawingboard/pens/button-default-top.png") right 3px top 2px / 64px 1px repeat-x,
3642
+ url("art/drawingboard/pens/button-default-bottom.png") right 3px bottom 2px / 64px 1px repeat-x,
3643
+ url("art/drawingboard/pens/button-default-bottom-2.png") right 3px bottom 1px / 64px 1px repeat-x,
3644
+ url("art/drawingboard/pens/button-default-bottom-3.png") right 3px bottom 0 / 64px 1px repeat-x;
3645
+ }
3646
+
3647
+ /* The pencil overruns at a push button's corners, outside its box: Button*
3648
+ pieces round a plain button, *Default pieces round the default one. */
3649
+ [data-era="drawingboard"] :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *) {
3650
+ position: relative;
3651
+ }
3652
+
3653
+ [data-era="drawingboard"] :is(button, .btn, .btn-default):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *)::after {
3654
+ content: "";
3655
+ position: absolute;
3656
+ inset: -6px; /* from the padding box: 5px outside the frame */
3657
+ background:
3658
+ var(--clio-art-db-btn-tl) left 3px top 3px / 7px 3px no-repeat,
3659
+ var(--clio-art-db-btn-tr) right 2px top 3px / 4px 3px no-repeat,
3660
+ var(--clio-art-db-btn-br) right 1px bottom 0 / 5px 6px no-repeat,
3661
+ var(--clio-art-db-btn-bl) left 3px bottom 2px / 7px 4px no-repeat;
3662
+ pointer-events: none;
3663
+ }
3664
+
3665
+ [data-era="drawingboard"] :is(button, .btn, .btn-default):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *, :disabled, .disabled):is(:active, .active)::after {
3666
+ background:
3667
+ var(--clio-art-db-btn-tl) left 3px top 3px / 7px 3px no-repeat,
3668
+ var(--clio-art-db-btn-tr) right 2px top 3px / 4px 3px no-repeat,
3669
+ var(--clio-art-db-btn-br-held) right 1px bottom 0 / 5px 6px no-repeat,
3670
+ var(--clio-art-db-btn-bl) left 3px bottom 2px / 7px 4px no-repeat;
3671
+ }
3672
+
3673
+ [data-era="drawingboard"] :is(button, .btn, .btn-default):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *):is(.default, .btn-default) {
3674
+ border-image-source: none;
3675
+ }
3676
+
3677
+ [data-era="drawingboard"] :is(button, .btn, .btn-default):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *):is(.default, .btn-default)::after {
3678
+ background:
3679
+ url("art/drawingboard/pens/button-default-corner-tl.png") left 5px top 5px / 5px 5px no-repeat,
3680
+ url("art/drawingboard/pens/button-default-corner-tr.png") right 5px top 5px / 5px 5px no-repeat,
3681
+ url("art/drawingboard/pens/button-default-corner-bl.png") left 5px bottom 5px / 5px 5px no-repeat,
3682
+ url("art/drawingboard/pens/button-default-corner-br.png") right 5px bottom 5px / 5px 5px no-repeat,
3683
+ var(--clio-art-db-def-tl) left 1px top 1px / 9px 5px no-repeat,
3684
+ var(--clio-art-db-def-tr) right 1px top 2px / 4px 4px no-repeat,
3685
+ var(--clio-art-db-def-br) right 0 bottom 0 / 5px 6px no-repeat,
3686
+ var(--clio-art-db-def-bl) left 1px bottom 1px / 9px 5px no-repeat;
3687
+ }
3688
+
3689
+ [data-era="drawingboard"] progress {
3690
+ border-left-color: #333333;
3691
+ }
3692
+
3693
+ [data-era="drawingboard"] progress:indeterminate,
3694
+ [data-era="drawingboard"] progress:indeterminate::-webkit-progress-bar {
3695
+ background: var(--clio-art-db-progress-arrows) 0 center / 128px 5px repeat-x, #ddd6c5;
3696
+ }
3697
+
3698
+ [data-era="drawingboard"] fieldset {
3699
+ background: transparent;
3700
+ }
3701
+
3702
+ [data-era="drawingboard"] fieldset > legend {
3703
+ margin-left: 0;
3704
+ }
3705
+
3706
+ /* ---- Antialiasing as Mac OS blends it: #333 labels on #cec6b5 (their solid
3707
+ pixels #313131, from a 16-bit buffer); grey when disabled. */
3708
+ [data-era="drawingboard"] :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *),
3709
+ [data-era="drawingboard"] :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *):not(:disabled, .disabled):is(:active, .active) {
3710
+ font-palette: --clio-aa-db-button;
3711
+ }
3712
+
3713
+ [data-era="drawingboard"] :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .control-strip *):is(:disabled, .disabled) {
3714
+ font-palette: --clio-aa-db-button-disabled;
3715
+ }
3716
+
1927
3717
  /* Adaptations the historical machines never needed. Historical sizes are
1928
3718
  calibration, not a cage: on a touch screen the controls grow to the
1929
3719
  "coarse pointer" sizes from AI System 6's fidelity contract, without any
@@ -1932,6 +3722,7 @@
1932
3722
  :root,
1933
3723
  [data-era] {
1934
3724
  --clio-control-height: 36px;
3725
+ --clio-popup-height: 36px;
1935
3726
  --clio-field-height: 40px;
1936
3727
  --clio-menubar-height: 32px;
1937
3728
  --clio-menu-item-height: 32px;