@uvalib/web-components 1.8.0 → 1.8.3

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 +25 -0
  2. package/README.md +4 -3
  3. package/dist/base.css +54 -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 +67 -45
  14. package/dist/pagefind.css +8 -1
  15. package/dist/styles/base.js +8 -1
  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 +54 -1
  25. package/dist-cdn/chunks/{base-BI8h0Gf3.js → base-CIX_-Rmo.js} +58 -6
  26. package/dist-cdn/chunks/base-CIX_-Rmo.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 +67 -45
  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 +1 -1
  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 +1 -1
  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
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 {
@@ -15,7 +15,14 @@ export const base = css `
15
15
  }
16
16
  html,
17
17
  body {
18
- font-family: var(--uva-font-family, franklin-gothic-urw, Arial, Helvetica, sans-serif);
18
+ font-family: var(
19
+ --uva-font-family,
20
+ franklin-gothic-urw,
21
+ 'UVA Franklin Fallback',
22
+ Arial,
23
+ Helvetica,
24
+ sans-serif
25
+ );
19
26
  }
20
27
  html {
21
28
  font-size: var(--uva-font-size-base, 17px);
@@ -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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyMtB,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,KA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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);
@@ -1,6 +1,51 @@
1
1
  import { f as e } from "./UvalibElement-pGONDAwB.js";
2
- // src/styles/tokens.ts
2
+ // src/styles/font-fallback.ts
3
3
  var t = e`
4
+ @font-face {
5
+ font-family: 'UVA Franklin Fallback';
6
+ src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');
7
+ font-weight: 100 450;
8
+ font-style: normal;
9
+ size-adjust: 94.52%;
10
+ ascent-override: 100.93%;
11
+ descent-override: 26.56%;
12
+ line-gap-override: 0%;
13
+ }
14
+ @font-face {
15
+ font-family: 'UVA Franklin Fallback';
16
+ src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');
17
+ font-weight: 451 599;
18
+ font-style: normal;
19
+ size-adjust: 95.99%;
20
+ ascent-override: 99.18%;
21
+ descent-override: 26.04%;
22
+ line-gap-override: 0%;
23
+ }
24
+ @font-face {
25
+ font-family: 'UVA Franklin Fallback';
26
+ src:
27
+ local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'),
28
+ local('LiberationSans-Bold');
29
+ font-weight: 600 1000;
30
+ font-style: normal;
31
+ size-adjust: 91.32%;
32
+ ascent-override: 104.03%;
33
+ descent-override: 27.38%;
34
+ line-gap-override: 0%;
35
+ }
36
+ @font-face {
37
+ font-family: 'UVA Franklin Fallback';
38
+ src:
39
+ local('Arial Italic'), local('Arial-ItalicMT'), local('Liberation Sans Italic'),
40
+ local('LiberationSans-Italic');
41
+ font-weight: 100 599;
42
+ font-style: italic;
43
+ size-adjust: 95.06%;
44
+ ascent-override: 101.09%;
45
+ descent-override: 26.4%;
46
+ line-gap-override: 0%;
47
+ }
48
+ `, n = e`
4
49
  :root {
5
50
  --uva-brand-blue-lightest: #87B9D9;
6
51
  --uva-brand-blue-lighter: #3395D4;
@@ -78,10 +123,10 @@ var t = e`
78
123
  --uva-grey: #808080;
79
124
  --uva-grey-A: #4F4F4F;
80
125
  --uva-grey-B: #2B2B2B;
81
- --uva-font-family: franklin-gothic-urw, Arial, Helvetica, sans-serif;
126
+ --uva-font-family: franklin-gothic-urw, "UVA Franklin Fallback", Arial, Helvetica, sans-serif;
82
127
  --uva-font-size-base: 17px;
83
128
  }
84
- `, n = "https://use.typekit.net/oym8nvz.css", r = e`
129
+ `, r = "https://use.typekit.net/oym8nvz.css", i = e`
85
130
  *,
86
131
  *::before,
87
132
  *::after {
@@ -89,7 +134,14 @@ var t = e`
89
134
  }
90
135
  html,
91
136
  body {
92
- font-family: var(--uva-font-family, franklin-gothic-urw, Arial, Helvetica, sans-serif);
137
+ font-family: var(
138
+ --uva-font-family,
139
+ franklin-gothic-urw,
140
+ 'UVA Franklin Fallback',
141
+ Arial,
142
+ Helvetica,
143
+ sans-serif
144
+ );
93
145
  }
94
146
  html {
95
147
  font-size: var(--uva-font-size-base, 17px);
@@ -276,6 +328,6 @@ var t = e`
276
328
  }
277
329
  }
278
330
  `;
279
- export { r as n, t as r, n as t };
331
+ export { t as i, i as n, n as r, r as t };
280
332
 
281
- //# sourceMappingURL=base-BI8h0Gf3.js.map
333
+ //# sourceMappingURL=base-CIX_-Rmo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-CIX_-Rmo.js","names":["i","fontFallback","tokens","TYPEKIT_URL","base"],"sources":["../../src/styles/font-fallback.ts","../../src/styles/tokens.ts","../../src/styles/base.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * A metric-matched fallback for Franklin Gothic URW (issue #32). The Adobe Fonts kit uses\n * `font-display: auto`, so on a slow connection text is drawn in the next font of\n * `--uva-font-family` and redrawn when the kit's files arrive. Plain Arial is wider than\n * Franklin Gothic (by 6% regular, 9% bold), so paragraphs rewrapped and the page moved\n * (layout shift). \"UVA Franklin Fallback\" is the system's Arial scaled to Franklin Gothic's\n * average widths, with its ascent and descent, for each face the kit serves (400, 500, 700 and\n * 400 italic; a 600 rule gets the 700 face, as the kit's own matching does). Measured against\n * the kit in Chromium: the fallback wraps a paragraph like Franklin Gothic in about 99% of\n * widths from 260 to 700px at 16 to 20px, against 55 to 82% for plain Arial.\n *\n * `size-adjust` scales Arial's glyphs; the overrides are Franklin Gothic's ascent (0.95 em) and\n * descent (0.25 em) divided by that scale, with no line gap, so a line is as tall in both.\n * Liberation Sans (Linux) has Arial's metrics. Where neither is installed (Android has Roboto),\n * the face is skipped and the next font in the stack is used, as before.\n */\nexport const fontFallback = css`\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');\n font-weight: 100 450;\n font-style: normal;\n size-adjust: 94.52%;\n ascent-override: 100.93%;\n descent-override: 26.56%;\n line-gap-override: 0%;\n }\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');\n font-weight: 451 599;\n font-style: normal;\n size-adjust: 95.99%;\n ascent-override: 99.18%;\n descent-override: 26.04%;\n line-gap-override: 0%;\n }\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src:\n local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'),\n local('LiberationSans-Bold');\n font-weight: 600 1000;\n font-style: normal;\n size-adjust: 91.32%;\n ascent-override: 104.03%;\n descent-override: 27.38%;\n line-gap-override: 0%;\n }\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src:\n local('Arial Italic'), local('Arial-ItalicMT'), local('Liberation Sans Italic'),\n local('LiberationSans-Italic');\n font-weight: 100 599;\n font-style: italic;\n size-adjust: 95.06%;\n ascent-override: 101.09%;\n descent-override: 26.4%;\n line-gap-override: 0%;\n }\n`;\n","// GENERATED by scripts/sync-tokens.mjs from ../monorepo/packages/drupal_library_theme/src/scss/base — do not edit\nimport { css } from 'lit';\n\nexport const tokens = css`\n :root {\n --uva-brand-blue-lightest: #87B9D9;\n --uva-brand-blue-lighter: #3395D4;\n --uva-brand-blue-light: #0370B7;\n --uva-brand-blue-base: #232D4B;\n --uva-brand-blue-300: #87B9D9;\n --uva-brand-blue-200: #3395D4;\n --uva-brand-blue-100: #0370B7;\n --uva-brand-blue: #232D4B;\n --uva-brand-orange-lightest: #FFEAD6;\n --uva-brand-orange-lighter: #FFC999;\n --uva-brand-orange-light: #FFB370;\n --uva-brand-orange-base: #E57200;\n --uva-brand-orange-dark: #B35900;\n --uva-brand-orange-darker: #854200;\n --uva-brand-orange-300: #FFEAD6;\n --uva-brand-orange-200: #FFC999;\n --uva-brand-orange-100: #FFB370;\n --uva-brand-orange: #E57200;\n --uva-brand-orange-A: #B35900;\n --uva-brand-orange-B: #854200;\n --uva-blue-alt-lightest: #BFE7F7;\n --uva-blue-alt-lighter: #91D8F2;\n --uva-blue-alt-light: #55C4EC;\n --uva-blue-alt-base: #007BAC;\n --uva-blue-alt-dark: #005679;\n --uva-blue-alt-darkest: #141E3C;\n --uva-blue-alt-400: #e6f2f7;\n --uva-blue-alt-300: #BFE7F7;\n --uva-blue-alt-200: #91D8F2;\n --uva-blue-alt-100: #55C4EC;\n --uva-blue-alt: #007BAC;\n --uva-blue-alt-A: #005679;\n --uva-blue-alt-B: #141E3C;\n --uva-teal-lightest: #C8F2F4;\n --uva-teal-light: #5BD7DE;\n --uva-teal-base: #25CAD3;\n --uva-teal-dark: #1DA1A8;\n --uva-teal-darker: #16777C;\n --uva-teal-200: #C8F2F4;\n --uva-teal-100: #5BD7DE;\n --uva-teal: #25CAD3;\n --uva-teal-A: #1DA1A8;\n --uva-teal-B: #16777C;\n --uva-green-lightest: #DDEFDC;\n --uva-green-lighter: #89CC74;\n --uva-green-base: #62BB46;\n --uva-green-dark: #4E9737;\n --uva-green-200: #DDEFDC;\n --uva-green-100: #89CC74;\n --uva-green: #62BB46;\n --uva-green-A: #4E9737;\n --uva-red-lightest: #FBCFDA;\n --uva-red-base: #EF3F6B;\n --uva-red-dark: #DF1E43;\n --uva-red-darker: #B30000;\n --uva-red-100: #FBCFDA;\n --uva-red: #EF3F6B;\n --uva-red-A: #DF1E43;\n --uva-red-B: #B30000;\n --uva-yellow-lightest: #FEF6C8;\n --uva-yellow-base: #ECC602;\n --uva-yellow-dark: #B99C02;\n --uva-yellow-100: #FEF6C8;\n --uva-yellow: #ECC602;\n --uva-yellow-A: #B99C02;\n --uva-grey-lightest: #F1F1F1;\n --uva-grey-light: #DADADA;\n --uva-grey-base: #808080;\n --uva-grey-dark: #4F4F4F;\n --uva-grey-darkest: #2B2B2B;\n --uva-grey-200: #F1F1F1;\n --uva-grey-100: #DADADA;\n --uva-grey-50: #ADADAD;\n --uva-grey: #808080;\n --uva-grey-A: #4F4F4F;\n --uva-grey-B: #2B2B2B;\n --uva-font-family: franklin-gothic-urw, \"UVA Franklin Fallback\", Arial, Helvetica, sans-serif;\n --uva-font-size-base: 17px;\n }\n`;\n","import { css } from 'lit';\n\nexport const TYPEKIT_URL = 'https://use.typekit.net/oym8nvz.css';\n\n// The body background has no fallback: without dark mode it stays transparent, as before.\n//\n// site-page:not(:defined) applies when base.css is linked in <head>, before the element\n// upgrades: its own formatting context (flow-root), so a heading's top margin cannot collapse\n// through to <body> and shift the page once the element upgrades, and invisible, so its\n// content does not paint above where the header will go. If the script never loads, the\n// content appears anyway after two seconds.\nexport const base = css`\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n html,\n body {\n font-family: var(\n --uva-font-family,\n franklin-gothic-urw,\n 'UVA Franklin Fallback',\n Arial,\n Helvetica,\n sans-serif\n );\n }\n html {\n font-size: var(--uva-font-size-base, 17px);\n }\n body {\n margin: 0;\n line-height: 1.5;\n min-height: 100vh;\n color: var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b));\n background-color: var(--uva-color-surface);\n }\n site-page:not(:defined) {\n display: flow-root;\n visibility: hidden;\n animation: uvalib-site-page-reveal 0s 2s forwards;\n }\n uvalib-breadcrumbs:not(:defined),\n uvalib-card:not(:defined),\n uvalib-card-grid:not(:defined),\n uvalib-pager:not(:defined),\n uvalib-contents:not(:defined),\n uvalib-metadata:not(:defined),\n uvalib-tag-list:not(:defined) {\n display: block;\n line-height: 1.5;\n visibility: hidden;\n animation: uvalib-site-page-reveal 0s 2s forwards;\n }\n /* A chip row: hidden, one 44px row tall (with the scrolling row's padding), the raw\n children kept on one line so they cannot make it taller. */\n uvalib-chip-group:not(:defined) {\n display: block;\n min-height: 44px;\n max-width: 100%;\n overflow: hidden;\n white-space: nowrap;\n visibility: hidden;\n animation: uvalib-site-page-reveal 0s 2s forwards;\n }\n uvalib-chip-group[scroll]:not(:defined) {\n min-height: calc(44px + 0.75rem);\n }\n /* A description: one line of it (0.875rem at 1.5, 0.25rem below the row). */\n uvalib-chip-group[description]:not(:defined) {\n padding-block-end: 1.5625rem;\n }\n /* Its text is drawn from attributes: hold one line until it upgrades. */\n uvalib-results-count:not(:defined) {\n display: block;\n min-block-size: 1.5em;\n }\n uvalib-tag-list:not(:defined)[hidden],\n uvalib-results-count:not(:defined)[hidden] {\n display: none;\n }\n /* The pre-upgrade rules here set display, which beats the hidden attribute's (issue #7).\n More specific than each of them (two pseudo-classes or attributes), so it needs no importance flag. */\n :where(\n site-page,\n uvalib-breadcrumbs,\n uvalib-card,\n uvalib-card-grid,\n uvalib-pager,\n uvalib-contents,\n uvalib-metadata,\n uvalib-chip-group,\n uvalib-tabs,\n uvalib-combobox,\n uvalib-image-regions,\n uvalib-map,\n uvalib-filter-drawer\n ):not(:defined)[hidden],\n :where(uvalib-combobox, uvalib-image-regions):not(:defined) > [hidden] {\n display: none;\n }\n /* Tabs stay readable before the script runs: a block, one panel, and a gap the\n size of the tab row (44px) plus its 1rem margin, so the first panel does not\n jump when the element upgrades. Later data-tab panels stay hidden. */\n uvalib-tabs:not(:defined) {\n display: block;\n padding-block-start: calc(44px + 1rem);\n }\n uvalib-tabs:not(:defined) > [data-tab] ~ [data-tab] {\n display: none;\n }\n /* A combobox: its label (from the attribute) and one 44px field (plus a one-line\n description) held, so nothing moves when it upgrades. A fallback <input list> child\n works meanwhile; the other children (options, a datalist) stay out of sight. */\n uvalib-combobox:not(:defined) {\n display: block;\n min-block-size: calc(1.5em + 0.25rem + 44px);\n line-height: 1.5;\n }\n uvalib-combobox[description]:not(:defined) {\n min-block-size: calc(3em + 0.5rem + 44px);\n }\n uvalib-combobox:not(:defined)::before {\n content: attr(label);\n display: block;\n margin-block-end: 0.25rem;\n font-weight: 600;\n }\n uvalib-combobox:not(:defined) > :not(input) {\n display: none;\n }\n uvalib-combobox:not(:defined) > input {\n display: block;\n box-sizing: border-box;\n inline-size: 100%;\n min-block-size: 44px;\n font: inherit;\n line-height: 1.2;\n }\n /* Image regions: the image at its own width and the list beside it (or under it), the\n layout the element keeps once it upgrades, so the image does not move. */\n uvalib-image-regions:not(:defined) {\n display: flex;\n flex-wrap: wrap;\n gap: 1rem;\n align-items: flex-start;\n }\n uvalib-image-regions:not(:defined) > :is(img, picture) {\n display: block;\n flex: 0 1 auto;\n min-width: 0;\n max-width: 100%;\n height: auto;\n }\n uvalib-image-regions:not(:defined) > :is(ol, ul) {\n flex: 1 1 14rem;\n min-width: 0;\n }\n /* A map: its key instructions (the same text it shows) and the map's height held above\n the child list, so the list does not move when the map is drawn over the page's\n Leaflet. Padding, not margin, so it cannot collapse with the list's own top margin. */\n uvalib-map:not(:defined) {\n display: block;\n }\n uvalib-map:not(:defined)::before {\n content: 'Tab or arrow keys move between places; Enter opens one. With the map focused, arrow keys pan and + and − zoom.';\n display: block;\n padding-block-end: calc(0.5rem + max(12rem, var(--uvalib-map-height, min(24rem, 75vw))));\n font-size: 0.875rem;\n line-height: 1.5;\n color: var(--uva-color-text-muted, #4b5563);\n }\n /* A filter drawer on a phone (the default 48rem breakpoint): once it upgrades only its 44px\n \"Search and filters\" button shows, so hold that height and keep the form and filters out\n of sight meanwhile; nothing moves when it upgrades. A page with its own breakpoint adds the\n same two rules in a media query of that width (see the README). Low specificity, so the\n [hidden] rule above still wins. */\n @media (max-width: 48rem) {\n :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) {\n display: block;\n min-block-size: 44px;\n }\n :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) > * {\n display: none;\n }\n }\n /* Printing a <site-page> (issue #20; its own styles leave out the chrome): a dark scheme\n prints light (the role tokens resolve to their light values), and the content's links\n are black and underlined, so they are told apart without colour. Content is <main> in\n light DOM and the unslotted children in shadow DOM. print-chrome keeps the page as it is\n shown, apart from the light scheme. */\n @media print {\n :root[data-uva-color-scheme]:has(site-page) {\n color-scheme: light;\n --uva-color-scheme: light;\n }\n /* Light DOM's trail, here too, as the pre-upgrade rule above (unlayered) would win. */\n site-page:not([print-chrome]) > [slot='breadcrumbs'] {\n display: none;\n }\n site-page:not([print-chrome]) > :not([slot], site-header, site-footer, .alerts-list) :any-link,\n site-page:not([print-chrome]) > :any-link:not([slot], .skip-link) {\n color: #000;\n text-decoration: underline;\n }\n }\n @keyframes uvalib-site-page-reveal {\n to {\n visibility: visible;\n }\n }\n`;\n"],"mappings":";;AAkBA,IAAaC,IAAe,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCflBC,IAAS,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCDZC,IAAc,uCASdC,IAAO,CAAG"}
@@ -1,5 +1,5 @@
1
1
  import { a as e, f as t, i as n, l as r, m as i, n as a, o, p as s, r as c, t as l } from "./UvalibElement-pGONDAwB.js";
2
- import { i as u, n as d, r as f, t as p } from "./site-main-nav-DURrQMal.js";
2
+ import { i as u, n as d, r as f, t as p } from "./site-main-nav-CAwKq_x5.js";
3
3
  import { a as m } from "./analytics-DTTihuBD.js";
4
4
  import { t as h } from "./link-DbJSwj16.js";
5
5
  import { t as g } from "./accessible-DJv7YOtS.js";
@@ -928,4 +928,4 @@ var $ = customElements.get("site-main-nav");
928
928
  $ && $ !== p && console.warn("site-header: <site-main-nav> is already defined by another copy of @uvalib/web-components; the header uses that one. Load the components from one source only.");
929
929
  export { R as t };
930
930
 
931
- //# sourceMappingURL=site-header-DYRMpdBj.js.map
931
+ //# sourceMappingURL=site-header-CEmNtmk5.js.map