@uvalib/web-components 1.11.1 → 1.12.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 (43) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +197 -57
  3. package/dist/base.css +56 -2
  4. package/dist/components/uvalib-audio/UvalibAudio.d.ts +186 -0
  5. package/dist/components/uvalib-audio/UvalibAudio.js +1154 -0
  6. package/dist/components/uvalib-audio/UvalibAudio.js.map +1 -0
  7. package/dist/components/uvalib-audio/uvalib-audio.d.ts +1 -0
  8. package/dist/components/uvalib-audio/uvalib-audio.js +4 -0
  9. package/dist/components/uvalib-audio/uvalib-audio.js.map +1 -0
  10. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.d.ts +25 -5
  11. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js +62 -9
  12. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js.map +1 -1
  13. package/dist/custom-elements.json +8487 -7188
  14. package/dist/edition-epub.css +567 -0
  15. package/dist/edition-print.css +51 -0
  16. package/dist/edition.css +61 -0
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.js +1 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/styles/base.js +55 -1
  21. package/dist/styles/base.js.map +1 -1
  22. package/dist/styles/edition.d.ts +6 -0
  23. package/dist/styles/edition.js +114 -20
  24. package/dist/styles/edition.js.map +1 -1
  25. package/dist-cdn/base.css +56 -2
  26. package/dist-cdn/chunks/{base-DtkA4Pgg.js → base-D_oPO5cX.js} +56 -2
  27. package/dist-cdn/chunks/{base-DtkA4Pgg.js.map → base-D_oPO5cX.js.map} +1 -1
  28. package/dist-cdn/custom-elements.json +8487 -7188
  29. package/dist-cdn/edition-epub.css +567 -0
  30. package/dist-cdn/edition-print.css +51 -0
  31. package/dist-cdn/edition.css +61 -0
  32. package/dist-cdn/manifest.json +6 -3
  33. package/dist-cdn/site-page.js +1 -1
  34. package/dist-cdn/site-style.js +1 -1
  35. package/dist-cdn/skills/uvalib-web-components/SKILL.md +35 -6
  36. package/dist-cdn/skills/uvalib-web-components/reference/components.md +53 -1
  37. package/dist-cdn/uvalib-audio.js +747 -0
  38. package/dist-cdn/uvalib-audio.js.map +1 -0
  39. package/dist-cdn/uvalib-pagefind-search.js +70 -44
  40. package/dist-cdn/uvalib-pagefind-search.js.map +1 -1
  41. package/package.json +7 -1
  42. package/skills/uvalib-web-components/SKILL.md +35 -6
  43. package/skills/uvalib-web-components/reference/components.md +53 -1
