|
17 | 17 | <title>UC OSPO Network events</title> |
18 | 18 | <link href="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.15/index.global.min.css" rel="stylesheet" /> |
19 | 19 | <style> |
20 | | - /* Site font (Atkinson Hyperlegible), mirrored from static/css/custom.css. |
21 | | - The iframe is a separate document, so the @font-face must be redeclared |
22 | | - here. MyST hashes files under static/, so the build (aggregate-events.js) |
23 | | - vendors these woff2s to /fonts/ next to the embed, same as purify.min.js. */ |
24 | | - @font-face { |
25 | | - font-family: "Atkinson Hyperlegible"; |
26 | | - font-style: normal; |
27 | | - font-weight: 400; |
28 | | - src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); |
29 | | - } |
30 | | - @font-face { |
31 | | - font-family: "Atkinson Hyperlegible"; |
32 | | - font-style: normal; |
33 | | - font-weight: 700; |
34 | | - src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); |
35 | | - } |
36 | 20 | :root { |
37 | | - /* Mirror the site brand palette + font (static/css/custom.css) so the |
38 | | - embed matches the rest of the page. This iframe is a separate document |
39 | | - and does NOT inherit the parent's --pst-* variables, so they're |
40 | | - restated here. Change them in one place; keep in sync with custom.css. */ |
41 | | - --uco-font: "Atkinson Hyperlegible", sans-serif; |
| 21 | + /* Mirror the site brand palette (static/css/custom.css) so the embed |
| 22 | + matches the rest of the page. This iframe is a separate document and |
| 23 | + does NOT inherit the parent's --pst-* variables, so they're restated |
| 24 | + here. Change them in one place; keep in sync with custom.css. */ |
42 | 25 | --uco-primary: #003cb3; /* links, event tiles, button (--pst-color-link) */ |
43 | 26 | --uco-link-hover: #ff9100; /* --pst-color-link-hover */ |
44 | 27 | --uco-text: #222832; /* body / popover text (--tw-prose-body) */ |
|
66 | 49 | } |
67 | 50 | body { |
68 | 51 | margin: 0; |
69 | | - font-family: var(--uco-font); |
| 52 | + /* Mirror the site's body font (static/css/custom.css) so the embed |
| 53 | + behaves the same way the rest of the site does. No @font-face here, so |
| 54 | + (like the site) this falls back to the reader's sans-serif unless |
| 55 | + Atkinson is installed locally. */ |
| 56 | + font-family: "Atkinson Hyperlegible", sans-serif; |
70 | 57 | color: var(--uco-text); |
71 | 58 | /* The parent page sizes this iframe to fit its content, so an internal |
72 | 59 | scrollbar is never needed; hide the sub-pixel-overflow one. */ |
|
0 commit comments