@uvalib/web-components 1.8.0 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +26 -3
  3. package/dist/base.css +157 -1
  4. package/dist/components/site-main-nav/SiteMainNav.d.ts +1 -1
  5. package/dist/components/site-main-nav/SiteMainNav.js +9 -2
  6. package/dist/components/site-main-nav/SiteMainNav.js.map +1 -1
  7. package/dist/components/site-page/SitePage.d.ts +1 -1
  8. package/dist/components/site-page/SitePage.js +3 -2
  9. package/dist/components/site-page/SitePage.js.map +1 -1
  10. package/dist/components/site-style/SiteStyle.d.ts +1 -1
  11. package/dist/components/site-style/SiteStyle.js +3 -2
  12. package/dist/components/site-style/SiteStyle.js.map +1 -1
  13. package/dist/custom-elements.json +27 -5
  14. package/dist/pagefind.css +8 -1
  15. package/dist/styles/base.js +82 -2
  16. package/dist/styles/base.js.map +1 -1
  17. package/dist/styles/font-fallback.d.ts +17 -0
  18. package/dist/styles/font-fallback.js +64 -0
  19. package/dist/styles/font-fallback.js.map +1 -0
  20. package/dist/styles/pagefind.js +8 -1
  21. package/dist/styles/pagefind.js.map +1 -1
  22. package/dist/styles/tokens.js +1 -1
  23. package/dist/tokens.css +47 -1
  24. package/dist-cdn/base.css +157 -1
  25. package/dist-cdn/chunks/{base-BI8h0Gf3.js → base-DfLI8lpa.js} +119 -8
  26. package/dist-cdn/chunks/base-DfLI8lpa.js.map +1 -0
  27. package/dist-cdn/chunks/{site-header-DYRMpdBj.js → site-header-CEmNtmk5.js} +2 -2
  28. package/dist-cdn/chunks/{site-header-DYRMpdBj.js.map → site-header-CEmNtmk5.js.map} +1 -1
  29. package/dist-cdn/chunks/{site-main-nav-DURrQMal.js → site-main-nav-CAwKq_x5.js} +9 -2
  30. package/dist-cdn/chunks/site-main-nav-CAwKq_x5.js.map +1 -0
  31. package/dist-cdn/custom-elements.json +27 -5
  32. package/dist-cdn/manifest.json +1 -1
  33. package/dist-cdn/pagefind.css +8 -1
  34. package/dist-cdn/site-header.js +1 -1
  35. package/dist-cdn/site-main-nav.js +1 -1
  36. package/dist-cdn/site-page.js +50 -46
  37. package/dist-cdn/site-page.js.map +1 -1
  38. package/dist-cdn/site-style.js +6 -6
  39. package/dist-cdn/site-style.js.map +1 -1
  40. package/dist-cdn/skills/uvalib-web-components/SKILL.md +2 -2
  41. package/dist-cdn/skills/uvalib-web-components/reference/components.md +3 -3
  42. package/dist-cdn/tokens.css +47 -1
  43. package/package.json +1 -1
  44. package/skills/uvalib-web-components/SKILL.md +2 -2
  45. package/skills/uvalib-web-components/reference/components.md +3 -3
  46. package/dist-cdn/chunks/base-BI8h0Gf3.js.map +0 -1
  47. package/dist-cdn/chunks/site-main-nav-DURrQMal.js.map +0 -1