@@ -0,0 +1,567 @@
1
+ /* edition-epub.css: generated from @uvalib/web-components edition.css (src/styles/edition.ts) by scripts/emit-css.mjs. */
2
+ body, .uvalib-edition {
3
+ line-height: 1.7;
4
+ overflow-wrap: break-word;
5
+ -webkit-hyphens: auto;
6
+ hyphens: auto;
7
+ }
8
+ [hidden], .uvalib-edition[hidden] {
9
+ display: none !important;
10
+ }
11
+ section, .div {
12
+ margin: 0;
13
+ }
14
+ section.div + section.div, section.div + div.div, div.div + section.div, div.div + div.div {
15
+ margin-top: 2.5rem;
16
+ }
17
+ h1, h2, h3, h4, h5, h6 {
18
+ margin: 2rem 0 1rem;
19
+ color: #232d4b;
20
+ font-weight: 500;
21
+ line-height: 1.15;
22
+ }
23
+ h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
24
+ margin-top: 0;
25
+ }
26
+ h1 {
27
+ font-size: 2.488rem;
28
+ font-weight: 700;
29
+ }
30
+ h2 {
31
+ font-size: 2.074rem;
32
+ font-weight: 700;
33
+ }
34
+ h3 {
35
+ font-size: 1.728rem;
36
+ }
37
+ h4 {
38
+ font-size: 1.44rem;
39
+ }
40
+ h5 {
41
+ font-size: 1.2rem;
42
+ }
43
+ h6 {
44
+ font-size: 1rem;
45
+ }
46
+ .head:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6), .list-head:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
47
+ display: block;
48
+ margin: 1.5em 0 0.5em;
49
+ font-weight: 700;
50
+ line-height: 1.3;
51
+ }
52
+ .figure .head, .figure .list-head, figure .head, figure .list-head {
53
+ margin: 0;
54
+ }
55
+ p.head:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6), .figure p.head, figure p.head, p.list-head:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6), .figure p.list-head, figure p.list-head {
56
+ margin: 0 0 1em;
57
+ }
58
+ .head-sub, .head-alt, .head-desc {
59
+ font-size: 0.85em;
60
+ font-weight: 500;
61
+ }
62
+ p, div.p, div.ab {
63
+ margin: 0 0 1em;
64
+ }
65
+ .rend-italic, .rend-i, .rend-it {
66
+ font-style: italic;
67
+ }
68
+ .rend-roman, .rend-normal {
69
+ font-style: normal;
70
+ }
71
+ .rend-bold, .rend-b {
72
+ font-weight: 700;
73
+ }
74
+ .rend-smallcaps, .rend-small-caps, .rend-sc {
75
+ font-variant: small-caps;
76
+ }
77
+ .rend-underline, .rend-u {
78
+ text-decoration: underline;
79
+ }
80
+ .rend-sup, .rend-superscript {
81
+ font-size: 0.75em;
82
+ vertical-align: super;
83
+ line-height: 0;
84
+ }
85
+ .rend-sub, .rend-subscript {
86
+ font-size: 0.75em;
87
+ vertical-align: sub;
88
+ line-height: 0;
89
+ }
90
+ .rend-center {
91
+ text-align: center;
92
+ }
93
+ .rend-right {
94
+ text-align: right;
95
+ }
96
+ .rend-left {
97
+ text-align: left;
98
+ }
99
+ .rend-indent:not(.l) {
100
+ text-indent: 2em;
101
+ }
102
+ .rend-indent2:not(.l) {
103
+ text-indent: 4em;
104
+ }
105
+ .rend-indent3:not(.l) {
106
+ text-indent: 6em;
107
+ }
108
+ .rend-no-indent, .rend-noindent {
109
+ text-indent: 0;
110
+ }
111
+ .rend-hang {
112
+ padding-left: 2em;
113
+ text-indent: -2em;
114
+ }
115
+ span.rend-hang {
116
+ display: inline-block;
117
+ }
118
+ br.lb {
119
+ display: none;
120
+ }
121
+ span.lb:before {
122
+ content: ' ';
123
+ }
124
+ .lg {
125
+ margin: 0 0 1.25em;
126
+ }
127
+ .lg .lg {
128
+ margin-bottom: 1em;
129
+ }
130
+ .l {
131
+ display: block;
132
+ position: relative;
133
+ padding-left: 2em;
134
+ text-indent: -2em;
135
+ }
136
+ .l.rend-indent {
137
+ padding-left: 4em;
138
+ }
139
+ .l.rend-indent2 {
140
+ padding-left: 6em;
141
+ }
142
+ .l.rend-indent3 {
143
+ padding-left: 8em;
144
+ }
145
+ .l.rend-indent4 {
146
+ padding-left: 10em;
147
+ }
148
+ .l[data-n] {
149
+ padding-right: 2.5rem;
150
+ }
151
+ .l[data-n]:after {
152
+ content: attr(data-n);
153
+ position: absolute;
154
+ top: 0.35em;
155
+ right: 0;
156
+ color: #4b5563;
157
+ font-size: 0.75rem;
158
+ font-style: normal;
159
+ font-variant: normal;
160
+ font-weight: 400;
161
+ line-height: 1.5;
162
+ text-indent: 0;
163
+ font-variant-numeric: tabular-nums;
164
+ }
165
+ .sp {
166
+ margin: 0 0 1em;
167
+ }
168
+ .speaker {
169
+ margin: 0;
170
+ font-variant: small-caps;
171
+ font-weight: 700;
172
+ letter-spacing: 0.03em;
173
+ }
174
+ .sp > :not(.speaker):not(.stage) {
175
+ margin-left: 1.5em;
176
+ }
177
+ .stage {
178
+ color: #4b5563;
179
+ font-style: italic;
180
+ }
181
+ p.stage, div.stage {
182
+ margin: 0.25em 0 0.75em 1.5em;
183
+ }
184
+ .opener, .closer {
185
+ margin: 1em 0;
186
+ }
187
+ .dateline {
188
+ margin: 0 0 0.75em;
189
+ text-align: right;
190
+ }
191
+ .salute {
192
+ margin: 0 0 0.75em;
193
+ }
194
+ .closer {
195
+ text-align: right;
196
+ }
197
+ .signed {
198
+ margin: 0 0 0.75em;
199
+ text-align: right;
200
+ }
201
+ .postscript, .seg-postscript, .ps {
202
+ display: block;
203
+ margin: 1.5em 0 1em;
204
+ text-align: left;
205
+ }
206
+ blockquote, .epigraph, .cit, .quote, div.q {
207
+ margin: 0.5rem 1.5rem 1.5rem;
208
+ padding: 0 0.5rem;
209
+ border-left: 1px solid #e57200;
210
+ }
211
+ .epigraph {
212
+ font-style: italic;
213
+ }
214
+ .epigraph blockquote, .cit blockquote, .quote blockquote, div.q blockquote {
215
+ margin: 0;
216
+ padding: 0;
217
+ border: 0;
218
+ }
219
+ blockquote p:last-child, blockquote div.p:last-child, .epigraph p:last-child, .epigraph div.p:last-child, .cit p:last-child, .cit div.p:last-child {
220
+ margin-bottom: 0;
221
+ }
222
+ .bibl {
223
+ display: block;
224
+ font-style: normal;
225
+ }
226
+ .epigraph .bibl, .cit .bibl {
227
+ margin-top: 0.25em;
228
+ text-align: right;
229
+ }
230
+ .argument {
231
+ margin: 0 1.5em 1.5em;
232
+ font-style: italic;
233
+ }
234
+ .byline, .trailer, .dedication, .docAuthor {
235
+ margin: 1em 0;
236
+ text-align: center;
237
+ }
238
+ .dedication {
239
+ font-style: italic;
240
+ }
241
+ .titlepage, .titlePage {
242
+ margin: 0 0 2rem;
243
+ text-align: center;
244
+ }
245
+ .titlePart, .docTitle {
246
+ display: block;
247
+ margin: 0.5em 0;
248
+ color: #232d4b;
249
+ font-size: 1.44rem;
250
+ font-weight: 500;
251
+ line-height: 1.15;
252
+ }
253
+ .titlePart-sub, .titlePart-subtitle {
254
+ font-size: 1.2rem;
255
+ }
256
+ .docAuthor {
257
+ font-variant: small-caps;
258
+ }
259
+ .docImprint, .docDate, .docEdition {
260
+ margin: 1em 0;
261
+ color: #4b5563;
262
+ }
263
+ ul.list, ol.list {
264
+ margin: 0 0 1em;
265
+ padding-left: 1.5em;
266
+ }
267
+ .list-simple, .list-castlist, .list.list-simple, .list.list-castlist {
268
+ padding-left: 0;
269
+ list-style: none;
270
+ }
271
+ .list .label {
272
+ font-weight: 700;
273
+ }
274
+ .table-wrap {
275
+ margin: 0 0 1.25em;
276
+ overflow-x: auto;
277
+ }
278
+ table {
279
+ border-collapse: collapse;
280
+ font-size: 0.9em;
281
+ line-height: 1.4;
282
+ }
283
+ td, th {
284
+ padding: 0.25em 0.6em;
285
+ border-bottom: 1px solid #dadada;
286
+ text-align: left;
287
+ vertical-align: top;
288
+ }
289
+ .ornament, .textbreak {
290
+ display: block;
291
+ height: auto;
292
+ margin: 1.5em 0;
293
+ border: 0;
294
+ color: #4b5563;
295
+ text-align: center;
296
+ overflow: visible;
297
+ }
298
+ hr.ornament:before, hr.textbreak:before, .ornament:empty:before, .textbreak:empty:before {
299
+ content: '\2042';
300
+ font-size: 1.25em;
301
+ line-height: 1;
302
+ }
303
+ .pb {
304
+ color: #4b5563;
305
+ font-size: 0.8125rem;
306
+ font-style: normal;
307
+ font-variant: normal;
308
+ font-weight: 400;
309
+ letter-spacing: normal;
310
+ line-height: 1.2;
311
+ text-indent: 0;
312
+ }
313
+ .pb a, .pb .pb-n {
314
+ display: inline-block;
315
+ margin: 0 0.25em;
316
+ padding: 0.2em 0.5em;
317
+ border: 1px solid #dadada;
318
+ border-radius: 3px;
319
+ white-space: nowrap;
320
+ text-indent: 0;
321
+ }
322
+ .pb a {
323
+ color: #232d4b;
324
+ text-decoration: underline;
325
+ text-underline-offset: 0.15em;
326
+ }
327
+ section > .pb:first-child:not(:empty), .div > .pb:first-child:not(:empty) {
328
+ display: block;
329
+ margin-bottom: 0.5em;
330
+ text-align: right;
331
+ }
332
+ .figure, figure {
333
+ display: block;
334
+ margin: 1.5em 0;
335
+ text-align: center;
336
+ }
337
+ .figure img, figure img {
338
+ display: block;
339
+ max-width: 100%;
340
+ max-height: 80vh;
341
+ width: auto;
342
+ height: auto;
343
+ margin: 0 auto 0.5em;
344
+ }
345
+ .figure .head, .figure .figDesc, .figure figcaption, figure .head, figure .figDesc, figure figcaption {
346
+ display: block;
347
+ color: #4b5563;
348
+ font-size: 0.875em;
349
+ font-weight: 400;
350
+ line-height: 1.4;
351
+ }
352
+ ins.add, .add {
353
+ font-size: 0.85em;
354
+ text-decoration: none;
355
+ vertical-align: super;
356
+ line-height: 0;
357
+ }
358
+ ins.add:before, .add:before {
359
+ content: 'added: ';
360
+ position: absolute;
361
+ width: 1px;
362
+ height: 1px;
363
+ margin: -1px;
364
+ padding: 0;
365
+ overflow: hidden;
366
+ clip: rect(0 0 0 0);
367
+ clip-path: inset(50%);
368
+ white-space: nowrap;
369
+ text-decoration: none;
370
+ }
371
+ ins.add:after, .add:after {
372
+ content: ' (end added)';
373
+ position: absolute;
374
+ width: 1px;
375
+ height: 1px;
376
+ margin: -1px;
377
+ padding: 0;
378
+ overflow: hidden;
379
+ clip: rect(0 0 0 0);
380
+ clip-path: inset(50%);
381
+ white-space: nowrap;
382
+ text-decoration: none;
383
+ }
384
+ del.del, .del {
385
+ text-decoration: line-through;
386
+ }
387
+ del.del:before, .del:before {
388
+ content: 'deleted: ';
389
+ position: absolute;
390
+ width: 1px;
391
+ height: 1px;
392
+ margin: -1px;
393
+ padding: 0;
394
+ overflow: hidden;
395
+ clip: rect(0 0 0 0);
396
+ clip-path: inset(50%);
397
+ white-space: nowrap;
398
+ text-decoration: none;
399
+ }
400
+ del.del:after, .del:after {
401
+ content: ' (end deleted)';
402
+ position: absolute;
403
+ width: 1px;
404
+ height: 1px;
405
+ margin: -1px;
406
+ padding: 0;
407
+ overflow: hidden;
408
+ clip: rect(0 0 0 0);
409
+ clip-path: inset(50%);
410
+ white-space: nowrap;
411
+ text-decoration: none;
412
+ }
413
+ del.del:empty:before, .del:empty:before {
414
+ content: '[deletion]';
415
+ position: static;
416
+ display: inline-block;
417
+ width: auto;
418
+ height: auto;
419
+ margin: 0;
420
+ overflow: visible;
421
+ clip: auto;
422
+ clip-path: none;
423
+ color: #4b5563;
424
+ font-size: 0.85em;
425
+ }
426
+ del.del:empty:after, .del:empty:after {
427
+ content: none;
428
+ }
429
+ .unclear:after {
430
+ content: '[?]';
431
+ margin-left: 0.1em;
432
+ color: #4b5563;
433
+ font-size: 0.75em;
434
+ font-style: normal;
435
+ vertical-align: super;
436
+ line-height: 0;
437
+ }
438
+ .uvalib-edition--unclear-underline .unclear:not(:empty) {
439
+ text-decoration: underline dotted #4b5563;
440
+ text-decoration-thickness: 1px;
441
+ text-underline-offset: 0.2em;
442
+ }
443
+ .uvalib-edition--unclear-underline .unclear:not(:empty):after {
444
+ content: ' (unclear)';
445
+ position: absolute;
446
+ width: 1px;
447
+ height: 1px;
448
+ margin: -1px;
449
+ padding: 0;
450
+ overflow: hidden;
451
+ clip: rect(0 0 0 0);
452
+ clip-path: inset(50%);
453
+ white-space: nowrap;
454
+ text-decoration: none;
455
+ }
456
+ .gap {
457
+ color: #4b5563;
458
+ font-style: italic;
459
+ }
460
+ .gap:empty:before {
461
+ content: '[\2026]';
462
+ font-style: normal;
463
+ }
464
+ .epigraph i, .epigraph em, .epigraph cite, .epigraph dfn, .epigraph var, .epigraph .rend-italic, .epigraph .rend-i, .epigraph .rend-it, .epigraph .stage, .epigraph .gap {
465
+ font-style: normal;
466
+ }
467
+ .epigraph .bibl i, .epigraph .bibl em, .epigraph .bibl cite, .epigraph .bibl dfn, .epigraph .bibl var, .epigraph .bibl .rend-italic, .epigraph .bibl .rend-i, .epigraph .bibl .rend-it, .epigraph .bibl .stage, .epigraph .bibl .gap {
468
+ font-style: italic;
469
+ }
470
+ sup.noteref, .noteref {
471
+ padding: 0 0.1em;
472
+ font-size: 0.75em;
473
+ font-style: normal;
474
+ line-height: 0;
475
+ vertical-align: super;
476
+ }
477
+ .noteref a {
478
+ color: #232d4b;
479
+ text-underline-offset: 0.15em;
480
+ }
481
+ .noteref a:before {
482
+ content: 'Note ';
483
+ position: absolute;
484
+ width: 1px;
485
+ height: 1px;
486
+ margin: -1px;
487
+ padding: 0;
488
+ overflow: hidden;
489
+ clip: rect(0 0 0 0);
490
+ clip-path: inset(50%);
491
+ white-space: nowrap;
492
+ text-decoration: none;
493
+ }
494
+ .footnotes {
495
+ margin-top: 3rem;
496
+ padding-top: 1rem;
497
+ border-top: 1px solid #808080;
498
+ font-size: 0.875em;
499
+ line-height: 1.5;
500
+ }
501
+ aside.note, .note-foot, .note-end {
502
+ display: flex;
503
+ margin: 0 0 0.75em;
504
+ }
505
+ aside.note .note-n, .note-foot .note-n, .note-end .note-n {
506
+ margin-right: 0.6em;
507
+ }
508
+ .note-n {
509
+ flex: none;
510
+ min-width: 1.75em;
511
+ font-variant-numeric: tabular-nums;
512
+ }
513
+ a.note-n {
514
+ display: inline-block;
515
+ min-height: 24px;
516
+ color: #232d4b;
517
+ }
518
+ .note-body > :last-child {
519
+ margin-bottom: 0;
520
+ }
521
+ aside.note-inline, aside.note:not(.note-foot):not(.note-end) {
522
+ display: block;
523
+ margin: 0 0 1.25em;
524
+ padding: 0.75em 1em;
525
+ border-left: 3px solid #dadada;
526
+ font-size: 0.9em;
527
+ }
528
+ aside.note-inline > .note-n, aside.note:not(.note-foot):not(.note-end) > .note-n {
529
+ float: left;
530
+ margin-right: 0.6em;
531
+ }
532
+ aside.note-inline > .note-n + .note-body, aside.note:not(.note-foot):not(.note-end) > .note-n + .note-body {
533
+ display: flow-root;
534
+ }
535
+ .l > aside.note:not(.note-foot):not(.note-end) {
536
+ margin-top: 0.25em;
537
+ margin-bottom: 0.75em;
538
+ text-indent: 0;
539
+ }
540
+ .l > aside.note:not(.note-foot):not(.note-end) {
541
+ margin-left: -2.2222em;
542
+ }
543
+ .l.rend-indent > aside.note:not(.note-foot):not(.note-end) {
544
+ margin-left: -4.4444em;
545
+ }
546
+ .l.rend-indent2 > aside.note:not(.note-foot):not(.note-end) {
547
+ margin-left: -6.6667em;
548
+ }
549
+ .l.rend-indent3 > aside.note:not(.note-foot):not(.note-end) {
550
+ margin-left: -8.8889em;
551
+ }
552
+ .l.rend-indent4 > aside.note:not(.note-foot):not(.note-end) {
553
+ margin-left: -11.1111em;
554
+ }
555
+ .l[data-n] > aside.note:not(.note-foot):not(.note-end) {
556
+ margin-right: -2.5rem;
557
+ }
558
+ span.note-inline {
559
+ color: #4b5563;
560
+ font-size: 0.9em;
561
+ }
562
+ span.note-inline:before {
563
+ content: '[';
564
+ }
565
+ span.note-inline:after {
566
+ content: ']';
567
+ }
@@ -0,0 +1,51 @@
1
+ /* edition-print.css: generated from @uvalib/web-components edition.css (src/styles/edition.ts) by scripts/emit-css.mjs. */
2
+ @page {
3
+ margin: 2cm 2.2cm 2.4cm;
4
+ @bottom-center {
5
+ content: counter(page);
6
+ color: #4b5563;
7
+ font-size: 9pt;
8
+ }
9
+ }
10
+ @page :first {
11
+ @bottom-center {
12
+ content: none;
13
+ }
14
+ }
15
+ @media print {
16
+ body, .uvalib-edition {
17
+ max-width: none !important;
18
+ color: #000000 !important;
19
+ font-size: 11pt !important;
20
+ line-height: 1.5 !important;
21
+ }
22
+ h1, h2, h3, h4, h5, h6, .head, .speaker {
23
+ color: #000000 !important;
24
+ break-after: avoid !important;
25
+ }
26
+ p, div.p {
27
+ orphans: 3 !important;
28
+ widows: 3 !important;
29
+ }
30
+ .lg, aside.note, .figure, figure {
31
+ break-inside: avoid !important;
32
+ }
33
+ .pb, .stage, .gap, .docImprint, .docDate, .docEdition {
34
+ color: #000000 !important;
35
+ }
36
+ .pb a, .pb .pb-n {
37
+ border-color: #000000 !important;
38
+ color: #000000 !important;
39
+ }
40
+ a {
41
+ color: #000000 !important;
42
+ }
43
+ aside.note-inline, aside.note:not(.note-foot):not(.note-end) {
44
+ border: 1px solid #000000 !important;
45
+ }
46
+ .orig[title]:after, .reg[title]:after, .sic[title]:after, .corr[title]:after, abbr[title]:after {
47
+ content: ' [' attr(title) ']' !important;
48
+ font-size: 0.85em !important;
49
+ font-style: normal !important;
50
+ }
51
+ }
package/dist/edition.css CHANGED
@@ -276,6 +276,9 @@
276
276
  margin: 0.5rem 1.5rem 1.5rem;
