@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.
- package/CHANGELOG.md +36 -0
- package/README.md +197 -57
- package/dist/base.css +56 -2
- package/dist/components/uvalib-audio/UvalibAudio.d.ts +186 -0
- package/dist/components/uvalib-audio/UvalibAudio.js +1154 -0
- package/dist/components/uvalib-audio/UvalibAudio.js.map +1 -0
- package/dist/components/uvalib-audio/uvalib-audio.d.ts +1 -0
- package/dist/components/uvalib-audio/uvalib-audio.js +4 -0
- package/dist/components/uvalib-audio/uvalib-audio.js.map +1 -0
- package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.d.ts +25 -5
- package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js +62 -9
- package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js.map +1 -1
- package/dist/custom-elements.json +8487 -7188
- package/dist/edition-epub.css +567 -0
- package/dist/edition-print.css +51 -0
- package/dist/edition.css +61 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/base.js +55 -1
- package/dist/styles/base.js.map +1 -1
- package/dist/styles/edition.d.ts +6 -0
- package/dist/styles/edition.js +114 -20
- package/dist/styles/edition.js.map +1 -1
- package/dist-cdn/base.css +56 -2
- package/dist-cdn/chunks/{base-DtkA4Pgg.js → base-D_oPO5cX.js} +56 -2
- package/dist-cdn/chunks/{base-DtkA4Pgg.js.map → base-D_oPO5cX.js.map} +1 -1
- package/dist-cdn/custom-elements.json +8487 -7188
- package/dist-cdn/edition-epub.css +567 -0
- package/dist-cdn/edition-print.css +51 -0
- package/dist-cdn/edition.css +61 -0
- package/dist-cdn/manifest.json +6 -3
- package/dist-cdn/site-page.js +1 -1
- package/dist-cdn/site-style.js +1 -1
- package/dist-cdn/skills/uvalib-web-components/SKILL.md +35 -6
- package/dist-cdn/skills/uvalib-web-components/reference/components.md +53 -1
- package/dist-cdn/uvalib-audio.js +747 -0
- package/dist-cdn/uvalib-audio.js.map +1 -0
- package/dist-cdn/uvalib-pagefind-search.js +70 -44
- package/dist-cdn/uvalib-pagefind-search.js.map +1 -1
- package/package.json +7 -1
- package/skills/uvalib-web-components/SKILL.md +35 -6
- package/skills/uvalib-web-components/reference/components.md +53 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,OAAO,EACL,QAAQ,EACR,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAExE,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AAEvF,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uDAAuD,CAAC;AAE7F,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAM1E,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAC;AAEhG,OAAO,EAAE,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AAEzF,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAA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,MAAM,oDAAoD,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAO1E,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAEhF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAEvF,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC"}
|
package/dist/styles/base.js
CHANGED
|
@@ -226,7 +226,8 @@ export const base = css `
|
|
|
226
226
|
uvalib-map,
|
|
227
227
|
uvalib-filter-drawer,
|
|
228
228
|
uvalib-filter,
|
|
229
|
-
uvalib-list-filter
|
|
229
|
+
uvalib-list-filter,
|
|
230
|
+
uvalib-audio
|
|
230
231
|
):not(:defined)[hidden],
|
|
231
232
|
:where(uvalib-combobox, uvalib-image-regions):not(:defined) > [hidden] {
|
|
232
233
|
display: none;
|
|
@@ -344,6 +345,59 @@ export const base = css `
|
|
|
344
345
|
uvalib-list-filter[hide-label][results-count]:not(:defined) {
|
|
345
346
|
min-block-size: 44px;
|
|
346
347
|
}
|
|
348
|
+
/* A recording by chapter (<uvalib-audio>): its list of links shows as it will once
|
|
349
|
+
upgraded (each row 44px plus padding, a rule below, the title where it will sit after the
|
|
350
|
+
Play button, a second 44px line for an item with more links or a download), and the
|
|
351
|
+
player's height is held above it: one row of controls from 44rem of its own width, two
|
|
352
|
+
from 26rem, three below (and the download line). Keep in step with UvalibAudio's rules. */
|
|
353
|
+
uvalib-audio:not(:defined) {
|
|
354
|
+
display: block;
|
|
355
|
+
container-type: inline-size;
|
|
356
|
+
font-size: 1rem;
|
|
357
|
+
line-height: 1.5;
|
|
358
|
+
}
|
|
359
|
+
uvalib-audio:not(:defined)::before {
|
|
360
|
+
content: '';
|
|
361
|
+
display: block;
|
|
362
|
+
block-size: calc(1.5rem + 2px + 44px + 0.5rem + 44px);
|
|
363
|
+
margin-block-end: 1rem;
|
|
364
|
+
}
|
|
365
|
+
uvalib-audio[download-href]:not([download-href='']):not(:defined)::before {
|
|
366
|
+
margin-block-end: calc(1rem + 44px + 1rem);
|
|
367
|
+
}
|
|
368
|
+
@container (width < 44rem) {
|
|
369
|
+
uvalib-audio:not(:defined)::before {
|
|
370
|
+
block-size: calc(1.5rem + 2px + 44px + 0.5rem + 2 * 44px + 0.5rem);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
@container (width < 26rem) {
|
|
374
|
+
uvalib-audio:not(:defined)::before {
|
|
375
|
+
block-size: calc(1.5rem + 2px + 44px + 0.5rem + 3 * 44px + 2 * 0.5rem);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
uvalib-audio:not(:defined) > :is(ol, ul) {
|
|
379
|
+
margin: 0;
|
|
380
|
+
padding: 0;
|
|
381
|
+
list-style: none;
|
|
382
|
+
}
|
|
383
|
+
uvalib-audio:not(:defined) > :is(ol, ul) > li {
|
|
384
|
+
box-sizing: border-box;
|
|
385
|
+
min-block-size: calc(44px + 0.5rem + 1px);
|
|
386
|
+
margin: 0;
|
|
387
|
+
padding: 0.25rem 0 0.25rem 8px;
|
|
388
|
+
border-block-end: 1px solid var(--uva-color-table-border, #dadada);
|
|
389
|
+
align-content: center;
|
|
390
|
+
}
|
|
391
|
+
uvalib-audio:not(:defined) > :is(ol, ul) > li:is([data-download], :has(a[href] ~ a[href])) {
|
|
392
|
+
min-block-size: calc(2 * 44px + 0.5rem + 1px);
|
|
393
|
+
}
|
|
394
|
+
/* Room for the duration the upgraded row shows at its end (about “12:31”). */
|
|
395
|
+
uvalib-audio:not(:defined) > :is(ol, ul) > li:has(> a[data-duration]) {
|
|
396
|
+
padding-inline-end: calc(0.75rem + 2.75em);
|
|
397
|
+
}
|
|
398
|
+
uvalib-audio:not(:defined) > :is(ol, ul) > li > a:first-child {
|
|
399
|
+
margin-inline-start: calc(0.5rem + 5rem + 0.75rem);
|
|
400
|
+
}
|
|
347
401
|
/* Image regions: the image at its own width and the list beside it (or under it), the
|
|
348
402
|
layout the element keeps once it upgrades, so the image does not move. */
|
|
349
403
|
uvalib-image-regions:not(:defined) {
|
package/dist/styles/base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/styles/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AACpE,MAAM,cAAc,GAAG,SAAS,CAC9B,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;IACxB,MAAM,KAAK,GAAG;QACZ,+BAA+B,CAAC,8EAA8E;QAC9G,uDAAuD,CAAC,kBAAkB;KAC3E,CAAC;IACF,OAAO,CACL,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,uBAAuB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,uBAAuB;QAC3F,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,uBAAuB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,wDAAwD,CACrI,CAAC;AACJ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CACd,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,GAAG,GAAG,oBAAoB,CAAC;AACjC,MAAM,OAAO,GAAG,uCAAuC,CAAC;AACxD,MAAM,IAAI,GAAG,sBAAsB,CAAC;AACpC,MAAM,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CA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CAAC,EAAE,EAAE,CACJ,uBAAuB,QAAQ,CAAC,CAAC,CAAC,2BAA2B,CAAC,UAAU,GAAG,KAAK,IAAI,sCAAsC,CAC7H;KACA,IAAI,CAAC,IAAI,CAAC;;MAET,KAAK,QAAQ,GAAG;;;MAGhB,KAAK,QAAQ,GAAG;;;;IAIlB,IAAI;;;;;;IAMJ,IAAI;;;;;;IAMJ,IAAI;;;IAGJ,IAAI;;;;;;;;;;;;IAYJ,IAAI;CACP,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,qCAAqC,CAAC;AAEjE,0FAA0F;AAC1F,EAAE;AACF,wFAAwF;AACxF,8FAA8F;AAC9F,wFAAwF;AACxF,wFAAwF;AACxF,4CAA4C;AAC5C,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuEnB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+EV,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuRjB,CAAC"}
|
package/dist/styles/edition.d.ts
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
1
|
export declare const edition: import("lit").CSSResult;
|
|
2
|
+
/**
|
|
3
|
+
* The printed page for edition-print.css (a PDF printed from the same HTML as an EPUB; not in
|
|
4
|
+
* edition.css, whose print rules leave the page to the browser): margins, and the page number
|
|
5
|
+
* at the foot of every page but the first (a title page).
|
|
6
|
+
*/
|
|
7
|
+
export declare const editionPage: import("lit").CSSResult;
|
package/dist/styles/edition.js
CHANGED
|
@@ -11,13 +11,17 @@ import { css, unsafeCSS } from 'lit';
|
|
|
11
11
|
// The look is the library's, not a facsimile's: Franklin Gothic (`--uva-font-family`; serif
|
|
12
12
|
// body text is in the UX team's deprecated list), a readable measure (70ch) and generous line
|
|
13
13
|
// height, the theme's heading colour and scale, the theme's blockquote (1px orange start
|
|
14
|
-
// border
|
|
15
|
-
//
|
|
16
|
-
//
|
|
14
|
+
// border) for epigraphs and quotations, a centred muted ⁂ for ornaments, footnotes after a
|
|
15
|
+
// rule in smaller text, and page breaks as small muted labels (links to page images in the
|
|
16
|
+
// link colour, underlined, with the library focus ring). Quotations are upright, unlike the
|
|
17
|
+
// theme's italic blockquote: a quoted document can run for pages and its italics (titles,
|
|
18
|
+
// emphasis) must show; epigraphs keep the italic, with italics inside them upright.
|
|
17
19
|
//
|
|
18
20
|
// Accessibility: editorial marks never rest on colour or strike-through alone. Additions and
|
|
19
21
|
// deletions carry visually hidden generated text ("added:", "deleted:"), which screen readers
|
|
20
|
-
// announce; unclear text gets a visible [?] announced as "unclear"
|
|
22
|
+
// announce; unclear text gets a visible [?] announced as "unclear" (or, with the modifier
|
|
23
|
+
// .uvalib-edition--unclear-underline on the edition or an ancestor such as an EPUB's body, a
|
|
24
|
+
// muted dotted underline and hidden "(unclear)"); an empty gap or deletion
|
|
21
25
|
// shows a visible bracket. Regularised and corrected readings (`title` on .orig, .reg, .sic,
|
|
22
26
|
// abbr) get a dotted underline; hover alone cannot reach a title, so a CSS-only toggle
|
|
23
27
|
// (.uvalib-edition__readings) and print show them inline. Line numbers are visual only
|
|
@@ -60,6 +64,48 @@ const SR_ONLY = unsafeCSS(`position: absolute;
|
|
|
60
64
|
clip-path: inset(50%);
|
|
61
65
|
white-space: nowrap;
|
|
62
66
|
text-decoration: none;`);
|
|
67
|
+
/**
|
|
68
|
+
* Verse lines' hanging indent (em of the line), by class: one table for the lines and for the
|
|
69
|
+
* notes inside them, which cancel it (issue #43), so the two can't drift. A note inside a line
|
|
70
|
+
* (a TEI note place="right" or "margin" in an l) resets text-indent and takes the line's
|
|
71
|
+
* padding back as a negative margin in its own em (smaller text: the line's em / NOTE_SIZE),
|
|
72
|
+
* and in a stanza with line numbers the number room too, so its box is flush with the stanza
|
|
73
|
+
* and the same width in every line. Plain numbers, not calc() or var(): edition-epub.css
|
|
74
|
+
* carries them as they are. Every in-flow note's number floats beside its text (not flex:
|
|
75
|
+
* text loose in a note stays one paragraph); where flow-root is unknown, the text wraps under
|
|
76
|
+
* the number.
|
|
77
|
+
*/
|
|
78
|
+
const LINE_INDENTS = [
|
|
79
|
+
['', 2],
|
|
80
|
+
['.rend-indent', 4],
|
|
81
|
+
['.rend-indent2', 6],
|
|
82
|
+
['.rend-indent3', 8],
|
|
83
|
+
['.rend-indent4', 10],
|
|
84
|
+
];
|
|
85
|
+
/** An in-flow note's font size (em of its parent). */
|
|
86
|
+
const NOTE_SIZE = 0.9;
|
|
87
|
+
/** Room for line numbers at the end of each line of a numbered stanza. */
|
|
88
|
+
const LINE_NUMBER_ROOM = 2.5;
|
|
89
|
+
/** A length in the line's em as the same length in the note's em (no calc(): EPUB). */
|
|
90
|
+
const inNoteEm = (em) => `${+(em / NOTE_SIZE).toFixed(4)}em`;
|
|
91
|
+
const lineIndents = unsafeCSS(LINE_INDENTS.slice(1)
|
|
92
|
+
.map(([c, em]) => `:where(.uvalib-edition) :where(.l${c}) {\n padding-inline-start: ${em}em;\n }`)
|
|
93
|
+
.join('\n '));
|
|
94
|
+
const noteInLineIndents = unsafeCSS(LINE_INDENTS.map(([c, em]) => `:where(.uvalib-edition) :where(.l${c}) > :where(aside.note:not(.note-foot, .note-end)) {\n margin-inline-start: -${inNoteEm(em)};\n }`).join('\n '));
|
|
95
|
+
/**
|
|
96
|
+
* What is set in italics (the browser's and this sheet's), turned upright inside an epigraph
|
|
97
|
+
* (issue #44): quotations are upright, set apart by the rule and the indent alone, since a
|
|
98
|
+
* quoted document can run for pages and its italics (titles, emphasis) must show; an epigraph,
|
|
99
|
+
* short front matter, keeps the theme's italic; in its source (.bibl) italics are italic again.
|
|
100
|
+
*/
|
|
101
|
+
const ITALIC = unsafeCSS('i, em, cite, dfn, var, .rend-italic, .rend-i, .rend-it, .stage, .gap');
|
|
102
|
+
/**
|
|
103
|
+
* Turn on the dotted underline for unclear text (issue #45): the class on the edition or an
|
|
104
|
+
* ancestor (`<body>` in an EPUB). The [?] gives way to a muted dotted underline and the words
|
|
105
|
+
* "(unclear)" in visually hidden generated text, as .add and .del do it (a reading system that
|
|
106
|
+
* cannot clip shows them in the text); an empty .unclear (nothing to underline) keeps its [?].
|
|
107
|
+
*/
|
|
108
|
+
const UNCLEAR_UNDERLINE = unsafeCSS(':where(.uvalib-edition--unclear-underline .uvalib-edition, .uvalib-edition.uvalib-edition--unclear-underline)');
|
|
63
109
|
const TEXT = unsafeCSS('var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b))');
|
|
64
110
|
const MUTED = unsafeCSS('var(--uva-color-text-muted, #4b5563)');
|
|
65
111
|
const LINK = unsafeCSS('var(--uva-color-link, var(--uva-brand-blue, #232d4b))');
|
|
@@ -224,23 +270,12 @@ export const edition = css `
|
|
|
224
270
|
${E} :where(.l) {
|
|
225
271
|
display: block;
|
|
226
272
|
position: relative;
|
|
227
|
-
padding-inline-start:
|
|
228
|
-
text-indent:
|
|
229
|
-
}
|
|
230
|
-
${E} :where(.l.rend-indent) {
|
|
231
|
-
padding-inline-start: 4em;
|
|
232
|
-
}
|
|
233
|
-
${E} :where(.l.rend-indent2) {
|
|
234
|
-
padding-inline-start: 6em;
|
|
235
|
-
}
|
|
236
|
-
${E} :where(.l.rend-indent3) {
|
|
237
|
-
padding-inline-start: 8em;
|
|
238
|
-
}
|
|
239
|
-
${E} :where(.l.rend-indent4) {
|
|
240
|
-
padding-inline-start: 10em;
|
|
273
|
+
padding-inline-start: ${unsafeCSS(LINE_INDENTS[0][1])}em;
|
|
274
|
+
text-indent: -${unsafeCSS(LINE_INDENTS[0][1])}em;
|
|
241
275
|
}
|
|
276
|
+
${lineIndents}
|
|
242
277
|
${E} :where(.lg:has(.l[data-n])) :where(.l) {
|
|
243
|
-
padding-inline-end:
|
|
278
|
+
padding-inline-end: ${unsafeCSS(LINE_NUMBER_ROOM)}rem;
|
|
244
279
|
}
|
|
245
280
|
${E} :where(.l[data-n])::after {
|
|
246
281
|
content: attr(data-n);
|
|
@@ -308,6 +343,9 @@ export const edition = css `
|
|
|
308
343
|
margin: 0.5rem 1.5rem 1.5rem;
|
|
309
344
|
padding: 0 0.5rem;
|
|
310
345
|
border-inline-start: 1px solid var(--uva-brand-orange, #e57200);
|
|
346
|
+
}
|
|
347
|
+
/* Quotations upright (italics inside them show); epigraphs italic. */
|
|
348
|
+
${E} :where(.epigraph) {
|
|
311
349
|
font-style: italic;
|
|
312
350
|
}
|
|
313
351
|
${E} :where(.epigraph, .cit, .quote, div.q) :where(blockquote) {
|
|
@@ -534,6 +572,16 @@ export const edition = css `
|
|
|
534
572
|
vertical-align: super;
|
|
535
573
|
line-height: 0;
|
|
536
574
|
}
|
|
575
|
+
/* Opt-in: a dotted underline and hidden "(unclear)"; an empty one keeps [?]. */
|
|
576
|
+
${UNCLEAR_UNDERLINE} :where(.unclear:not(:empty)) {
|
|
577
|
+
text-decoration: underline dotted ${MUTED};
|
|
578
|
+
text-decoration-thickness: 1px;
|
|
579
|
+
text-underline-offset: 0.2em;
|
|
580
|
+
}
|
|
581
|
+
${UNCLEAR_UNDERLINE} :where(.unclear:not(:empty))::after {
|
|
582
|
+
content: ' (unclear)';
|
|
583
|
+
${SR_ONLY}
|
|
584
|
+
}
|
|
537
585
|
${E} :where(.gap) {
|
|
538
586
|
color: ${MUTED};
|
|
539
587
|
font-style: italic;
|
|
@@ -544,6 +592,14 @@ export const edition = css `
|
|
|
544
592
|
font-style: normal;
|
|
545
593
|
}
|
|
546
594
|
|
|
595
|
+
/* Italics in an epigraph upright (after .stage, .gap); in its source, italic. */
|
|
596
|
+
${E} :where(.epigraph) :where(${ITALIC}) {
|
|
597
|
+
font-style: normal;
|
|
598
|
+
}
|
|
599
|
+
${E} :where(.epigraph) :where(.bibl) :where(${ITALIC}) {
|
|
600
|
+
font-style: italic;
|
|
601
|
+
}
|
|
602
|
+
|
|
547
603
|
/* Notes: superscript references, footnotes after a rule, notes in the flow as boxes. */
|
|
548
604
|
${E} :where(sup.noteref, .noteref) {
|
|
549
605
|
padding: 0 0.1em;
|
|
@@ -591,7 +647,25 @@ export const edition = css `
|
|
|
591
647
|
padding: 0.75em 1em;
|
|
592
648
|
border-inline-start: 3px solid ${RULE};
|
|
593
649
|
background: var(--uva-color-table-stripe, var(--uva-grey-200, #f1f1f1));
|
|
594
|
-
font-size:
|
|
650
|
+
font-size: ${unsafeCSS(NOTE_SIZE)}em;
|
|
651
|
+
}
|
|
652
|
+
/* The number beside the text (float: loose text stays one paragraph). */
|
|
653
|
+
${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) > :where(.note-n) {
|
|
654
|
+
float: inline-start;
|
|
655
|
+
margin-inline-end: 0.6em;
|
|
656
|
+
}
|
|
657
|
+
${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) > :where(.note-n + .note-body) {
|
|
658
|
+
display: flow-root;
|
|
659
|
+
}
|
|
660
|
+
/* A note in a verse line: flush with the stanza, the line's hanging indent undone. */
|
|
661
|
+
${E} :where(.l) > :where(aside.note:not(.note-foot, .note-end)) {
|
|
662
|
+
margin-block-start: 0.25em;
|
|
663
|
+
margin-block-end: 0.75em;
|
|
664
|
+
text-indent: 0;
|
|
665
|
+
}
|
|
666
|
+
${noteInLineIndents}
|
|
667
|
+
${E} :where(.lg:has(.l[data-n])) :where(.l) > :where(aside.note:not(.note-foot, .note-end)) {
|
|
668
|
+
margin-inline-end: -${unsafeCSS(LINE_NUMBER_ROOM)}rem;
|
|
595
669
|
}
|
|
596
670
|
${E} :where(span.note-inline) {
|
|
597
671
|
color: ${MUTED};
|
|
@@ -744,4 +818,24 @@ export const edition = css `
|
|
|
744
818
|
}
|
|
745
819
|
}
|
|
746
820
|
`;
|
|
821
|
+
/**
|
|
822
|
+
* The printed page for edition-print.css (a PDF printed from the same HTML as an EPUB; not in
|
|
823
|
+
* edition.css, whose print rules leave the page to the browser): margins, and the page number
|
|
824
|
+
* at the foot of every page but the first (a title page).
|
|
825
|
+
*/
|
|
826
|
+
export const editionPage = css `
|
|
827
|
+
@page {
|
|
828
|
+
margin: 2cm 2.2cm 2.4cm;
|
|
829
|
+
@bottom-center {
|
|
830
|
+
content: counter(page);
|
|
831
|
+
color: #4b5563;
|
|
832
|
+
font-size: 9pt;
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
@page :first {
|
|
836
|
+
@bottom-center {
|
|
837
|
+
content: none;
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
`;
|
|
747
841
|
//# sourceMappingURL=edition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edition.js","sourceRoot":"","sources":["../../src/styles/edition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,mFAAmF;AACnF,0FAA0F;AAC1F,2FAA2F;AAC3F,2FAA2F;AAC3F,0DAA0D;AAC1D,EAAE;AACF,4FAA4F;AAC5F,sFAAsF;AACtF,EAAE;AACF,4FAA4F;AAC5F,8FAA8F;AAC9F,yFAAyF;AACzF,2FAA2F;AAC3F,4FAA4F;AAC5F,
|
|
1
|
+
{"version":3,"file":"edition.js","sourceRoot":"","sources":["../../src/styles/edition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,mFAAmF;AACnF,0FAA0F;AAC1F,2FAA2F;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;;;;;;;;;;;;;;;;;;;;;;iBAuBN,MAAM;;;;iBAIN,MAAM;;;;iBAIN,MAAM;;;;IAInB,MAAM;kCACwB,MAAM;;;;;;iBAMvB,MAAM;;;iBAGN,MAAM;iBACN,MAAM;eACR,KAAK;;;IAGhB,MAAM;;;;;mBAKS,MAAM;;;;mBAIN,MAAM;;;;;;MAMnB,CAAC;;;MAGD,CAAC;MACD,CAAC;;;MAGD,CAAC;;;MAGD,CAAC;;;;;;;;MAQD,CAAC;;;;;;MAMD,MAAM;;;MAGN,CAAC;;;;MAID,CAAC;;;;MAID,CAAC;;;MAGD,CAAC;;;MAGD,CAAC;;;;MAID,CAAC;;;MAGD,CAAC;;;;;MAKD,CAAC,IAAI,MAAM;;;;;MAKX,CAAC;;;;;CAKN,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAc7B,CAAC"}
|
package/dist-cdn/base.css
CHANGED
|
@@ -211,7 +211,8 @@
|
|
|
211
211
|
uvalib-map,
|
|
212
212
|
uvalib-filter-drawer,
|
|
213
213
|
uvalib-filter,
|
|
214
|
-
uvalib-list-filter
|
|
214
|
+
uvalib-list-filter,
|
|
215
|
+
uvalib-audio
|
|
215
216
|
):not(:defined)[hidden],
|
|
216
217
|
:where(uvalib-combobox, uvalib-image-regions):not(:defined) > [hidden] {
|
|
217
218
|
display: none;
|
|
@@ -376,6 +377,59 @@ uvalib-metadata:not(:defined) > dl > dd[data-limit="12"] > :is(ul, ol):has(> li:
|
|
|
376
377
|
uvalib-list-filter[hide-label][results-count]:not(:defined) {
|
|
377
378
|
min-block-size: 44px;
|
|
378
379
|
}
|
|
380
|
+
/* A recording by chapter (<uvalib-audio>): its list of links shows as it will once
|
|
381
|
+
upgraded (each row 44px plus padding, a rule below, the title where it will sit after the
|
|
382
|
+
Play button, a second 44px line for an item with more links or a download), and the
|
|
383
|
+
player's height is held above it: one row of controls from 44rem of its own width, two
|
|
384
|
+
from 26rem, three below (and the download line). Keep in step with UvalibAudio's rules. */
|
|
385
|
+
uvalib-audio:not(:defined) {
|
|
386
|
+
display: block;
|
|
387
|
+
container-type: inline-size;
|
|
388
|
+
font-size: 1rem;
|
|
389
|
+
line-height: 1.5;
|
|
390
|
+
}
|
|
391
|
+
uvalib-audio:not(:defined)::before {
|
|
392
|
+
content: '';
|
|
393
|
+
display: block;
|
|
394
|
+
block-size: calc(1.5rem + 2px + 44px + 0.5rem + 44px);
|
|
395
|
+
margin-block-end: 1rem;
|
|
396
|
+
}
|
|
397
|
+
uvalib-audio[download-href]:not([download-href='']):not(:defined)::before {
|
|
398
|
+
margin-block-end: calc(1rem + 44px + 1rem);
|
|
399
|
+
}
|
|
400
|
+
@container (width < 44rem) {
|
|
401
|
+
uvalib-audio:not(:defined)::before {
|
|
402
|
+
block-size: calc(1.5rem + 2px + 44px + 0.5rem + 2 * 44px + 0.5rem);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
@container (width < 26rem) {
|
|
406
|
+
uvalib-audio:not(:defined)::before {
|
|
407
|
+
block-size: calc(1.5rem + 2px + 44px + 0.5rem + 3 * 44px + 2 * 0.5rem);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
uvalib-audio:not(:defined) > :is(ol, ul) {
|
|
411
|
+
margin: 0;
|
|
412
|
+
padding: 0;
|
|
413
|
+
list-style: none;
|
|
414
|
+
}
|
|
415
|
+
uvalib-audio:not(:defined) > :is(ol, ul) > li {
|
|
416
|
+
box-sizing: border-box;
|
|
417
|
+
min-block-size: calc(44px + 0.5rem + 1px);
|
|
418
|
+
margin: 0;
|
|
419
|
+
padding: 0.25rem 0 0.25rem 8px;
|
|
420
|
+
border-block-end: 1px solid var(--uva-color-table-border, #dadada);
|
|
421
|
+
align-content: center;
|
|
422
|
+
}
|
|
423
|
+
uvalib-audio:not(:defined) > :is(ol, ul) > li:is([data-download], :has(a[href] ~ a[href])) {
|
|
424
|
+
min-block-size: calc(2 * 44px + 0.5rem + 1px);
|
|
425
|
+
}
|
|
426
|
+
/* Room for the duration the upgraded row shows at its end (about “12:31”). */
|
|
427
|
+
uvalib-audio:not(:defined) > :is(ol, ul) > li:has(> a[data-duration]) {
|
|
428
|
+
padding-inline-end: calc(0.75rem + 2.75em);
|
|
429
|
+
}
|
|
430
|
+
uvalib-audio:not(:defined) > :is(ol, ul) > li > a:first-child {
|
|
431
|
+
margin-inline-start: calc(0.5rem + 5rem + 0.75rem);
|
|
432
|
+
}
|
|
379
433
|
/* Image regions: the image at its own width and the list beside it (or under it), the
|
|
380
434
|
layout the element keeps once it upgrades, so the image does not move. */
|
|
381
435
|
uvalib-image-regions:not(:defined) {
|
|
@@ -549,6 +603,7 @@ uvalib-metadata:not(:defined) > dl > dd[data-limit="12"] > :is(ul, ol):has(> li:
|
|
|
549
603
|
:root[data-uva-color-scheme] {
|
|
550
604
|
--uva-color-text: light-dark(var(--uva-grey-darkest, #2b2b2b), #e8e8e8);
|
|
551
605
|
--uva-color-surface: light-dark(#ffffff, #10172b);
|
|
606
|
+
--uva-color-table-border: light-dark(var(--uva-grey-100, #dadada), #4f5a7a);
|
|
552
607
|
--uva-color-text-muted: light-dark(#4b5563, #adadad);
|
|
553
608
|
--uva-color-button-bg: light-dark(var(--uva-blue-alt, #007bac), #55c4ec);
|
|
554
609
|
--uva-color-button-text: light-dark(#ffffff, #10172b);
|
|
@@ -575,7 +630,6 @@ uvalib-metadata:not(:defined) > dl > dd[data-limit="12"] > :is(ul, ol):has(> li:
|
|
|
575
630
|
--uva-color-link: light-dark(var(--uva-brand-blue, #232d4b), #87b9d9);
|
|
576
631
|
--uva-color-highlight: light-dark(var(--uva-brand-orange-200, #ffc999), #854200);
|
|
577
632
|
--uva-color-on-highlight: light-dark(var(--uva-grey-darkest, #2b2b2b), #ffffff);
|
|
578
|
-
--uva-color-table-border: light-dark(var(--uva-grey-100, #dadada), #4f5a7a);
|
|
579
633
|
--uva-color-table-stripe: light-dark(var(--uva-grey-200, #f1f1f1), #1a2340);
|
|
580
634
|
}
|
|
581
635
|
:root[data-uva-color-scheme='system'] {
|
|
@@ -317,7 +317,8 @@ var a = e`
|
|
|
317
317
|
uvalib-map,
|
|
318
318
|
uvalib-filter-drawer,
|
|
319
319
|
uvalib-filter,
|
|
320
|
-
uvalib-list-filter
|
|
320
|
+
uvalib-list-filter,
|
|
321
|
+
uvalib-audio
|
|
321
322
|
):not(:defined)[hidden],
|
|
322
323
|
:where(uvalib-combobox, uvalib-image-regions):not(:defined) > [hidden] {
|
|
323
324
|
display: none;
|
|
@@ -435,6 +436,59 @@ var a = e`
|
|
|
435
436
|
uvalib-list-filter[hide-label][results-count]:not(:defined) {
|
|
436
437
|
min-block-size: 44px;
|
|
437
438
|
}
|
|
439
|
+
/* A recording by chapter (<uvalib-audio>): its list of links shows as it will once
|
|
440
|
+
upgraded (each row 44px plus padding, a rule below, the title where it will sit after the
|
|
441
|
+
Play button, a second 44px line for an item with more links or a download), and the
|
|
442
|
+
player's height is held above it: one row of controls from 44rem of its own width, two
|
|
443
|
+
from 26rem, three below (and the download line). Keep in step with UvalibAudio's rules. */
|
|
444
|
+
uvalib-audio:not(:defined) {
|
|
445
|
+
display: block;
|
|
446
|
+
container-type: inline-size;
|
|
447
|
+
font-size: 1rem;
|
|
448
|
+
line-height: 1.5;
|
|
449
|
+
}
|
|
450
|
+
uvalib-audio:not(:defined)::before {
|
|
451
|
+
content: '';
|
|
452
|
+
display: block;
|
|
453
|
+
block-size: calc(1.5rem + 2px + 44px + 0.5rem + 44px);
|
|
454
|
+
margin-block-end: 1rem;
|
|
455
|
+
}
|
|
456
|
+
uvalib-audio[download-href]:not([download-href='']):not(:defined)::before {
|
|
457
|
+
margin-block-end: calc(1rem + 44px + 1rem);
|
|
458
|
+
}
|
|
459
|
+
@container (width < 44rem) {
|
|
460
|
+
uvalib-audio:not(:defined)::before {
|
|
461
|
+
block-size: calc(1.5rem + 2px + 44px + 0.5rem + 2 * 44px + 0.5rem);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
@container (width < 26rem) {
|
|
465
|
+
uvalib-audio:not(:defined)::before {
|
|
466
|
+
block-size: calc(1.5rem + 2px + 44px + 0.5rem + 3 * 44px + 2 * 0.5rem);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
uvalib-audio:not(:defined) > :is(ol, ul) {
|
|
470
|
+
margin: 0;
|
|
471
|
+
padding: 0;
|
|
472
|
+
list-style: none;
|
|
473
|
+
}
|
|
474
|
+
uvalib-audio:not(:defined) > :is(ol, ul) > li {
|
|
475
|
+
box-sizing: border-box;
|
|
476
|
+
min-block-size: calc(44px + 0.5rem + 1px);
|
|
477
|
+
margin: 0;
|
|
478
|
+
padding: 0.25rem 0 0.25rem 8px;
|
|
479
|
+
border-block-end: 1px solid var(--uva-color-table-border, #dadada);
|
|
480
|
+
align-content: center;
|
|
481
|
+
}
|
|
482
|
+
uvalib-audio:not(:defined) > :is(ol, ul) > li:is([data-download], :has(a[href] ~ a[href])) {
|
|
483
|
+
min-block-size: calc(2 * 44px + 0.5rem + 1px);
|
|
484
|
+
}
|
|
485
|
+
/* Room for the duration the upgraded row shows at its end (about “12:31”). */
|
|
486
|
+
uvalib-audio:not(:defined) > :is(ol, ul) > li:has(> a[data-duration]) {
|
|
487
|
+
padding-inline-end: calc(0.75rem + 2.75em);
|
|
488
|
+
}
|
|
489
|
+
uvalib-audio:not(:defined) > :is(ol, ul) > li > a:first-child {
|
|
490
|
+
margin-inline-start: calc(0.5rem + 5rem + 0.75rem);
|
|
491
|
+
}
|
|
438
492
|
/* Image regions: the image at its own width and the list beside it (or under it), the
|
|
439
493
|
layout the element keeps once it upgrades, so the image does not move. */
|
|
440
494
|
uvalib-image-regions:not(:defined) {
|
|
@@ -606,4 +660,4 @@ var a = e`
|
|
|
606
660
|
`;
|
|
607
661
|
export { i as a, n as i, S as n, a as r, x as t };
|
|
608
662
|
|
|
609
|
-
//# sourceMappingURL=base-
|
|
663
|
+
//# sourceMappingURL=base-D_oPO5cX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-DtkA4Pgg.js","names":["unsafeCSS","i","r","fontFallback","FACES","loadFontFallback","fonts","doc","face","tokens","METADATA_LIMITS","metadataLimits","lists","n","l","OFF","NOPAGES","LOAD","FEW","SECTIONS","side","s","extra","sides","noLabel","noLabels","PAGES","MORE","pagesRow","pagerRules","TYPEKIT_URL","base"],"sources":["../../src/styles/font-fallback.ts","../../src/styles/tokens.ts","../../src/styles/base.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * A metric-matched fallback for Franklin Gothic URW (issue #32). The Adobe Fonts kit uses\n * `font-display: auto`, so on a slow connection text is drawn in the next font of\n * `--uva-font-family` and redrawn when the kit's files arrive. Plain Arial is wider than\n * Franklin Gothic (by 6% regular, 9% bold), so paragraphs rewrapped and the page moved\n * (layout shift). \"UVA Franklin Fallback\" is the system's Arial scaled to Franklin Gothic's\n * average widths, with its ascent and descent, for each face the kit serves (400, 500, 700 and\n * 400 italic; a 600 rule gets the 700 face, as the kit's own matching does). Measured against\n * the kit in Chromium: the fallback wraps a paragraph like Franklin Gothic in about 99% of\n * widths from 260 to 700px at 16 to 20px, against 55 to 82% for plain Arial.\n *\n * `size-adjust` scales Arial's glyphs; the overrides are Franklin Gothic's ascent (0.95 em) and\n * descent (0.25 em) divided by that scale, with no line gap, so a line is as tall in both.\n * Liberation Sans (Linux) has Arial's metrics. Where neither is installed (Android has Roboto),\n * the face is skipped and the next font in the stack is used, as before.\n */\nexport const fontFallback = css`\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');\n font-weight: 100 450;\n font-style: normal;\n size-adjust: 94.52%;\n ascent-override: 100.93%;\n descent-override: 26.56%;\n line-gap-override: 0%;\n }\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');\n font-weight: 451 599;\n font-style: normal;\n size-adjust: 95.99%;\n ascent-override: 99.18%;\n descent-override: 26.04%;\n line-gap-override: 0%;\n }\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src:\n local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'),\n local('LiberationSans-Bold');\n font-weight: 600 1000;\n font-style: normal;\n size-adjust: 91.32%;\n ascent-override: 104.03%;\n descent-override: 27.38%;\n line-gap-override: 0%;\n }\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src:\n local('Arial Italic'), local('Arial-ItalicMT'), local('Liberation Sans Italic'),\n local('LiberationSans-Italic');\n font-weight: 100 599;\n font-style: italic;\n size-adjust: 95.06%;\n ascent-override: 101.09%;\n descent-override: 26.4%;\n line-gap-override: 0%;\n }\n`;\n\n/** One font per fallback face, so each one is asked for. */\nconst FACES = ['400', '500', '700', 'italic 400'];\n\n/**\n * Load every fallback face now (issue #35). A face from a local() font loads only when text\n * first needs it, so the first italic (or medium) text could be drawn in unscaled Arial and\n * redrawn a moment later. Called once the faces are installed; failures (no Arial or\n * Liberation Sans on the system) are left to the next font in the stack, as before.\n */\nexport function loadFontFallback(doc: Document): void {\n const fonts = doc.fonts;\n if (!fonts?.load) return;\n for (const face of FACES) fonts.load(`${face} 1em \"UVA Franklin Fallback\"`).catch(() => {});\n}\n","// GENERATED by scripts/sync-tokens.mjs from ../monorepo/packages/drupal_library_theme/src/scss/base — do not edit\nimport { css } from 'lit';\n\nexport const tokens = css`\n :root {\n --uva-brand-blue-lightest: #87B9D9;\n --uva-brand-blue-lighter: #3395D4;\n --uva-brand-blue-light: #0370B7;\n --uva-brand-blue-base: #232D4B;\n --uva-brand-blue-300: #87B9D9;\n --uva-brand-blue-200: #3395D4;\n --uva-brand-blue-100: #0370B7;\n --uva-brand-blue: #232D4B;\n --uva-brand-orange-lightest: #FFEAD6;\n --uva-brand-orange-lighter: #FFC999;\n --uva-brand-orange-light: #FFB370;\n --uva-brand-orange-base: #E57200;\n --uva-brand-orange-dark: #B35900;\n --uva-brand-orange-darker: #854200;\n --uva-brand-orange-300: #FFEAD6;\n --uva-brand-orange-200: #FFC999;\n --uva-brand-orange-100: #FFB370;\n --uva-brand-orange: #E57200;\n --uva-brand-orange-A: #B35900;\n --uva-brand-orange-B: #854200;\n --uva-blue-alt-lightest: #BFE7F7;\n --uva-blue-alt-lighter: #91D8F2;\n --uva-blue-alt-light: #55C4EC;\n --uva-blue-alt-base: #007BAC;\n --uva-blue-alt-dark: #005679;\n --uva-blue-alt-darkest: #141E3C;\n --uva-blue-alt-400: #e6f2f7;\n --uva-blue-alt-300: #BFE7F7;\n --uva-blue-alt-200: #91D8F2;\n --uva-blue-alt-100: #55C4EC;\n --uva-blue-alt: #007BAC;\n --uva-blue-alt-A: #005679;\n --uva-blue-alt-B: #141E3C;\n --uva-teal-lightest: #C8F2F4;\n --uva-teal-light: #5BD7DE;\n --uva-teal-base: #25CAD3;\n --uva-teal-dark: #1DA1A8;\n --uva-teal-darker: #16777C;\n --uva-teal-200: #C8F2F4;\n --uva-teal-100: #5BD7DE;\n --uva-teal: #25CAD3;\n --uva-teal-A: #1DA1A8;\n --uva-teal-B: #16777C;\n --uva-green-lightest: #DDEFDC;\n --uva-green-lighter: #89CC74;\n --uva-green-base: #62BB46;\n --uva-green-dark: #4E9737;\n --uva-green-200: #DDEFDC;\n --uva-green-100: #89CC74;\n --uva-green: #62BB46;\n --uva-green-A: #4E9737;\n --uva-red-lightest: #FBCFDA;\n --uva-red-base: #EF3F6B;\n --uva-red-dark: #DF1E43;\n --uva-red-darker: #B30000;\n --uva-red-100: #FBCFDA;\n --uva-red: #EF3F6B;\n --uva-red-A: #DF1E43;\n --uva-red-B: #B30000;\n --uva-yellow-lightest: #FEF6C8;\n --uva-yellow-base: #ECC602;\n --uva-yellow-dark: #B99C02;\n --uva-yellow-100: #FEF6C8;\n --uva-yellow: #ECC602;\n --uva-yellow-A: #B99C02;\n --uva-grey-lightest: #F1F1F1;\n --uva-grey-light: #DADADA;\n --uva-grey-base: #808080;\n --uva-grey-dark: #4F4F4F;\n --uva-grey-darkest: #2B2B2B;\n --uva-grey-200: #F1F1F1;\n --uva-grey-100: #DADADA;\n --uva-grey-50: #ADADAD;\n --uva-grey: #808080;\n --uva-grey-A: #4F4F4F;\n --uva-grey-B: #2B2B2B;\n --uva-font-family: franklin-gothic-urw, \"UVA Franklin Fallback\", Arial, Helvetica, sans-serif;\n --uva-font-size-base: 17px;\n }\n`;\n","import { css, unsafeCSS } from 'lit';\n\n/**\n * `<uvalib-metadata>` long lists before it upgrades (issue #34): a list of more than N values\n * shows its first N and a line for its \"Show all\" button (4px above a 32px button), as the\n * upgraded element does. CSS cannot read N from the attribute into :nth-child(), so the rules\n * are written out for limits 1 to 12; a page with a larger limit adds its own (README). A row's\n * own data-limit on its <dd> wins over list-limit (data-limit=\"0\" shows them all); a data-limit\n * on the list itself works once upgraded but is not held before.\n */\nconst METADATA_LIMITS = Array.from({ length: 12 }, (_, i) => i + 1);\nconst metadataLimits = unsafeCSS(\n METADATA_LIMITS.map((n) => {\n const lists = [\n `uvalib-metadata[list-limit=\"${n}\"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit])`,\n `uvalib-metadata:not(:defined) > dl > dd[data-limit=\"${n}\"] > :is(ul, ol)`,\n ];\n return (\n `${lists.map((l) => `${l} > li:nth-child(n + ${n + 1})`).join(',\\n')} { display: none; }\\n` +\n `${lists.map((l) => `${l}:has(> li:nth-child(${n + 1}))::after`).join(',\\n')} { content: ''; display: block; block-size: 2.25rem; }`\n );\n }).join('\\n'),\n);\n\n/**\n * `<uvalib-pager>` before it upgrades (issue #39): it draws everything from attributes, so the\n * hold draws it too, invisibly, laid out as the upgraded pager is, and nothing below moves.\n * Load-more wins over numbered pages, which win over previous/next, as in the element.\n *\n * Previous/next: each side a box of its title (from prev-label/next-label, on one line, at\n * most 48% wide, 2.75rem tall at least) under its kicker's line (0.75rem, or the text size\n * with no-style) and 0.15rem gap, side by side 1rem apart or stacked when they do not fit,\n * as the links are. Without a label, the side is its kicker. The kicker's line height is\n * worked out from the title's (exact when line-height is a number or normal).\n *\n * Numbered pages: one 2.75rem row, or two (0.25rem apart) when the pager is narrower than its\n * items: 1 to 7 pages are all shown; more show five numbers and one or two ellipses (one\n * near the start; near the end cannot be told from the attributes, so two are assumed).\n *\n * Load more: the \"Showing N of M\" line and the 44px button beside it (wrapping as they\n * wrap); the button is left out only for has-more=\"false\" (a shown that has reached total\n * cannot be compared in CSS).\n *\n * The drawn boxes stay hidden after the two-second reveal (they are not links): if the script\n * never loads, the space stays empty.\n */\nconst OFF = ':defined, [hidden]';\nconst NOPAGES = `[pages=''], [pages='0'], [pages^='-']`;\nconst LOAD = `[mode='load-more' i]`;\nconst FEW = [1, 2, 3, 4, 5, 6, 7].map((n) => `[pages='${n}']`).join(', ');\nconst SECTIONS = `uvalib-pager:not(${OFF}, ${LOAD}, [pages]:not(${NOPAGES}))`;\n/** A side's box (prev ::before, next ::after), with `extra` on the host. */\nconst side = (s: 'prev' | 'next', extra = '') =>\n `${SECTIONS}[${s}-href]:not([${s}-href=''])${extra}::${s === 'prev' ? 'before' : 'after'}`;\nconst sides = (extra = '') => `${side('prev', extra)}, ${side('next', extra)}`;\nconst noLabel = (s: 'prev' | 'next', extra = '') =>\n side(s, `${extra}:is(:not([${s}-label]), [${s}-label=''])`);\nconst noLabels = (extra = '') => `${noLabel('prev', extra)}, ${noLabel('next', extra)}`;\nconst PAGES = `uvalib-pager[pages]:not(${OFF}, ${LOAD}, ${NOPAGES})`;\nconst MORE = `uvalib-pager${LOAD}:not(${OFF})`;\nconst pagesRow = (n: number) => `${n * 2.75 + (n - 1) * 0.25}rem`;\nconst pagerRules = unsafeCSS(`\n uvalib-pager:not(:defined) { line-height: inherit; }\n ${SECTIONS}:is([prev-href]:not([prev-href='']), [next-href]:not([next-href=''])) {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n gap: 1rem;\n }\n ${sides()} {\n display: block;\n max-width: 48%;\n min-width: 0;\n min-height: 2.75rem;\n padding-block-start: calc(0.75 * 1lh + 0.15rem);\n padding-block-start: calc(1lh * 0.75rem / 1em + 0.15rem);\n overflow: hidden;\n white-space: nowrap;\n visibility: hidden;\n }\n ${side('prev')} { content: attr(prev-label); }\n ${side('next')} { content: attr(next-label); margin-inline-start: auto; }\n ${sides('[no-style]')} { padding-block-start: calc(1lh + 0.15rem); }\n ${noLabels()} {\n padding-block-start: 0;\n font-size: 0.75rem;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n }\n ${noLabel('prev')} { content: 'Previous'; }\n ${noLabel('next')} { content: 'Next'; }\n ${noLabels('[no-style]')} {\n padding-block-start: 0;\n font-size: inherit;\n letter-spacing: normal;\n text-transform: none;\n }\n ${PAGES} { container-type: inline-size; }\n ${PAGES}::before { content: ''; display: block; block-size: 2.75rem; }\n ${[4, 5, 6, 7]\n .map(\n (n) =>\n `@container (width < ${pagesRow(n)}) { uvalib-pager[pages='${n}']:not(${OFF}, ${LOAD})::before { block-size: 5.75rem; } }`,\n )\n .join('\\n')}\n @container (width < 18.25rem) {\n ${PAGES}:not(${FEW})::before { block-size: 5.75rem; }\n }\n @container (16.5rem <= width < 18.25rem) {\n ${PAGES}:not(${FEW}):is(:not([page]), [page='1'], [page='2'], [page='3'])::before {\n block-size: 2.75rem;\n }\n }\n ${MORE} {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.75rem 1rem;\n }\n ${MORE}::before {\n content: 'Showing ' attr(shown);\n min-width: 0;\n overflow-wrap: anywhere;\n visibility: hidden;\n }\n ${MORE}[total]:not([total=''], [total='0'])::before {\n content: 'Showing ' attr(shown) ' of ' attr(total);\n }\n ${MORE}:not([has-more='false' i])::after {\n content: 'Load more';\n display: block;\n min-width: 44px;\n min-height: 44px;\n padding: 0.5rem 1.25rem;\n border: 2px solid transparent;\n font: inherit;\n font-size: 1rem;\n line-height: 1.2;\n visibility: hidden;\n }\n ${MORE}[no-style]::after { border-width: 0; }\n`);\n\nexport const TYPEKIT_URL = 'https://use.typekit.net/oym8nvz.css';\n\n// The body background has no fallback: without dark mode it stays transparent, as before.\n//\n// site-page:not(:defined) applies when base.css is linked in <head>, before the element\n// upgrades: its own formatting context (flow-root), so a heading's top margin cannot collapse\n// through to <body> and shift the page once the element upgrades, and invisible, so its\n// content does not paint above where the header will go. If the script never loads, the\n// content appears anyway after two seconds.\nexport const base = css`\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n html,\n body {\n font-family: var(\n --uva-font-family,\n franklin-gothic-urw,\n 'UVA Franklin Fallback',\n Arial,\n Helvetica,\n sans-serif\n );\n }\n html {\n font-size: var(--uva-font-size-base, 17px);\n }\n body {\n margin: 0;\n line-height: 1.5;\n min-height: 100vh;\n color: var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b));\n background-color: var(--uva-color-surface);\n }\n site-page:not(:defined) {\n display: flow-root;\n visibility: hidden;\n animation: uvalib-site-page-reveal 0s 2s forwards;\n }\n uvalib-breadcrumbs:not(:defined),\n uvalib-card:not(:defined),\n uvalib-card-grid:not(:defined),\n uvalib-pager:not(:defined),\n uvalib-contents:not(:defined),\n uvalib-metadata:not(:defined),\n uvalib-tag-list:not(:defined) {\n display: block;\n line-height: 1.5;\n visibility: hidden;\n animation: uvalib-site-page-reveal 0s 2s forwards;\n }\n /* A chip row: hidden, one 44px row tall (with the scrolling row's padding), the raw\n children kept on one line so they cannot make it taller. */\n uvalib-chip-group:not(:defined) {\n display: block;\n min-height: 44px;\n max-width: 100%;\n overflow: hidden;\n white-space: nowrap;\n visibility: hidden;\n animation: uvalib-site-page-reveal 0s 2s forwards;\n }\n uvalib-chip-group[scroll]:not(:defined) {\n min-height: calc(44px + 0.75rem);\n }\n /* A description: one line of it (0.875rem at 1.5, 0.25rem below the row). */\n uvalib-chip-group[description]:not(:defined) {\n padding-block-end: 1.5625rem;\n }\n /* Its text is drawn from attributes: hold one line until it upgrades. */\n uvalib-results-count:not(:defined) {\n display: block;\n min-block-size: 1.5em;\n }\n uvalib-tag-list:not(:defined)[hidden],\n uvalib-results-count:not(:defined)[hidden] {\n display: none;\n }\n ${pagerRules}\n /* The pre-upgrade rules here set display, which beats the hidden attribute's (issue #7).\n More specific than each of them (two pseudo-classes or attributes), so it needs no importance flag. */\n :where(\n site-page,\n uvalib-breadcrumbs,\n uvalib-card,\n uvalib-card-grid,\n uvalib-pager,\n uvalib-contents,\n uvalib-metadata,\n uvalib-chip-group,\n uvalib-tabs,\n uvalib-combobox,\n uvalib-image-regions,\n uvalib-map,\n uvalib-filter-drawer,\n uvalib-filter,\n uvalib-list-filter\n ):not(:defined)[hidden],\n :where(uvalib-combobox, uvalib-image-regions):not(:defined) > [hidden] {\n display: none;\n }\n /* A record's details before <uvalib-metadata> upgrades (issue #34): the rows already laid\n out as it lays them out (label beside value from 36rem of its own width, stacked below;\n 8px above and below each row, a 1px rule between rows; lists without bullets, 4px apart),\n so the page does not move when it upgrades. Rows the attributes add (creator, rights,\n citation) are not in the page's <dl> and cannot be held. */\n uvalib-metadata:not(:defined) {\n container-type: inline-size;\n font-size: 1rem;\n }\n uvalib-metadata:not(:defined) > dl {\n display: grid;\n grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr);\n column-gap: 1.5rem;\n margin: 0;\n }\n uvalib-metadata:not(:defined) > dl > dt {\n grid-column: 1;\n margin: 0;\n padding-block: 0.5rem;\n font-weight: 700;\n }\n uvalib-metadata:not(:defined) > dl > dd {\n grid-column: 2;\n margin: 0;\n padding-block: 0.5rem;\n }\n uvalib-metadata:not(:defined) > dl > dt:not(:first-child),\n uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd {\n border-block-start: 1px solid transparent;\n }\n uvalib-metadata:not(:defined) > dl > dd > :is(ul, ol) {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n uvalib-metadata:not(:defined) > dl > dd li + li {\n margin-block-start: 0.25rem;\n }\n @container (width < 36rem) {\n uvalib-metadata:not(:defined) > dl {\n grid-template-columns: minmax(0, 1fr);\n }\n uvalib-metadata:not(:defined) > dl > :is(dt, dd) {\n grid-column: 1;\n }\n uvalib-metadata:not(:defined) > dl > dt {\n padding-block-end: 0;\n }\n uvalib-metadata:not(:defined) > dl > dd {\n padding-block-start: 0;\n }\n uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd {\n border-block-start: 0;\n }\n }\n ${metadataLimits}\n /* Tabs stay readable before the script runs: a block, one panel, and a gap the\n size of the tab row (44px) plus its 1rem margin, so the first panel does not\n jump when the element upgrades. Later data-tab panels stay hidden. */\n uvalib-tabs:not(:defined) {\n display: block;\n padding-block-start: calc(44px + 1rem);\n }\n uvalib-tabs:not(:defined) > [data-tab] ~ [data-tab] {\n display: none;\n }\n /* A combobox: its label (from the attribute) and one 44px field (plus a one-line\n description) held, so nothing moves when it upgrades. A fallback <input list> child\n works meanwhile; the other children (options, a datalist) stay out of sight. */\n uvalib-combobox:not(:defined) {\n display: block;\n min-block-size: calc(1.5em + 0.25rem + 44px);\n line-height: 1.5;\n }\n uvalib-combobox[description]:not(:defined) {\n min-block-size: calc(3em + 0.5rem + 44px);\n }\n uvalib-combobox:not(:defined)::before {\n content: attr(label);\n display: block;\n margin-block-end: 0.25rem;\n font-weight: 600;\n }\n uvalib-combobox:not(:defined) > :not(input) {\n display: none;\n }\n uvalib-combobox:not(:defined) > input {\n display: block;\n box-sizing: border-box;\n inline-size: 100%;\n min-block-size: 44px;\n font: inherit;\n line-height: 1.2;\n }\n /* A list filter draws its label, a 44px field and a one-line count from attributes: hold\n their height (less the label with hide-label, less the count with results-count), so the\n list below does not move when it upgrades. The list itself is the page's and stays\n fully shown until then. */\n uvalib-list-filter:not(:defined) {\n display: block;\n font-size: 1rem;\n line-height: 1.5;\n min-block-size: calc(1.5em + 0.25rem + 44px + 0.25rem + 1.5em);\n }\n uvalib-list-filter[hide-label]:not(:defined) {\n min-block-size: calc(44px + 0.25rem + 1.5em);\n }\n uvalib-list-filter[results-count]:not(:defined) {\n min-block-size: calc(1.5em + 0.25rem + 44px);\n }\n uvalib-list-filter[hide-label][results-count]:not(:defined) {\n min-block-size: 44px;\n }\n /* Image regions: the image at its own width and the list beside it (or under it), the\n layout the element keeps once it upgrades, so the image does not move. */\n uvalib-image-regions:not(:defined) {\n display: flex;\n flex-wrap: wrap;\n gap: 1rem;\n align-items: flex-start;\n }\n uvalib-image-regions:not(:defined) > :is(img, picture) {\n display: block;\n flex: 0 1 auto;\n min-width: 0;\n max-width: 100%;\n height: auto;\n }\n uvalib-image-regions:not(:defined) > :is(ol, ul) {\n flex: 1 1 14rem;\n min-width: 0;\n }\n /* A map: its key instructions (the same text it shows) and the map's height held above\n the child list, so the list does not move when the map is drawn over the page's\n Leaflet. Padding, not margin, so it cannot collapse with the list's own top margin. */\n uvalib-map:not(:defined) {\n display: block;\n }\n uvalib-map:not(:defined)::before {\n content: 'Tab or arrow keys move between places; Enter opens one. With the map focused, arrow keys pan and + and − zoom.';\n display: block;\n padding-block-end: calc(0.5rem + max(12rem, var(--uvalib-map-height, min(24rem, 75vw))));\n font-size: 0.875rem;\n line-height: 1.5;\n color: var(--uva-color-text-muted, #4b5563);\n }\n /* A collapsed filter group (<uvalib-filter collapsible collapsed>) draws only its 44px\n legend button once it upgrades: hold that height. Low specificity, so the [hidden] rule\n above still wins. */\n :where(uvalib-filter[collapsible][collapsed]):not(:defined) {\n display: block;\n min-block-size: 44px;\n }\n /* A filter drawer on a phone (the default 48rem breakpoint): once it upgrades only its 44px\n \"Search and filters\" button shows, so hold that height and keep the form and filters out\n of sight meanwhile; nothing moves when it upgrades. A page with its own breakpoint adds the\n same two rules in a media query of that width (see the README). Low specificity, so the\n [hidden] rule above still wins. */\n @media (max-width: 48rem) {\n :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) {\n display: block;\n min-block-size: 44px;\n }\n :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) > * {\n display: none;\n }\n }\n /* A contents list before <uvalib-contents> upgrades (a .uvalib-sidebar-layout sidebar): the\n headline's line held above, the links already padded as it pads them (the rules drawn\n transparent while hidden), so the list does not move. Narrow (the default 64rem\n collapse-below, closed): only its 44px button shows once it upgrades, so hold that and\n clip the list; the reveal releases it, so the list still shows if the script never loads.\n The [hidden] rule above still wins (it alone sets display). */\n uvalib-contents:not(:defined) {\n padding-block-start: calc(1.125rem * 1.3 + 0.5rem);\n animation-name: uvalib-contents-reveal;\n }\n /* With full-href (issue #38): the full-contents link's line held below the list (0.5rem\n above a 44px link). A window=\"N\" list is not held: the whole list shows until it upgrades\n (in a sidebar beside the content, nothing else moves). */\n uvalib-contents[full-href]:not(:defined) {\n padding-block-end: calc(44px + 0.5rem);\n }\n :where(uvalib-contents):not(:defined) :is(ol, ul) {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n :where(uvalib-contents):not(:defined) > :is(ol, ul) {\n border-block: 1px solid transparent;\n }\n :where(uvalib-contents):not(:defined) > :is(ol, ul) > li + li {\n border-block-start: 1px solid transparent;\n }\n :where(uvalib-contents):not(:defined) li > a {\n display: block;\n padding: 0.5rem 0.75rem 0.5rem calc(0.75rem + 4px);\n }\n :where(uvalib-contents):not(:defined) li li > a {\n padding-block: 0.25rem;\n }\n :where(uvalib-contents):not(:defined) li :is(ol, ul) {\n padding-inline-start: 1rem;\n border-inline-start: 2px solid transparent;\n }\n /* In light DOM (no-shadow-dom) a nested list is indented by a margin, with 0.5rem below. */\n :where(uvalib-contents[no-shadow-dom]):not(:defined) li :is(ol, ul) {\n margin: 0 0 0.5rem 0.75rem;\n padding-inline-start: 0;\n }\n @media (max-width: 64rem) {\n uvalib-contents:not([collapse-below], [open]):not(:defined) {\n max-block-size: 44px;\n padding-block: 0;\n overflow: hidden;\n }\n }\n @keyframes uvalib-contents-reveal {\n to {\n visibility: visible;\n max-block-size: none;\n overflow: visible;\n }\n }\n /* A dialog before <uvalib-dialog> upgrades: its children are the dialog's content, never\n shown in the page, so nothing flashes or moves. Once defined, a closed dialog renders\n nothing (its host is display: contents around a closed <dialog>). */\n uvalib-dialog:not(:defined) {\n display: none;\n }\n /* A citation before <uvalib-citation> upgrades: only the first format's citation, boxed\n as it will be, with the label and 44px format bar held above it (none for hide-label)\n and the 44px Copy citation row below, so nothing moves when it upgrades (an app's\n citations property cannot be held). */\n uvalib-citation:not(:defined) {\n display: block;\n font-size: 1rem;\n line-height: 1.5;\n }\n uvalib-citation:not(:defined):has(> [data-format]) {\n padding-block: calc(2rem + 44px + 0.75rem) calc(0.75rem + 44px);\n }\n uvalib-citation[hide-label]:not(:defined):has(> [data-format]) {\n padding-block-start: calc(44px + 0.75rem);\n }\n uvalib-citation:not(:defined) > [data-format] {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 1px solid transparent;\n overflow-wrap: anywhere;\n text-wrap: pretty;\n }\n uvalib-citation:not(:defined) > [data-format] ~ [data-format],\n uvalib-citation:not(:defined) > [slot] {\n display: none;\n }\n /* Printing a <site-page> (issue #20; its own styles leave out the chrome): a dark scheme\n prints light (the role tokens resolve to their light values), and the content's links\n are black and underlined, so they are told apart without colour. Content is <main> in\n light DOM and the unslotted children in shadow DOM. print-chrome keeps the page as it is\n shown, apart from the light scheme. */\n @media print {\n :root[data-uva-color-scheme]:has(site-page) {\n color-scheme: light;\n --uva-color-scheme: light;\n }\n /* Light DOM's trail, here too, as the pre-upgrade rule above (unlayered) would win. */\n site-page:not([print-chrome]) > [slot='breadcrumbs'] {\n display: none;\n }\n site-page:not([print-chrome]) > :not([slot], site-header, site-footer, .alerts-list) :any-link,\n site-page:not([print-chrome]) > :any-link:not([slot], .skip-link) {\n color: #000;\n text-decoration: underline;\n }\n }\n @keyframes uvalib-site-page-reveal {\n to {\n visibility: visible;\n }\n }\n`;\n"],"mappings":";;AAkBA,IAAaG,IAAe,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDzBC,IAAQ;CAAC;CAAO;CAAO;CAAO;AAAY;AAQhD,SAAgBC,EAAiB,GAAqB;CACpD,IAAMC,IAAQC,EAAI;CAClB,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AGD,EAAQ,QAAQF,CAAK,EAAE,IAAIE,EAAQ,QAAQF,CAAK,KAC9EI,IAAQ,2BAA2BX,EAAI,IAAIE,EAAK,IAAID,EAAQ,IAC5DW,IAAO,eAAeV,EAAK,OAAOF,EAAI,IACtCa,KAAY,MAAc,GAAGf,IAAI,QAAQA,IAAI,KAAK,IAAK,MACvDgB,IAAa7B,EAAU;;IAEzBmB,EAAS;;;;;;IAMTI,EAAM,EAAE;;;;;;;;;;;IAWRH,EAAK,MAAM,EAAE;IACbA,EAAK,MAAM,EAAE;IACbG,EAAM,YAAY,EAAE;IACpBE,EAAS,EAAE;;;;;;IAMXD,EAAQ,MAAM,EAAE;IAChBA,EAAQ,MAAM,EAAE;IAChBC,EAAS,YAAY,EAAE;;;;;;IAMvBC,EAAM;IACNA,EAAM;IACN;CAAC;CAAG;CAAG;CAAG;AAAC,CAAC,CACX,KACE,MACC,uBAAuBE,EAASf,CAAC,EAAE,0BAA0BA,EAAE,SAASE,EAAI,IAAIE,EAAK,qCACzF,CAAC,CACA,KAAK,IAAI,EAAE;;MAEVS,EAAM,OAAOR,EAAI;;;MAGjBQ,EAAM,OAAOR,EAAI;;;;IAInBS,EAAK;;;;;;IAMLA,EAAK;;;;;;IAMLA,EAAK;;;IAGLA,EAAK;;;;;;;;;;;;IAYLA,EAAK;CACR,GAEYG,IAAc,uCASdC,IAAO,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuEnBF,EAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8EXlB,EAAe"}
|
|
1
|
+
{"version":3,"file":"base-D_oPO5cX.js","names":["unsafeCSS","i","r","fontFallback","FACES","loadFontFallback","fonts","doc","face","tokens","METADATA_LIMITS","metadataLimits","lists","n","l","OFF","NOPAGES","LOAD","FEW","SECTIONS","side","s","extra","sides","noLabel","noLabels","PAGES","MORE","pagesRow","pagerRules","TYPEKIT_URL","base"],"sources":["../../src/styles/font-fallback.ts","../../src/styles/tokens.ts","../../src/styles/base.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * A metric-matched fallback for Franklin Gothic URW (issue #32). The Adobe Fonts kit uses\n * `font-display: auto`, so on a slow connection text is drawn in the next font of\n * `--uva-font-family` and redrawn when the kit's files arrive. Plain Arial is wider than\n * Franklin Gothic (by 6% regular, 9% bold), so paragraphs rewrapped and the page moved\n * (layout shift). \"UVA Franklin Fallback\" is the system's Arial scaled to Franklin Gothic's\n * average widths, with its ascent and descent, for each face the kit serves (400, 500, 700 and\n * 400 italic; a 600 rule gets the 700 face, as the kit's own matching does). Measured against\n * the kit in Chromium: the fallback wraps a paragraph like Franklin Gothic in about 99% of\n * widths from 260 to 700px at 16 to 20px, against 55 to 82% for plain Arial.\n *\n * `size-adjust` scales Arial's glyphs; the overrides are Franklin Gothic's ascent (0.95 em) and\n * descent (0.25 em) divided by that scale, with no line gap, so a line is as tall in both.\n * Liberation Sans (Linux) has Arial's metrics. Where neither is installed (Android has Roboto),\n * the face is skipped and the next font in the stack is used, as before.\n */\nexport const fontFallback = css`\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');\n font-weight: 100 450;\n font-style: normal;\n size-adjust: 94.52%;\n ascent-override: 100.93%;\n descent-override: 26.56%;\n line-gap-override: 0%;\n }\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');\n font-weight: 451 599;\n font-style: normal;\n size-adjust: 95.99%;\n ascent-override: 99.18%;\n descent-override: 26.04%;\n line-gap-override: 0%;\n }\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src:\n local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'),\n local('LiberationSans-Bold');\n font-weight: 600 1000;\n font-style: normal;\n size-adjust: 91.32%;\n ascent-override: 104.03%;\n descent-override: 27.38%;\n line-gap-override: 0%;\n }\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src:\n local('Arial Italic'), local('Arial-ItalicMT'), local('Liberation Sans Italic'),\n local('LiberationSans-Italic');\n font-weight: 100 599;\n font-style: italic;\n size-adjust: 95.06%;\n ascent-override: 101.09%;\n descent-override: 26.4%;\n line-gap-override: 0%;\n }\n`;\n\n/** One font per fallback face, so each one is asked for. */\nconst FACES = ['400', '500', '700', 'italic 400'];\n\n/**\n * Load every fallback face now (issue #35). A face from a local() font loads only when text\n * first needs it, so the first italic (or medium) text could be drawn in unscaled Arial and\n * redrawn a moment later. Called once the faces are installed; failures (no Arial or\n * Liberation Sans on the system) are left to the next font in the stack, as before.\n */\nexport function loadFontFallback(doc: Document): void {\n const fonts = doc.fonts;\n if (!fonts?.load) return;\n for (const face of FACES) fonts.load(`${face} 1em \"UVA Franklin Fallback\"`).catch(() => {});\n}\n","// GENERATED by scripts/sync-tokens.mjs from ../monorepo/packages/drupal_library_theme/src/scss/base — do not edit\nimport { css } from 'lit';\n\nexport const tokens = css`\n :root {\n --uva-brand-blue-lightest: #87B9D9;\n --uva-brand-blue-lighter: #3395D4;\n --uva-brand-blue-light: #0370B7;\n --uva-brand-blue-base: #232D4B;\n --uva-brand-blue-300: #87B9D9;\n --uva-brand-blue-200: #3395D4;\n --uva-brand-blue-100: #0370B7;\n --uva-brand-blue: #232D4B;\n --uva-brand-orange-lightest: #FFEAD6;\n --uva-brand-orange-lighter: #FFC999;\n --uva-brand-orange-light: #FFB370;\n --uva-brand-orange-base: #E57200;\n --uva-brand-orange-dark: #B35900;\n --uva-brand-orange-darker: #854200;\n --uva-brand-orange-300: #FFEAD6;\n --uva-brand-orange-200: #FFC999;\n --uva-brand-orange-100: #FFB370;\n --uva-brand-orange: #E57200;\n --uva-brand-orange-A: #B35900;\n --uva-brand-orange-B: #854200;\n --uva-blue-alt-lightest: #BFE7F7;\n --uva-blue-alt-lighter: #91D8F2;\n --uva-blue-alt-light: #55C4EC;\n --uva-blue-alt-base: #007BAC;\n --uva-blue-alt-dark: #005679;\n --uva-blue-alt-darkest: #141E3C;\n --uva-blue-alt-400: #e6f2f7;\n --uva-blue-alt-300: #BFE7F7;\n --uva-blue-alt-200: #91D8F2;\n --uva-blue-alt-100: #55C4EC;\n --uva-blue-alt: #007BAC;\n --uva-blue-alt-A: #005679;\n --uva-blue-alt-B: #141E3C;\n --uva-teal-lightest: #C8F2F4;\n --uva-teal-light: #5BD7DE;\n --uva-teal-base: #25CAD3;\n --uva-teal-dark: #1DA1A8;\n --uva-teal-darker: #16777C;\n --uva-teal-200: #C8F2F4;\n --uva-teal-100: #5BD7DE;\n --uva-teal: #25CAD3;\n --uva-teal-A: #1DA1A8;\n --uva-teal-B: #16777C;\n --uva-green-lightest: #DDEFDC;\n --uva-green-lighter: #89CC74;\n --uva-green-base: #62BB46;\n --uva-green-dark: #4E9737;\n --uva-green-200: #DDEFDC;\n --uva-green-100: #89CC74;\n --uva-green: #62BB46;\n --uva-green-A: #4E9737;\n --uva-red-lightest: #FBCFDA;\n --uva-red-base: #EF3F6B;\n --uva-red-dark: #DF1E43;\n --uva-red-darker: #B30000;\n --uva-red-100: #FBCFDA;\n --uva-red: #EF3F6B;\n --uva-red-A: #DF1E43;\n --uva-red-B: #B30000;\n --uva-yellow-lightest: #FEF6C8;\n --uva-yellow-base: #ECC602;\n --uva-yellow-dark: #B99C02;\n --uva-yellow-100: #FEF6C8;\n --uva-yellow: #ECC602;\n --uva-yellow-A: #B99C02;\n --uva-grey-lightest: #F1F1F1;\n --uva-grey-light: #DADADA;\n --uva-grey-base: #808080;\n --uva-grey-dark: #4F4F4F;\n --uva-grey-darkest: #2B2B2B;\n --uva-grey-200: #F1F1F1;\n --uva-grey-100: #DADADA;\n --uva-grey-50: #ADADAD;\n --uva-grey: #808080;\n --uva-grey-A: #4F4F4F;\n --uva-grey-B: #2B2B2B;\n --uva-font-family: franklin-gothic-urw, \"UVA Franklin Fallback\", Arial, Helvetica, sans-serif;\n --uva-font-size-base: 17px;\n }\n`;\n","import { css, unsafeCSS } from 'lit';\n\n/**\n * `<uvalib-metadata>` long lists before it upgrades (issue #34): a list of more than N values\n * shows its first N and a line for its \"Show all\" button (4px above a 32px button), as the\n * upgraded element does. CSS cannot read N from the attribute into :nth-child(), so the rules\n * are written out for limits 1 to 12; a page with a larger limit adds its own (README). A row's\n * own data-limit on its <dd> wins over list-limit (data-limit=\"0\" shows them all); a data-limit\n * on the list itself works once upgraded but is not held before.\n */\nconst METADATA_LIMITS = Array.from({ length: 12 }, (_, i) => i + 1);\nconst metadataLimits = unsafeCSS(\n METADATA_LIMITS.map((n) => {\n const lists = [\n `uvalib-metadata[list-limit=\"${n}\"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit])`,\n `uvalib-metadata:not(:defined) > dl > dd[data-limit=\"${n}\"] > :is(ul, ol)`,\n ];\n return (\n `${lists.map((l) => `${l} > li:nth-child(n + ${n + 1})`).join(',\\n')} { display: none; }\\n` +\n `${lists.map((l) => `${l}:has(> li:nth-child(${n + 1}))::after`).join(',\\n')} { content: ''; display: block; block-size: 2.25rem; }`\n );\n }).join('\\n'),\n);\n\n/**\n * `<uvalib-pager>` before it upgrades (issue #39): it draws everything from attributes, so the\n * hold draws it too, invisibly, laid out as the upgraded pager is, and nothing below moves.\n * Load-more wins over numbered pages, which win over previous/next, as in the element.\n *\n * Previous/next: each side a box of its title (from prev-label/next-label, on one line, at\n * most 48% wide, 2.75rem tall at least) under its kicker's line (0.75rem, or the text size\n * with no-style) and 0.15rem gap, side by side 1rem apart or stacked when they do not fit,\n * as the links are. Without a label, the side is its kicker. The kicker's line height is\n * worked out from the title's (exact when line-height is a number or normal).\n *\n * Numbered pages: one 2.75rem row, or two (0.25rem apart) when the pager is narrower than its\n * items: 1 to 7 pages are all shown; more show five numbers and one or two ellipses (one\n * near the start; near the end cannot be told from the attributes, so two are assumed).\n *\n * Load more: the \"Showing N of M\" line and the 44px button beside it (wrapping as they\n * wrap); the button is left out only for has-more=\"false\" (a shown that has reached total\n * cannot be compared in CSS).\n *\n * The drawn boxes stay hidden after the two-second reveal (they are not links): if the script\n * never loads, the space stays empty.\n */\nconst OFF = ':defined, [hidden]';\nconst NOPAGES = `[pages=''], [pages='0'], [pages^='-']`;\nconst LOAD = `[mode='load-more' i]`;\nconst FEW = [1, 2, 3, 4, 5, 6, 7].map((n) => `[pages='${n}']`).join(', ');\nconst SECTIONS = `uvalib-pager:not(${OFF}, ${LOAD}, [pages]:not(${NOPAGES}))`;\n/** A side's box (prev ::before, next ::after), with `extra` on the host. */\nconst side = (s: 'prev' | 'next', extra = '') =>\n `${SECTIONS}[${s}-href]:not([${s}-href=''])${extra}::${s === 'prev' ? 'before' : 'after'}`;\nconst sides = (extra = '') => `${side('prev', extra)}, ${side('next', extra)}`;\nconst noLabel = (s: 'prev' | 'next', extra = '') =>\n side(s, `${extra}:is(:not([${s}-label]), [${s}-label=''])`);\nconst noLabels = (extra = '') => `${noLabel('prev', extra)}, ${noLabel('next', extra)}`;\nconst PAGES = `uvalib-pager[pages]:not(${OFF}, ${LOAD}, ${NOPAGES})`;\nconst MORE = `uvalib-pager${LOAD}:not(${OFF})`;\nconst pagesRow = (n: number) => `${n * 2.75 + (n - 1) * 0.25}rem`;\nconst pagerRules = unsafeCSS(`\n uvalib-pager:not(:defined) { line-height: inherit; }\n ${SECTIONS}:is([prev-href]:not([prev-href='']), [next-href]:not([next-href=''])) {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n gap: 1rem;\n }\n ${sides()} {\n display: block;\n max-width: 48%;\n min-width: 0;\n min-height: 2.75rem;\n padding-block-start: calc(0.75 * 1lh + 0.15rem);\n padding-block-start: calc(1lh * 0.75rem / 1em + 0.15rem);\n overflow: hidden;\n white-space: nowrap;\n visibility: hidden;\n }\n ${side('prev')} { content: attr(prev-label); }\n ${side('next')} { content: attr(next-label); margin-inline-start: auto; }\n ${sides('[no-style]')} { padding-block-start: calc(1lh + 0.15rem); }\n ${noLabels()} {\n padding-block-start: 0;\n font-size: 0.75rem;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n }\n ${noLabel('prev')} { content: 'Previous'; }\n ${noLabel('next')} { content: 'Next'; }\n ${noLabels('[no-style]')} {\n padding-block-start: 0;\n font-size: inherit;\n letter-spacing: normal;\n text-transform: none;\n }\n ${PAGES} { container-type: inline-size; }\n ${PAGES}::before { content: ''; display: block; block-size: 2.75rem; }\n ${[4, 5, 6, 7]\n .map(\n (n) =>\n `@container (width < ${pagesRow(n)}) { uvalib-pager[pages='${n}']:not(${OFF}, ${LOAD})::before { block-size: 5.75rem; } }`,\n )\n .join('\\n')}\n @container (width < 18.25rem) {\n ${PAGES}:not(${FEW})::before { block-size: 5.75rem; }\n }\n @container (16.5rem <= width < 18.25rem) {\n ${PAGES}:not(${FEW}):is(:not([page]), [page='1'], [page='2'], [page='3'])::before {\n block-size: 2.75rem;\n }\n }\n ${MORE} {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.75rem 1rem;\n }\n ${MORE}::before {\n content: 'Showing ' attr(shown);\n min-width: 0;\n overflow-wrap: anywhere;\n visibility: hidden;\n }\n ${MORE}[total]:not([total=''], [total='0'])::before {\n content: 'Showing ' attr(shown) ' of ' attr(total);\n }\n ${MORE}:not([has-more='false' i])::after {\n content: 'Load more';\n display: block;\n min-width: 44px;\n min-height: 44px;\n padding: 0.5rem 1.25rem;\n border: 2px solid transparent;\n font: inherit;\n font-size: 1rem;\n line-height: 1.2;\n visibility: hidden;\n }\n ${MORE}[no-style]::after { border-width: 0; }\n`);\n\nexport const TYPEKIT_URL = 'https://use.typekit.net/oym8nvz.css';\n\n// The body background has no fallback: without dark mode it stays transparent, as before.\n//\n// site-page:not(:defined) applies when base.css is linked in <head>, before the element\n// upgrades: its own formatting context (flow-root), so a heading's top margin cannot collapse\n// through to <body> and shift the page once the element upgrades, and invisible, so its\n// content does not paint above where the header will go. If the script never loads, the\n// content appears anyway after two seconds.\nexport const base = css`\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n html,\n body {\n font-family: var(\n --uva-font-family,\n franklin-gothic-urw,\n 'UVA Franklin Fallback',\n Arial,\n Helvetica,\n sans-serif\n );\n }\n html {\n font-size: var(--uva-font-size-base, 17px);\n }\n body {\n margin: 0;\n line-height: 1.5;\n min-height: 100vh;\n color: var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b));\n background-color: var(--uva-color-surface);\n }\n site-page:not(:defined) {\n display: flow-root;\n visibility: hidden;\n animation: uvalib-site-page-reveal 0s 2s forwards;\n }\n uvalib-breadcrumbs:not(:defined),\n uvalib-card:not(:defined),\n uvalib-card-grid:not(:defined),\n uvalib-pager:not(:defined),\n uvalib-contents:not(:defined),\n uvalib-metadata:not(:defined),\n uvalib-tag-list:not(:defined) {\n display: block;\n line-height: 1.5;\n visibility: hidden;\n animation: uvalib-site-page-reveal 0s 2s forwards;\n }\n /* A chip row: hidden, one 44px row tall (with the scrolling row's padding), the raw\n children kept on one line so they cannot make it taller. */\n uvalib-chip-group:not(:defined) {\n display: block;\n min-height: 44px;\n max-width: 100%;\n overflow: hidden;\n white-space: nowrap;\n visibility: hidden;\n animation: uvalib-site-page-reveal 0s 2s forwards;\n }\n uvalib-chip-group[scroll]:not(:defined) {\n min-height: calc(44px + 0.75rem);\n }\n /* A description: one line of it (0.875rem at 1.5, 0.25rem below the row). */\n uvalib-chip-group[description]:not(:defined) {\n padding-block-end: 1.5625rem;\n }\n /* Its text is drawn from attributes: hold one line until it upgrades. */\n uvalib-results-count:not(:defined) {\n display: block;\n min-block-size: 1.5em;\n }\n uvalib-tag-list:not(:defined)[hidden],\n uvalib-results-count:not(:defined)[hidden] {\n display: none;\n }\n ${pagerRules}\n /* The pre-upgrade rules here set display, which beats the hidden attribute's (issue #7).\n More specific than each of them (two pseudo-classes or attributes), so it needs no importance flag. */\n :where(\n site-page,\n uvalib-breadcrumbs,\n uvalib-card,\n uvalib-card-grid,\n uvalib-pager,\n uvalib-contents,\n uvalib-metadata,\n uvalib-chip-group,\n uvalib-tabs,\n uvalib-combobox,\n uvalib-image-regions,\n uvalib-map,\n uvalib-filter-drawer,\n uvalib-filter,\n uvalib-list-filter,\n uvalib-audio\n ):not(:defined)[hidden],\n :where(uvalib-combobox, uvalib-image-regions):not(:defined) > [hidden] {\n display: none;\n }\n /* A record's details before <uvalib-metadata> upgrades (issue #34): the rows already laid\n out as it lays them out (label beside value from 36rem of its own width, stacked below;\n 8px above and below each row, a 1px rule between rows; lists without bullets, 4px apart),\n so the page does not move when it upgrades. Rows the attributes add (creator, rights,\n citation) are not in the page's <dl> and cannot be held. */\n uvalib-metadata:not(:defined) {\n container-type: inline-size;\n font-size: 1rem;\n }\n uvalib-metadata:not(:defined) > dl {\n display: grid;\n grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr);\n column-gap: 1.5rem;\n margin: 0;\n }\n uvalib-metadata:not(:defined) > dl > dt {\n grid-column: 1;\n margin: 0;\n padding-block: 0.5rem;\n font-weight: 700;\n }\n uvalib-metadata:not(:defined) > dl > dd {\n grid-column: 2;\n margin: 0;\n padding-block: 0.5rem;\n }\n uvalib-metadata:not(:defined) > dl > dt:not(:first-child),\n uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd {\n border-block-start: 1px solid transparent;\n }\n uvalib-metadata:not(:defined) > dl > dd > :is(ul, ol) {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n uvalib-metadata:not(:defined) > dl > dd li + li {\n margin-block-start: 0.25rem;\n }\n @container (width < 36rem) {\n uvalib-metadata:not(:defined) > dl {\n grid-template-columns: minmax(0, 1fr);\n }\n uvalib-metadata:not(:defined) > dl > :is(dt, dd) {\n grid-column: 1;\n }\n uvalib-metadata:not(:defined) > dl > dt {\n padding-block-end: 0;\n }\n uvalib-metadata:not(:defined) > dl > dd {\n padding-block-start: 0;\n }\n uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd {\n border-block-start: 0;\n }\n }\n ${metadataLimits}\n /* Tabs stay readable before the script runs: a block, one panel, and a gap the\n size of the tab row (44px) plus its 1rem margin, so the first panel does not\n jump when the element upgrades. Later data-tab panels stay hidden. */\n uvalib-tabs:not(:defined) {\n display: block;\n padding-block-start: calc(44px + 1rem);\n }\n uvalib-tabs:not(:defined) > [data-tab] ~ [data-tab] {\n display: none;\n }\n /* A combobox: its label (from the attribute) and one 44px field (plus a one-line\n description) held, so nothing moves when it upgrades. A fallback <input list> child\n works meanwhile; the other children (options, a datalist) stay out of sight. */\n uvalib-combobox:not(:defined) {\n display: block;\n min-block-size: calc(1.5em + 0.25rem + 44px);\n line-height: 1.5;\n }\n uvalib-combobox[description]:not(:defined) {\n min-block-size: calc(3em + 0.5rem + 44px);\n }\n uvalib-combobox:not(:defined)::before {\n content: attr(label);\n display: block;\n margin-block-end: 0.25rem;\n font-weight: 600;\n }\n uvalib-combobox:not(:defined) > :not(input) {\n display: none;\n }\n uvalib-combobox:not(:defined) > input {\n display: block;\n box-sizing: border-box;\n inline-size: 100%;\n min-block-size: 44px;\n font: inherit;\n line-height: 1.2;\n }\n /* A list filter draws its label, a 44px field and a one-line count from attributes: hold\n their height (less the label with hide-label, less the count with results-count), so the\n list below does not move when it upgrades. The list itself is the page's and stays\n fully shown until then. */\n uvalib-list-filter:not(:defined) {\n display: block;\n font-size: 1rem;\n line-height: 1.5;\n min-block-size: calc(1.5em + 0.25rem + 44px + 0.25rem + 1.5em);\n }\n uvalib-list-filter[hide-label]:not(:defined) {\n min-block-size: calc(44px + 0.25rem + 1.5em);\n }\n uvalib-list-filter[results-count]:not(:defined) {\n min-block-size: calc(1.5em + 0.25rem + 44px);\n }\n uvalib-list-filter[hide-label][results-count]:not(:defined) {\n min-block-size: 44px;\n }\n /* A recording by chapter (<uvalib-audio>): its list of links shows as it will once\n upgraded (each row 44px plus padding, a rule below, the title where it will sit after the\n Play button, a second 44px line for an item with more links or a download), and the\n player's height is held above it: one row of controls from 44rem of its own width, two\n from 26rem, three below (and the download line). Keep in step with UvalibAudio's rules. */\n uvalib-audio:not(:defined) {\n display: block;\n container-type: inline-size;\n font-size: 1rem;\n line-height: 1.5;\n }\n uvalib-audio:not(:defined)::before {\n content: '';\n display: block;\n block-size: calc(1.5rem + 2px + 44px + 0.5rem + 44px);\n margin-block-end: 1rem;\n }\n uvalib-audio[download-href]:not([download-href='']):not(:defined)::before {\n margin-block-end: calc(1rem + 44px + 1rem);\n }\n @container (width < 44rem) {\n uvalib-audio:not(:defined)::before {\n block-size: calc(1.5rem + 2px + 44px + 0.5rem + 2 * 44px + 0.5rem);\n }\n }\n @container (width < 26rem) {\n uvalib-audio:not(:defined)::before {\n block-size: calc(1.5rem + 2px + 44px + 0.5rem + 3 * 44px + 2 * 0.5rem);\n }\n }\n uvalib-audio:not(:defined) > :is(ol, ul) {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n uvalib-audio:not(:defined) > :is(ol, ul) > li {\n box-sizing: border-box;\n min-block-size: calc(44px + 0.5rem + 1px);\n margin: 0;\n padding: 0.25rem 0 0.25rem 8px;\n border-block-end: 1px solid var(--uva-color-table-border, #dadada);\n align-content: center;\n }\n uvalib-audio:not(:defined) > :is(ol, ul) > li:is([data-download], :has(a[href] ~ a[href])) {\n min-block-size: calc(2 * 44px + 0.5rem + 1px);\n }\n /* Room for the duration the upgraded row shows at its end (about “12:31”). */\n uvalib-audio:not(:defined) > :is(ol, ul) > li:has(> a[data-duration]) {\n padding-inline-end: calc(0.75rem + 2.75em);\n }\n uvalib-audio:not(:defined) > :is(ol, ul) > li > a:first-child {\n margin-inline-start: calc(0.5rem + 5rem + 0.75rem);\n }\n /* Image regions: the image at its own width and the list beside it (or under it), the\n layout the element keeps once it upgrades, so the image does not move. */\n uvalib-image-regions:not(:defined) {\n display: flex;\n flex-wrap: wrap;\n gap: 1rem;\n align-items: flex-start;\n }\n uvalib-image-regions:not(:defined) > :is(img, picture) {\n display: block;\n flex: 0 1 auto;\n min-width: 0;\n max-width: 100%;\n height: auto;\n }\n uvalib-image-regions:not(:defined) > :is(ol, ul) {\n flex: 1 1 14rem;\n min-width: 0;\n }\n /* A map: its key instructions (the same text it shows) and the map's height held above\n the child list, so the list does not move when the map is drawn over the page's\n Leaflet. Padding, not margin, so it cannot collapse with the list's own top margin. */\n uvalib-map:not(:defined) {\n display: block;\n }\n uvalib-map:not(:defined)::before {\n content: 'Tab or arrow keys move between places; Enter opens one. With the map focused, arrow keys pan and + and − zoom.';\n display: block;\n padding-block-end: calc(0.5rem + max(12rem, var(--uvalib-map-height, min(24rem, 75vw))));\n font-size: 0.875rem;\n line-height: 1.5;\n color: var(--uva-color-text-muted, #4b5563);\n }\n /* A collapsed filter group (<uvalib-filter collapsible collapsed>) draws only its 44px\n legend button once it upgrades: hold that height. Low specificity, so the [hidden] rule\n above still wins. */\n :where(uvalib-filter[collapsible][collapsed]):not(:defined) {\n display: block;\n min-block-size: 44px;\n }\n /* A filter drawer on a phone (the default 48rem breakpoint): once it upgrades only its 44px\n \"Search and filters\" button shows, so hold that height and keep the form and filters out\n of sight meanwhile; nothing moves when it upgrades. A page with its own breakpoint adds the\n same two rules in a media query of that width (see the README). Low specificity, so the\n [hidden] rule above still wins. */\n @media (max-width: 48rem) {\n :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) {\n display: block;\n min-block-size: 44px;\n }\n :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) > * {\n display: none;\n }\n }\n /* A contents list before <uvalib-contents> upgrades (a .uvalib-sidebar-layout sidebar): the\n headline's line held above, the links already padded as it pads them (the rules drawn\n transparent while hidden), so the list does not move. Narrow (the default 64rem\n collapse-below, closed): only its 44px button shows once it upgrades, so hold that and\n clip the list; the reveal releases it, so the list still shows if the script never loads.\n The [hidden] rule above still wins (it alone sets display). */\n uvalib-contents:not(:defined) {\n padding-block-start: calc(1.125rem * 1.3 + 0.5rem);\n animation-name: uvalib-contents-reveal;\n }\n /* With full-href (issue #38): the full-contents link's line held below the list (0.5rem\n above a 44px link). A window=\"N\" list is not held: the whole list shows until it upgrades\n (in a sidebar beside the content, nothing else moves). */\n uvalib-contents[full-href]:not(:defined) {\n padding-block-end: calc(44px + 0.5rem);\n }\n :where(uvalib-contents):not(:defined) :is(ol, ul) {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n :where(uvalib-contents):not(:defined) > :is(ol, ul) {\n border-block: 1px solid transparent;\n }\n :where(uvalib-contents):not(:defined) > :is(ol, ul) > li + li {\n border-block-start: 1px solid transparent;\n }\n :where(uvalib-contents):not(:defined) li > a {\n display: block;\n padding: 0.5rem 0.75rem 0.5rem calc(0.75rem + 4px);\n }\n :where(uvalib-contents):not(:defined) li li > a {\n padding-block: 0.25rem;\n }\n :where(uvalib-contents):not(:defined) li :is(ol, ul) {\n padding-inline-start: 1rem;\n border-inline-start: 2px solid transparent;\n }\n /* In light DOM (no-shadow-dom) a nested list is indented by a margin, with 0.5rem below. */\n :where(uvalib-contents[no-shadow-dom]):not(:defined) li :is(ol, ul) {\n margin: 0 0 0.5rem 0.75rem;\n padding-inline-start: 0;\n }\n @media (max-width: 64rem) {\n uvalib-contents:not([collapse-below], [open]):not(:defined) {\n max-block-size: 44px;\n padding-block: 0;\n overflow: hidden;\n }\n }\n @keyframes uvalib-contents-reveal {\n to {\n visibility: visible;\n max-block-size: none;\n overflow: visible;\n }\n }\n /* A dialog before <uvalib-dialog> upgrades: its children are the dialog's content, never\n shown in the page, so nothing flashes or moves. Once defined, a closed dialog renders\n nothing (its host is display: contents around a closed <dialog>). */\n uvalib-dialog:not(:defined) {\n display: none;\n }\n /* A citation before <uvalib-citation> upgrades: only the first format's citation, boxed\n as it will be, with the label and 44px format bar held above it (none for hide-label)\n and the 44px Copy citation row below, so nothing moves when it upgrades (an app's\n citations property cannot be held). */\n uvalib-citation:not(:defined) {\n display: block;\n font-size: 1rem;\n line-height: 1.5;\n }\n uvalib-citation:not(:defined):has(> [data-format]) {\n padding-block: calc(2rem + 44px + 0.75rem) calc(0.75rem + 44px);\n }\n uvalib-citation[hide-label]:not(:defined):has(> [data-format]) {\n padding-block-start: calc(44px + 0.75rem);\n }\n uvalib-citation:not(:defined) > [data-format] {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 1px solid transparent;\n overflow-wrap: anywhere;\n text-wrap: pretty;\n }\n uvalib-citation:not(:defined) > [data-format] ~ [data-format],\n uvalib-citation:not(:defined) > [slot] {\n display: none;\n }\n /* Printing a <site-page> (issue #20; its own styles leave out the chrome): a dark scheme\n prints light (the role tokens resolve to their light values), and the content's links\n are black and underlined, so they are told apart without colour. Content is <main> in\n light DOM and the unslotted children in shadow DOM. print-chrome keeps the page as it is\n shown, apart from the light scheme. */\n @media print {\n :root[data-uva-color-scheme]:has(site-page) {\n color-scheme: light;\n --uva-color-scheme: light;\n }\n /* Light DOM's trail, here too, as the pre-upgrade rule above (unlayered) would win. */\n site-page:not([print-chrome]) > [slot='breadcrumbs'] {\n display: none;\n }\n site-page:not([print-chrome]) > :not([slot], site-header, site-footer, .alerts-list) :any-link,\n site-page:not([print-chrome]) > :any-link:not([slot], .skip-link) {\n color: #000;\n text-decoration: underline;\n }\n }\n @keyframes uvalib-site-page-reveal {\n to {\n visibility: visible;\n }\n }\n`;\n"],"mappings":";;AAkBA,IAAaG,IAAe,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDzBC,IAAQ;CAAC;CAAO;CAAO;CAAO;AAAY;AAQhD,SAAgBC,EAAiB,GAAqB;CACpD,IAAMC,IAAQC,EAAI;CAClB,IAAKD,GAAO,MACZ,KAAK,IAAME,KAAQJ,GAAO,EAAM,KAAK,GAAGI,EAAK,6BAA6B,CAAC,CAAC,YAAY,CAAC,CAAC;AAC5F;;AC3EA,IAAaC,IAAS,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCOnBC,IAAkB,MAAM,KAAK,EAA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