@@ -2764,7 +2764,7 @@
2764
2764
  {
2765
2765
  "kind": "variable",
2766
2766
  "name": "base",
2767
- "default": "css` *, *::before, *::after { box-sizing: border-box; } html, body { font-family: var(--uva-font-family, franklin-gothic-urw, Arial, Helvetica, sans-serif); } html { font-size: var(--uva-font-size-base, 17px); } body { margin: 0; line-height: 1.5; min-height: 100vh; color: var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b)); background-color: var(--uva-color-surface); } site-page:not(:defined) { display: flow-root; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } uvalib-breadcrumbs:not(:defined), uvalib-card:not(:defined), uvalib-card-grid:not(:defined), uvalib-pager:not(:defined), uvalib-contents:not(:defined), uvalib-metadata:not(:defined), uvalib-tag-list:not(:defined) { display: block; line-height: 1.5; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } /* A chip row: hidden, one 44px row tall (with the scrolling row's padding), the raw children kept on one line so they cannot make it taller. */ uvalib-chip-group:not(:defined) { display: block; min-height: 44px; max-width: 100%; overflow: hidden; white-space: nowrap; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } uvalib-chip-group[scroll]:not(:defined) { min-height: calc(44px + 0.75rem); } /* A description: one line of it (0.875rem at 1.5, 0.25rem below the row). */ uvalib-chip-group[description]:not(:defined) { padding-block-end: 1.5625rem; } /* Its text is drawn from attributes: hold one line until it upgrades. */ uvalib-results-count:not(:defined) { display: block; min-block-size: 1.5em; } uvalib-tag-list:not(:defined)[hidden], uvalib-results-count:not(:defined)[hidden] { display: none; } /* The pre-upgrade rules here set display, which beats the hidden attribute's (issue #7). More specific than each of them (two pseudo-classes or attributes), so it needs no importance flag. */ :where( site-page, uvalib-breadcrumbs, uvalib-card, uvalib-card-grid, uvalib-pager, uvalib-contents, uvalib-metadata, uvalib-chip-group, uvalib-tabs, uvalib-combobox, uvalib-image-regions, uvalib-map, uvalib-filter-drawer ):not(:defined)[hidden], :where(uvalib-combobox, uvalib-image-regions):not(:defined) > [hidden] { display: none; } /* Tabs stay readable before the script runs: a block, one panel, and a gap the size of the tab row (44px) plus its 1rem margin, so the first panel does not jump when the element upgrades. Later data-tab panels stay hidden. */ uvalib-tabs:not(:defined) { display: block; padding-block-start: calc(44px + 1rem); } uvalib-tabs:not(:defined) > [data-tab] ~ [data-tab] { display: none; } /* A combobox: its label (from the attribute) and one 44px field (plus a one-line description) held, so nothing moves when it upgrades. A fallback <input list> child works meanwhile; the other children (options, a datalist) stay out of sight. */ uvalib-combobox:not(:defined) { display: block; min-block-size: calc(1.5em + 0.25rem + 44px); line-height: 1.5; } uvalib-combobox[description]:not(:defined) { min-block-size: calc(3em + 0.5rem + 44px); } uvalib-combobox:not(:defined)::before { content: attr(label); display: block; margin-block-end: 0.25rem; font-weight: 600; } uvalib-combobox:not(:defined) > :not(input) { display: none; } uvalib-combobox:not(:defined) > input { display: block; box-sizing: border-box; inline-size: 100%; min-block-size: 44px; font: inherit; line-height: 1.2; } /* Image regions: the image at its own width and the list beside it (or under it), the layout the element keeps once it upgrades, so the image does not move. */ uvalib-image-regions:not(:defined) { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; } uvalib-image-regions:not(:defined) > :is(img, picture) { display: block; flex: 0 1 auto; min-width: 0; max-width: 100%; height: auto; } uvalib-image-regions:not(:defined) > :is(ol, ul) { flex: 1 1 14rem; min-width: 0; } /* A map: its key instructions (the same text it shows) and the map's height held above the child list, so the list does not move when the map is drawn over the page's Leaflet. Padding, not margin, so it cannot collapse with the list's own top margin. */ uvalib-map:not(:defined) { display: block; } uvalib-map:not(:defined)::before { content: 'Tab or arrow keys move between places; Enter opens one. With the map focused, arrow keys pan and + and − zoom.'; display: block; padding-block-end: calc(0.5rem + max(12rem, var(--uvalib-map-height, min(24rem, 75vw)))); font-size: 0.875rem; line-height: 1.5; color: var(--uva-color-text-muted, #4b5563); } /* A filter drawer on a phone (the default 48rem breakpoint): once it upgrades only its 44px \"Search and filters\" button shows, so hold that height and keep the form and filters out of sight meanwhile; nothing moves when it upgrades. A page with its own breakpoint adds the same two rules in a media query of that width (see the README). Low specificity, so the [hidden] rule above still wins. */ @media (max-width: 48rem) { :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) { display: block; min-block-size: 44px; } :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) > * { display: none; } } /* Printing a <site-page> (issue #20; its own styles leave out the chrome): a dark scheme prints light (the role tokens resolve to their light values), and the content's links are black and underlined, so they are told apart without colour. Content is <main> in light DOM and the unslotted children in shadow DOM. print-chrome keeps the page as it is shown, apart from the light scheme. */ @media print { :root[data-uva-color-scheme]:has(site-page) { color-scheme: light; --uva-color-scheme: light; } /* Light DOM's trail, here too, as the pre-upgrade rule above (unlayered) would win. */ site-page:not([print-chrome]) > [slot='breadcrumbs'] { display: none; } site-page:not([print-chrome]) > :not([slot], site-header, site-footer, .alerts-list) :any-link, site-page:not([print-chrome]) > :any-link:not([slot], .skip-link) { color: #000; text-decoration: underline; } } @keyframes uvalib-site-page-reveal { to { visibility: visible; } } `"
2767
+ "default": "css` *, *::before, *::after { box-sizing: border-box; } html, body { font-family: var( --uva-font-family, franklin-gothic-urw, 'UVA Franklin Fallback', Arial, Helvetica, sans-serif ); } html { font-size: var(--uva-font-size-base, 17px); } body { margin: 0; line-height: 1.5; min-height: 100vh; color: var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b)); background-color: var(--uva-color-surface); } site-page:not(:defined) { display: flow-root; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } uvalib-breadcrumbs:not(:defined), uvalib-card:not(:defined), uvalib-card-grid:not(:defined), uvalib-pager:not(:defined), uvalib-contents:not(:defined), uvalib-metadata:not(:defined), uvalib-tag-list:not(:defined) { display: block; line-height: 1.5; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } /* A chip row: hidden, one 44px row tall (with the scrolling row's padding), the raw children kept on one line so they cannot make it taller. */ uvalib-chip-group:not(:defined) { display: block; min-height: 44px; max-width: 100%; overflow: hidden; white-space: nowrap; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } uvalib-chip-group[scroll]:not(:defined) { min-height: calc(44px + 0.75rem); } /* A description: one line of it (0.875rem at 1.5, 0.25rem below the row). */ uvalib-chip-group[description]:not(:defined) { padding-block-end: 1.5625rem; } /* Its text is drawn from attributes: hold one line until it upgrades. */ uvalib-results-count:not(:defined) { display: block; min-block-size: 1.5em; } uvalib-tag-list:not(:defined)[hidden], uvalib-results-count:not(:defined)[hidden] { display: none; } /* The pre-upgrade rules here set display, which beats the hidden attribute's (issue #7). More specific than each of them (two pseudo-classes or attributes), so it needs no importance flag. */ :where( site-page, uvalib-breadcrumbs, uvalib-card, uvalib-card-grid, uvalib-pager, uvalib-contents, uvalib-metadata, uvalib-chip-group, uvalib-tabs, uvalib-combobox, uvalib-image-regions, uvalib-map, uvalib-filter-drawer ):not(:defined)[hidden], :where(uvalib-combobox, uvalib-image-regions):not(:defined) > [hidden] { display: none; } /* A record's details before <uvalib-metadata> upgrades (issue #34): the rows already laid out as it lays them out (label beside value from 36rem of its own width, stacked below; 8px above and below each row, a 1px rule between rows; lists without bullets, 4px apart), so the page does not move when it upgrades. Rows the attributes add (creator, rights, citation) are not in the page's <dl> and cannot be held. */ uvalib-metadata:not(:defined) { container-type: inline-size; font-size: 1rem; } uvalib-metadata:not(:defined) > dl { display: grid; grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr); column-gap: 1.5rem; margin: 0; } uvalib-metadata:not(:defined) > dl > dt { grid-column: 1; margin: 0; padding-block: 0.5rem; font-weight: 700; } uvalib-metadata:not(:defined) > dl > dd { grid-column: 2; margin: 0; padding-block: 0.5rem; } uvalib-metadata:not(:defined) > dl > dt:not(:first-child), uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd { border-block-start: 1px solid transparent; } uvalib-metadata:not(:defined) > dl > dd > :is(ul, ol) { margin: 0; padding: 0; list-style: none; } uvalib-metadata:not(:defined) > dl > dd li + li { margin-block-start: 0.25rem; } @container (width < 36rem) { uvalib-metadata:not(:defined) > dl { grid-template-columns: minmax(0, 1fr); } uvalib-metadata:not(:defined) > dl > :is(dt, dd) { grid-column: 1; } uvalib-metadata:not(:defined) > dl > dt { padding-block-end: 0; } uvalib-metadata:not(:defined) > dl > dd { padding-block-start: 0; } uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd { border-block-start: 0; } } ${metadataLimits} /* Tabs stay readable before the script runs: a block, one panel, and a gap the size of the tab row (44px) plus its 1rem margin, so the first panel does not jump when the element upgrades. Later data-tab panels stay hidden. */ uvalib-tabs:not(:defined) { display: block; padding-block-start: calc(44px + 1rem); } uvalib-tabs:not(:defined) > [data-tab] ~ [data-tab] { display: none; } /* A combobox: its label (from the attribute) and one 44px field (plus a one-line description) held, so nothing moves when it upgrades. A fallback <input list> child works meanwhile; the other children (options, a datalist) stay out of sight. */ uvalib-combobox:not(:defined) { display: block; min-block-size: calc(1.5em + 0.25rem + 44px); line-height: 1.5; } uvalib-combobox[description]:not(:defined) { min-block-size: calc(3em + 0.5rem + 44px); } uvalib-combobox:not(:defined)::before { content: attr(label); display: block; margin-block-end: 0.25rem; font-weight: 600; } uvalib-combobox:not(:defined) > :not(input) { display: none; } uvalib-combobox:not(:defined) > input { display: block; box-sizing: border-box; inline-size: 100%; min-block-size: 44px; font: inherit; line-height: 1.2; } /* Image regions: the image at its own width and the list beside it (or under it), the layout the element keeps once it upgrades, so the image does not move. */ uvalib-image-regions:not(:defined) { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; } uvalib-image-regions:not(:defined) > :is(img, picture) { display: block; flex: 0 1 auto; min-width: 0; max-width: 100%; height: auto; } uvalib-image-regions:not(:defined) > :is(ol, ul) { flex: 1 1 14rem; min-width: 0; } /* A map: its key instructions (the same text it shows) and the map's height held above the child list, so the list does not move when the map is drawn over the page's Leaflet. Padding, not margin, so it cannot collapse with the list's own top margin. */ uvalib-map:not(:defined) { display: block; } uvalib-map:not(:defined)::before { content: 'Tab or arrow keys move between places; Enter opens one. With the map focused, arrow keys pan and + and − zoom.'; display: block; padding-block-end: calc(0.5rem + max(12rem, var(--uvalib-map-height, min(24rem, 75vw)))); font-size: 0.875rem; line-height: 1.5; color: var(--uva-color-text-muted, #4b5563); } /* A filter drawer on a phone (the default 48rem breakpoint): once it upgrades only its 44px \"Search and filters\" button shows, so hold that height and keep the form and filters out of sight meanwhile; nothing moves when it upgrades. A page with its own breakpoint adds the same two rules in a media query of that width (see the README). Low specificity, so the [hidden] rule above still wins. */ @media (max-width: 48rem) { :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) { display: block; min-block-size: 44px; } :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) > * { display: none; } } /* Printing a <site-page> (issue #20; its own styles leave out the chrome): a dark scheme prints light (the role tokens resolve to their light values), and the content's links are black and underlined, so they are told apart without colour. Content is <main> in light DOM and the unslotted children in shadow DOM. print-chrome keeps the page as it is shown, apart from the light scheme. */ @media print { :root[data-uva-color-scheme]:has(site-page) { color-scheme: light; --uva-color-scheme: light; } /* Light DOM's trail, here too, as the pre-upgrade rule above (unlayered) would win. */ site-page:not([print-chrome]) > [slot='breadcrumbs'] { display: none; } site-page:not([print-chrome]) > :not([slot], site-header, site-footer, .alerts-list) :any-link, site-page:not([print-chrome]) > :any-link:not([slot], .skip-link) { color: #000; text-decoration: underline; } } @keyframes uvalib-site-page-reveal { to { visibility: visible; } } `"
2768
2768
  }