277
277
  padding: 0 0.5rem;
278
278
  border-inline-start: 1px solid var(--uva-brand-orange, #e57200);
279
+ }
280
+ /* Quotations upright (italics inside them show); epigraphs italic. */
281
+ :where(.uvalib-edition) :where(.epigraph) {
279
282
  font-style: italic;
280
283
  }
281
284
  :where(.uvalib-edition) :where(.epigraph, .cit, .quote, div.q) :where(blockquote) {
@@ -539,6 +542,24 @@
539
542
  vertical-align: super;
540
543
  line-height: 0;
541
544
  }
545
+ /* Opt-in: a dotted underline and hidden "(unclear)"; an empty one keeps [?]. */
546
+ :where(.uvalib-edition--unclear-underline .uvalib-edition, .uvalib-edition.uvalib-edition--unclear-underline) :where(.unclear:not(:empty)) {
547
+ text-decoration: underline dotted var(--uva-color-text-muted, #4b5563);
548
+ text-decoration-thickness: 1px;
549
+ text-underline-offset: 0.2em;
550
+ }
551
+ :where(.uvalib-edition--unclear-underline .uvalib-edition, .uvalib-edition.uvalib-edition--unclear-underline) :where(.unclear:not(:empty))::after {
552
+ content: ' (unclear)';
553
+ position: absolute;
554
+ inline-size: 1px;
555
+ block-size: 1px;
556
+ margin: -1px;
557
+ padding: 0;
558
+ overflow: hidden;
559
+ clip-path: inset(50%);
560
+ white-space: nowrap;
561
+ text-decoration: none;
562
+ }
542
563
  :where(.uvalib-edition) :where(.gap) {
543
564
  color: var(--uva-color-text-muted, #4b5563);
544
565
  font-style: italic;
@@ -549,6 +570,14 @@
549
570
  font-style: normal;
550
571
  }
551
572
 
573
+ /* Italics in an epigraph upright (after .stage, .gap); in its source, italic. */
574
+ :where(.uvalib-edition) :where(.epigraph) :where(i, em, cite, dfn, var, .rend-italic, .rend-i, .rend-it, .stage, .gap) {
575
+ font-style: normal;
576
+ }
577
+ :where(.uvalib-edition) :where(.epigraph) :where(.bibl) :where(i, em, cite, dfn, var, .rend-italic, .rend-i, .rend-it, .stage, .gap) {
578
+ font-style: italic;
579
+ }
580
+
552
581
  /* Notes: superscript references, footnotes after a rule, notes in the flow as boxes. */
553
582
  :where(.uvalib-edition) :where(sup.noteref, .noteref) {
554
583
  padding: 0 0.1em;
@@ -606,6 +635,38 @@
606
635
  background: var(--uva-color-table-stripe, var(--uva-grey-200, #f1f1f1));
607
636
  font-size: 0.9em;
608
637
  }
638
+ /* The number beside the text (float: loose text stays one paragraph). */
639
+ :where(.uvalib-edition) :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) > :where(.note-n) {
640
+ float: inline-start;
641
+ margin-inline-end: 0.6em;
642
+ }
643
+ :where(.uvalib-edition) :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) > :where(.note-n + .note-body) {
644
+ display: flow-root;
645
+ }
646
+ /* A note in a verse line: flush with the stanza, the line's hanging indent undone. */
647
+ :where(.uvalib-edition) :where(.l) > :where(aside.note:not(.note-foot, .note-end)) {
648
+ margin-block-start: 0.25em;
649
+ margin-block-end: 0.75em;
650
+ text-indent: 0;
651
+ }
652
+ :where(.uvalib-edition) :where(.l) > :where(aside.note:not(.note-foot, .note-end)) {
653
+ margin-inline-start: -2.2222em;
654
+ }
655
+ :where(.uvalib-edition) :where(.l.rend-indent) > :where(aside.note:not(.note-foot, .note-end)) {
656
+ margin-inline-start: -4.4444em;
657
+ }
658
+ :where(.uvalib-edition) :where(.l.rend-indent2) > :where(aside.note:not(.note-foot, .note-end)) {
659
+ margin-inline-start: -6.6667em;
660
+ }
661
+ :where(.uvalib-edition) :where(.l.rend-indent3) > :where(aside.note:not(.note-foot, .note-end)) {
662
+ margin-inline-start: -8.8889em;
663
+ }
664
+ :where(.uvalib-edition) :where(.l.rend-indent4) > :where(aside.note:not(.note-foot, .note-end)) {
665
+ margin-inline-start: -11.1111em;
666
+ }
667
+ :where(.uvalib-edition) :where(.lg:has(.l[data-n])) :where(.l) > :where(aside.note:not(.note-foot, .note-end)) {
668
+ margin-inline-end: -2.5rem;
669
+ }
609
670
  :where(.uvalib-edition) :where(span.note-inline) {
610
671
  color: var(--uva-color-text-muted, #4b5563);
611
672
  font-size: 0.9em;
package/dist/index.d.ts CHANGED
@@ -69,3 +69,4 @@ export { UvalibCitation } from './components/uvalib-citation/UvalibCitation.js';
69
69
  export type { CitationItem } from './components/uvalib-citation/UvalibCitation.js';
70
70
  export { UvalibListFilter } from './components/uvalib-list-filter/UvalibListFilter.js';
71
71
  export type { ListFilterChangeDetail } from './components/uvalib-list-filter/UvalibListFilter.js';
72
+ export { UvalibAudio } from './components/uvalib-audio/UvalibAudio.js';
package/dist/index.js CHANGED
@@ -43,4 +43,5 @@ export { UvalibBackToTop } from './components/uvalib-back-to-top/UvalibBackToTop
43
43
  export { UvalibDialog } from './components/uvalib-dialog/UvalibDialog.js';
44
44
  export { UvalibCitation } from './components/uvalib-citation/UvalibCitation.js';
45
45
  export { UvalibListFilter } from './components/uvalib-list-filter/UvalibListFilter.js';
46
+ export { UvalibAudio } from './components/uvalib-audio/UvalibAudio.js';
46
47
  //# sourceMappingURL=index.js.map