@uvalib/web-components 1.12.0 → 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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.12.1 — 2026-11-30
4
+
5
+ ### Features
6
+
7
+ - uvalib-edition--unclear-underline, a dotted underline for unclear text (issue #45)
8
+
9
+ ### Fixes
10
+
11
+ - notes inside verse lines flush with the stanza; quotations upright (issues #43, #44)
12
+
13
+ ### Other
14
+
15
+ - Merge branch 'fix/edition-43-45': notes in verse lines (issue #43), upright quotations (issue #44), unclear-underline (issue #45); repair SKILL.md frontmatter from 1.12.0
16
+ - one key per frontmatter line, and no merge-conflict markers in shipped text
17
+
3
18
  ## v1.12.0 — 2026-11-30
4
19
 
5
20
  ### Features
package/README.md CHANGED
@@ -1260,9 +1260,11 @@ A sidebar beside the main content on wide screens, stacked on narrow ones: libra
1260
1260
  </div>
1261
1261
  ```
1262
1262
 
1263
- - **The look** is the library's, not a facsimile's: Franklin Gothic (`--uva-font-family`; serif body text is on the UX team's deprecated list), a 70ch measure at 1.125rem with a 1.7 line height, headings in the theme's colour and scale, epigraphs and quotations as the theme's blockquote (1px orange start border, italic), ornaments as a centred muted ⁂, footnotes after a rule in smaller text, and page breaks as small muted labels (a link to the page image is underlined in the link colour, at least 24px tall, with the library focus ring). Headings and title pages are left-aligned except where the text says `rend-center`.
1264
- - **Class vocabulary.** Structure: `div` (and `div-*`, the TEI `@type`: `div-letter`, `div-poem`, `div-chapter`), `head` (`head-sub`), `p`, `ab`, `seg-*`, `list` (`list-simple`, `label`, `list-head`), `table-wrap`. Verse: `lg`, `l` (with `data-n`, shown as a line number). Drama: `sp`, `speaker`, `stage`. Letters: `opener`, `closer`, `dateline`, `salute`, `signed`, `postscript` (or `seg-postscript`). Front and back matter: `epigraph`, `argument`, `trailer`, `byline`, `dedication`, `bibl`, `cit`, `q`, `titlepage` (or ETC's `titlePage`), `titlePart`, `docTitle`, `docAuthor`, `docImprint`, `docDate`. Figures: `figure`, `figDesc` (or a `head` inside it). Editorial: `add`, `del`, `sic`, `orig`, `reg`, `corr`, `unclear`, `gap`. Notes: `noteref`, `footnotes`, `note` (`note-foot`, `note-end`, `note-n`, `note-body`), `note-inline` (a box as `aside`, bracketed as `span`). Breaks: `lb`, `pb` (`pb-n` for a label, `a.pb-image` for a link to the page image), `ornament`, `textbreak`. Renditions: `rend-italic`, `rend-bold`, `rend-roman`, `rend-smallcaps` (or `rend-small-caps`), `rend-underline`, `rend-sup`, `rend-sub`, `rend-center`, `rend-right`, `rend-left`, `rend-indent`, `rend-indent2`, `rend-indent3` (`rend-indent4` on verse lines), `rend-no-indent`, `rend-hang`.
1265
- - **Editorial marks never rest on colour or strike-through alone.** An addition (raised, smaller) and a deletion (struck through) are announced by screen readers as "added: … (end added)" and "deleted: … (end deleted)" (generated text hidden from sight); an empty deletion shows "[deletion]". Unclear text is followed by a small "[?]" read as "(unclear)"; an empty `gap` shows "[…]" read as "gap in the text". A note reference is read as "Note 1". Line numbers and ornaments are hidden from screen readers.
1263
+ - **The look** is the library's, not a facsimile's: Franklin Gothic (`--uva-font-family`; serif body text is on the UX team's deprecated list), a 70ch measure at 1.125rem with a 1.7 line height, headings in the theme's colour and scale, epigraphs and quotations as the theme's blockquote (1px orange start border; quotations upright, epigraphs italic, see below), ornaments as a centred muted ⁂, footnotes after a rule in smaller text, and page breaks as small muted labels (a link to the page image is underlined in the link colour, at least 24px tall, with the library focus ring). Headings and title pages are left-aligned except where the text says `rend-center`.
1264
+ - **Quotations are upright** (`blockquote`, `quote`, `q`, `cit`), set apart by the orange rule and the indent alone; **epigraphs** (`epigraph`) keep the theme's italic, and italics inside an epigraph (`i`, `em`, `cite`, `rend-italic`, `stage`, `gap`…) turn upright, back to italic in its `bibl`. This departs on purpose from library.virginia.edu's italic blockquote (for UX review): a quoted document can run for pages, and its italics (titles, foreign words, emphasis) must still show; in ETC, 1,296 of 3,450 quotations contain italics.
1265
+ - **Notes inside verse lines** (`<div class="l">…<aside class="note">…</aside></div>`, a TEI `note place="right"` in an `l`) are boxes flush with the stanza at the same width in every line, whatever the line's indent or line numbers, with the number beside the text, as every note in the flow has it.
1266
+ - **Class vocabulary.** Structure: `div` (and `div-*`, the TEI `@type`: `div-letter`, `div-poem`, `div-chapter`), `head` (`head-sub`), `p`, `ab`, `seg-*`, `list` (`list-simple`, `label`, `list-head`), `table-wrap`. Verse: `lg`, `l` (with `data-n`, shown as a line number). Drama: `sp`, `speaker`, `stage`. Letters: `opener`, `closer`, `dateline`, `salute`, `signed`, `postscript` (or `seg-postscript`). Front and back matter: `epigraph`, `argument`, `trailer`, `byline`, `dedication`, `bibl`, `cit`, `q`, `titlepage` (or ETC's `titlePage`), `titlePart`, `docTitle`, `docAuthor`, `docImprint`, `docDate`. Figures: `figure`, `figDesc` (or a `head` inside it). Editorial: `add`, `del`, `sic`, `orig`, `reg`, `corr`, `unclear`, `gap`; the modifier `uvalib-edition--unclear-underline` (on the edition, or on `<body>` in an EPUB) marks unclear text with a dotted underline instead of "[?]". Notes: `noteref`, `footnotes`, `note` (`note-foot`, `note-end`, `note-n`, `note-body`), `note-inline` (a box as `aside`, bracketed as `span`). Breaks: `lb`, `pb` (`pb-n` for a label, `a.pb-image` for a link to the page image), `ornament`, `textbreak`. Renditions: `rend-italic`, `rend-bold`, `rend-roman`, `rend-smallcaps` (or `rend-small-caps`), `rend-underline`, `rend-sup`, `rend-sub`, `rend-center`, `rend-right`, `rend-left`, `rend-indent`, `rend-indent2`, `rend-indent3` (`rend-indent4` on verse lines), `rend-no-indent`, `rend-hang`.
1267
+ - **Editorial marks never rest on colour or strike-through alone.** An addition (raised, smaller) and a deletion (struck through) are announced by screen readers as "added: … (end added)" and "deleted: … (end deleted)" (generated text hidden from sight); an empty deletion shows "[deletion]". Unclear text is followed by a small "[?]" read as "(unclear)". For heavily marked texts, the opt-in class `uvalib-edition--unclear-underline` on the `.uvalib-edition` element or any ancestor (`<body>` in an EPUB or the HTML a PDF is printed from, carried into `edition-epub.css` and `edition-print.css`) gives non-empty `unclear` a muted dotted underline instead (`--uva-color-text-muted`, at least 3:1 in light and dark, fixed grey #4b5563 in the downloads; dotted so it is not taken for a link, and kept in forced colours) with "(unclear)" as visually hidden generated text, as for additions; an empty `unclear` (nothing to underline) keeps its "[?]". Reading systems that speak generated text say "(unclear)"; one that cannot clip it shows "(unclear)" in the text; one without dotted underlines shows no underline. An empty `gap` shows "[…]" read as "gap in the text". A note reference is read as "Note 1". Line numbers and ornaments are hidden from screen readers.
1266
1268
  - **Readings** (`title` on `orig`, `reg`, `sic`, `corr` or `abbr`) get a dotted underline. A `title` shows only on mouse hover and most screen readers do not read it on plain text, so the readings toggle (a checkbox `.uvalib-edition__readings`, or the class `uvalib-edition--readings` on the edition) shows every reading inline in brackets, and print always does. Without the toggle, keyboard and touch users cannot reach them.
1267
1269
  - **Original line breaks.** Prose reflows: `br.lb` is hidden. CSS cannot give a `<br>` a space (browsers ignore `content` on it), so **the converter must keep whitespace before each `<br class="lb">`** or the words on either side run together (ETC's text does: all 12,061 in a sample of 70 pages; a contents label built from a heading's text, which drops the `<br>`, needs the same care); or write `<span class="lb"></span>`, which edition.css spaces itself. A line ending inside a word (`ca<lb/>pite`) needs the converter to drop the break. Lineation is shown by a checked `.uvalib-edition__lines` (a `<label>` round a checkbox, drawn like the library's outline toggle and filled while checked, or the checkbox itself) inside the edition or anywhere in an element before it, or by the class `uvalib-edition--lines` (for a script toggle such as a `.uvalib-button[aria-pressed]`). Verse lines (`l`) always break.
1268
1270
  - **Page images:** `<uvalib-lightbox selector=".uvalib-edition a.pb-image">` opens each `a.pb-image` in the viewer (Previous and Next through the pages); without JavaScript the link opens the image. A page break that starts a section sits on its own line at the end.
@@ -2998,7 +2998,7 @@
2998
2998
  {
2999
2999
  "kind": "variable",
3000
3000
  "name": "edition",
3001
- "default": "css` ${E} { display: block; max-inline-size: 70ch; color: ${TEXT}; font-family: var( --uva-font-family, franklin-gothic-urw, 'UVA Franklin Fallback', Arial, Helvetica, sans-serif ); font-size: 1.125rem; line-height: 1.7; overflow-wrap: break-word; hyphens: auto; } ${E} :where([hidden]), :where(.uvalib-edition, .uvalib-edition__lines, .uvalib-edition__readings)[hidden] { display: none !important; } /* Divisions */ ${E} :where(section, .div) { margin: 0; } ${E} :where(section.div, div.div) + :where(section.div, div.div) { margin-block-start: 2.5rem; } /* Headings: the theme's colour, weight and scale. */ ${E} :where(h1, h2, h3, h4, h5, h6) { margin: 2rem 0 1rem; color: ${LINK}; font-weight: 500; line-height: 1.15; text-wrap: balance; } ${E} :where(:is(h1, h2, h3, h4, h5, h6):first-child) { margin-block-start: 0; } ${E} :where(h1) { font-size: 2.488rem; font-weight: 700; } ${E} :where(h2) { font-size: 2.074rem; font-weight: 700; } ${E} :where(h3) { font-size: 1.728rem; } ${E} :where(h4) { font-size: 1.44rem; } ${E} :where(h5) { font-size: 1.2rem; } ${E} :where(h6) { font-size: 1rem; } ${E} :where(:is(.head, .list-head):not(h1, h2, h3, h4, h5, h6, .figure *, figure *)) { display: block; margin: 1.5em 0 0.5em; font-weight: 700; line-height: 1.3; } ${E} :where(.head-sub, .head-alt, .head-desc) { font-size: 0.85em; font-weight: 500; } /* Paragraphs */ ${E} :where(p, div.p, div.ab) { margin: 0 0 1em; text-wrap: pretty; } /* Renditions */ ${E} :where(.rend-italic, .rend-i, .rend-it) { font-style: italic; } ${E} :where(.rend-roman, .rend-normal) { font-style: normal; } ${E} :where(.rend-bold, .rend-b) { font-weight: 700; } ${E} :where(.rend-smallcaps, .rend-small-caps, .rend-sc) { font-variant: small-caps; } ${E} :where(.rend-underline, .rend-u) { text-decoration: underline; } ${E} :where(.rend-sup, .rend-superscript) { font-size: 0.75em; vertical-align: super; line-height: 0; } ${E} :where(.rend-sub, .rend-subscript) { font-size: 0.75em; vertical-align: sub; line-height: 0; } ${E} :where(.rend-center) { text-align: center; } ${E} :where(.rend-right) { text-align: end; } ${E} :where(.rend-left) { text-align: start; } ${E} :where(.rend-indent:not(.l)) { text-indent: 2em; } ${E} :where(.rend-indent2:not(.l)) { text-indent: 4em; } ${E} :where(.rend-indent3:not(.l)) { text-indent: 6em; } ${E} :where(.rend-no-indent, .rend-noindent) { text-indent: 0; } ${E} :where(.rend-hang) { padding-inline-start: 2em; text-indent: -2em; } ${E} :where(span.rend-hang) { display: inline-block; } /* Original line breaks: prose reflows; the toggle shows them. */ ${E} :where(br.lb) { display: none; } ${E} :where(span.lb)::before { content: ' '; } ${LINES} :where(br.lb) { display: inline; } ${LINES} :where(span.lb)::before { content: '\\\\A'; white-space: pre; } /* Verse: every line breaks; wrapped lines hang; line numbers from data-n, visual only. */ ${E} :where(.lg) { margin: 0 0 1.25em; } ${E} :where(.lg) :where(.lg) { margin-block-end: 1em; } ${E} :where(.l) { display: block; position: relative; padding-inline-start: 2em; text-indent: -2em; } ${E} :where(.l.rend-indent) { padding-inline-start: 4em; } ${E} :where(.l.rend-indent2) { padding-inline-start: 6em; } ${E} :where(.l.rend-indent3) { padding-inline-start: 8em; } ${E} :where(.l.rend-indent4) { padding-inline-start: 10em; } ${E} :where(.lg:has(.l[data-n])) :where(.l) { padding-inline-end: 2.5rem; } ${E} :where(.l[data-n])::after { content: attr(data-n); content: attr(data-n) / ''; position: absolute; inset-block-start: 0.35em; inset-inline-end: 0; color: ${MUTED}; font-size: 0.75rem; font-style: normal; font-variant: normal; font-weight: 400; line-height: 1.5; text-indent: 0; font-variant-numeric: tabular-nums; } /* Drama */ ${E} :where(.sp) { margin: 0 0 1em; } ${E} :where(.speaker) { margin: 0; font-variant: small-caps; font-weight: 700; letter-spacing: 0.03em; } ${E} :where(.sp) > :where(:not(.speaker, .stage)) { margin-inline-start: 1.5em; } ${E} :where(.stage) { color: ${MUTED}; font-style: italic; } ${E} :where(p.stage, div.stage) { margin: 0.25em 0 0.75em 1.5em; } /* Letters: opener, dateline, salute, closer, signed, postscript. */ ${E} :where(.opener, .closer) { margin: 1em 0; } ${E} :where(.dateline) { margin: 0 0 0.75em; text-align: end; } ${E} :where(.salute) { margin: 0 0 0.75em; } ${E} :where(.closer) { text-align: end; } ${E} :where(.signed) { margin: 0 0 0.75em; text-align: end; } ${E} :where(.postscript, .seg-postscript, .ps) { display: block; margin: 1.5em 0 1em; text-align: start; } /* Front matter and quotations: the theme's blockquote. */ ${E} :where(blockquote, .epigraph, .cit, .quote, div.q) { margin: 0.5rem 1.5rem 1.5rem; padding: 0 0.5rem; border-inline-start: 1px solid var(--uva-brand-orange, #e57200); font-style: italic; } ${E} :where(.epigraph, .cit, .quote, div.q) :where(blockquote) { margin: 0; padding: 0; border: 0; } ${E} :where(blockquote, .epigraph, .cit) :where(p, div.p):last-child { margin-block-end: 0; } ${E} :where(.bibl) { display: block; font-style: normal; } ${E} :where(.epigraph, .cit) :where(.bibl) { margin-block-start: 0.25em; text-align: end; } ${E} :where(.argument) { margin: 0 1.5em 1.5em; font-style: italic; } ${E} :where(.byline, .trailer, .dedication, .docAuthor) { margin: 1em 0; text-align: center; } ${E} :where(.dedication) { font-style: italic; } /* Title pages */ ${E} :where(.titlepage, .titlePage) { margin: 0 0 2rem; text-align: center; } ${E} :where(.titlePart, .docTitle) { display: block; margin: 0.5em 0; color: ${LINK}; font-size: 1.44rem; font-weight: 500; line-height: 1.15; } ${E} :where(.titlePart-sub, .titlePart-subtitle) { font-size: 1.2rem; } ${E} :where(.docAuthor) { font-variant: small-caps; } ${E} :where(.docImprint, .docDate, .docEdition) { margin: 1em 0; color: ${MUTED}; } /* Lists and tables */ ${E} :where(ul.list, ol.list) { margin: 0 0 1em; padding-inline-start: 1.5em; } ${E} :where(.list-simple, .list-castlist) { padding-inline-start: 0; list-style: none; } ${E} :where(.list) :where(.label) { font-weight: 700; } ${E} :where(.table-wrap) { margin: 0 0 1.25em; overflow-x: auto; } ${E} :where(table) { border-collapse: collapse; font-size: 0.9em; line-height: 1.4; } ${E} :where(td, th) { padding: 0.25em 0.6em; border-block-end: 1px solid ${RULE}; text-align: start; vertical-align: top; } /* Ornaments and section breaks: a centred muted ⁂, hidden from screen readers. */ ${E} :where(.ornament, .textbreak) { display: block; block-size: auto; margin: 1.5em 0; border: 0; color: ${MUTED}; text-align: center; overflow: visible; } ${E} :where(hr.ornament, hr.textbreak, .ornament:empty, .textbreak:empty)::before { content: '\\\\2042'; content: '\\\\2042' / ''; font-size: 1.25em; line-height: 1; } /* Page breaks: small muted labels; a link to the page image is underlined, in the link colour. Each at least 24px tall. Works with <uvalib-lightbox selector=\"a.pb-image\">. */ ${E} :where(.pb) { color: ${MUTED}; font-size: 0.8125rem; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; text-indent: 0; } ${E} :where(.pb) :where(a, .pb-n) { display: inline-block; margin: 0 0.25em; padding: 0.2em 0.5em; border: 1px solid ${RULE}; border-radius: 3px; white-space: nowrap; text-indent: 0; } ${E} :where(.pb) :where(a) { color: ${LINK}; text-decoration: underline; text-underline-offset: 0.15em; } ${E} :where(.pb) :where(a:hover) { border-color: currentColor; text-decoration-thickness: 2px; } ${E} :where(.pb) :where(a:focus-visible) { outline: ${FOCUS}; outline-offset: 2px; } ${E} :where(section, .div) > :where(.pb:first-child:not(:empty)) { display: block; margin-block-end: 0.5em; text-align: end; } /* Figures */ ${E} :where(.figure, figure) { display: block; margin: 1.5em 0; text-align: center; } ${E} :where(.figure, figure) :where(img) { display: block; max-inline-size: 100%; max-block-size: 80vh; inline-size: auto; block-size: auto; margin: 0 auto 0.5em; } ${E} :where(.figure, figure) :where(.head, .figDesc, figcaption) { display: block; color: ${MUTED}; font-size: 0.875em; font-weight: 400; line-height: 1.4; } /* Editorial marks: never colour or strike-through alone. */ ${E} :where(ins.add, .add) { font-size: 0.85em; text-decoration: none; vertical-align: super; line-height: 0; } ${E} :where(ins.add, .add)::before { content: 'added: '; ${SR_ONLY} } ${E} :where(ins.add, .add)::after { content: ' (end added)'; ${SR_ONLY} } ${E} :where(del.del, .del) { text-decoration: line-through; } ${E} :where(del.del, .del)::before { content: 'deleted: '; ${SR_ONLY} } ${E} :where(del.del, .del)::after { content: ' (end deleted)'; ${SR_ONLY} } /* A deletion with no text (illegible or not transcribed): a visible bracket, inline-block so the strike-through does not cross it. */ ${E} :where(del.del:empty, .del:empty)::before { content: '[deletion]'; position: static; display: inline-block; inline-size: auto; block-size: auto; margin: 0; overflow: visible; clip-path: none; color: ${MUTED}; font-size: 0.85em; } ${E} :where(del.del:empty, .del:empty)::after { content: none; } ${E} ${TITLED} { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 0.2em; cursor: help; } ${READINGS} ${TITLED}::after { content: ' [' attr(title) ']'; color: ${MUTED}; font-size: 0.85em; font-style: normal; } ${E} :where(.unclear)::after { content: '[?]'; content: '[?]' / '(unclear)'; margin-inline-start: 0.1em; color: ${MUTED}; font-size: 0.75em; font-style: normal; vertical-align: super; line-height: 0; } ${E} :where(.gap) { color: ${MUTED}; font-style: italic; } ${E} :where(.gap:empty)::before { content: '[\\\\2026]'; content: '[\\\\2026]' / 'gap in the text'; font-style: normal; } /* Notes: superscript references, footnotes after a rule, notes in the flow as boxes. */ ${E} :where(sup.noteref, .noteref) { padding: 0 0.1em; font-size: 0.75em; font-style: normal; line-height: 0; vertical-align: super; } ${E} :where(.noteref) :where(a) { color: ${LINK}; text-underline-offset: 0.15em; } ${E} :where(.noteref) :where(a)::before { content: 'Note '; ${SR_ONLY} } ${E} :where(.footnotes) { margin-block-start: 3rem; padding-block-start: 1rem; border-block-start: 1px solid var(--uva-color-control-border, var(--uva-grey, #808080)); font-size: 0.875em; line-height: 1.5; } ${E} :where(aside.note, .note-foot, .note-end) { display: flex; gap: 0.6em; margin: 0 0 0.75em; } ${E} :where(.note-n) { flex: none; min-inline-size: 1.75em; font-variant-numeric: tabular-nums; } ${E} :where(a.note-n) { display: inline-block; min-block-size: 24px; color: ${LINK}; } ${E} :where(.note-body) > :where(:last-child) { margin-block-end: 0; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { display: block; margin: 0 0 1.25em; padding: 0.75em 1em; border-inline-start: 3px solid ${RULE}; background: var(--uva-color-table-stripe, var(--uva-grey-200, #f1f1f1)); font-size: 0.9em; } ${E} :where(span.note-inline) { color: ${MUTED}; font-size: 0.9em; } ${E} :where(span.note-inline)::before { content: '['; } ${E} :where(span.note-inline)::after { content: ']'; } ${E} :where(:focus-visible) { outline: ${FOCUS}; outline-offset: 2px; } ${E} :where(:target) { scroll-margin-block-start: 2rem; background: var(--uva-color-highlight, var(--uva-brand-orange-200, #ffc999)); color: var(--uva-color-on-highlight, var(--uva-grey-darkest, #2b2b2b)); } /* The toggles: a label round a checkbox, drawn like base.css's outline toggle button (filled while checked). Outside the edition too, so not under .uvalib-edition. */ :where(label)${TOGGLE} { display: inline-flex; align-items: center; gap: 0.5rem; box-sizing: border-box; min-block-size: 44px; margin: 0 0.5rem 1rem 0; padding: 0.25rem 0.875rem; border: 2px solid var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); border-radius: 0.25rem; color: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); font-family: var( --uva-font-family, franklin-gothic-urw, 'UVA Franklin Fallback', Arial, Helvetica, sans-serif ); font-size: 0.9rem; line-height: 1.2; cursor: pointer; } :where(label)${TOGGLE}:hover { border-color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); } :where(label)${TOGGLE}:has(:checked) { background: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); color: var(--uva-color-button-text, #ffffff); } :where(label)${TOGGLE}:has(:checked):hover { border-color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); background: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); } ${TOGGLE} :where(input[type='checkbox']), :where(input[type='checkbox'])${TOGGLE} { inline-size: 1.125em; block-size: 1.125em; margin: 0; accent-color: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); } :where(label)${TOGGLE}:has(:checked) :where(input[type='checkbox']) { accent-color: var(--uva-color-button-text, #ffffff); } :where(label)${TOGGLE}:has(:focus-visible), :where(input)${TOGGLE}:focus-visible { outline: ${FOCUS}; outline-offset: 2px; } ${TOGGLE} :where(input):focus-visible { outline: none; } @media (forced-colors: active) { :where(label)${TOGGLE} { border-color: ButtonText; color: ButtonText; } :where(label)${TOGGLE}:has(:checked) { forced-color-adjust: none; border-color: Highlight; background: Highlight; color: HighlightText; } ${E} :where(.pb) :where(a) { border-color: LinkText; } ${E} :where(.pb) :where(.pb-n), ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { border-color: CanvasText; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { border: 1px solid CanvasText; } ${E} :where(:target) { forced-color-adjust: none; background: Mark; color: MarkText; } } @media print { ${E} { max-inline-size: none; color: #000000; font-size: 11pt; line-height: 1.5; } ${TOGGLE} { display: none; } ${E} :where(h1, h2, h3, h4, h5, h6, .head, .speaker) { color: #000000; break-after: avoid; } ${E} :where(p, div.p) { orphans: 3; widows: 3; } ${E} :where(.lg, aside.note, .figure, figure) { break-inside: avoid; } ${E} :where(.pb, .stage, .gap, .docImprint, .docDate, .docEdition) { color: #000000; } ${E} :where(.pb) :where(a, .pb-n) { border-color: #000000; color: #000000; } ${E} :where(a) { color: #000000; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { border: 1px solid #000000; background: none; } /* A printed page cannot be hovered: every reading is shown. */ ${E} ${TITLED}::after { content: ' [' attr(title) ']'; font-size: 0.85em; font-style: normal; } ${E} :where(:target) { background: none; color: inherit; } } `"
3001
+ "default": "css` ${E} { display: block; max-inline-size: 70ch; color: ${TEXT}; font-family: var( --uva-font-family, franklin-gothic-urw, 'UVA Franklin Fallback', Arial, Helvetica, sans-serif ); font-size: 1.125rem; line-height: 1.7; overflow-wrap: break-word; hyphens: auto; } ${E} :where([hidden]), :where(.uvalib-edition, .uvalib-edition__lines, .uvalib-edition__readings)[hidden] { display: none !important; } /* Divisions */ ${E} :where(section, .div) { margin: 0; } ${E} :where(section.div, div.div) + :where(section.div, div.div) { margin-block-start: 2.5rem; } /* Headings: the theme's colour, weight and scale. */ ${E} :where(h1, h2, h3, h4, h5, h6) { margin: 2rem 0 1rem; color: ${LINK}; font-weight: 500; line-height: 1.15; text-wrap: balance; } ${E} :where(:is(h1, h2, h3, h4, h5, h6):first-child) { margin-block-start: 0; } ${E} :where(h1) { font-size: 2.488rem; font-weight: 700; } ${E} :where(h2) { font-size: 2.074rem; font-weight: 700; } ${E} :where(h3) { font-size: 1.728rem; } ${E} :where(h4) { font-size: 1.44rem; } ${E} :where(h5) { font-size: 1.2rem; } ${E} :where(h6) { font-size: 1rem; } ${E} :where(:is(.head, .list-head):not(h1, h2, h3, h4, h5, h6, .figure *, figure *)) { display: block; margin: 1.5em 0 0.5em; font-weight: 700; line-height: 1.3; } ${E} :where(.head-sub, .head-alt, .head-desc) { font-size: 0.85em; font-weight: 500; } /* Paragraphs */ ${E} :where(p, div.p, div.ab) { margin: 0 0 1em; text-wrap: pretty; } /* Renditions */ ${E} :where(.rend-italic, .rend-i, .rend-it) { font-style: italic; } ${E} :where(.rend-roman, .rend-normal) { font-style: normal; } ${E} :where(.rend-bold, .rend-b) { font-weight: 700; } ${E} :where(.rend-smallcaps, .rend-small-caps, .rend-sc) { font-variant: small-caps; } ${E} :where(.rend-underline, .rend-u) { text-decoration: underline; } ${E} :where(.rend-sup, .rend-superscript) { font-size: 0.75em; vertical-align: super; line-height: 0; } ${E} :where(.rend-sub, .rend-subscript) { font-size: 0.75em; vertical-align: sub; line-height: 0; } ${E} :where(.rend-center) { text-align: center; } ${E} :where(.rend-right) { text-align: end; } ${E} :where(.rend-left) { text-align: start; } ${E} :where(.rend-indent:not(.l)) { text-indent: 2em; } ${E} :where(.rend-indent2:not(.l)) { text-indent: 4em; } ${E} :where(.rend-indent3:not(.l)) { text-indent: 6em; } ${E} :where(.rend-no-indent, .rend-noindent) { text-indent: 0; } ${E} :where(.rend-hang) { padding-inline-start: 2em; text-indent: -2em; } ${E} :where(span.rend-hang) { display: inline-block; } /* Original line breaks: prose reflows; the toggle shows them. */ ${E} :where(br.lb) { display: none; } ${E} :where(span.lb)::before { content: ' '; } ${LINES} :where(br.lb) { display: inline; } ${LINES} :where(span.lb)::before { content: '\\\\A'; white-space: pre; } /* Verse: every line breaks; wrapped lines hang; line numbers from data-n, visual only. */ ${E} :where(.lg) { margin: 0 0 1.25em; } ${E} :where(.lg) :where(.lg) { margin-block-end: 1em; } ${E} :where(.l) { display: block; position: relative; padding-inline-start: ${unsafeCSS(LINE_INDENTS[0]![1])}em; text-indent: -${unsafeCSS(LINE_INDENTS[0]![1])}em; } ${lineIndents} ${E} :where(.lg:has(.l[data-n])) :where(.l) { padding-inline-end: ${unsafeCSS(LINE_NUMBER_ROOM)}rem; } ${E} :where(.l[data-n])::after { content: attr(data-n); content: attr(data-n) / ''; position: absolute; inset-block-start: 0.35em; inset-inline-end: 0; color: ${MUTED}; font-size: 0.75rem; font-style: normal; font-variant: normal; font-weight: 400; line-height: 1.5; text-indent: 0; font-variant-numeric: tabular-nums; } /* Drama */ ${E} :where(.sp) { margin: 0 0 1em; } ${E} :where(.speaker) { margin: 0; font-variant: small-caps; font-weight: 700; letter-spacing: 0.03em; } ${E} :where(.sp) > :where(:not(.speaker, .stage)) { margin-inline-start: 1.5em; } ${E} :where(.stage) { color: ${MUTED}; font-style: italic; } ${E} :where(p.stage, div.stage) { margin: 0.25em 0 0.75em 1.5em; } /* Letters: opener, dateline, salute, closer, signed, postscript. */ ${E} :where(.opener, .closer) { margin: 1em 0; } ${E} :where(.dateline) { margin: 0 0 0.75em; text-align: end; } ${E} :where(.salute) { margin: 0 0 0.75em; } ${E} :where(.closer) { text-align: end; } ${E} :where(.signed) { margin: 0 0 0.75em; text-align: end; } ${E} :where(.postscript, .seg-postscript, .ps) { display: block; margin: 1.5em 0 1em; text-align: start; } /* Front matter and quotations: the theme's blockquote. */ ${E} :where(blockquote, .epigraph, .cit, .quote, div.q) { margin: 0.5rem 1.5rem 1.5rem; padding: 0 0.5rem; border-inline-start: 1px solid var(--uva-brand-orange, #e57200); } /* Quotations upright (italics inside them show); epigraphs italic. */ ${E} :where(.epigraph) { font-style: italic; } ${E} :where(.epigraph, .cit, .quote, div.q) :where(blockquote) { margin: 0; padding: 0; border: 0; } ${E} :where(blockquote, .epigraph, .cit) :where(p, div.p):last-child { margin-block-end: 0; } ${E} :where(.bibl) { display: block; font-style: normal; } ${E} :where(.epigraph, .cit) :where(.bibl) { margin-block-start: 0.25em; text-align: end; } ${E} :where(.argument) { margin: 0 1.5em 1.5em; font-style: italic; } ${E} :where(.byline, .trailer, .dedication, .docAuthor) { margin: 1em 0; text-align: center; } ${E} :where(.dedication) { font-style: italic; } /* Title pages */ ${E} :where(.titlepage, .titlePage) { margin: 0 0 2rem; text-align: center; } ${E} :where(.titlePart, .docTitle) { display: block; margin: 0.5em 0; color: ${LINK}; font-size: 1.44rem; font-weight: 500; line-height: 1.15; } ${E} :where(.titlePart-sub, .titlePart-subtitle) { font-size: 1.2rem; } ${E} :where(.docAuthor) { font-variant: small-caps; } ${E} :where(.docImprint, .docDate, .docEdition) { margin: 1em 0; color: ${MUTED}; } /* Lists and tables */ ${E} :where(ul.list, ol.list) { margin: 0 0 1em; padding-inline-start: 1.5em; } ${E} :where(.list-simple, .list-castlist) { padding-inline-start: 0; list-style: none; } ${E} :where(.list) :where(.label) { font-weight: 700; } ${E} :where(.table-wrap) { margin: 0 0 1.25em; overflow-x: auto; } ${E} :where(table) { border-collapse: collapse; font-size: 0.9em; line-height: 1.4; } ${E} :where(td, th) { padding: 0.25em 0.6em; border-block-end: 1px solid ${RULE}; text-align: start; vertical-align: top; } /* Ornaments and section breaks: a centred muted ⁂, hidden from screen readers. */ ${E} :where(.ornament, .textbreak) { display: block; block-size: auto; margin: 1.5em 0; border: 0; color: ${MUTED}; text-align: center; overflow: visible; } ${E} :where(hr.ornament, hr.textbreak, .ornament:empty, .textbreak:empty)::before { content: '\\\\2042'; content: '\\\\2042' / ''; font-size: 1.25em; line-height: 1; } /* Page breaks: small muted labels; a link to the page image is underlined, in the link colour. Each at least 24px tall. Works with <uvalib-lightbox selector=\"a.pb-image\">. */ ${E} :where(.pb) { color: ${MUTED}; font-size: 0.8125rem; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; text-indent: 0; } ${E} :where(.pb) :where(a, .pb-n) { display: inline-block; margin: 0 0.25em; padding: 0.2em 0.5em; border: 1px solid ${RULE}; border-radius: 3px; white-space: nowrap; text-indent: 0; } ${E} :where(.pb) :where(a) { color: ${LINK}; text-decoration: underline; text-underline-offset: 0.15em; } ${E} :where(.pb) :where(a:hover) { border-color: currentColor; text-decoration-thickness: 2px; } ${E} :where(.pb) :where(a:focus-visible) { outline: ${FOCUS}; outline-offset: 2px; } ${E} :where(section, .div) > :where(.pb:first-child:not(:empty)) { display: block; margin-block-end: 0.5em; text-align: end; } /* Figures */ ${E} :where(.figure, figure) { display: block; margin: 1.5em 0; text-align: center; } ${E} :where(.figure, figure) :where(img) { display: block; max-inline-size: 100%; max-block-size: 80vh; inline-size: auto; block-size: auto; margin: 0 auto 0.5em; } ${E} :where(.figure, figure) :where(.head, .figDesc, figcaption) { display: block; color: ${MUTED}; font-size: 0.875em; font-weight: 400; line-height: 1.4; } /* Editorial marks: never colour or strike-through alone. */ ${E} :where(ins.add, .add) { font-size: 0.85em; text-decoration: none; vertical-align: super; line-height: 0; } ${E} :where(ins.add, .add)::before { content: 'added: '; ${SR_ONLY} } ${E} :where(ins.add, .add)::after { content: ' (end added)'; ${SR_ONLY} } ${E} :where(del.del, .del) { text-decoration: line-through; } ${E} :where(del.del, .del)::before { content: 'deleted: '; ${SR_ONLY} } ${E} :where(del.del, .del)::after { content: ' (end deleted)'; ${SR_ONLY} } /* A deletion with no text (illegible or not transcribed): a visible bracket, inline-block so the strike-through does not cross it. */ ${E} :where(del.del:empty, .del:empty)::before { content: '[deletion]'; position: static; display: inline-block; inline-size: auto; block-size: auto; margin: 0; overflow: visible; clip-path: none; color: ${MUTED}; font-size: 0.85em; } ${E} :where(del.del:empty, .del:empty)::after { content: none; } ${E} ${TITLED} { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 0.2em; cursor: help; } ${READINGS} ${TITLED}::after { content: ' [' attr(title) ']'; color: ${MUTED}; font-size: 0.85em; font-style: normal; } ${E} :where(.unclear)::after { content: '[?]'; content: '[?]' / '(unclear)'; margin-inline-start: 0.1em; color: ${MUTED}; font-size: 0.75em; font-style: normal; vertical-align: super; line-height: 0; } /* Opt-in: a dotted underline and hidden \"(unclear)\"; an empty one keeps [?]. */ ${UNCLEAR_UNDERLINE} :where(.unclear:not(:empty)) { text-decoration: underline dotted ${MUTED}; text-decoration-thickness: 1px; text-underline-offset: 0.2em; } ${UNCLEAR_UNDERLINE} :where(.unclear:not(:empty))::after { content: ' (unclear)'; ${SR_ONLY} } ${E} :where(.gap) { color: ${MUTED}; font-style: italic; } ${E} :where(.gap:empty)::before { content: '[\\\\2026]'; content: '[\\\\2026]' / 'gap in the text'; font-style: normal; } /* Italics in an epigraph upright (after .stage, .gap); in its source, italic. */ ${E} :where(.epigraph) :where(${ITALIC}) { font-style: normal; } ${E} :where(.epigraph) :where(.bibl) :where(${ITALIC}) { font-style: italic; } /* Notes: superscript references, footnotes after a rule, notes in the flow as boxes. */ ${E} :where(sup.noteref, .noteref) { padding: 0 0.1em; font-size: 0.75em; font-style: normal; line-height: 0; vertical-align: super; } ${E} :where(.noteref) :where(a) { color: ${LINK}; text-underline-offset: 0.15em; } ${E} :where(.noteref) :where(a)::before { content: 'Note '; ${SR_ONLY} } ${E} :where(.footnotes) { margin-block-start: 3rem; padding-block-start: 1rem; border-block-start: 1px solid var(--uva-color-control-border, var(--uva-grey, #808080)); font-size: 0.875em; line-height: 1.5; } ${E} :where(aside.note, .note-foot, .note-end) { display: flex; gap: 0.6em; margin: 0 0 0.75em; } ${E} :where(.note-n) { flex: none; min-inline-size: 1.75em; font-variant-numeric: tabular-nums; } ${E} :where(a.note-n) { display: inline-block; min-block-size: 24px; color: ${LINK}; } ${E} :where(.note-body) > :where(:last-child) { margin-block-end: 0; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { display: block; margin: 0 0 1.25em; padding: 0.75em 1em; border-inline-start: 3px solid ${RULE}; background: var(--uva-color-table-stripe, var(--uva-grey-200, #f1f1f1)); font-size: ${unsafeCSS(NOTE_SIZE)}em; } /* The number beside the text (float: loose text stays one paragraph). */ ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) > :where(.note-n) { float: inline-start; margin-inline-end: 0.6em; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) > :where(.note-n + .note-body) { display: flow-root; } /* A note in a verse line: flush with the stanza, the line's hanging indent undone. */ ${E} :where(.l) > :where(aside.note:not(.note-foot, .note-end)) { margin-block-start: 0.25em; margin-block-end: 0.75em; text-indent: 0; } ${noteInLineIndents} ${E} :where(.lg:has(.l[data-n])) :where(.l) > :where(aside.note:not(.note-foot, .note-end)) { margin-inline-end: -${unsafeCSS(LINE_NUMBER_ROOM)}rem; } ${E} :where(span.note-inline) { color: ${MUTED}; font-size: 0.9em; } ${E} :where(span.note-inline)::before { content: '['; } ${E} :where(span.note-inline)::after { content: ']'; } ${E} :where(:focus-visible) { outline: ${FOCUS}; outline-offset: 2px; } ${E} :where(:target) { scroll-margin-block-start: 2rem; background: var(--uva-color-highlight, var(--uva-brand-orange-200, #ffc999)); color: var(--uva-color-on-highlight, var(--uva-grey-darkest, #2b2b2b)); } /* The toggles: a label round a checkbox, drawn like base.css's outline toggle button (filled while checked). Outside the edition too, so not under .uvalib-edition. */ :where(label)${TOGGLE} { display: inline-flex; align-items: center; gap: 0.5rem; box-sizing: border-box; min-block-size: 44px; margin: 0 0.5rem 1rem 0; padding: 0.25rem 0.875rem; border: 2px solid var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); border-radius: 0.25rem; color: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); font-family: var( --uva-font-family, franklin-gothic-urw, 'UVA Franklin Fallback', Arial, Helvetica, sans-serif ); font-size: 0.9rem; line-height: 1.2; cursor: pointer; } :where(label)${TOGGLE}:hover { border-color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); } :where(label)${TOGGLE}:has(:checked) { background: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); color: var(--uva-color-button-text, #ffffff); } :where(label)${TOGGLE}:has(:checked):hover { border-color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); background: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); } ${TOGGLE} :where(input[type='checkbox']), :where(input[type='checkbox'])${TOGGLE} { inline-size: 1.125em; block-size: 1.125em; margin: 0; accent-color: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); } :where(label)${TOGGLE}:has(:checked) :where(input[type='checkbox']) { accent-color: var(--uva-color-button-text, #ffffff); } :where(label)${TOGGLE}:has(:focus-visible), :where(input)${TOGGLE}:focus-visible { outline: ${FOCUS}; outline-offset: 2px; } ${TOGGLE} :where(input):focus-visible { outline: none; } @media (forced-colors: active) { :where(label)${TOGGLE} { border-color: ButtonText; color: ButtonText; } :where(label)${TOGGLE}:has(:checked) { forced-color-adjust: none; border-color: Highlight; background: Highlight; color: HighlightText; } ${E} :where(.pb) :where(a) { border-color: LinkText; } ${E} :where(.pb) :where(.pb-n), ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { border-color: CanvasText; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { border: 1px solid CanvasText; } ${E} :where(:target) { forced-color-adjust: none; background: Mark; color: MarkText; } } @media print { ${E} { max-inline-size: none; color: #000000; font-size: 11pt; line-height: 1.5; } ${TOGGLE} { display: none; } ${E} :where(h1, h2, h3, h4, h5, h6, .head, .speaker) { color: #000000; break-after: avoid; } ${E} :where(p, div.p) { orphans: 3; widows: 3; } ${E} :where(.lg, aside.note, .figure, figure) { break-inside: avoid; } ${E} :where(.pb, .stage, .gap, .docImprint, .docDate, .docEdition) { color: #000000; } ${E} :where(.pb) :where(a, .pb-n) { border-color: #000000; color: #000000; } ${E} :where(a) { color: #000000; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { border: 1px solid #000000; background: none; } /* A printed page cannot be hovered: every reading is shown. */ ${E} ${TITLED}::after { content: ' [' attr(title) ']'; font-size: 0.85em; font-style: normal; } ${E} :where(:target) { background: none; color: inherit; } } `"
3002
3002
  },
3003
3003
  {
3004
3004
  "kind": "variable",
@@ -207,6 +207,8 @@ blockquote, .epigraph, .cit, .quote, div.q {
207
207
  margin: 0.5rem 1.5rem 1.5rem;
208
208
  padding: 0 0.5rem;
209
209
  border-left: 1px solid #e57200;
210
+ }
211
+ .epigraph {
210
212
  font-style: italic;
211
213
  }
212
214
  .epigraph blockquote, .cit blockquote, .quote blockquote, div.q blockquote {
@@ -433,6 +435,24 @@ del.del:empty:after, .del:empty:after {
433
435
  vertical-align: super;
434
436
  line-height: 0;
435
437
  }
438
+ .uvalib-edition--unclear-underline .unclear:not(:empty) {
439
+ text-decoration: underline dotted #4b5563;
440
+ text-decoration-thickness: 1px;
441
+ text-underline-offset: 0.2em;
442
+ }
443
+ .uvalib-edition--unclear-underline .unclear:not(:empty):after {
444
+ content: ' (unclear)';
445
+ position: absolute;
446
+ width: 1px;
447
+ height: 1px;
448
+ margin: -1px;
449
+ padding: 0;
450
+ overflow: hidden;
451
+ clip: rect(0 0 0 0);
452
+ clip-path: inset(50%);
453
+ white-space: nowrap;
454
+ text-decoration: none;
455
+ }
436
456
  .gap {
437
457
  color: #4b5563;
438
458
  font-style: italic;
@@ -441,6 +461,12 @@ del.del:empty:after, .del:empty:after {
441
461
  content: '[\2026]';
442
462
  font-style: normal;
443
463
  }
464
+ .epigraph i, .epigraph em, .epigraph cite, .epigraph dfn, .epigraph var, .epigraph .rend-italic, .epigraph .rend-i, .epigraph .rend-it, .epigraph .stage, .epigraph .gap {
465
+ font-style: normal;
466
+ }
467
+ .epigraph .bibl i, .epigraph .bibl em, .epigraph .bibl cite, .epigraph .bibl dfn, .epigraph .bibl var, .epigraph .bibl .rend-italic, .epigraph .bibl .rend-i, .epigraph .bibl .rend-it, .epigraph .bibl .stage, .epigraph .bibl .gap {
468
+ font-style: italic;
469
+ }
444
470
  sup.noteref, .noteref {
445
471
  padding: 0 0.1em;
446
472
  font-size: 0.75em;
@@ -499,6 +525,36 @@ aside.note-inline, aside.note:not(.note-foot):not(.note-end) {
499
525
  border-left: 3px solid #dadada;
500
526
  font-size: 0.9em;
501
527
  }
528
+ aside.note-inline > .note-n, aside.note:not(.note-foot):not(.note-end) > .note-n {
529
+ float: left;
530
+ margin-right: 0.6em;
531
+ }
532
+ aside.note-inline > .note-n + .note-body, aside.note:not(.note-foot):not(.note-end) > .note-n + .note-body {
533
+ display: flow-root;
534
+ }
535
+ .l > aside.note:not(.note-foot):not(.note-end) {
536
+ margin-top: 0.25em;
537
+ margin-bottom: 0.75em;
538
+ text-indent: 0;
539
+ }
540
+ .l > aside.note:not(.note-foot):not(.note-end) {
541
+ margin-left: -2.2222em;
542
+ }
543
+ .l.rend-indent > aside.note:not(.note-foot):not(.note-end) {
544
+ margin-left: -4.4444em;
545
+ }
546
+ .l.rend-indent2 > aside.note:not(.note-foot):not(.note-end) {
547
+ margin-left: -6.6667em;
548
+ }
549
+ .l.rend-indent3 > aside.note:not(.note-foot):not(.note-end) {
550
+ margin-left: -8.8889em;
551
+ }
552
+ .l.rend-indent4 > aside.note:not(.note-foot):not(.note-end) {
553
+ margin-left: -11.1111em;
554
+ }
555
+ .l[data-n] > aside.note:not(.note-foot):not(.note-end) {
556
+ margin-right: -2.5rem;
557
+ }
502
558
  span.note-inline {
503
559
  color: #4b5563;
504
560
  font-size: 0.9em;
package/dist/edition.css CHANGED
@@ -276,6 +276,9 @@
276
276
  margin: 0.5rem 1.5rem 1.5rem;
277
277
  padding: 0 0.5rem;
278
278
  border-inline-start: 1px solid var(--uva-brand-orange, #e57200);
279
+ }
280
+ /* Quotations upright (italics inside them show); epigraphs italic. */
281
+ :where(.uvalib-edition) :where(.epigraph) {
279
282
  font-style: italic;
280
283
  }
281
284
  :where(.uvalib-edition) :where(.epigraph, .cit, .quote, div.q) :where(blockquote) {
@@ -539,6 +542,24 @@
539
542
  vertical-align: super;
540
543
  line-height: 0;
541
544
  }
545
+ /* Opt-in: a dotted underline and hidden "(unclear)"; an empty one keeps [?]. */
546
+ :where(.uvalib-edition--unclear-underline .uvalib-edition, .uvalib-edition.uvalib-edition--unclear-underline) :where(.unclear:not(:empty)) {
547
+ text-decoration: underline dotted var(--uva-color-text-muted, #4b5563);
548
+ text-decoration-thickness: 1px;
549
+ text-underline-offset: 0.2em;
550
+ }
551
+ :where(.uvalib-edition--unclear-underline .uvalib-edition, .uvalib-edition.uvalib-edition--unclear-underline) :where(.unclear:not(:empty))::after {
552
+ content: ' (unclear)';
553
+ position: absolute;
554
+ inline-size: 1px;
555
+ block-size: 1px;
556
+ margin: -1px;
557
+ padding: 0;
558
+ overflow: hidden;
559
+ clip-path: inset(50%);
560
+ white-space: nowrap;
561
+ text-decoration: none;
562
+ }
542
563
  :where(.uvalib-edition) :where(.gap) {
543
564
  color: var(--uva-color-text-muted, #4b5563);
544
565
  font-style: italic;
@@ -549,6 +570,14 @@
549
570
  font-style: normal;
550
571
  }
551
572
 
573
+ /* Italics in an epigraph upright (after .stage, .gap); in its source, italic. */
574
+ :where(.uvalib-edition) :where(.epigraph) :where(i, em, cite, dfn, var, .rend-italic, .rend-i, .rend-it, .stage, .gap) {
575
+ font-style: normal;
576
+ }
577
+ :where(.uvalib-edition) :where(.epigraph) :where(.bibl) :where(i, em, cite, dfn, var, .rend-italic, .rend-i, .rend-it, .stage, .gap) {
578
+ font-style: italic;
579
+ }
580
+
552
581
  /* Notes: superscript references, footnotes after a rule, notes in the flow as boxes. */
553
582
  :where(.uvalib-edition) :where(sup.noteref, .noteref) {
554
583
  padding: 0 0.1em;
@@ -606,6 +635,38 @@
606
635
  background: var(--uva-color-table-stripe, var(--uva-grey-200, #f1f1f1));
607
636
  font-size: 0.9em;
608
637
  }
638
+ /* The number beside the text (float: loose text stays one paragraph). */
639
+ :where(.uvalib-edition) :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) > :where(.note-n) {
640
+ float: inline-start;
641
+ margin-inline-end: 0.6em;
642
+ }
643
+ :where(.uvalib-edition) :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) > :where(.note-n + .note-body) {
644
+ display: flow-root;
645
+ }
646
+ /* A note in a verse line: flush with the stanza, the line's hanging indent undone. */
647
+ :where(.uvalib-edition) :where(.l) > :where(aside.note:not(.note-foot, .note-end)) {
648
+ margin-block-start: 0.25em;
649
+ margin-block-end: 0.75em;
650
+ text-indent: 0;
651
+ }
652
+ :where(.uvalib-edition) :where(.l) > :where(aside.note:not(.note-foot, .note-end)) {
653
+ margin-inline-start: -2.2222em;
654
+ }
655
+ :where(.uvalib-edition) :where(.l.rend-indent) > :where(aside.note:not(.note-foot, .note-end)) {
656
+ margin-inline-start: -4.4444em;
657
+ }
658
+ :where(.uvalib-edition) :where(.l.rend-indent2) > :where(aside.note:not(.note-foot, .note-end)) {
659
+ margin-inline-start: -6.6667em;
660
+ }
661
+ :where(.uvalib-edition) :where(.l.rend-indent3) > :where(aside.note:not(.note-foot, .note-end)) {
662
+ margin-inline-start: -8.8889em;
663
+ }
664
+ :where(.uvalib-edition) :where(.l.rend-indent4) > :where(aside.note:not(.note-foot, .note-end)) {
665
+ margin-inline-start: -11.1111em;
666
+ }
667
+ :where(.uvalib-edition) :where(.lg:has(.l[data-n])) :where(.l) > :where(aside.note:not(.note-foot, .note-end)) {
668
+ margin-inline-end: -2.5rem;
669
+ }
609
670
  :where(.uvalib-edition) :where(span.note-inline) {
610
671
  color: var(--uva-color-text-muted, #4b5563);
611
672
  font-size: 0.9em;
@@ -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, 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).
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"; an empty gap or deletion
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: 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;
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: 2.5rem;
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: 0.9em;
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};
@@ -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,gEAAgE;AAChE,EAAE;AACF,6FAA6F;AAC7F,8FAA8F;AAC9F,6FAA6F;AAC7F,6FAA6F;AAC7F,uFAAuF;AACvF,uFAAuF;AACvF,yCAAyC;AACzC,EAAE;AACF,2FAA2F;AAC3F,8FAA8F;AAC9F,4FAA4F;AAC5F,4FAA4F;AAC5F,4FAA4F;AAC5F,EAAE;AACF,uFAAuF;AACvF,iFAAiF;AAEjF,MAAM,CAAC,GAAG,SAAS,CAAC,yBAAyB,CAAC,CAAC;AAE/C,6FAA6F;AAC7F,MAAM,KAAK,GAAG,SAAS,CACrB;;;;;IAKE,CACH,CAAC;AAEF,wFAAwF;AACxF,MAAM,QAAQ,GAAG,SAAS,CACxB;;;;;IAKE,CACH,CAAC;AAEF,6FAA6F;AAC7F,MAAM,MAAM,GAAG,SAAS,CAAC,+CAA+C,CAAC,CAAC;AAE1E,yEAAyE;AACzE,MAAM,MAAM,GAAG,SAAS,CAAC,2DAA2D,CAAC,CAAC;AAEtF,0FAA0F;AAC1F,MAAM,OAAO,GAAG,SA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,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"}
@@ -2998,7 +2998,7 @@
2998
2998
  {
2999
2999
  "kind": "variable",
3000
3000
  "name": "edition",
3001
- "default": "css` ${E} { display: block; max-inline-size: 70ch; color: ${TEXT}; font-family: var( --uva-font-family, franklin-gothic-urw, 'UVA Franklin Fallback', Arial, Helvetica, sans-serif ); font-size: 1.125rem; line-height: 1.7; overflow-wrap: break-word; hyphens: auto; } ${E} :where([hidden]), :where(.uvalib-edition, .uvalib-edition__lines, .uvalib-edition__readings)[hidden] { display: none !important; } /* Divisions */ ${E} :where(section, .div) { margin: 0; } ${E} :where(section.div, div.div) + :where(section.div, div.div) { margin-block-start: 2.5rem; } /* Headings: the theme's colour, weight and scale. */ ${E} :where(h1, h2, h3, h4, h5, h6) { margin: 2rem 0 1rem; color: ${LINK}; font-weight: 500; line-height: 1.15; text-wrap: balance; } ${E} :where(:is(h1, h2, h3, h4, h5, h6):first-child) { margin-block-start: 0; } ${E} :where(h1) { font-size: 2.488rem; font-weight: 700; } ${E} :where(h2) { font-size: 2.074rem; font-weight: 700; } ${E} :where(h3) { font-size: 1.728rem; } ${E} :where(h4) { font-size: 1.44rem; } ${E} :where(h5) { font-size: 1.2rem; } ${E} :where(h6) { font-size: 1rem; } ${E} :where(:is(.head, .list-head):not(h1, h2, h3, h4, h5, h6, .figure *, figure *)) { display: block; margin: 1.5em 0 0.5em; font-weight: 700; line-height: 1.3; } ${E} :where(.head-sub, .head-alt, .head-desc) { font-size: 0.85em; font-weight: 500; } /* Paragraphs */ ${E} :where(p, div.p, div.ab) { margin: 0 0 1em; text-wrap: pretty; } /* Renditions */ ${E} :where(.rend-italic, .rend-i, .rend-it) { font-style: italic; } ${E} :where(.rend-roman, .rend-normal) { font-style: normal; } ${E} :where(.rend-bold, .rend-b) { font-weight: 700; } ${E} :where(.rend-smallcaps, .rend-small-caps, .rend-sc) { font-variant: small-caps; } ${E} :where(.rend-underline, .rend-u) { text-decoration: underline; } ${E} :where(.rend-sup, .rend-superscript) { font-size: 0.75em; vertical-align: super; line-height: 0; } ${E} :where(.rend-sub, .rend-subscript) { font-size: 0.75em; vertical-align: sub; line-height: 0; } ${E} :where(.rend-center) { text-align: center; } ${E} :where(.rend-right) { text-align: end; } ${E} :where(.rend-left) { text-align: start; } ${E} :where(.rend-indent:not(.l)) { text-indent: 2em; } ${E} :where(.rend-indent2:not(.l)) { text-indent: 4em; } ${E} :where(.rend-indent3:not(.l)) { text-indent: 6em; } ${E} :where(.rend-no-indent, .rend-noindent) { text-indent: 0; } ${E} :where(.rend-hang) { padding-inline-start: 2em; text-indent: -2em; } ${E} :where(span.rend-hang) { display: inline-block; } /* Original line breaks: prose reflows; the toggle shows them. */ ${E} :where(br.lb) { display: none; } ${E} :where(span.lb)::before { content: ' '; } ${LINES} :where(br.lb) { display: inline; } ${LINES} :where(span.lb)::before { content: '\\\\A'; white-space: pre; } /* Verse: every line breaks; wrapped lines hang; line numbers from data-n, visual only. */ ${E} :where(.lg) { margin: 0 0 1.25em; } ${E} :where(.lg) :where(.lg) { margin-block-end: 1em; } ${E} :where(.l) { display: block; position: relative; padding-inline-start: 2em; text-indent: -2em; } ${E} :where(.l.rend-indent) { padding-inline-start: 4em; } ${E} :where(.l.rend-indent2) { padding-inline-start: 6em; } ${E} :where(.l.rend-indent3) { padding-inline-start: 8em; } ${E} :where(.l.rend-indent4) { padding-inline-start: 10em; } ${E} :where(.lg:has(.l[data-n])) :where(.l) { padding-inline-end: 2.5rem; } ${E} :where(.l[data-n])::after { content: attr(data-n); content: attr(data-n) / ''; position: absolute; inset-block-start: 0.35em; inset-inline-end: 0; color: ${MUTED}; font-size: 0.75rem; font-style: normal; font-variant: normal; font-weight: 400; line-height: 1.5; text-indent: 0; font-variant-numeric: tabular-nums; } /* Drama */ ${E} :where(.sp) { margin: 0 0 1em; } ${E} :where(.speaker) { margin: 0; font-variant: small-caps; font-weight: 700; letter-spacing: 0.03em; } ${E} :where(.sp) > :where(:not(.speaker, .stage)) { margin-inline-start: 1.5em; } ${E} :where(.stage) { color: ${MUTED}; font-style: italic; } ${E} :where(p.stage, div.stage) { margin: 0.25em 0 0.75em 1.5em; } /* Letters: opener, dateline, salute, closer, signed, postscript. */ ${E} :where(.opener, .closer) { margin: 1em 0; } ${E} :where(.dateline) { margin: 0 0 0.75em; text-align: end; } ${E} :where(.salute) { margin: 0 0 0.75em; } ${E} :where(.closer) { text-align: end; } ${E} :where(.signed) { margin: 0 0 0.75em; text-align: end; } ${E} :where(.postscript, .seg-postscript, .ps) { display: block; margin: 1.5em 0 1em; text-align: start; } /* Front matter and quotations: the theme's blockquote. */ ${E} :where(blockquote, .epigraph, .cit, .quote, div.q) { margin: 0.5rem 1.5rem 1.5rem; padding: 0 0.5rem; border-inline-start: 1px solid var(--uva-brand-orange, #e57200); font-style: italic; } ${E} :where(.epigraph, .cit, .quote, div.q) :where(blockquote) { margin: 0; padding: 0; border: 0; } ${E} :where(blockquote, .epigraph, .cit) :where(p, div.p):last-child { margin-block-end: 0; } ${E} :where(.bibl) { display: block; font-style: normal; } ${E} :where(.epigraph, .cit) :where(.bibl) { margin-block-start: 0.25em; text-align: end; } ${E} :where(.argument) { margin: 0 1.5em 1.5em; font-style: italic; } ${E} :where(.byline, .trailer, .dedication, .docAuthor) { margin: 1em 0; text-align: center; } ${E} :where(.dedication) { font-style: italic; } /* Title pages */ ${E} :where(.titlepage, .titlePage) { margin: 0 0 2rem; text-align: center; } ${E} :where(.titlePart, .docTitle) { display: block; margin: 0.5em 0; color: ${LINK}; font-size: 1.44rem; font-weight: 500; line-height: 1.15; } ${E} :where(.titlePart-sub, .titlePart-subtitle) { font-size: 1.2rem; } ${E} :where(.docAuthor) { font-variant: small-caps; } ${E} :where(.docImprint, .docDate, .docEdition) { margin: 1em 0; color: ${MUTED}; } /* Lists and tables */ ${E} :where(ul.list, ol.list) { margin: 0 0 1em; padding-inline-start: 1.5em; } ${E} :where(.list-simple, .list-castlist) { padding-inline-start: 0; list-style: none; } ${E} :where(.list) :where(.label) { font-weight: 700; } ${E} :where(.table-wrap) { margin: 0 0 1.25em; overflow-x: auto; } ${E} :where(table) { border-collapse: collapse; font-size: 0.9em; line-height: 1.4; } ${E} :where(td, th) { padding: 0.25em 0.6em; border-block-end: 1px solid ${RULE}; text-align: start; vertical-align: top; } /* Ornaments and section breaks: a centred muted ⁂, hidden from screen readers. */ ${E} :where(.ornament, .textbreak) { display: block; block-size: auto; margin: 1.5em 0; border: 0; color: ${MUTED}; text-align: center; overflow: visible; } ${E} :where(hr.ornament, hr.textbreak, .ornament:empty, .textbreak:empty)::before { content: '\\\\2042'; content: '\\\\2042' / ''; font-size: 1.25em; line-height: 1; } /* Page breaks: small muted labels; a link to the page image is underlined, in the link colour. Each at least 24px tall. Works with <uvalib-lightbox selector=\"a.pb-image\">. */ ${E} :where(.pb) { color: ${MUTED}; font-size: 0.8125rem; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; text-indent: 0; } ${E} :where(.pb) :where(a, .pb-n) { display: inline-block; margin: 0 0.25em; padding: 0.2em 0.5em; border: 1px solid ${RULE}; border-radius: 3px; white-space: nowrap; text-indent: 0; } ${E} :where(.pb) :where(a) { color: ${LINK}; text-decoration: underline; text-underline-offset: 0.15em; } ${E} :where(.pb) :where(a:hover) { border-color: currentColor; text-decoration-thickness: 2px; } ${E} :where(.pb) :where(a:focus-visible) { outline: ${FOCUS}; outline-offset: 2px; } ${E} :where(section, .div) > :where(.pb:first-child:not(:empty)) { display: block; margin-block-end: 0.5em; text-align: end; } /* Figures */ ${E} :where(.figure, figure) { display: block; margin: 1.5em 0; text-align: center; } ${E} :where(.figure, figure) :where(img) { display: block; max-inline-size: 100%; max-block-size: 80vh; inline-size: auto; block-size: auto; margin: 0 auto 0.5em; } ${E} :where(.figure, figure) :where(.head, .figDesc, figcaption) { display: block; color: ${MUTED}; font-size: 0.875em; font-weight: 400; line-height: 1.4; } /* Editorial marks: never colour or strike-through alone. */ ${E} :where(ins.add, .add) { font-size: 0.85em; text-decoration: none; vertical-align: super; line-height: 0; } ${E} :where(ins.add, .add)::before { content: 'added: '; ${SR_ONLY} } ${E} :where(ins.add, .add)::after { content: ' (end added)'; ${SR_ONLY} } ${E} :where(del.del, .del) { text-decoration: line-through; } ${E} :where(del.del, .del)::before { content: 'deleted: '; ${SR_ONLY} } ${E} :where(del.del, .del)::after { content: ' (end deleted)'; ${SR_ONLY} } /* A deletion with no text (illegible or not transcribed): a visible bracket, inline-block so the strike-through does not cross it. */ ${E} :where(del.del:empty, .del:empty)::before { content: '[deletion]'; position: static; display: inline-block; inline-size: auto; block-size: auto; margin: 0; overflow: visible; clip-path: none; color: ${MUTED}; font-size: 0.85em; } ${E} :where(del.del:empty, .del:empty)::after { content: none; } ${E} ${TITLED} { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 0.2em; cursor: help; } ${READINGS} ${TITLED}::after { content: ' [' attr(title) ']'; color: ${MUTED}; font-size: 0.85em; font-style: normal; } ${E} :where(.unclear)::after { content: '[?]'; content: '[?]' / '(unclear)'; margin-inline-start: 0.1em; color: ${MUTED}; font-size: 0.75em; font-style: normal; vertical-align: super; line-height: 0; } ${E} :where(.gap) { color: ${MUTED}; font-style: italic; } ${E} :where(.gap:empty)::before { content: '[\\\\2026]'; content: '[\\\\2026]' / 'gap in the text'; font-style: normal; } /* Notes: superscript references, footnotes after a rule, notes in the flow as boxes. */ ${E} :where(sup.noteref, .noteref) { padding: 0 0.1em; font-size: 0.75em; font-style: normal; line-height: 0; vertical-align: super; } ${E} :where(.noteref) :where(a) { color: ${LINK}; text-underline-offset: 0.15em; } ${E} :where(.noteref) :where(a)::before { content: 'Note '; ${SR_ONLY} } ${E} :where(.footnotes) { margin-block-start: 3rem; padding-block-start: 1rem; border-block-start: 1px solid var(--uva-color-control-border, var(--uva-grey, #808080)); font-size: 0.875em; line-height: 1.5; } ${E} :where(aside.note, .note-foot, .note-end) { display: flex; gap: 0.6em; margin: 0 0 0.75em; } ${E} :where(.note-n) { flex: none; min-inline-size: 1.75em; font-variant-numeric: tabular-nums; } ${E} :where(a.note-n) { display: inline-block; min-block-size: 24px; color: ${LINK}; } ${E} :where(.note-body) > :where(:last-child) { margin-block-end: 0; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { display: block; margin: 0 0 1.25em; padding: 0.75em 1em; border-inline-start: 3px solid ${RULE}; background: var(--uva-color-table-stripe, var(--uva-grey-200, #f1f1f1)); font-size: 0.9em; } ${E} :where(span.note-inline) { color: ${MUTED}; font-size: 0.9em; } ${E} :where(span.note-inline)::before { content: '['; } ${E} :where(span.note-inline)::after { content: ']'; } ${E} :where(:focus-visible) { outline: ${FOCUS}; outline-offset: 2px; } ${E} :where(:target) { scroll-margin-block-start: 2rem; background: var(--uva-color-highlight, var(--uva-brand-orange-200, #ffc999)); color: var(--uva-color-on-highlight, var(--uva-grey-darkest, #2b2b2b)); } /* The toggles: a label round a checkbox, drawn like base.css's outline toggle button (filled while checked). Outside the edition too, so not under .uvalib-edition. */ :where(label)${TOGGLE} { display: inline-flex; align-items: center; gap: 0.5rem; box-sizing: border-box; min-block-size: 44px; margin: 0 0.5rem 1rem 0; padding: 0.25rem 0.875rem; border: 2px solid var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); border-radius: 0.25rem; color: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); font-family: var( --uva-font-family, franklin-gothic-urw, 'UVA Franklin Fallback', Arial, Helvetica, sans-serif ); font-size: 0.9rem; line-height: 1.2; cursor: pointer; } :where(label)${TOGGLE}:hover { border-color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); } :where(label)${TOGGLE}:has(:checked) { background: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); color: var(--uva-color-button-text, #ffffff); } :where(label)${TOGGLE}:has(:checked):hover { border-color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); background: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); } ${TOGGLE} :where(input[type='checkbox']), :where(input[type='checkbox'])${TOGGLE} { inline-size: 1.125em; block-size: 1.125em; margin: 0; accent-color: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); } :where(label)${TOGGLE}:has(:checked) :where(input[type='checkbox']) { accent-color: var(--uva-color-button-text, #ffffff); } :where(label)${TOGGLE}:has(:focus-visible), :where(input)${TOGGLE}:focus-visible { outline: ${FOCUS}; outline-offset: 2px; } ${TOGGLE} :where(input):focus-visible { outline: none; } @media (forced-colors: active) { :where(label)${TOGGLE} { border-color: ButtonText; color: ButtonText; } :where(label)${TOGGLE}:has(:checked) { forced-color-adjust: none; border-color: Highlight; background: Highlight; color: HighlightText; } ${E} :where(.pb) :where(a) { border-color: LinkText; } ${E} :where(.pb) :where(.pb-n), ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { border-color: CanvasText; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { border: 1px solid CanvasText; } ${E} :where(:target) { forced-color-adjust: none; background: Mark; color: MarkText; } } @media print { ${E} { max-inline-size: none; color: #000000; font-size: 11pt; line-height: 1.5; } ${TOGGLE} { display: none; } ${E} :where(h1, h2, h3, h4, h5, h6, .head, .speaker) { color: #000000; break-after: avoid; } ${E} :where(p, div.p) { orphans: 3; widows: 3; } ${E} :where(.lg, aside.note, .figure, figure) { break-inside: avoid; } ${E} :where(.pb, .stage, .gap, .docImprint, .docDate, .docEdition) { color: #000000; } ${E} :where(.pb) :where(a, .pb-n) { border-color: #000000; color: #000000; } ${E} :where(a) { color: #000000; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { border: 1px solid #000000; background: none; } /* A printed page cannot be hovered: every reading is shown. */ ${E} ${TITLED}::after { content: ' [' attr(title) ']'; font-size: 0.85em; font-style: normal; } ${E} :where(:target) { background: none; color: inherit; } } `"
3001
+ "default": "css` ${E} { display: block; max-inline-size: 70ch; color: ${TEXT}; font-family: var( --uva-font-family, franklin-gothic-urw, 'UVA Franklin Fallback', Arial, Helvetica, sans-serif ); font-size: 1.125rem; line-height: 1.7; overflow-wrap: break-word; hyphens: auto; } ${E} :where([hidden]), :where(.uvalib-edition, .uvalib-edition__lines, .uvalib-edition__readings)[hidden] { display: none !important; } /* Divisions */ ${E} :where(section, .div) { margin: 0; } ${E} :where(section.div, div.div) + :where(section.div, div.div) { margin-block-start: 2.5rem; } /* Headings: the theme's colour, weight and scale. */ ${E} :where(h1, h2, h3, h4, h5, h6) { margin: 2rem 0 1rem; color: ${LINK}; font-weight: 500; line-height: 1.15; text-wrap: balance; } ${E} :where(:is(h1, h2, h3, h4, h5, h6):first-child) { margin-block-start: 0; } ${E} :where(h1) { font-size: 2.488rem; font-weight: 700; } ${E} :where(h2) { font-size: 2.074rem; font-weight: 700; } ${E} :where(h3) { font-size: 1.728rem; } ${E} :where(h4) { font-size: 1.44rem; } ${E} :where(h5) { font-size: 1.2rem; } ${E} :where(h6) { font-size: 1rem; } ${E} :where(:is(.head, .list-head):not(h1, h2, h3, h4, h5, h6, .figure *, figure *)) { display: block; margin: 1.5em 0 0.5em; font-weight: 700; line-height: 1.3; } ${E} :where(.head-sub, .head-alt, .head-desc) { font-size: 0.85em; font-weight: 500; } /* Paragraphs */ ${E} :where(p, div.p, div.ab) { margin: 0 0 1em; text-wrap: pretty; } /* Renditions */ ${E} :where(.rend-italic, .rend-i, .rend-it) { font-style: italic; } ${E} :where(.rend-roman, .rend-normal) { font-style: normal; } ${E} :where(.rend-bold, .rend-b) { font-weight: 700; } ${E} :where(.rend-smallcaps, .rend-small-caps, .rend-sc) { font-variant: small-caps; } ${E} :where(.rend-underline, .rend-u) { text-decoration: underline; } ${E} :where(.rend-sup, .rend-superscript) { font-size: 0.75em; vertical-align: super; line-height: 0; } ${E} :where(.rend-sub, .rend-subscript) { font-size: 0.75em; vertical-align: sub; line-height: 0; } ${E} :where(.rend-center) { text-align: center; } ${E} :where(.rend-right) { text-align: end; } ${E} :where(.rend-left) { text-align: start; } ${E} :where(.rend-indent:not(.l)) { text-indent: 2em; } ${E} :where(.rend-indent2:not(.l)) { text-indent: 4em; } ${E} :where(.rend-indent3:not(.l)) { text-indent: 6em; } ${E} :where(.rend-no-indent, .rend-noindent) { text-indent: 0; } ${E} :where(.rend-hang) { padding-inline-start: 2em; text-indent: -2em; } ${E} :where(span.rend-hang) { display: inline-block; } /* Original line breaks: prose reflows; the toggle shows them. */ ${E} :where(br.lb) { display: none; } ${E} :where(span.lb)::before { content: ' '; } ${LINES} :where(br.lb) { display: inline; } ${LINES} :where(span.lb)::before { content: '\\\\A'; white-space: pre; } /* Verse: every line breaks; wrapped lines hang; line numbers from data-n, visual only. */ ${E} :where(.lg) { margin: 0 0 1.25em; } ${E} :where(.lg) :where(.lg) { margin-block-end: 1em; } ${E} :where(.l) { display: block; position: relative; padding-inline-start: ${unsafeCSS(LINE_INDENTS[0]![1])}em; text-indent: -${unsafeCSS(LINE_INDENTS[0]![1])}em; } ${lineIndents} ${E} :where(.lg:has(.l[data-n])) :where(.l) { padding-inline-end: ${unsafeCSS(LINE_NUMBER_ROOM)}rem; } ${E} :where(.l[data-n])::after { content: attr(data-n); content: attr(data-n) / ''; position: absolute; inset-block-start: 0.35em; inset-inline-end: 0; color: ${MUTED}; font-size: 0.75rem; font-style: normal; font-variant: normal; font-weight: 400; line-height: 1.5; text-indent: 0; font-variant-numeric: tabular-nums; } /* Drama */ ${E} :where(.sp) { margin: 0 0 1em; } ${E} :where(.speaker) { margin: 0; font-variant: small-caps; font-weight: 700; letter-spacing: 0.03em; } ${E} :where(.sp) > :where(:not(.speaker, .stage)) { margin-inline-start: 1.5em; } ${E} :where(.stage) { color: ${MUTED}; font-style: italic; } ${E} :where(p.stage, div.stage) { margin: 0.25em 0 0.75em 1.5em; } /* Letters: opener, dateline, salute, closer, signed, postscript. */ ${E} :where(.opener, .closer) { margin: 1em 0; } ${E} :where(.dateline) { margin: 0 0 0.75em; text-align: end; } ${E} :where(.salute) { margin: 0 0 0.75em; } ${E} :where(.closer) { text-align: end; } ${E} :where(.signed) { margin: 0 0 0.75em; text-align: end; } ${E} :where(.postscript, .seg-postscript, .ps) { display: block; margin: 1.5em 0 1em; text-align: start; } /* Front matter and quotations: the theme's blockquote. */ ${E} :where(blockquote, .epigraph, .cit, .quote, div.q) { margin: 0.5rem 1.5rem 1.5rem; padding: 0 0.5rem; border-inline-start: 1px solid var(--uva-brand-orange, #e57200); } /* Quotations upright (italics inside them show); epigraphs italic. */ ${E} :where(.epigraph) { font-style: italic; } ${E} :where(.epigraph, .cit, .quote, div.q) :where(blockquote) { margin: 0; padding: 0; border: 0; } ${E} :where(blockquote, .epigraph, .cit) :where(p, div.p):last-child { margin-block-end: 0; } ${E} :where(.bibl) { display: block; font-style: normal; } ${E} :where(.epigraph, .cit) :where(.bibl) { margin-block-start: 0.25em; text-align: end; } ${E} :where(.argument) { margin: 0 1.5em 1.5em; font-style: italic; } ${E} :where(.byline, .trailer, .dedication, .docAuthor) { margin: 1em 0; text-align: center; } ${E} :where(.dedication) { font-style: italic; } /* Title pages */ ${E} :where(.titlepage, .titlePage) { margin: 0 0 2rem; text-align: center; } ${E} :where(.titlePart, .docTitle) { display: block; margin: 0.5em 0; color: ${LINK}; font-size: 1.44rem; font-weight: 500; line-height: 1.15; } ${E} :where(.titlePart-sub, .titlePart-subtitle) { font-size: 1.2rem; } ${E} :where(.docAuthor) { font-variant: small-caps; } ${E} :where(.docImprint, .docDate, .docEdition) { margin: 1em 0; color: ${MUTED}; } /* Lists and tables */ ${E} :where(ul.list, ol.list) { margin: 0 0 1em; padding-inline-start: 1.5em; } ${E} :where(.list-simple, .list-castlist) { padding-inline-start: 0; list-style: none; } ${E} :where(.list) :where(.label) { font-weight: 700; } ${E} :where(.table-wrap) { margin: 0 0 1.25em; overflow-x: auto; } ${E} :where(table) { border-collapse: collapse; font-size: 0.9em; line-height: 1.4; } ${E} :where(td, th) { padding: 0.25em 0.6em; border-block-end: 1px solid ${RULE}; text-align: start; vertical-align: top; } /* Ornaments and section breaks: a centred muted ⁂, hidden from screen readers. */ ${E} :where(.ornament, .textbreak) { display: block; block-size: auto; margin: 1.5em 0; border: 0; color: ${MUTED}; text-align: center; overflow: visible; } ${E} :where(hr.ornament, hr.textbreak, .ornament:empty, .textbreak:empty)::before { content: '\\\\2042'; content: '\\\\2042' / ''; font-size: 1.25em; line-height: 1; } /* Page breaks: small muted labels; a link to the page image is underlined, in the link colour. Each at least 24px tall. Works with <uvalib-lightbox selector=\"a.pb-image\">. */ ${E} :where(.pb) { color: ${MUTED}; font-size: 0.8125rem; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; text-indent: 0; } ${E} :where(.pb) :where(a, .pb-n) { display: inline-block; margin: 0 0.25em; padding: 0.2em 0.5em; border: 1px solid ${RULE}; border-radius: 3px; white-space: nowrap; text-indent: 0; } ${E} :where(.pb) :where(a) { color: ${LINK}; text-decoration: underline; text-underline-offset: 0.15em; } ${E} :where(.pb) :where(a:hover) { border-color: currentColor; text-decoration-thickness: 2px; } ${E} :where(.pb) :where(a:focus-visible) { outline: ${FOCUS}; outline-offset: 2px; } ${E} :where(section, .div) > :where(.pb:first-child:not(:empty)) { display: block; margin-block-end: 0.5em; text-align: end; } /* Figures */ ${E} :where(.figure, figure) { display: block; margin: 1.5em 0; text-align: center; } ${E} :where(.figure, figure) :where(img) { display: block; max-inline-size: 100%; max-block-size: 80vh; inline-size: auto; block-size: auto; margin: 0 auto 0.5em; } ${E} :where(.figure, figure) :where(.head, .figDesc, figcaption) { display: block; color: ${MUTED}; font-size: 0.875em; font-weight: 400; line-height: 1.4; } /* Editorial marks: never colour or strike-through alone. */ ${E} :where(ins.add, .add) { font-size: 0.85em; text-decoration: none; vertical-align: super; line-height: 0; } ${E} :where(ins.add, .add)::before { content: 'added: '; ${SR_ONLY} } ${E} :where(ins.add, .add)::after { content: ' (end added)'; ${SR_ONLY} } ${E} :where(del.del, .del) { text-decoration: line-through; } ${E} :where(del.del, .del)::before { content: 'deleted: '; ${SR_ONLY} } ${E} :where(del.del, .del)::after { content: ' (end deleted)'; ${SR_ONLY} } /* A deletion with no text (illegible or not transcribed): a visible bracket, inline-block so the strike-through does not cross it. */ ${E} :where(del.del:empty, .del:empty)::before { content: '[deletion]'; position: static; display: inline-block; inline-size: auto; block-size: auto; margin: 0; overflow: visible; clip-path: none; color: ${MUTED}; font-size: 0.85em; } ${E} :where(del.del:empty, .del:empty)::after { content: none; } ${E} ${TITLED} { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 0.2em; cursor: help; } ${READINGS} ${TITLED}::after { content: ' [' attr(title) ']'; color: ${MUTED}; font-size: 0.85em; font-style: normal; } ${E} :where(.unclear)::after { content: '[?]'; content: '[?]' / '(unclear)'; margin-inline-start: 0.1em; color: ${MUTED}; font-size: 0.75em; font-style: normal; vertical-align: super; line-height: 0; } /* Opt-in: a dotted underline and hidden \"(unclear)\"; an empty one keeps [?]. */ ${UNCLEAR_UNDERLINE} :where(.unclear:not(:empty)) { text-decoration: underline dotted ${MUTED}; text-decoration-thickness: 1px; text-underline-offset: 0.2em; } ${UNCLEAR_UNDERLINE} :where(.unclear:not(:empty))::after { content: ' (unclear)'; ${SR_ONLY} } ${E} :where(.gap) { color: ${MUTED}; font-style: italic; } ${E} :where(.gap:empty)::before { content: '[\\\\2026]'; content: '[\\\\2026]' / 'gap in the text'; font-style: normal; } /* Italics in an epigraph upright (after .stage, .gap); in its source, italic. */ ${E} :where(.epigraph) :where(${ITALIC}) { font-style: normal; } ${E} :where(.epigraph) :where(.bibl) :where(${ITALIC}) { font-style: italic; } /* Notes: superscript references, footnotes after a rule, notes in the flow as boxes. */ ${E} :where(sup.noteref, .noteref) { padding: 0 0.1em; font-size: 0.75em; font-style: normal; line-height: 0; vertical-align: super; } ${E} :where(.noteref) :where(a) { color: ${LINK}; text-underline-offset: 0.15em; } ${E} :where(.noteref) :where(a)::before { content: 'Note '; ${SR_ONLY} } ${E} :where(.footnotes) { margin-block-start: 3rem; padding-block-start: 1rem; border-block-start: 1px solid var(--uva-color-control-border, var(--uva-grey, #808080)); font-size: 0.875em; line-height: 1.5; } ${E} :where(aside.note, .note-foot, .note-end) { display: flex; gap: 0.6em; margin: 0 0 0.75em; } ${E} :where(.note-n) { flex: none; min-inline-size: 1.75em; font-variant-numeric: tabular-nums; } ${E} :where(a.note-n) { display: inline-block; min-block-size: 24px; color: ${LINK}; } ${E} :where(.note-body) > :where(:last-child) { margin-block-end: 0; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { display: block; margin: 0 0 1.25em; padding: 0.75em 1em; border-inline-start: 3px solid ${RULE}; background: var(--uva-color-table-stripe, var(--uva-grey-200, #f1f1f1)); font-size: ${unsafeCSS(NOTE_SIZE)}em; } /* The number beside the text (float: loose text stays one paragraph). */ ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) > :where(.note-n) { float: inline-start; margin-inline-end: 0.6em; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) > :where(.note-n + .note-body) { display: flow-root; } /* A note in a verse line: flush with the stanza, the line's hanging indent undone. */ ${E} :where(.l) > :where(aside.note:not(.note-foot, .note-end)) { margin-block-start: 0.25em; margin-block-end: 0.75em; text-indent: 0; } ${noteInLineIndents} ${E} :where(.lg:has(.l[data-n])) :where(.l) > :where(aside.note:not(.note-foot, .note-end)) { margin-inline-end: -${unsafeCSS(LINE_NUMBER_ROOM)}rem; } ${E} :where(span.note-inline) { color: ${MUTED}; font-size: 0.9em; } ${E} :where(span.note-inline)::before { content: '['; } ${E} :where(span.note-inline)::after { content: ']'; } ${E} :where(:focus-visible) { outline: ${FOCUS}; outline-offset: 2px; } ${E} :where(:target) { scroll-margin-block-start: 2rem; background: var(--uva-color-highlight, var(--uva-brand-orange-200, #ffc999)); color: var(--uva-color-on-highlight, var(--uva-grey-darkest, #2b2b2b)); } /* The toggles: a label round a checkbox, drawn like base.css's outline toggle button (filled while checked). Outside the edition too, so not under .uvalib-edition. */ :where(label)${TOGGLE} { display: inline-flex; align-items: center; gap: 0.5rem; box-sizing: border-box; min-block-size: 44px; margin: 0 0.5rem 1rem 0; padding: 0.25rem 0.875rem; border: 2px solid var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); border-radius: 0.25rem; color: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); font-family: var( --uva-font-family, franklin-gothic-urw, 'UVA Franklin Fallback', Arial, Helvetica, sans-serif ); font-size: 0.9rem; line-height: 1.2; cursor: pointer; } :where(label)${TOGGLE}:hover { border-color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); } :where(label)${TOGGLE}:has(:checked) { background: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); color: var(--uva-color-button-text, #ffffff); } :where(label)${TOGGLE}:has(:checked):hover { border-color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); background: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); } ${TOGGLE} :where(input[type='checkbox']), :where(input[type='checkbox'])${TOGGLE} { inline-size: 1.125em; block-size: 1.125em; margin: 0; accent-color: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); } :where(label)${TOGGLE}:has(:checked) :where(input[type='checkbox']) { accent-color: var(--uva-color-button-text, #ffffff); } :where(label)${TOGGLE}:has(:focus-visible), :where(input)${TOGGLE}:focus-visible { outline: ${FOCUS}; outline-offset: 2px; } ${TOGGLE} :where(input):focus-visible { outline: none; } @media (forced-colors: active) { :where(label)${TOGGLE} { border-color: ButtonText; color: ButtonText; } :where(label)${TOGGLE}:has(:checked) { forced-color-adjust: none; border-color: Highlight; background: Highlight; color: HighlightText; } ${E} :where(.pb) :where(a) { border-color: LinkText; } ${E} :where(.pb) :where(.pb-n), ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { border-color: CanvasText; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { border: 1px solid CanvasText; } ${E} :where(:target) { forced-color-adjust: none; background: Mark; color: MarkText; } } @media print { ${E} { max-inline-size: none; color: #000000; font-size: 11pt; line-height: 1.5; } ${TOGGLE} { display: none; } ${E} :where(h1, h2, h3, h4, h5, h6, .head, .speaker) { color: #000000; break-after: avoid; } ${E} :where(p, div.p) { orphans: 3; widows: 3; } ${E} :where(.lg, aside.note, .figure, figure) { break-inside: avoid; } ${E} :where(.pb, .stage, .gap, .docImprint, .docDate, .docEdition) { color: #000000; } ${E} :where(.pb) :where(a, .pb-n) { border-color: #000000; color: #000000; } ${E} :where(a) { color: #000000; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { border: 1px solid #000000; background: none; } /* A printed page cannot be hovered: every reading is shown. */ ${E} ${TITLED}::after { content: ' [' attr(title) ']'; font-size: 0.85em; font-style: normal; } ${E} :where(:target) { background: none; color: inherit; } } `"
3002
3002
  },
3003
3003
  {
3004
3004
  "kind": "variable",
@@ -207,6 +207,8 @@ blockquote, .epigraph, .cit, .quote, div.q {
207
207
  margin: 0.5rem 1.5rem 1.5rem;
208
208
  padding: 0 0.5rem;
209
209
  border-left: 1px solid #e57200;
210
+ }
211
+ .epigraph {
210
212
  font-style: italic;
211
213
  }
212
214
  .epigraph blockquote, .cit blockquote, .quote blockquote, div.q blockquote {
@@ -433,6 +435,24 @@ del.del:empty:after, .del:empty:after {
433
435
  vertical-align: super;
434
436
  line-height: 0;
435
437
  }
438
+ .uvalib-edition--unclear-underline .unclear:not(:empty) {
439
+ text-decoration: underline dotted #4b5563;
440
+ text-decoration-thickness: 1px;
441
+ text-underline-offset: 0.2em;
442
+ }
443
+ .uvalib-edition--unclear-underline .unclear:not(:empty):after {
444
+ content: ' (unclear)';
445
+ position: absolute;
446
+ width: 1px;
447
+ height: 1px;
448
+ margin: -1px;
449
+ padding: 0;
450
+ overflow: hidden;
451
+ clip: rect(0 0 0 0);
452
+ clip-path: inset(50%);
453
+ white-space: nowrap;
454
+ text-decoration: none;
455
+ }
436
456
  .gap {
437
457
  color: #4b5563;
438
458
  font-style: italic;
@@ -441,6 +461,12 @@ del.del:empty:after, .del:empty:after {
441
461
  content: '[\2026]';
442
462
  font-style: normal;
443
463
  }
464
+ .epigraph i, .epigraph em, .epigraph cite, .epigraph dfn, .epigraph var, .epigraph .rend-italic, .epigraph .rend-i, .epigraph .rend-it, .epigraph .stage, .epigraph .gap {
465
+ font-style: normal;
466
+ }
467
+ .epigraph .bibl i, .epigraph .bibl em, .epigraph .bibl cite, .epigraph .bibl dfn, .epigraph .bibl var, .epigraph .bibl .rend-italic, .epigraph .bibl .rend-i, .epigraph .bibl .rend-it, .epigraph .bibl .stage, .epigraph .bibl .gap {
468
+ font-style: italic;
469
+ }
444
470
  sup.noteref, .noteref {
445
471
  padding: 0 0.1em;
446
472
  font-size: 0.75em;
@@ -499,6 +525,36 @@ aside.note-inline, aside.note:not(.note-foot):not(.note-end) {
499
525
  border-left: 3px solid #dadada;
500
526
  font-size: 0.9em;
501
527
  }
528
+ aside.note-inline > .note-n, aside.note:not(.note-foot):not(.note-end) > .note-n {
529
+ float: left;
530
+ margin-right: 0.6em;
531
+ }
532
+ aside.note-inline > .note-n + .note-body, aside.note:not(.note-foot):not(.note-end) > .note-n + .note-body {
533
+ display: flow-root;
534
+ }
535
+ .l > aside.note:not(.note-foot):not(.note-end) {
536
+ margin-top: 0.25em;
537
+ margin-bottom: 0.75em;
538
+ text-indent: 0;
539
+ }
540
+ .l > aside.note:not(.note-foot):not(.note-end) {
541
+ margin-left: -2.2222em;
542
+ }
543
+ .l.rend-indent > aside.note:not(.note-foot):not(.note-end) {
544
+ margin-left: -4.4444em;
545
+ }
546
+ .l.rend-indent2 > aside.note:not(.note-foot):not(.note-end) {
547
+ margin-left: -6.6667em;
548
+ }
549
+ .l.rend-indent3 > aside.note:not(.note-foot):not(.note-end) {
550
+ margin-left: -8.8889em;
551
+ }
552
+ .l.rend-indent4 > aside.note:not(.note-foot):not(.note-end) {
553
+ margin-left: -11.1111em;
554
+ }
555
+ .l[data-n] > aside.note:not(.note-foot):not(.note-end) {
556
+ margin-right: -2.5rem;
557
+ }
502
558
  span.note-inline {
503
559
  color: #4b5563;
504
560
  font-size: 0.9em;
@@ -276,6 +276,9 @@
276
276
  margin: 0.5rem 1.5rem 1.5rem;
277
277
  padding: 0 0.5rem;
278
278
  border-inline-start: 1px solid var(--uva-brand-orange, #e57200);
279
+ }
280
+ /* Quotations upright (italics inside them show); epigraphs italic. */
281
+ :where(.uvalib-edition) :where(.epigraph) {
279
282
  font-style: italic;
280
283
  }
281
284
  :where(.uvalib-edition) :where(.epigraph, .cit, .quote, div.q) :where(blockquote) {
@@ -539,6 +542,24 @@
539
542
  vertical-align: super;
540
543
  line-height: 0;
541
544
  }
545
+ /* Opt-in: a dotted underline and hidden "(unclear)"; an empty one keeps [?]. */
546
+ :where(.uvalib-edition--unclear-underline .uvalib-edition, .uvalib-edition.uvalib-edition--unclear-underline) :where(.unclear:not(:empty)) {
547
+ text-decoration: underline dotted var(--uva-color-text-muted, #4b5563);
548
+ text-decoration-thickness: 1px;
549
+ text-underline-offset: 0.2em;
550
+ }
551
+ :where(.uvalib-edition--unclear-underline .uvalib-edition, .uvalib-edition.uvalib-edition--unclear-underline) :where(.unclear:not(:empty))::after {
552
+ content: ' (unclear)';
553
+ position: absolute;
554
+ inline-size: 1px;
555
+ block-size: 1px;
556
+ margin: -1px;
557
+ padding: 0;
558
+ overflow: hidden;
559
+ clip-path: inset(50%);
560
+ white-space: nowrap;
561
+ text-decoration: none;
562
+ }
542
563
  :where(.uvalib-edition) :where(.gap) {
543
564
  color: var(--uva-color-text-muted, #4b5563);
544
565
  font-style: italic;
@@ -549,6 +570,14 @@
549
570
  font-style: normal;
550
571
  }
551
572
 
573
+ /* Italics in an epigraph upright (after .stage, .gap); in its source, italic. */
574
+ :where(.uvalib-edition) :where(.epigraph) :where(i, em, cite, dfn, var, .rend-italic, .rend-i, .rend-it, .stage, .gap) {
575
+ font-style: normal;
576
+ }
577
+ :where(.uvalib-edition) :where(.epigraph) :where(.bibl) :where(i, em, cite, dfn, var, .rend-italic, .rend-i, .rend-it, .stage, .gap) {
578
+ font-style: italic;
579
+ }
580
+
552
581
  /* Notes: superscript references, footnotes after a rule, notes in the flow as boxes. */
553
582
  :where(.uvalib-edition) :where(sup.noteref, .noteref) {
554
583
  padding: 0 0.1em;
@@ -606,6 +635,38 @@
606
635
  background: var(--uva-color-table-stripe, var(--uva-grey-200, #f1f1f1));
607
636
  font-size: 0.9em;
608
637
  }
638
+ /* The number beside the text (float: loose text stays one paragraph). */
639
+ :where(.uvalib-edition) :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) > :where(.note-n) {
640
+ float: inline-start;
641
+ margin-inline-end: 0.6em;
642
+ }
643
+ :where(.uvalib-edition) :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) > :where(.note-n + .note-body) {
644
+ display: flow-root;
645
+ }
646
+ /* A note in a verse line: flush with the stanza, the line's hanging indent undone. */
647
+ :where(.uvalib-edition) :where(.l) > :where(aside.note:not(.note-foot, .note-end)) {
648
+ margin-block-start: 0.25em;
649
+ margin-block-end: 0.75em;
650
+ text-indent: 0;
651
+ }
652
+ :where(.uvalib-edition) :where(.l) > :where(aside.note:not(.note-foot, .note-end)) {
653
+ margin-inline-start: -2.2222em;
654
+ }
655
+ :where(.uvalib-edition) :where(.l.rend-indent) > :where(aside.note:not(.note-foot, .note-end)) {
656
+ margin-inline-start: -4.4444em;
657
+ }
658
+ :where(.uvalib-edition) :where(.l.rend-indent2) > :where(aside.note:not(.note-foot, .note-end)) {
659
+ margin-inline-start: -6.6667em;
660
+ }
661
+ :where(.uvalib-edition) :where(.l.rend-indent3) > :where(aside.note:not(.note-foot, .note-end)) {
662
+ margin-inline-start: -8.8889em;
663
+ }
664
+ :where(.uvalib-edition) :where(.l.rend-indent4) > :where(aside.note:not(.note-foot, .note-end)) {
665
+ margin-inline-start: -11.1111em;
666
+ }
667
+ :where(.uvalib-edition) :where(.lg:has(.l[data-n])) :where(.l) > :where(aside.note:not(.note-foot, .note-end)) {
668
+ margin-inline-end: -2.5rem;
669
+ }
609
670
  :where(.uvalib-edition) :where(span.note-inline) {
610
671
  color: var(--uva-color-text-muted, #4b5563);
611
672
  font-size: 0.9em;
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.12.0",
2
+ "version": "1.12.1",
3
3
  "elements": {
4
4
  "site-page": "site-page.js",
5
5
  "site-header": "site-header.js",
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: uvalib-web-components
3
3
  description: Use when building or editing UVA Library web pages or sites with @uvalib/web-components: page chrome (<site-page>, <site-header>, <site-main-nav>, <site-footer>, <site-alerts>, <site-analytics>/<uvalib-analytics>, <site-style>), and other uvalib-* components (breadcrumbs, cards, pager, tabs, contents, metadata, citation, chips, tags, results count, filter, filter drawer, dialog, date range, date histogram, combobox, list filter, map (Leaflet), lightbox, photo grid, image regions, back to top, audio by chapter, Pagefind search, edition.css for TEI texts and EPUB/PDF), the library hours, events and bento-box elements (e.g. <uvalib-card>, <library-weekly-hours>), base.css classes (incl. tables, sidebar layout), or script/link URLs on unpkg.internal.lib.virginia.edu (incl. old /web-components/latest/ or cdn-v URLs). Covers CDN vs npm, version pinning, shadow vs light DOM, theming with --uva-* tokens, WCAG 2.2 AA accessibility testing, requesting components via GitHub issues, and a verification checklist.
4
- ||||||| /private/tmp/claude-505/-Users-dhc4z-workspace-reusable-web-library/ac44f07e-107d-46b0-9a3a-fad028810779/scratchpad/r1
5
- description: Use when building or editing UVA Library web pages or sites with @uvalib/web-components: page chrome (<site-page>, <site-header>, <site-main-nav>, <site-footer>, <site-alerts>, <site-analytics>/<uvalib-analytics>, <site-style>), and other uvalib-* components (breadcrumbs, cards, pager, tabs, contents, metadata, citation, chips, tags, results count, filter, filter drawer, dialog, date range, date histogram, combobox, list filter, map (Leaflet), lightbox, photo grid, image regions, back to top, Pagefind search, edition.css for TEI texts), the library hours, events and bento-box elements (e.g. <uvalib-card>, <uvalib-chip-group>, <library-weekly-hours>), base.css classes (incl. tables, sidebar layout), or script/link URLs on unpkg.internal.lib.virginia.edu (incl. old /web-components/latest/ or cdn-v URLs). Covers CDN vs npm, version pinning, shadow vs light DOM, theming with --uva-* tokens, WCAG 2.2 AA accessibility testing, requesting components via GitHub issues, and a verification checklist.
6
4
  ---
7
5
 
8
6
  # UVA Library web components
@@ -614,7 +612,7 @@ For a TEI text converted to class-annotated HTML (the class is the TEI element n
614
612
 
615
613
  - Classes: `div`/`div-*`, `head`, `p`, `ab`, `seg-*`, `lb`, `pb` (`pb-n`, `a.pb-image`), `lg`, `l` (`data-n`), `sp`, `speaker`, `stage`, `opener`, `closer`, `dateline`, `salute`, `signed`, `postscript`, `epigraph`, `argument`, `trailer`, `byline`, `bibl`, `cit`, `figure`, `figDesc`, `add`, `del`, `sic`, `orig`, `reg`, `unclear`, `gap`, `noteref`, `footnotes`, `note`, `note-inline`, `ornament`, `textbreak`, `titlepage`/`titlePage`, `list`, `rend-*` (italic, smallcaps, center, right, indent, indent2, indent3, hang, underline…).
616
614
  - Keep whitespace before each `<br class="lb">` (CSS cannot space a `<br>`), or write `<span class="lb"></span>`. Line breaks: a `<label class="uvalib-edition__lines"><input type="checkbox"> Show original line breaks</label>` before or inside the edition (or the class `uvalib-edition--lines`); readings in `title`: `.uvalib-edition__readings` (a title alone is hover-only).
617
- - Additions and deletions are announced by generated text; do not add your own. Page images: `<uvalib-lightbox selector=".uvalib-edition a.pb-image">`. README: "Reading texts (edition.css)".
615
+ - Additions and deletions are announced by generated text; do not add your own. Many unclear readings: `uvalib-edition--unclear-underline` on the edition (or `<body>` in an EPUB) gives a dotted underline, read as "(unclear)", instead of "[?]". Quotations are upright and epigraphs italic (don't restyle them); notes inside verse lines need no site CSS. Page images: `<uvalib-lightbox selector=".uvalib-edition a.pb-image">`. README: "Reading texts (edition.css)".
618
616
  - EPUB and PDF downloads of the same text: link `edition-epub.css` in each EPUB content document (copy it into the EPUB; no `.uvalib-edition` wrapper needed), and `edition-epub.css` then `edition-print.css` (page margins and numbers, print rules) in the HTML a PDF is printed from. Generated from edition.css, same classes and look, in CSS reading systems handle; don't keep a hand-made download stylesheet. No toggles there (prose reflows).
619
617
 
620
618
  ### Audio by chapter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uvalib/web-components",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "description": "UVA Library reusable web components",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: uvalib-web-components
3
3
  description: Use when building or editing UVA Library web pages or sites with @uvalib/web-components: page chrome (<site-page>, <site-header>, <site-main-nav>, <site-footer>, <site-alerts>, <site-analytics>/<uvalib-analytics>, <site-style>), and other uvalib-* components (breadcrumbs, cards, pager, tabs, contents, metadata, citation, chips, tags, results count, filter, filter drawer, dialog, date range, date histogram, combobox, list filter, map (Leaflet), lightbox, photo grid, image regions, back to top, audio by chapter, Pagefind search, edition.css for TEI texts and EPUB/PDF), the library hours, events and bento-box elements (e.g. <uvalib-card>, <library-weekly-hours>), base.css classes (incl. tables, sidebar layout), or script/link URLs on unpkg.internal.lib.virginia.edu (incl. old /web-components/latest/ or cdn-v URLs). Covers CDN vs npm, version pinning, shadow vs light DOM, theming with --uva-* tokens, WCAG 2.2 AA accessibility testing, requesting components via GitHub issues, and a verification checklist.
4
- ||||||| /private/tmp/claude-505/-Users-dhc4z-workspace-reusable-web-library/ac44f07e-107d-46b0-9a3a-fad028810779/scratchpad/r1
5
- description: Use when building or editing UVA Library web pages or sites with @uvalib/web-components: page chrome (<site-page>, <site-header>, <site-main-nav>, <site-footer>, <site-alerts>, <site-analytics>/<uvalib-analytics>, <site-style>), and other uvalib-* components (breadcrumbs, cards, pager, tabs, contents, metadata, citation, chips, tags, results count, filter, filter drawer, dialog, date range, date histogram, combobox, list filter, map (Leaflet), lightbox, photo grid, image regions, back to top, Pagefind search, edition.css for TEI texts), the library hours, events and bento-box elements (e.g. <uvalib-card>, <uvalib-chip-group>, <library-weekly-hours>), base.css classes (incl. tables, sidebar layout), or script/link URLs on unpkg.internal.lib.virginia.edu (incl. old /web-components/latest/ or cdn-v URLs). Covers CDN vs npm, version pinning, shadow vs light DOM, theming with --uva-* tokens, WCAG 2.2 AA accessibility testing, requesting components via GitHub issues, and a verification checklist.
6
4
  ---
7
5
 
8
6
  # UVA Library web components
@@ -614,7 +612,7 @@ For a TEI text converted to class-annotated HTML (the class is the TEI element n
614
612
 
615
613
  - Classes: `div`/`div-*`, `head`, `p`, `ab`, `seg-*`, `lb`, `pb` (`pb-n`, `a.pb-image`), `lg`, `l` (`data-n`), `sp`, `speaker`, `stage`, `opener`, `closer`, `dateline`, `salute`, `signed`, `postscript`, `epigraph`, `argument`, `trailer`, `byline`, `bibl`, `cit`, `figure`, `figDesc`, `add`, `del`, `sic`, `orig`, `reg`, `unclear`, `gap`, `noteref`, `footnotes`, `note`, `note-inline`, `ornament`, `textbreak`, `titlepage`/`titlePage`, `list`, `rend-*` (italic, smallcaps, center, right, indent, indent2, indent3, hang, underline…).
616
614
  - Keep whitespace before each `<br class="lb">` (CSS cannot space a `<br>`), or write `<span class="lb"></span>`. Line breaks: a `<label class="uvalib-edition__lines"><input type="checkbox"> Show original line breaks</label>` before or inside the edition (or the class `uvalib-edition--lines`); readings in `title`: `.uvalib-edition__readings` (a title alone is hover-only).
617
- - Additions and deletions are announced by generated text; do not add your own. Page images: `<uvalib-lightbox selector=".uvalib-edition a.pb-image">`. README: "Reading texts (edition.css)".
615
+ - Additions and deletions are announced by generated text; do not add your own. Many unclear readings: `uvalib-edition--unclear-underline` on the edition (or `<body>` in an EPUB) gives a dotted underline, read as "(unclear)", instead of "[?]". Quotations are upright and epigraphs italic (don't restyle them); notes inside verse lines need no site CSS. Page images: `<uvalib-lightbox selector=".uvalib-edition a.pb-image">`. README: "Reading texts (edition.css)".
618
616
  - EPUB and PDF downloads of the same text: link `edition-epub.css` in each EPUB content document (copy it into the EPUB; no `.uvalib-edition` wrapper needed), and `edition-epub.css` then `edition-print.css` (page margins and numbers, print rules) in the HTML a PDF is printed from. Generated from edition.css, same classes and look, in CSS reading systems handle; don't keep a hand-made download stylesheet. No toggles there (prose reflows).
619
617
 
620
618
  ### Audio by chapter