2769
2769
  ],
2770
2770
  "exports": [
@@ -2844,6 +2844,28 @@
2844
2844
  }
2845
2845
  ]
2846
2846
  },
2847
+ {
2848
+ "kind": "javascript-module",
2849
+ "path": "src/styles/font-fallback.ts",
2850
+ "declarations": [
2851
+ {
2852
+ "kind": "variable",
2853
+ "name": "fontFallback",
2854
+ "default": "css` @font-face { font-family: 'UVA Franklin Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'); font-weight: 100 450; font-style: normal; size-adjust: 94.52%; ascent-override: 100.93%; descent-override: 26.56%; line-gap-override: 0%; } @font-face { font-family: 'UVA Franklin Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'); font-weight: 451 599; font-style: normal; size-adjust: 95.99%; ascent-override: 99.18%; descent-override: 26.04%; line-gap-override: 0%; } @font-face { font-family: 'UVA Franklin Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'); font-weight: 600 1000; font-style: normal; size-adjust: 91.32%; ascent-override: 104.03%; descent-override: 27.38%; line-gap-override: 0%; } @font-face { font-family: 'UVA Franklin Fallback'; src: local('Arial Italic'), local('Arial-ItalicMT'), local('Liberation Sans Italic'), local('LiberationSans-Italic'); font-weight: 100 599; font-style: italic; size-adjust: 95.06%; ascent-override: 101.09%; descent-override: 26.4%; line-gap-override: 0%; } `",
2855
+ "description": "A metric-matched fallback for Franklin Gothic URW (issue #32). The Adobe Fonts kit uses\n`font-display: auto`, so on a slow connection text is drawn in the next font of\n`--uva-font-family` and redrawn when the kit's files arrive. Plain Arial is wider than\nFranklin Gothic (by 6% regular, 9% bold), so paragraphs rewrapped and the page moved\n(layout shift). \"UVA Franklin Fallback\" is the system's Arial scaled to Franklin Gothic's\naverage widths, with its ascent and descent, for each face the kit serves (400, 500, 700 and\n400 italic; a 600 rule gets the 700 face, as the kit's own matching does). Measured against\nthe kit in Chromium: the fallback wraps a paragraph like Franklin Gothic in about 99% of\nwidths from 260 to 700px at 16 to 20px, against 55 to 82% for plain Arial.\n\n`size-adjust` scales Arial's glyphs; the overrides are Franklin Gothic's ascent (0.95 em) and\ndescent (0.25 em) divided by that scale, with no line gap, so a line is as tall in both.\nLiberation Sans (Linux) has Arial's metrics. Where neither is installed (Android has Roboto),\nthe face is skipped and the next font in the stack is used, as before."
2856
+ }
2857
+ ],
2858
+ "exports": [
2859
+ {
2860
+ "kind": "js",
2861
+ "name": "fontFallback",
2862
+ "declaration": {
2863
+ "name": "fontFallback",
2864
+ "module": "src/styles/font-fallback.ts"
2865
+ }
2866
+ }
2867
+ ]
2868
+ },
2847
2869
  {
2848
2870
  "kind": "javascript-module",
2849
2871
  "path": "src/styles/hidden.ts",
@@ -2971,7 +2993,7 @@
2971
2993
  {
2972
2994
  "kind": "variable",
2973
2995
  "name": "tokens",
2974
- "default": "css` :root { --uva-brand-blue-lightest: #87B9D9; --uva-brand-blue-lighter: #3395D4; --uva-brand-blue-light: #0370B7; --uva-brand-blue-base: #232D4B; --uva-brand-blue-300: #87B9D9; --uva-brand-blue-200: #3395D4; --uva-brand-blue-100: #0370B7; --uva-brand-blue: #232D4B; --uva-brand-orange-lightest: #FFEAD6; --uva-brand-orange-lighter: #FFC999; --uva-brand-orange-light: #FFB370; --uva-brand-orange-base: #E57200; --uva-brand-orange-dark: #B35900; --uva-brand-orange-darker: #854200; --uva-brand-orange-300: #FFEAD6; --uva-brand-orange-200: #FFC999; --uva-brand-orange-100: #FFB370; --uva-brand-orange: #E57200; --uva-brand-orange-A: #B35900; --uva-brand-orange-B: #854200; --uva-blue-alt-lightest: #BFE7F7; --uva-blue-alt-lighter: #91D8F2; --uva-blue-alt-light: #55C4EC; --uva-blue-alt-base: #007BAC; --uva-blue-alt-dark: #005679; --uva-blue-alt-darkest: #141E3C; --uva-blue-alt-400: #e6f2f7; --uva-blue-alt-300: #BFE7F7; --uva-blue-alt-200: #91D8F2; --uva-blue-alt-100: #55C4EC; --uva-blue-alt: #007BAC; --uva-blue-alt-A: #005679; --uva-blue-alt-B: #141E3C; --uva-teal-lightest: #C8F2F4; --uva-teal-light: #5BD7DE; --uva-teal-base: #25CAD3; --uva-teal-dark: #1DA1A8; --uva-teal-darker: #16777C; --uva-teal-200: #C8F2F4; --uva-teal-100: #5BD7DE; --uva-teal: #25CAD3; --uva-teal-A: #1DA1A8; --uva-teal-B: #16777C; --uva-green-lightest: #DDEFDC; --uva-green-lighter: #89CC74; --uva-green-base: #62BB46; --uva-green-dark: #4E9737; --uva-green-200: #DDEFDC; --uva-green-100: #89CC74; --uva-green: #62BB46; --uva-green-A: #4E9737; --uva-red-lightest: #FBCFDA; --uva-red-base: #EF3F6B; --uva-red-dark: #DF1E43; --uva-red-darker: #B30000; --uva-red-100: #FBCFDA; --uva-red: #EF3F6B; --uva-red-A: #DF1E43; --uva-red-B: #B30000; --uva-yellow-lightest: #FEF6C8; --uva-yellow-base: #ECC602; --uva-yellow-dark: #B99C02; --uva-yellow-100: #FEF6C8; --uva-yellow: #ECC602; --uva-yellow-A: #B99C02; --uva-grey-lightest: #F1F1F1; --uva-grey-light: #DADADA; --uva-grey-base: #808080; --uva-grey-dark: #4F4F4F; --uva-grey-darkest: #2B2B2B; --uva-grey-200: #F1F1F1; --uva-grey-100: #DADADA; --uva-grey-50: #ADADAD; --uva-grey: #808080; --uva-grey-A: #4F4F4F; --uva-grey-B: #2B2B2B; --uva-font-family: franklin-gothic-urw, Arial, Helvetica, sans-serif; --uva-font-size-base: 17px; } `"
2996
+ "default": "css` :root { --uva-brand-blue-lightest: #87B9D9; --uva-brand-blue-lighter: #3395D4; --uva-brand-blue-light: #0370B7; --uva-brand-blue-base: #232D4B; --uva-brand-blue-300: #87B9D9; --uva-brand-blue-200: #3395D4; --uva-brand-blue-100: #0370B7; --uva-brand-blue: #232D4B; --uva-brand-orange-lightest: #FFEAD6; --uva-brand-orange-lighter: #FFC999; --uva-brand-orange-light: #FFB370; --uva-brand-orange-base: #E57200; --uva-brand-orange-dark: #B35900; --uva-brand-orange-darker: #854200; --uva-brand-orange-300: #FFEAD6; --uva-brand-orange-200: #FFC999; --uva-brand-orange-100: #FFB370; --uva-brand-orange: #E57200; --uva-brand-orange-A: #B35900; --uva-brand-orange-B: #854200; --uva-blue-alt-lightest: #BFE7F7; --uva-blue-alt-lighter: #91D8F2; --uva-blue-alt-light: #55C4EC; --uva-blue-alt-base: #007BAC; --uva-blue-alt-dark: #005679; --uva-blue-alt-darkest: #141E3C; --uva-blue-alt-400: #e6f2f7; --uva-blue-alt-300: #BFE7F7; --uva-blue-alt-200: #91D8F2; --uva-blue-alt-100: #55C4EC; --uva-blue-alt: #007BAC; --uva-blue-alt-A: #005679; --uva-blue-alt-B: #141E3C; --uva-teal-lightest: #C8F2F4; --uva-teal-light: #5BD7DE; --uva-teal-base: #25CAD3; --uva-teal-dark: #1DA1A8; --uva-teal-darker: #16777C; --uva-teal-200: #C8F2F4; --uva-teal-100: #5BD7DE; --uva-teal: #25CAD3; --uva-teal-A: #1DA1A8; --uva-teal-B: #16777C; --uva-green-lightest: #DDEFDC; --uva-green-lighter: #89CC74; --uva-green-base: #62BB46; --uva-green-dark: #4E9737; --uva-green-200: #DDEFDC; --uva-green-100: #89CC74; --uva-green: #62BB46; --uva-green-A: #4E9737; --uva-red-lightest: #FBCFDA; --uva-red-base: #EF3F6B; --uva-red-dark: #DF1E43; --uva-red-darker: #B30000; --uva-red-100: #FBCFDA; --uva-red: #EF3F6B; --uva-red-A: #DF1E43; --uva-red-B: #B30000; --uva-yellow-lightest: #FEF6C8; --uva-yellow-base: #ECC602; --uva-yellow-dark: #B99C02; --uva-yellow-100: #FEF6C8; --uva-yellow: #ECC602; --uva-yellow-A: #B99C02; --uva-grey-lightest: #F1F1F1; --uva-grey-light: #DADADA; --uva-grey-base: #808080; --uva-grey-dark: #4F4F4F; --uva-grey-darkest: #2B2B2B; --uva-grey-200: #F1F1F1; --uva-grey-100: #DADADA; --uva-grey-50: #ADADAD; --uva-grey: #808080; --uva-grey-A: #4F4F4F; --uva-grey-B: #2B2B2B; --uva-font-family: franklin-gothic-urw, \"UVA Franklin Fallback\", Arial, Helvetica, sans-serif; --uva-font-size-base: 17px; } `"
2975
2997
  }
2976
2998
  ],
