@uvalib/web-components 1.9.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +277 -18
  3. package/bin/install-skill.mjs +174 -54
  4. package/dist/base.css +121 -2
  5. package/dist/components/uvalib-contents/UvalibContents.d.ts +66 -2
  6. package/dist/components/uvalib-contents/UvalibContents.js +277 -29
  7. package/dist/components/uvalib-contents/UvalibContents.js.map +1 -1
  8. package/dist/components/uvalib-list-filter/UvalibListFilter.d.ts +162 -0
  9. package/dist/components/uvalib-list-filter/UvalibListFilter.js +685 -0
  10. package/dist/components/uvalib-list-filter/UvalibListFilter.js.map +1 -0
  11. package/dist/components/uvalib-list-filter/uvalib-list-filter.d.ts +1 -0
  12. package/dist/components/uvalib-list-filter/uvalib-list-filter.js +4 -0
  13. package/dist/components/uvalib-list-filter/uvalib-list-filter.js.map +1 -0
  14. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.d.ts +54 -1
  15. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js +230 -3
  16. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js.map +1 -1
  17. package/dist/custom-elements.json +7757 -6209
  18. package/dist/edition.css +758 -0
  19. package/dist/index.d.ts +2 -0
  20. package/dist/index.js +1 -0
  21. package/dist/index.js.map +1 -1
  22. package/dist/pagefind.css +144 -0
  23. package/dist/styles/base.js +78 -1
  24. package/dist/styles/base.js.map +1 -1
  25. package/dist/styles/controls.js +2 -0
  26. package/dist/styles/controls.js.map +1 -1
  27. package/dist/styles/edition.d.ts +1 -0
  28. package/dist/styles/edition.js +747 -0
  29. package/dist/styles/edition.js.map +1 -0
  30. package/dist/styles/hidden.js +2 -0
  31. package/dist/styles/hidden.js.map +1 -1
  32. package/dist/styles/layout.d.ts +1 -0
  33. package/dist/styles/layout.js +92 -0
  34. package/dist/styles/layout.js.map +1 -0
  35. package/dist/styles/pagefind.js +150 -0
  36. package/dist/styles/pagefind.js.map +1 -1
  37. package/dist-cdn/base.css +121 -2
  38. package/dist-cdn/chunks/{base-CHMHBPeI.js → base-DmImIMld.js} +79 -2
  39. package/dist-cdn/chunks/base-DmImIMld.js.map +1 -0
  40. package/dist-cdn/custom-elements.json +7757 -6209
  41. package/dist-cdn/edition.css +758 -0
  42. package/dist-cdn/manifest.json +5 -3
  43. package/dist-cdn/pagefind.css +144 -0
  44. package/dist-cdn/site-page.js +1 -1
  45. package/dist-cdn/site-style.js +1 -1
  46. package/dist-cdn/skills/uvalib-web-components/SKILL.md +29 -8
  47. package/dist-cdn/skills/uvalib-web-components/reference/components.md +65 -4
  48. package/dist-cdn/uvalib-contents.js +185 -47
  49. package/dist-cdn/uvalib-contents.js.map +1 -1
  50. package/dist-cdn/uvalib-list-filter.js +451 -0
  51. package/dist-cdn/uvalib-list-filter.js.map +1 -0
  52. package/dist-cdn/uvalib-pagefind-search.js +149 -49
  53. package/dist-cdn/uvalib-pagefind-search.js.map +1 -1
  54. package/package.json +6 -1
  55. package/skills/uvalib-web-components/SKILL.md +29 -8
  56. package/skills/uvalib-web-components/reference/components.md +65 -4
  57. package/dist-cdn/chunks/base-CHMHBPeI.js.map +0 -1
