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