2977
2999
  "exports": [
@@ -14282,7 +14304,7 @@
14282
14304
  {
14283
14305
  "description": "Font family.",
14284
14306
  "name": "--uva-font-family",
14285
- "default": "franklin-gothic-urw, Arial, Helvetica, sans-serif"
14307
+ "default": "franklin-gothic-urw, \"UVA Franklin Fallback\", Arial, Helvetica, sans-serif"
14286
14308
  },
14287
14309
  {
14288
14310
  "description": "Dark-mode role token: top-level button text (else `--uva-grey-darkest`).",
@@ -15272,7 +15294,7 @@
15272
15294
  {
15273
15295
  "description": "Page font family (global styles).",
15274
15296
  "name": "--uva-font-family",
15275
- "default": "franklin-gothic-urw, Arial, Helvetica, sans-serif"
15297
+ "default": "franklin-gothic-urw, \"UVA Franklin Fallback\", Arial, Helvetica, sans-serif"
15276
15298
  },
15277
15299
  {
15278
15300
  "description": "Page base font size (global styles).",
@@ -16184,7 +16206,7 @@
16184
16206
  {
16185
16207
  "description": "Font family.",
16186
16208
  "name": "--uva-font-family",
16187
- "default": "franklin-gothic-urw, Arial, Helvetica, sans-serif"
16209
+ "default": "franklin-gothic-urw, \"UVA Franklin Fallback\", Arial, Helvetica, sans-serif"
16188
16210
  },
16189
16211
  {
16190
16212
  "description": "Base font size.",
package/dist/pagefind.css CHANGED
@@ -38,7 +38,14 @@
38
38
  --pagefind-ui-border-radius: 5px;
39
39
  --pagefind-ui-image-border-radius: 5px;
40
40
  --pagefind-ui-image-box-ratio: 3 / 2;
41
- --pagefind-ui-font: var(--uva-font-family, franklin-gothic-urw, Arial, Helvetica, sans-serif);
41
+ --pagefind-ui-font: var(
42
+ --uva-font-family,
43
+ franklin-gothic-urw,
44
+ 'UVA Franklin Fallback',
45
+ Arial,
46
+ Helvetica,
47
+ sans-serif
48
+ );
42
49
  }
43
50
 
44
51
  .pagefind-ui {
@@ -1,4 +1,21 @@
1
- import { css } from 'lit';
1
+ import { css, unsafeCSS } from 'lit';
2
+ /**
3
+ * `<uvalib-metadata>` long lists before it upgrades (issue #34): a list of more than N values
4
+ * shows its first N and a line for its "Show all" button (4px above a 32px button), as the
5
+ * upgraded element does. CSS cannot read N from the attribute into :nth-child(), so the rules
6
+ * are written out for limits 1 to 12; a page with a larger limit adds its own (README). A row's
7
+ * own data-limit on its <dd> wins over list-limit (data-limit="0" shows them all); a data-limit
8
+ * on the list itself works once upgraded but is not held before.
9
+ */
10
+ const METADATA_LIMITS = Array.from({ length: 12 }, (_, i) => i + 1);
11
+ const metadataLimits = unsafeCSS(METADATA_LIMITS.map((n) => {
12
+ const lists = [
13
+ `uvalib-metadata[list-limit="${n}"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit])`,
14
+ `uvalib-metadata:not(:defined) > dl > dd[data-limit="${n}"] > :is(ul, ol)`,
15
+ ];
16
+ return (`${lists.map((l) => `${l} > li:nth-child(n + ${n + 1})`).join(',\n')} { display: none; }\n` +
17
+ `${lists.map((l) => `${l}:has(> li:nth-child(${n + 1}))::after`).join(',\n')} { content: ''; display: block; block-size: 2.25rem; }`);
18
+ }).join('\n'));
2
19
  export const TYPEKIT_URL = 'https://use.typekit.net/oym8nvz.css';
3
20
  // The body background has no fallback: without dark mode it stays transparent, as before.
4
21
  //
@@ -15,7 +32,14 @@ export const base = css `
15
32
  }
16
33
  html,
17
34
  body {
18
- font-family: var(--uva-font-family, franklin-gothic-urw, Arial, Helvetica, sans-serif);
35
+ font-family: var(
36
+ --uva-font-family,
37
+ franklin-gothic-urw,
38
+ 'UVA Franklin Fallback',
39
+ Arial,
40
+ Helvetica,
41
+ sans-serif
42
+ );
19
43
  }
20
44
  html {
21
45
  font-size: var(--uva-font-size-base, 17px);
@@ -91,6 +115,62 @@ export const base = css `
91
115
  :where(uvalib-combobox, uvalib-image-regions):not(:defined) > [hidden] {
92
116
  display: none;
93
117
  }
118
+ /* A record's details before <uvalib-metadata> upgrades (issue #34): the rows already laid
119
+ out as it lays them out (label beside value from 36rem of its own width, stacked below;
120
+ 8px above and below each row, a 1px rule between rows; lists without bullets, 4px apart),
121
+ so the page does not move when it upgrades. Rows the attributes add (creator, rights,
122
+ citation) are not in the page's <dl> and cannot be held. */
123
+ uvalib-metadata:not(:defined) {
124
+ container-type: inline-size;
125
+ font-size: 1rem;
126
+ }
127
+ uvalib-metadata:not(:defined) > dl {
128
+ display: grid;
129
+ grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr);
130
+ column-gap: 1.5rem;
131
+ margin: 0;
132
+ }
133
+ uvalib-metadata:not(:defined) > dl > dt {
134
+ grid-column: 1;
135
+ margin: 0;
136
+ padding-block: 0.5rem;
137
+ font-weight: 700;
138
+ }
139
+ uvalib-metadata:not(:defined) > dl > dd {
140
+ grid-column: 2;
141
+ margin: 0;
142
+ padding-block: 0.5rem;
143
+ }
144
+ uvalib-metadata:not(:defined) > dl > dt:not(:first-child),
145
+ uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd {
146
+ border-block-start: 1px solid transparent;
147
+ }
148
+ uvalib-metadata:not(:defined) > dl > dd > :is(ul, ol) {
149
+ margin: 0;
150
+ padding: 0;
151
+ list-style: none;
152
+ }
153
+ uvalib-metadata:not(:defined) > dl > dd li + li {
154
+ margin-block-start: 0.25rem;
155
+ }
156
+ @container (width < 36rem) {
157
+ uvalib-metadata:not(:defined) > dl {
158
+ grid-template-columns: minmax(0, 1fr);
159
+ }
160
+ uvalib-metadata:not(:defined) > dl > :is(dt, dd) {
161
+ grid-column: 1;
162
+ }
163
+ uvalib-metadata:not(:defined) > dl > dt {
164
+ padding-block-end: 0;
165
+ }
166
+ uvalib-metadata:not(:defined) > dl > dd {
167
+ padding-block-start: 0;
168
+ }
169
+ uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd {
170
+ border-block-start: 0;
171
+ }
172
+ }
173
+ ${metadataLimits}
94
174
  /* Tabs stay readable before the script runs: a block, one panel, and a gap the
95
175
  size of the tab row (44px) plus its 1rem margin, so the first panel does not
96
176
  jump when the element upgrades. Later data-tab panels stay hidden. */
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/styles/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,WAAW,GAAG,qCAAqC,CAAC;AAEjE,0FAA0F;AAC1F,EAAE;AACF,wFAAwF;AACxF,8FAA8F;AAC9F,wFAAwF;AACxF,wFAAwF;AACxF,4CAA4C;AAC5C,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkMtB,CAAC"}
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/styles/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AACpE,MAAM,cAAc,GAAG,SAAS,CAC9B,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;IACxB,MAAM,KAAK,GAAG;QACZ,+BAA+B,CAAC,8EAA8E;QAC9G,uDAAuD,CAAC,kBAAkB;KAC3E,CAAC;IACF,OAAO,CACL,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,uBAAuB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,uBAAuB;QAC3F,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,uBAAuB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,wDAAwD,CACrI,CAAC;AACJ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CACd,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,qCAAqC,CAAC;AAEjE,0FAA0F;AAC1F,EAAE;AACF,wFAAwF;AACxF,8FAA8F;AAC9F,wFAAwF;AACxF,wFAAwF;AACxF,4CAA4C;AAC5C,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkJnB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+GjB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * A metric-matched fallback for Franklin Gothic URW (issue #32). The Adobe Fonts kit uses
3
+ * `font-display: auto`, so on a slow connection text is drawn in the next font of
4
+ * `--uva-font-family` and redrawn when the kit's files arrive. Plain Arial is wider than
5
+ * Franklin Gothic (by 6% regular, 9% bold), so paragraphs rewrapped and the page moved
6
+ * (layout shift). "UVA Franklin Fallback" is the system's Arial scaled to Franklin Gothic's
7
+ * average widths, with its ascent and descent, for each face the kit serves (400, 500, 700 and
8
+ * 400 italic; a 600 rule gets the 700 face, as the kit's own matching does). Measured against
9
+ * the kit in Chromium: the fallback wraps a paragraph like Franklin Gothic in about 99% of
10
+ * widths from 260 to 700px at 16 to 20px, against 55 to 82% for plain Arial.
11
+ *
12
+ * `size-adjust` scales Arial's glyphs; the overrides are Franklin Gothic's ascent (0.95 em) and
13
+ * descent (0.25 em) divided by that scale, with no line gap, so a line is as tall in both.
14
+ * Liberation Sans (Linux) has Arial's metrics. Where neither is installed (Android has Roboto),
15
+ * the face is skipped and the next font in the stack is used, as before.
16
+ */
17
+ export declare const fontFallback: import("lit").CSSResult;
@@ -0,0 +1,64 @@
1
+ import { css } from 'lit';
2
+ /**
3
+ * A metric-matched fallback for Franklin Gothic URW (issue #32). The Adobe Fonts kit uses
4
+ * `font-display: auto`, so on a slow connection text is drawn in the next font of
5
+ * `--uva-font-family` and redrawn when the kit's files arrive. Plain Arial is wider than
6
+ * Franklin Gothic (by 6% regular, 9% bold), so paragraphs rewrapped and the page moved
7
+ * (layout shift). "UVA Franklin Fallback" is the system's Arial scaled to Franklin Gothic's
8
+ * average widths, with its ascent and descent, for each face the kit serves (400, 500, 700 and
9
+ * 400 italic; a 600 rule gets the 700 face, as the kit's own matching does). Measured against
10
+ * the kit in Chromium: the fallback wraps a paragraph like Franklin Gothic in about 99% of
11
+ * widths from 260 to 700px at 16 to 20px, against 55 to 82% for plain Arial.
12
+ *
13
+ * `size-adjust` scales Arial's glyphs; the overrides are Franklin Gothic's ascent (0.95 em) and
14
+ * descent (0.25 em) divided by that scale, with no line gap, so a line is as tall in both.
15
+ * Liberation Sans (Linux) has Arial's metrics. Where neither is installed (Android has Roboto),
16
+ * the face is skipped and the next font in the stack is used, as before.
17
+ */
18
+ export const fontFallback = css `
19
+ @font-face {
20
+ font-family: 'UVA Franklin Fallback';
21
+ src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');
22
+ font-weight: 100 450;
23
+ font-style: normal;
24
+ size-adjust: 94.52%;
25
+ ascent-override: 100.93%;
26
+ descent-override: 26.56%;
27
+ line-gap-override: 0%;
28
+ }
29
+ @font-face {
30
+ font-family: 'UVA Franklin Fallback';
31
+ src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');
32
+ font-weight: 451 599;
33
+ font-style: normal;
34
+ size-adjust: 95.99%;
35
+ ascent-override: 99.18%;
36
+ descent-override: 26.04%;
37
+ line-gap-override: 0%;
38
+ }
39
+ @font-face {
40
+ font-family: 'UVA Franklin Fallback';
41
+ src:
42
+ local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'),
43
+ local('LiberationSans-Bold');
44
+ font-weight: 600 1000;
45
+ font-style: normal;
46
+ size-adjust: 91.32%;
47
+ ascent-override: 104.03%;
48
+ descent-override: 27.38%;
49
+ line-gap-override: 0%;
50
+ }
51
+ @font-face {
52
+ font-family: 'UVA Franklin Fallback';
53
+ src:
54
+ local('Arial Italic'), local('Arial-ItalicMT'), local('Liberation Sans Italic'),
55
+ local('LiberationSans-Italic');
56
+ font-weight: 100 599;
57
+ font-style: italic;
58
+ size-adjust: 95.06%;
59
+ ascent-override: 101.09%;
60
+ descent-override: 26.4%;
61
+ line-gap-override: 0%;
62
+ }
63
+ `;
64
+ //# sourceMappingURL=font-fallback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"font-fallback.js","sourceRoot":"","sources":["../../src/styles/font-fallback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6C9B,CAAC"}
@@ -41,7 +41,14 @@ const props = css `
41
41
  --pagefind-ui-border-radius: 5px;
42
42
  --pagefind-ui-image-border-radius: 5px;
43
43
  --pagefind-ui-image-box-ratio: 3 / 2;
44
- --pagefind-ui-font: var(--uva-font-family, franklin-gothic-urw, Arial, Helvetica, sans-serif);
44
+ --pagefind-ui-font: var(
45
+ --uva-font-family,
46
+ franklin-gothic-urw,
47
+ 'UVA Franklin Fallback',
48
+ Arial,
49
+ Helvetica,
50
+ sans-serif
51
+ );
45
52
  }
46
53
  `;
47
54
  export const pagefind = css `
@@ -1 +1 @@
1
- {"version":3,"file":"pagefind.js","sourceRoot":"","sources":["../../src/styles/pagefind.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,0FAA0F;AAC1F,0FAA0F;AAC1F,2FAA2F;AAC3F,8FAA8F;AAC9F,EAAE;AACF,4FAA4F;AAC5F,wFAAwF;AACxF,0FAA0F;AAC1F,0FAA0F;AAC1F,EAAE;AACF,0FAA0F;AAC1F,2FAA2F;AAC3F,2FAA2F;AAC3F,yFAAyF;AACzF,yFAAyF;AACzF,0FAA0F;AAC1F,uFAAuF;AACvF,8EAA8E;AAC9E,EAAE;AACF,0FAA0F;AAC1F,4FAA4F;AAC5F,wEAAwE;AAExE,MAAM,CAAC,GAAG,cAAc,CAAC;AACzB,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAEvB,6FAA6F;AAC7F,MAAM,KAAK,GAAG,EAAE,CAAC;AAEjB;;;GAGG;AACH,MAAM,KAAK,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAchB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAA;IACvB,KAAK;IACL,CAAC;;;;;;;IAOD,CAAC;IACD,CAAC;IACD,CAAC;;;IAGD,CAAC;;;;;;IAMD,CAAC;;;;;;IAMD,CAAC;;;;IAID,CAAC;;;;8BAIyB,KAAK,GAAG,CAAC;;;;;;;;;;;IAWnC,CAAC;;;sBAGiB,KAAK;;;;;;;;;;;;IAYvB,CAAC;;;;;IAKD,CAAC;;;;;;;sBAOiB,KAAK,GAAG,EAAE;;;;;;;;;;;;;IAa5B,CAAC;;;;;IAKD,CAAC;;;;;;IAMD,CAAC;;;;;;IAMD,CAAC;;;;;IAKD,CAAC;;;;;;IAMD,CAAC;;;IAGD,CAAC;;;;;;;IAOD,CAAC;;;;;IAKD,CAAC;;;;;;;;;;;IAWD,CAAC;;;;;IAKD,CAAC;;;;;;IAMD,CAAC;;;;;;;;IAQD,CAAC;;;;;;;;IAQD,CAAC;;;;;IAKD,CAAC;;;;;IAKD,CAAC;;;;;IAKD,CAAC;;;;;IAKD,CAAC;;;;;;;;IAQD,CAAC;;;IAGD,CAAC;;;;;IAKD,CAAC;;;;;;;IAOD,CAAC;;;;IAID,CAAC;;;;;;IAMD,CAAC;;;;;;IAMD,CAAC;;;IAGD,CAAC;;;;;;IAMD,CAAC;;;;;;;mCAO8B,CAAC;;;;;;IAMhC,CAAC;;;;;IAKD,CAAC;;;IAGD,CAAC;;;;;;;;IAQD,CAAC;;;;;;;;IAQD,CAAC;;;;;;;IAOD,CAAC;;;;;;;;;;;;;;;;IAgBD,CAAC;;;;IAID,CAAC;;;;;;;;;;6CAUwC,KAAK;;;sBAG5B,KAAK;;;;;;;;;;;;;IAavB,CAAC;;;;;;MAMC,CAAC;;;;MAID,CAAC;;;;;MAKD,CAAC;;;MAGD,CAAC;;;;MAID,CAAC;;;;;CAKN,CAAC"}
1
+ {"version":3,"file":"pagefind.js","sourceRoot":"","sources":["../../src/styles/pagefind.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,0FAA0F;AAC1F,0FAA0F;AAC1F,2FAA2F;AAC3F,8FAA8F;AAC9F,EAAE;AACF,4FAA4F;AAC5F,wFAAwF;AACxF,0FAA0F;AAC1F,0FAA0F;AAC1F,EAAE;AACF,0FAA0F;AAC1F,2FAA2F;AAC3F,2FAA2F;AAC3F,yFAAyF;AACzF,yFAAyF;AACzF,0FAA0F;AAC1F,uFAAuF;AACvF,8EAA8E;AAC9E,EAAE;AACF,0FAA0F;AAC1F,4FAA4F;AAC5F,wEAAwE;AAExE,MAAM,CAAC,GAAG,cAAc,CAAC;AACzB,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAEvB,6FAA6F;AAC7F,MAAM,KAAK,GAAG,EAAE,CAAC;AAEjB;;;GAGG;AACH,MAAM,KAAK,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;CAqBhB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAA;IACvB,KAAK;IACL,CAAC;;;;;;;IAOD,CAAC;IACD,CAAC;IACD,CAAC;;;IAGD,CAAC;;;;;;IAMD,CAAC;;;;;;IAMD,CAAC;;;;IAID,CAAC;;;;8BAIyB,KAAK,GAAG,CAAC;;;;;;;;;;;IAWnC,CAAC;;;sBAGiB,KAAK;;;;;;;;;;;;IAYvB,CAAC;;;;;IAKD,CAAC;;;;;;;sBAOiB,KAAK,GAAG,EAAE;;;;;;;;;;;;;IAa5B,CAAC;;;;;IAKD,CAAC;;;;;;IAMD,CAAC;;;;;;IAMD,CAAC;;;;;IAKD,CAAC;;;;;;IAMD,CAAC;;;IAGD,CAAC;;;;;;;IAOD,CAAC;;;;;IAKD,CAAC;;;;;;;;;;;IAWD,CAAC;;;;;IAKD,CAAC;;;;;;IAMD,CAAC;;;;;;;;IAQD,CAAC;;;;;;;;IAQD,CAAC;;;;;IAKD,CAAC;;;;;IAKD,CAAC;;;;;IAKD,CAAC;;;;;IAKD,CAAC;;;;;;;;IAQD,CAAC;;;IAGD,CAAC;;;;;IAKD,CAAC;;;;;;;IAOD,CAAC;;;;IAID,CAAC;;;;;;IAMD,CAAC;;;;;;IAMD,CAAC;;;IAGD,CAAC;;;;;;IAMD,CAAC;;;;;;;mCAO8B,CAAC;;;;;;IAMhC,CAAC;;;;;IAKD,CAAC;;;IAGD,CAAC;;;;;;;;IAQD,CAAC;;;;;;;;IAQD,CAAC;;;;;;;IAOD,CAAC;;;;;;;;;;;;;;;;IAgBD,CAAC;;;;IAID,CAAC;;;;;;;;;;6CAUwC,KAAK;;;sBAG5B,KAAK;;;;;;;;;;;;;IAavB,CAAC;;;;;;MAMC,CAAC;;;;MAID,CAAC;;;;;MAKD,CAAC;;;MAGD,CAAC;;;;MAID,CAAC;;;;;CAKN,CAAC"}
@@ -78,7 +78,7 @@ export const tokens = css `
78
78
  --uva-grey: #808080;
79
79
  --uva-grey-A: #4F4F4F;
80
80
  --uva-grey-B: #2B2B2B;
81
- --uva-font-family: franklin-gothic-urw, Arial, Helvetica, sans-serif;
81
+ --uva-font-family: franklin-gothic-urw, "UVA Franklin Fallback", Arial, Helvetica, sans-serif;
82
82
  --uva-font-size-base: 17px;
83
83
  }
84
84
  `;
package/dist/tokens.css CHANGED
@@ -1,4 +1,50 @@
1
1
 
2
+ @font-face {
3
+ font-family: 'UVA Franklin Fallback';
4
+ src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');
5
+ font-weight: 100 450;
6
+ font-style: normal;
7
+ size-adjust: 94.52%;
8
+ ascent-override: 100.93%;
9
+ descent-override: 26.56%;
10
+ line-gap-override: 0%;
11
+ }
12
+ @font-face {
13
+ font-family: 'UVA Franklin Fallback';
14
+ src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');
15
+ font-weight: 451 599;
16
+ font-style: normal;
17
+ size-adjust: 95.99%;
18
+ ascent-override: 99.18%;
19
+ descent-override: 26.04%;
20
+ line-gap-override: 0%;
21
+ }
22
+ @font-face {
23
+ font-family: 'UVA Franklin Fallback';
24
+ src:
25
+ local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'),
26
+ local('LiberationSans-Bold');
27
+ font-weight: 600 1000;
28
+ font-style: normal;
29
+ size-adjust: 91.32%;
30
+ ascent-override: 104.03%;
31
+ descent-override: 27.38%;
32
+ line-gap-override: 0%;
33
+ }
34
+ @font-face {
35
+ font-family: 'UVA Franklin Fallback';
36
+ src:
37
+ local('Arial Italic'), local('Arial-ItalicMT'), local('Liberation Sans Italic'),
38
+ local('LiberationSans-Italic');
39
+ font-weight: 100 599;
40
+ font-style: italic;
41
+ size-adjust: 95.06%;
42
+ ascent-override: 101.09%;
43
+ descent-override: 26.4%;
44
+ line-gap-override: 0%;
45
+ }
46
+
47
+
2
48
  :root {
3
49
  --uva-brand-blue-lightest: #87B9D9;
4
50
  --uva-brand-blue-lighter: #3395D4;
@@ -76,7 +122,7 @@
76
122
  --uva-grey: #808080;
77
123
  --uva-grey-A: #4F4F4F;
78
124
  --uva-grey-B: #2B2B2B;
79
- --uva-font-family: franklin-gothic-urw, Arial, Helvetica, sans-serif;
125
+ --uva-font-family: franklin-gothic-urw, "UVA Franklin Fallback", Arial, Helvetica, sans-serif;
80
126
  --uva-font-size-base: 17px;
81
127
  }
82
128
 
package/dist-cdn/base.css CHANGED
@@ -1,4 +1,50 @@
1
1
 
2
+ @font-face {
3
+ font-family: 'UVA Franklin Fallback';
4
+ src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');
5
+ font-weight: 100 450;
6
+ font-style: normal;
7
+ size-adjust: 94.52%;
8
+ ascent-override: 100.93%;
9
+ descent-override: 26.56%;
10
+ line-gap-override: 0%;
11
+ }
12
+ @font-face {
13
+ font-family: 'UVA Franklin Fallback';
14
+ src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');
15
+ font-weight: 451 599;
16
+ font-style: normal;
17
+ size-adjust: 95.99%;
18
+ ascent-override: 99.18%;
19
+ descent-override: 26.04%;
20
+ line-gap-override: 0%;
21
+ }
22
+ @font-face {
23
+ font-family: 'UVA Franklin Fallback';
24
+ src:
25
+ local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'),
26
+ local('LiberationSans-Bold');
27
+ font-weight: 600 1000;
28
+ font-style: normal;
29
+ size-adjust: 91.32%;
30
+ ascent-override: 104.03%;
31
+ descent-override: 27.38%;
32
+ line-gap-override: 0%;
33
+ }
34
+ @font-face {
35
+ font-family: 'UVA Franklin Fallback';
36
+ src:
37
+ local('Arial Italic'), local('Arial-ItalicMT'), local('Liberation Sans Italic'),
38
+ local('LiberationSans-Italic');
39
+ font-weight: 100 599;
40
+ font-style: italic;
41
+ size-adjust: 95.06%;
42
+ ascent-override: 101.09%;
43
+ descent-override: 26.4%;
44
+ line-gap-override: 0%;
45
+ }
46
+
47
+
2
48
  *,
3
49
  *::before,
4
50
  *::after {
@@ -6,7 +52,14 @@
6
52
  }
7
53
  html,
8
54
  body {
9
- font-family: var(--uva-font-family, franklin-gothic-urw, Arial, Helvetica, sans-serif);
55
+ font-family: var(
56
+ --uva-font-family,
57
+ franklin-gothic-urw,
58
+ 'UVA Franklin Fallback',
59
+ Arial,
60
+ Helvetica,
61
+ sans-serif
62
+ );
10
63
  }
11
64
  html {
12
65
  font-size: var(--uva-font-size-base, 17px);
@@ -82,6 +135,109 @@
82
135
  :where(uvalib-combobox, uvalib-image-regions):not(:defined) > [hidden] {
83
136
  display: none;
84
137
  }
138
+ /* A record's details before <uvalib-metadata> upgrades (issue #34): the rows already laid
139
+ out as it lays them out (label beside value from 36rem of its own width, stacked below;
140
+ 8px above and below each row, a 1px rule between rows; lists without bullets, 4px apart),
141
+ so the page does not move when it upgrades. Rows the attributes add (creator, rights,
142
+ citation) are not in the page's <dl> and cannot be held. */
143
+ uvalib-metadata:not(:defined) {
144
+ container-type: inline-size;
145
+ font-size: 1rem;
146
+ }
147
+ uvalib-metadata:not(:defined) > dl {
148
+ display: grid;
149
+ grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr);
150
+ column-gap: 1.5rem;
151
+ margin: 0;
152
+ }
153
+ uvalib-metadata:not(:defined) > dl > dt {
154
+ grid-column: 1;
155
+ margin: 0;
156
+ padding-block: 0.5rem;
157
+ font-weight: 700;
158
+ }
159
+ uvalib-metadata:not(:defined) > dl > dd {
160
+ grid-column: 2;
161
+ margin: 0;
162
+ padding-block: 0.5rem;
163
+ }
164
+ uvalib-metadata:not(:defined) > dl > dt:not(:first-child),
165
+ uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd {
166
+ border-block-start: 1px solid transparent;
167
+ }
168
+ uvalib-metadata:not(:defined) > dl > dd > :is(ul, ol) {
169
+ margin: 0;
170
+ padding: 0;
171
+ list-style: none;
172
+ }
173
+ uvalib-metadata:not(:defined) > dl > dd li + li {
174
+ margin-block-start: 0.25rem;
175
+ }
176
+ @container (width < 36rem) {
177
+ uvalib-metadata:not(:defined) > dl {
178
+ grid-template-columns: minmax(0, 1fr);
179
+ }
180
+ uvalib-metadata:not(:defined) > dl > :is(dt, dd) {
181
+ grid-column: 1;
182
+ }
183
+ uvalib-metadata:not(:defined) > dl > dt {
184
+ padding-block-end: 0;
185
+ }
186
+ uvalib-metadata:not(:defined) > dl > dd {
187
+ padding-block-start: 0;
188
+ }
189
+ uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd {
190
+ border-block-start: 0;
191
+ }
192
+ }
193
+ uvalib-metadata[list-limit="1"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]) > li:nth-child(n + 2),
194
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="1"] > :is(ul, ol) > li:nth-child(n + 2) { display: none; }
195
+ uvalib-metadata[list-limit="1"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]):has(> li:nth-child(2))::after,
196
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="1"] > :is(ul, ol):has(> li:nth-child(2))::after { content: ''; display: block; block-size: 2.25rem; }
197
+ uvalib-metadata[list-limit="2"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]) > li:nth-child(n + 3),
198
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="2"] > :is(ul, ol) > li:nth-child(n + 3) { display: none; }
199
+ uvalib-metadata[list-limit="2"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]):has(> li:nth-child(3))::after,
200
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="2"] > :is(ul, ol):has(> li:nth-child(3))::after { content: ''; display: block; block-size: 2.25rem; }
201
+ uvalib-metadata[list-limit="3"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]) > li:nth-child(n + 4),
202
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="3"] > :is(ul, ol) > li:nth-child(n + 4) { display: none; }
203
+ uvalib-metadata[list-limit="3"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]):has(> li:nth-child(4))::after,
204
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="3"] > :is(ul, ol):has(> li:nth-child(4))::after { content: ''; display: block; block-size: 2.25rem; }
205
+ uvalib-metadata[list-limit="4"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]) > li:nth-child(n + 5),
206
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="4"] > :is(ul, ol) > li:nth-child(n + 5) { display: none; }
207
+ uvalib-metadata[list-limit="4"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]):has(> li:nth-child(5))::after,
208
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="4"] > :is(ul, ol):has(> li:nth-child(5))::after { content: ''; display: block; block-size: 2.25rem; }
209
+ uvalib-metadata[list-limit="5"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]) > li:nth-child(n + 6),
210
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="5"] > :is(ul, ol) > li:nth-child(n + 6) { display: none; }
211
+ uvalib-metadata[list-limit="5"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]):has(> li:nth-child(6))::after,
212
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="5"] > :is(ul, ol):has(> li:nth-child(6))::after { content: ''; display: block; block-size: 2.25rem; }
213
+ uvalib-metadata[list-limit="6"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]) > li:nth-child(n + 7),
214
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="6"] > :is(ul, ol) > li:nth-child(n + 7) { display: none; }
215
+ uvalib-metadata[list-limit="6"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]):has(> li:nth-child(7))::after,
216
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="6"] > :is(ul, ol):has(> li:nth-child(7))::after { content: ''; display: block; block-size: 2.25rem; }
217
+ uvalib-metadata[list-limit="7"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]) > li:nth-child(n + 8),
218
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="7"] > :is(ul, ol) > li:nth-child(n + 8) { display: none; }
219
+ uvalib-metadata[list-limit="7"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]):has(> li:nth-child(8))::after,
220
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="7"] > :is(ul, ol):has(> li:nth-child(8))::after { content: ''; display: block; block-size: 2.25rem; }
221
+ uvalib-metadata[list-limit="8"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]) > li:nth-child(n + 9),
222
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="8"] > :is(ul, ol) > li:nth-child(n + 9) { display: none; }
223
+ uvalib-metadata[list-limit="8"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]):has(> li:nth-child(9))::after,
224
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="8"] > :is(ul, ol):has(> li:nth-child(9))::after { content: ''; display: block; block-size: 2.25rem; }
225
+ uvalib-metadata[list-limit="9"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]) > li:nth-child(n + 10),
226
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="9"] > :is(ul, ol) > li:nth-child(n + 10) { display: none; }
227
+ uvalib-metadata[list-limit="9"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]):has(> li:nth-child(10))::after,
228
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="9"] > :is(ul, ol):has(> li:nth-child(10))::after { content: ''; display: block; block-size: 2.25rem; }
229
+ uvalib-metadata[list-limit="10"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]) > li:nth-child(n + 11),
230
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="10"] > :is(ul, ol) > li:nth-child(n + 11) { display: none; }
231
+ uvalib-metadata[list-limit="10"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]):has(> li:nth-child(11))::after,
232
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="10"] > :is(ul, ol):has(> li:nth-child(11))::after { content: ''; display: block; block-size: 2.25rem; }
233
+ uvalib-metadata[list-limit="11"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]) > li:nth-child(n + 12),
234
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="11"] > :is(ul, ol) > li:nth-child(n + 12) { display: none; }
235
+ uvalib-metadata[list-limit="11"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]):has(> li:nth-child(12))::after,
236
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="11"] > :is(ul, ol):has(> li:nth-child(12))::after { content: ''; display: block; block-size: 2.25rem; }
237
+ uvalib-metadata[list-limit="12"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]) > li:nth-child(n + 13),
238
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="12"] > :is(ul, ol) > li:nth-child(n + 13) { display: none; }
239
+ uvalib-metadata[list-limit="12"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit]):has(> li:nth-child(13))::after,
240
+ uvalib-metadata:not(:defined) > dl > dd[data-limit="12"] > :is(ul, ol):has(> li:nth-child(13))::after { content: ''; display: block; block-size: 2.25rem; }
85
241
  /* Tabs stay readable before the script runs: a block, one panel, and a gap the
86
242
  size of the tab row (44px) plus its 1rem margin, so the first panel does not
87
243
  jump when the element upgrades. Later data-tab panels stay hidden. */