@@ -0,0 +1,758 @@
1
+ @supports (color: light-dark(#000, #fff)) {
2
+ :root[data-uva-color-scheme] {
3
+ --uva-color-text: light-dark(var(--uva-grey-darkest, #2b2b2b), #e8e8e8);
4
+ --uva-color-link: light-dark(var(--uva-brand-blue, #232d4b), #87b9d9);
5
+ --uva-color-text-muted: light-dark(#4b5563, #adadad);
6
+ --uva-color-table-border: light-dark(var(--uva-grey-100, #dadada), #4f5a7a);
7
+ --uva-color-focus: light-dark(var(--uva-brand-orange, #e57200), #ffb370);
8
+ --uva-color-control-border: light-dark(var(--uva-grey, #808080), #7a84a0);
9
+ --uva-color-table-stripe: light-dark(var(--uva-grey-200, #f1f1f1), #1a2340);
10
+ --uva-color-highlight: light-dark(var(--uva-brand-orange-200, #ffc999), #854200);
11
+ --uva-color-on-highlight: light-dark(var(--uva-grey-darkest, #2b2b2b), #ffffff);
12
+ --uva-color-button-bg: light-dark(var(--uva-blue-alt, #007bac), #55c4ec);
13
+ --uva-color-button-hover-bg: light-dark(var(--uva-blue-alt-A, #005679), #91d8f2);
14
+ --uva-color-button-text: light-dark(#ffffff, #10172b);
15
+ }
16
+ :root[data-uva-color-scheme='system'] {
17
+ color-scheme: light dark;
18
+ }
19
+ :root[data-uva-color-scheme='light'] {
20
+ color-scheme: light;
21
+ }
22
+ :root[data-uva-color-scheme='dark'] {
23
+ color-scheme: dark;
24
+ }
25
+ }
26
+
27
+ :where(.uvalib-edition) {
28
+ display: block;
29
+ max-inline-size: 70ch;
30
+ color: var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b));
31
+ font-family: var(
32
+ --uva-font-family,
33
+ franklin-gothic-urw,
34
+ 'UVA Franklin Fallback',
35
+ Arial,
36
+ Helvetica,
37
+ sans-serif
38
+ );
39
+ font-size: 1.125rem;
40
+ line-height: 1.7;
41
+ overflow-wrap: break-word;
42
+ hyphens: auto;
43
+ }
44
+ :where(.uvalib-edition) :where([hidden]),
45
+ :where(.uvalib-edition, .uvalib-edition__lines, .uvalib-edition__readings)[hidden] {
46
+ display: none !important;
47
+ }
48
+
49
+ /* Divisions */
50
+ :where(.uvalib-edition) :where(section, .div) {
51
+ margin: 0;
52
+ }
53
+ :where(.uvalib-edition) :where(section.div, div.div) + :where(section.div, div.div) {
54
+ margin-block-start: 2.5rem;
55
+ }
56
+
57
+ /* Headings: the theme's colour, weight and scale. */
58
+ :where(.uvalib-edition) :where(h1, h2, h3, h4, h5, h6) {
59
+ margin: 2rem 0 1rem;
60
+ color: var(--uva-color-link, var(--uva-brand-blue, #232d4b));
61
+ font-weight: 500;
62
+ line-height: 1.15;
63
+ text-wrap: balance;
64
+ }
65
+ :where(.uvalib-edition) :where(:is(h1, h2, h3, h4, h5, h6):first-child) {
66
+ margin-block-start: 0;
67
+ }
68
+ :where(.uvalib-edition) :where(h1) {
69
+ font-size: 2.488rem;
70
+ font-weight: 700;
71
+ }
72
+ :where(.uvalib-edition) :where(h2) {
73
+ font-size: 2.074rem;
74
+ font-weight: 700;
75
+ }
76
+ :where(.uvalib-edition) :where(h3) {
77
+ font-size: 1.728rem;
78
+ }
79
+ :where(.uvalib-edition) :where(h4) {
80
+ font-size: 1.44rem;
81
+ }
82
+ :where(.uvalib-edition) :where(h5) {
83
+ font-size: 1.2rem;
84
+ }
85
+ :where(.uvalib-edition) :where(h6) {
86
+ font-size: 1rem;
87
+ }
88
+ :where(.uvalib-edition) :where(:is(.head, .list-head):not(h1, h2, h3, h4, h5, h6, .figure *, figure *)) {
89
+ display: block;
90
+ margin: 1.5em 0 0.5em;
91
+ font-weight: 700;
92
+ line-height: 1.3;
93
+ }
94
+ :where(.uvalib-edition) :where(.head-sub, .head-alt, .head-desc) {
95
+ font-size: 0.85em;
96
+ font-weight: 500;
97
+ }
98
+
99
+ /* Paragraphs */
100
+ :where(.uvalib-edition) :where(p, div.p, div.ab) {
101
+ margin: 0 0 1em;
102
+ text-wrap: pretty;
103
+ }
104
+
105
+ /* Renditions */
106
+ :where(.uvalib-edition) :where(.rend-italic, .rend-i, .rend-it) {
107
+ font-style: italic;
108
+ }
109
+ :where(.uvalib-edition) :where(.rend-roman, .rend-normal) {
110
+ font-style: normal;
111
+ }
112
+ :where(.uvalib-edition) :where(.rend-bold, .rend-b) {
113
+ font-weight: 700;
114
+ }
115
+ :where(.uvalib-edition) :where(.rend-smallcaps, .rend-small-caps, .rend-sc) {
116
+ font-variant: small-caps;
117
+ }
118
+ :where(.uvalib-edition) :where(.rend-underline, .rend-u) {
119
+ text-decoration: underline;
120
+ }
121
+ :where(.uvalib-edition) :where(.rend-sup, .rend-superscript) {
122
+ font-size: 0.75em;
123
+ vertical-align: super;
124
+ line-height: 0;
125
+ }
126
+ :where(.uvalib-edition) :where(.rend-sub, .rend-subscript) {
127
+ font-size: 0.75em;
128
+ vertical-align: sub;
129
+ line-height: 0;
130
+ }
131
+ :where(.uvalib-edition) :where(.rend-center) {
132
+ text-align: center;
133
+ }
134
+ :where(.uvalib-edition) :where(.rend-right) {
135
+ text-align: end;
136
+ }
137
+ :where(.uvalib-edition) :where(.rend-left) {
138
+ text-align: start;
139
+ }
140
+ :where(.uvalib-edition) :where(.rend-indent:not(.l)) {
141
+ text-indent: 2em;
142
+ }
143
+ :where(.uvalib-edition) :where(.rend-indent2:not(.l)) {
144
+ text-indent: 4em;
145
+ }
146
+ :where(.uvalib-edition) :where(.rend-indent3:not(.l)) {
147
+ text-indent: 6em;
148
+ }
149
+ :where(.uvalib-edition) :where(.rend-no-indent, .rend-noindent) {
150
+ text-indent: 0;
151
+ }
152
+ :where(.uvalib-edition) :where(.rend-hang) {
153
+ padding-inline-start: 2em;
154
+ text-indent: -2em;
155
+ }
156
+ :where(.uvalib-edition) :where(span.rend-hang) {
157
+ display: inline-block;
158
+ }
159
+
160
+ /* Original line breaks: prose reflows; the toggle shows them. */
161
+ :where(.uvalib-edition) :where(br.lb) {
162
+ display: none;
163
+ }
164
+ :where(.uvalib-edition) :where(span.lb)::before {
165
+ content: ' ';
166
+ }
167
+ :where(
168
+ .uvalib-edition.uvalib-edition--lines,
169
+ .uvalib-edition:has(input.uvalib-edition__lines:checked, .uvalib-edition__lines :checked),
170
+ :is(input.uvalib-edition__lines:checked, .uvalib-edition__lines:has(:checked)) ~ .uvalib-edition,
171
+ :not(.uvalib-edition):has(input.uvalib-edition__lines:checked, .uvalib-edition__lines :checked) ~ .uvalib-edition
172
+ ) :where(br.lb) {
173
+ display: inline;
174
+ }
175
+ :where(
176
+ .uvalib-edition.uvalib-edition--lines,
177
+ .uvalib-edition:has(input.uvalib-edition__lines:checked, .uvalib-edition__lines :checked),
178
+ :is(input.uvalib-edition__lines:checked, .uvalib-edition__lines:has(:checked)) ~ .uvalib-edition,
179
+ :not(.uvalib-edition):has(input.uvalib-edition__lines:checked, .uvalib-edition__lines :checked) ~ .uvalib-edition
180
+ ) :where(span.lb)::before {
181
+ content: '\A';
182
+ white-space: pre;
183
+ }
184
+
185
+ /* Verse: every line breaks; wrapped lines hang; line numbers from data-n, visual only. */
186
+ :where(.uvalib-edition) :where(.lg) {
187
+ margin: 0 0 1.25em;
188
+ }
189
+ :where(.uvalib-edition) :where(.lg) :where(.lg) {
190
+ margin-block-end: 1em;
191
+ }
192
+ :where(.uvalib-edition) :where(.l) {
193
+ display: block;
194
+ position: relative;
195
+ padding-inline-start: 2em;
196
+ text-indent: -2em;
197
+ }
198
+ :where(.uvalib-edition) :where(.l.rend-indent) {
199
+ padding-inline-start: 4em;
200
+ }
201
+ :where(.uvalib-edition) :where(.l.rend-indent2) {
202
+ padding-inline-start: 6em;
203
+ }
204
+ :where(.uvalib-edition) :where(.l.rend-indent3) {
205
+ padding-inline-start: 8em;
206
+ }
207
+ :where(.uvalib-edition) :where(.l.rend-indent4) {
208
+ padding-inline-start: 10em;
209
+ }
210
+ :where(.uvalib-edition) :where(.lg:has(.l[data-n])) :where(.l) {
211
+ padding-inline-end: 2.5rem;
212
+ }
213
+ :where(.uvalib-edition) :where(.l[data-n])::after {
214
+ content: attr(data-n);
215
+ content: attr(data-n) / '';
216
+ position: absolute;
217
+ inset-block-start: 0.35em;
218
+ inset-inline-end: 0;
219
+ color: var(--uva-color-text-muted, #4b5563);
220
+ font-size: 0.75rem;
221
+ font-style: normal;
222
+ font-variant: normal;
223
+ font-weight: 400;
224
+ line-height: 1.5;
225
+ text-indent: 0;
226
+ font-variant-numeric: tabular-nums;
227
+ }
228
+
229
+ /* Drama */
230
+ :where(.uvalib-edition) :where(.sp) {
231
+ margin: 0 0 1em;
232
+ }
233
+ :where(.uvalib-edition) :where(.speaker) {
234
+ margin: 0;
235
+ font-variant: small-caps;
236
+ font-weight: 700;
237
+ letter-spacing: 0.03em;
238
+ }
239
+ :where(.uvalib-edition) :where(.sp) > :where(:not(.speaker, .stage)) {
240
+ margin-inline-start: 1.5em;
241
+ }
242
+ :where(.uvalib-edition) :where(.stage) {
243
+ color: var(--uva-color-text-muted, #4b5563);
244
+ font-style: italic;
245
+ }
246
+ :where(.uvalib-edition) :where(p.stage, div.stage) {
247
+ margin: 0.25em 0 0.75em 1.5em;
248
+ }
249
+
250
+ /* Letters: opener, dateline, salute, closer, signed, postscript. */
251
+ :where(.uvalib-edition) :where(.opener, .closer) {
252
+ margin: 1em 0;
253
+ }
254
+ :where(.uvalib-edition) :where(.dateline) {
255
+ margin: 0 0 0.75em;
256
+ text-align: end;
257
+ }
258
+ :where(.uvalib-edition) :where(.salute) {
259
+ margin: 0 0 0.75em;
260
+ }
261
+ :where(.uvalib-edition) :where(.closer) {
262
+ text-align: end;
263
+ }
264
+ :where(.uvalib-edition) :where(.signed) {
265
+ margin: 0 0 0.75em;
266
+ text-align: end;
267
+ }
268
+ :where(.uvalib-edition) :where(.postscript, .seg-postscript, .ps) {
269
+ display: block;
270
+ margin: 1.5em 0 1em;
271
+ text-align: start;
272
+ }
273
+
274
+ /* Front matter and quotations: the theme's blockquote. */
275
+ :where(.uvalib-edition) :where(blockquote, .epigraph, .cit, .quote, div.q) {
276
+ margin: 0.5rem 1.5rem 1.5rem;
277
+ padding: 0 0.5rem;
278
+ border-inline-start: 1px solid var(--uva-brand-orange, #e57200);
279
+ font-style: italic;
280
+ }
281
+ :where(.uvalib-edition) :where(.epigraph, .cit, .quote, div.q) :where(blockquote) {
282
+ margin: 0;
283
+ padding: 0;
284
+ border: 0;
285
+ }
286
+ :where(.uvalib-edition) :where(blockquote, .epigraph, .cit) :where(p, div.p):last-child {
287
+ margin-block-end: 0;
288
+ }
289
+ :where(.uvalib-edition) :where(.bibl) {
290
+ display: block;
291
+ font-style: normal;
292
+ }
293
+ :where(.uvalib-edition) :where(.epigraph, .cit) :where(.bibl) {
294
+ margin-block-start: 0.25em;
295
+ text-align: end;
296
+ }
297
+ :where(.uvalib-edition) :where(.argument) {
298
+ margin: 0 1.5em 1.5em;
299
+ font-style: italic;
300
+ }
301
+ :where(.uvalib-edition) :where(.byline, .trailer, .dedication, .docAuthor) {
302
+ margin: 1em 0;
303
+ text-align: center;
304
+ }
305
+ :where(.uvalib-edition) :where(.dedication) {
306
+ font-style: italic;
307
+ }
308
+
309
+ /* Title pages */
310
+ :where(.uvalib-edition) :where(.titlepage, .titlePage) {
311
+ margin: 0 0 2rem;
312
+ text-align: center;
313
+ }
314
+ :where(.uvalib-edition) :where(.titlePart, .docTitle) {
315
+ display: block;
316
+ margin: 0.5em 0;
317
+ color: var(--uva-color-link, var(--uva-brand-blue, #232d4b));
318
+ font-size: 1.44rem;
319
+ font-weight: 500;
320
+ line-height: 1.15;
321
+ }
322
+ :where(.uvalib-edition) :where(.titlePart-sub, .titlePart-subtitle) {
323
+ font-size: 1.2rem;
324
+ }
325
+ :where(.uvalib-edition) :where(.docAuthor) {
326
+ font-variant: small-caps;
327
+ }
328
+ :where(.uvalib-edition) :where(.docImprint, .docDate, .docEdition) {
329
+ margin: 1em 0;
330
+ color: var(--uva-color-text-muted, #4b5563);
331
+ }
332
+
333
+ /* Lists and tables */
334
+ :where(.uvalib-edition) :where(ul.list, ol.list) {
335
+ margin: 0 0 1em;
336
+ padding-inline-start: 1.5em;
337
+ }
338
+ :where(.uvalib-edition) :where(.list-simple, .list-castlist) {
339
+ padding-inline-start: 0;
340
+ list-style: none;
341
+ }
342
+ :where(.uvalib-edition) :where(.list) :where(.label) {
343
+ font-weight: 700;
344
+ }
345
+ :where(.uvalib-edition) :where(.table-wrap) {
346
+ margin: 0 0 1.25em;
347
+ overflow-x: auto;
348
+ }
349
+ :where(.uvalib-edition) :where(table) {
350
+ border-collapse: collapse;
351
+ font-size: 0.9em;
352
+ line-height: 1.4;
353
+ }
354
+ :where(.uvalib-edition) :where(td, th) {
355
+ padding: 0.25em 0.6em;
356
+ border-block-end: 1px solid var(--uva-color-table-border, var(--uva-grey-100, #dadada));
357
+ text-align: start;
358
+ vertical-align: top;
359
+ }
360
+
361
+ /* Ornaments and section breaks: a centred muted ⁂, hidden from screen readers. */
362
+ :where(.uvalib-edition) :where(.ornament, .textbreak) {
363
+ display: block;
364
+ block-size: auto;
365
+ margin: 1.5em 0;
366
+ border: 0;
367
+ color: var(--uva-color-text-muted, #4b5563);
368
+ text-align: center;
369
+ overflow: visible;
370
+ }
371
+ :where(.uvalib-edition) :where(hr.ornament, hr.textbreak, .ornament:empty, .textbreak:empty)::before {
372
+ content: '\2042';
373
+ content: '\2042' / '';
374
+ font-size: 1.25em;
375
+ line-height: 1;
376
+ }
377
+
378
+ /* Page breaks: small muted labels; a link to the page image is underlined, in the link
379
+ colour. Each at least 24px tall. Works with <uvalib-lightbox selector="a.pb-image">. */
380
+ :where(.uvalib-edition) :where(.pb) {
381
+ color: var(--uva-color-text-muted, #4b5563);
382
+ font-size: 0.8125rem;
383
+ font-style: normal;
384
+ font-variant: normal;
385
+ font-weight: 400;
386
+ letter-spacing: normal;
387
+ line-height: 1.2;
388
+ text-indent: 0;
389
+ }
390
+ :where(.uvalib-edition) :where(.pb) :where(a, .pb-n) {
391
+ display: inline-block;
392
+ margin: 0 0.25em;
393
+ padding: 0.2em 0.5em;
394
+ border: 1px solid var(--uva-color-table-border, var(--uva-grey-100, #dadada));
395
+ border-radius: 3px;
396
+ white-space: nowrap;
397
+ text-indent: 0;
398
+ }
399
+ :where(.uvalib-edition) :where(.pb) :where(a) {
400
+ color: var(--uva-color-link, var(--uva-brand-blue, #232d4b));
401
+ text-decoration: underline;
402
+ text-underline-offset: 0.15em;
403
+ }
404
+ :where(.uvalib-edition) :where(.pb) :where(a:hover) {
405
+ border-color: currentColor;
406
+ text-decoration-thickness: 2px;
407
+ }
408
+ :where(.uvalib-edition) :where(.pb) :where(a:focus-visible) {
409
+ outline: 3px solid var(--uva-color-focus, var(--uva-brand-orange, #e57200));
410
+ outline-offset: 2px;
411
+ }
412
+ :where(.uvalib-edition) :where(section, .div) > :where(.pb:first-child:not(:empty)) {
413
+ display: block;
414
+ margin-block-end: 0.5em;
415
+ text-align: end;
416
+ }
417
+
418
+ /* Figures */
419
+ :where(.uvalib-edition) :where(.figure, figure) {
420
+ display: block;
421
+ margin: 1.5em 0;
422
+ text-align: center;
423
+ }
424
+ :where(.uvalib-edition) :where(.figure, figure) :where(img) {
425
+ display: block;
426
+ max-inline-size: 100%;
427
+ max-block-size: 80vh;
428
+ inline-size: auto;
429
+ block-size: auto;
430
+ margin: 0 auto 0.5em;
431
+ }
432
+ :where(.uvalib-edition) :where(.figure, figure) :where(.head, .figDesc, figcaption) {
433
+ display: block;
434
+ color: var(--uva-color-text-muted, #4b5563);
435
+ font-size: 0.875em;
436
+ font-weight: 400;
437
+ line-height: 1.4;
438
+ }
439
+
440
+ /* Editorial marks: never colour or strike-through alone. */
441
+ :where(.uvalib-edition) :where(ins.add, .add) {
442
+ font-size: 0.85em;
443
+ text-decoration: none;
444
+ vertical-align: super;
445
+ line-height: 0;
446
+ }
447
+ :where(.uvalib-edition) :where(ins.add, .add)::before {
448
+ content: 'added: ';
449
+ position: absolute;
450
+ inline-size: 1px;
451
+ block-size: 1px;
452
+ margin: -1px;
453
+ padding: 0;
454
+ overflow: hidden;
455
+ clip-path: inset(50%);
456
+ white-space: nowrap;
457
+ text-decoration: none;
458
+ }
459
+ :where(.uvalib-edition) :where(ins.add, .add)::after {
460
+ content: ' (end added)';
461
+ position: absolute;
462
+ inline-size: 1px;
463
+ block-size: 1px;
464
+ margin: -1px;
465
+ padding: 0;
466
+ overflow: hidden;
467
+ clip-path: inset(50%);
468
+ white-space: nowrap;
469
+ text-decoration: none;
470
+ }
471
+ :where(.uvalib-edition) :where(del.del, .del) {
472
+ text-decoration: line-through;
473
+ }
474
+ :where(.uvalib-edition) :where(del.del, .del)::before {
475
+ content: 'deleted: ';
476
+ position: absolute;
477
+ inline-size: 1px;
478
+ block-size: 1px;
479
+ margin: -1px;
480
+ padding: 0;
481
+ overflow: hidden;
482
+ clip-path: inset(50%);
483
+ white-space: nowrap;
484
+ text-decoration: none;
485
+ }
486
+ :where(.uvalib-edition) :where(del.del, .del)::after {
487
+ content: ' (end deleted)';
488
+ position: absolute;
489
+ inline-size: 1px;
490
+ block-size: 1px;
491
+ margin: -1px;
492
+ padding: 0;
493
+ overflow: hidden;
494
+ clip-path: inset(50%);
495
+ white-space: nowrap;
496
+ text-decoration: none;
497
+ }
498
+ /* A deletion with no text (illegible or not transcribed): a visible bracket, inline-block so
499
+ the strike-through does not cross it. */
500
+ :where(.uvalib-edition) :where(del.del:empty, .del:empty)::before {
501
+ content: '[deletion]';
502
+ position: static;
503
+ display: inline-block;
504
+ inline-size: auto;
505
+ block-size: auto;
506
+ margin: 0;
507
+ overflow: visible;
508
+ clip-path: none;
509
+ color: var(--uva-color-text-muted, #4b5563);
510
+ font-size: 0.85em;
511
+ }
512
+ :where(.uvalib-edition) :where(del.del:empty, .del:empty)::after {
513
+ content: none;
514
+ }
515
+ :where(.uvalib-edition) :where(.orig, .reg, .sic, .corr, abbr)[title] {
516
+ text-decoration: underline dotted;
517
+ text-decoration-thickness: 1px;
518
+ text-underline-offset: 0.2em;
519
+ cursor: help;
520
+ }
521
+ :where(
522
+ .uvalib-edition.uvalib-edition--readings,
523
+ .uvalib-edition:has(input.uvalib-edition__readings:checked, .uvalib-edition__readings :checked),
524
+ :is(input.uvalib-edition__readings:checked, .uvalib-edition__readings:has(:checked)) ~ .uvalib-edition,
525
+ :not(.uvalib-edition):has(input.uvalib-edition__readings:checked, .uvalib-edition__readings :checked) ~ .uvalib-edition
526
+ ) :where(.orig, .reg, .sic, .corr, abbr)[title]::after {
527
+ content: ' [' attr(title) ']';
528
+ color: var(--uva-color-text-muted, #4b5563);
529
+ font-size: 0.85em;
530
+ font-style: normal;
531
+ }
532
+ :where(.uvalib-edition) :where(.unclear)::after {
533
+ content: '[?]';
534
+ content: '[?]' / '(unclear)';
535
+ margin-inline-start: 0.1em;
536
+ color: var(--uva-color-text-muted, #4b5563);
537
+ font-size: 0.75em;
538
+ font-style: normal;
539
+ vertical-align: super;
540
+ line-height: 0;
541
+ }
542
+ :where(.uvalib-edition) :where(.gap) {
543
+ color: var(--uva-color-text-muted, #4b5563);
544
+ font-style: italic;
545
+ }
546
+ :where(.uvalib-edition) :where(.gap:empty)::before {
547
+ content: '[\2026]';
548
+ content: '[\2026]' / 'gap in the text';
549
+ font-style: normal;
550
+ }
551
+
552
+ /* Notes: superscript references, footnotes after a rule, notes in the flow as boxes. */
553
+ :where(.uvalib-edition) :where(sup.noteref, .noteref) {
554
+ padding: 0 0.1em;
555
+ font-size: 0.75em;
556
+ font-style: normal;
557
+ line-height: 0;
558
+ vertical-align: super;
559
+ }
560
+ :where(.uvalib-edition) :where(.noteref) :where(a) {
561
+ color: var(--uva-color-link, var(--uva-brand-blue, #232d4b));
562
+ text-underline-offset: 0.15em;
563
+ }
564
+ :where(.uvalib-edition) :where(.noteref) :where(a)::before {
565
+ content: 'Note ';
566
+ position: absolute;
567
+ inline-size: 1px;
568
+ block-size: 1px;
569
+ margin: -1px;
570
+ padding: 0;
571
+ overflow: hidden;
572
+ clip-path: inset(50%);
573
+ white-space: nowrap;
574
+ text-decoration: none;
575
+ }
576
+ :where(.uvalib-edition) :where(.footnotes) {
577
+ margin-block-start: 3rem;
578
+ padding-block-start: 1rem;
579
+ border-block-start: 1px solid var(--uva-color-control-border, var(--uva-grey, #808080));
580
+ font-size: 0.875em;
581
+ line-height: 1.5;
582
+ }
583
+ :where(.uvalib-edition) :where(aside.note, .note-foot, .note-end) {
584
+ display: flex;
585
+ gap: 0.6em;
586
+ margin: 0 0 0.75em;
587
+ }
588
+ :where(.uvalib-edition) :where(.note-n) {
589
+ flex: none;
590
+ min-inline-size: 1.75em;
591
+ font-variant-numeric: tabular-nums;
592
+ }
593
+ :where(.uvalib-edition) :where(a.note-n) {
594
+ display: inline-block;
595
+ min-block-size: 24px;
596
+ color: var(--uva-color-link, var(--uva-brand-blue, #232d4b));
597
+ }
598
+ :where(.uvalib-edition) :where(.note-body) > :where(:last-child) {
599
+ margin-block-end: 0;
600
+ }
601
+ :where(.uvalib-edition) :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) {
602
+ display: block;
603
+ margin: 0 0 1.25em;
604
+ padding: 0.75em 1em;
605
+ border-inline-start: 3px solid var(--uva-color-table-border, var(--uva-grey-100, #dadada));
606
+ background: var(--uva-color-table-stripe, var(--uva-grey-200, #f1f1f1));
607
+ font-size: 0.9em;
608
+ }
609
+ :where(.uvalib-edition) :where(span.note-inline) {
610
+ color: var(--uva-color-text-muted, #4b5563);
611
+ font-size: 0.9em;
612
+ }
613
+ :where(.uvalib-edition) :where(span.note-inline)::before {
614
+ content: '[';
615
+ }
616
+ :where(.uvalib-edition) :where(span.note-inline)::after {
617
+ content: ']';
618
+ }
619
+ :where(.uvalib-edition) :where(:focus-visible) {
620
+ outline: 3px solid var(--uva-color-focus, var(--uva-brand-orange, #e57200));
621
+ outline-offset: 2px;
622
+ }
623
+ :where(.uvalib-edition) :where(:target) {
624
+ scroll-margin-block-start: 2rem;
625
+ background: var(--uva-color-highlight, var(--uva-brand-orange-200, #ffc999));
626
+ color: var(--uva-color-on-highlight, var(--uva-grey-darkest, #2b2b2b));
627
+ }
628
+
629
+ /* The toggles: a label round a checkbox, drawn like base.css's outline toggle button
630
+ (filled while checked). Outside the edition too, so not under .uvalib-edition. */
631
+ :where(label):where(.uvalib-edition__lines, .uvalib-edition__readings) {
632
+ display: inline-flex;
633
+ align-items: center;
634
+ gap: 0.5rem;
635
+ box-sizing: border-box;
636
+ min-block-size: 44px;
637
+ margin: 0 0.5rem 1rem 0;
638
+ padding: 0.25rem 0.875rem;
639
+ border: 2px solid var(--uva-color-button-bg, var(--uva-blue-alt, #007bac));
640
+ border-radius: 0.25rem;
641
+ color: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac));
642
+ font-family: var(
643
+ --uva-font-family,
644
+ franklin-gothic-urw,
645
+ 'UVA Franklin Fallback',
646
+ Arial,
647
+ Helvetica,
648
+ sans-serif
649
+ );
650
+ font-size: 0.9rem;
651
+ line-height: 1.2;
652
+ cursor: pointer;
653
+ }
654
+ :where(label):where(.uvalib-edition__lines, .uvalib-edition__readings):hover {
655
+ border-color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679));
656
+ color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679));
657
+ }
658
+ :where(label):where(.uvalib-edition__lines, .uvalib-edition__readings):has(:checked) {
659
+ background: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac));
660
+ color: var(--uva-color-button-text, #ffffff);
661
+ }
662
+ :where(label):where(.uvalib-edition__lines, .uvalib-edition__readings):has(:checked):hover {
663
+ border-color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679));
664
+ background: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679));
665
+ }
666
+ :where(.uvalib-edition__lines, .uvalib-edition__readings) :where(input[type='checkbox']),
667
+ :where(input[type='checkbox']):where(.uvalib-edition__lines, .uvalib-edition__readings) {
668
+ inline-size: 1.125em;
669
+ block-size: 1.125em;
670
+ margin: 0;
671
+ accent-color: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac));
672
+ }
673
+ :where(label):where(.uvalib-edition__lines, .uvalib-edition__readings):has(:checked) :where(input[type='checkbox']) {
674
+ accent-color: var(--uva-color-button-text, #ffffff);
675
+ }
676
+ :where(label):where(.uvalib-edition__lines, .uvalib-edition__readings):has(:focus-visible),
677
+ :where(input):where(.uvalib-edition__lines, .uvalib-edition__readings):focus-visible {
678
+ outline: 3px solid var(--uva-color-focus, var(--uva-brand-orange, #e57200));
679
+ outline-offset: 2px;
680
+ }
681
+ :where(.uvalib-edition__lines, .uvalib-edition__readings) :where(input):focus-visible {
682
+ outline: none;
683
+ }
684
+
685
+ @media (forced-colors: active) {
686
+ :where(label):where(.uvalib-edition__lines, .uvalib-edition__readings) {
687
+ border-color: ButtonText;
688
+ color: ButtonText;
689
+ }
690
+ :where(label):where(.uvalib-edition__lines, .uvalib-edition__readings):has(:checked) {
691
+ forced-color-adjust: none;
692
+ border-color: Highlight;
693
+ background: Highlight;
694
+ color: HighlightText;
695
+ }
696
+ :where(.uvalib-edition) :where(.pb) :where(a) {
697
+ border-color: LinkText;
698
+ }
699
+ :where(.uvalib-edition) :where(.pb) :where(.pb-n),
700
+ :where(.uvalib-edition) :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) {
701
+ border-color: CanvasText;
702
+ }
703
+ :where(.uvalib-edition) :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) {
704
+ border: 1px solid CanvasText;
705
+ }
706
+ :where(.uvalib-edition) :where(:target) {
707
+ forced-color-adjust: none;
708
+ background: Mark;
709
+ color: MarkText;
710
+ }
711
+ }
712
+
713
+ @media print {
714
+ :where(.uvalib-edition) {
715
+ max-inline-size: none;
716
+ color: #000000;
717
+ font-size: 11pt;
718
+ line-height: 1.5;
719
+ }
720
+ :where(.uvalib-edition__lines, .uvalib-edition__readings) {
721
+ display: none;
722
+ }
723
+ :where(.uvalib-edition) :where(h1, h2, h3, h4, h5, h6, .head, .speaker) {
724
+ color: #000000;
725
+ break-after: avoid;
726
+ }
727
+ :where(.uvalib-edition) :where(p, div.p) {
728
+ orphans: 3;
729
+ widows: 3;
730
+ }
731
+ :where(.uvalib-edition) :where(.lg, aside.note, .figure, figure) {
732
+ break-inside: avoid;
733
+ }
734
+ :where(.uvalib-edition) :where(.pb, .stage, .gap, .docImprint, .docDate, .docEdition) {
735
+ color: #000000;
736
+ }
737
+ :where(.uvalib-edition) :where(.pb) :where(a, .pb-n) {
738
+ border-color: #000000;
739
+ color: #000000;
740
+ }
741
+ :where(.uvalib-edition) :where(a) {
742
+ color: #000000;
743
+ }
744
+ :where(.uvalib-edition) :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) {
745
+ border: 1px solid #000000;
746
+ background: none;
747
+ }
748
+ /* A printed page cannot be hovered: every reading is shown. */
749
+ :where(.uvalib-edition) :where(.orig, .reg, .sic, .corr, abbr)[title]::after {
750
+ content: ' [' attr(title) ']';
751
+ font-size: 0.85em;
752
+ font-style: normal;
753
+ }
754
+ :where(.uvalib-edition) :where(:target) {
755
+ background: none;
756
+ color: inherit;
757
+ }
758
+ }