@allons-y/course-kit 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +373 -0
- package/README.md +90 -2
- package/assets/fonts/instrument-sans-italic-var.woff2 +0 -0
- package/assets/fonts/instrument-sans-var.woff2 +0 -0
- package/assets/fonts/pt-mono.woff2 +0 -0
- package/assets/scripts/copy.js +99 -0
- package/assets/scripts/deck.js +161 -0
- package/assets/scripts/email.js +19 -0
- package/assets/scripts/practice.js +545 -0
- package/assets/scripts/theme-panel.js +647 -0
- package/assets/scripts/theme-restore.js +17 -0
- package/assets/styles/base.css +2091 -0
- package/assets/styles/deck.css +968 -0
- package/assets/styles/font.css +36 -0
- package/assets/styles/notes.css +137 -0
- package/assets/styles/print.css +428 -0
- package/assets/styles/semantics.css +101 -0
- package/components/practice/check-controls.webc +50 -0
- package/components/practice/choice-list.webc +86 -0
- package/components/practice/cite-panel.webc +108 -0
- package/components/practice/practice-figure.webc +47 -0
- package/components/practice/practice-fill.webc +154 -0
- package/components/practice/practice-grid.webc +82 -0
- package/components/practice/practice-judge.webc +165 -0
- package/components/practice/practice-match.webc +178 -0
- package/components/practice/practice-question.webc +141 -0
- package/components/practice/practice-selfcheck.webc +40 -0
- package/components/practice/practice-terms.webc +95 -0
- package/components/practice/practice-tree.webc +91 -0
- package/components/practice/practice-worksheet.webc +369 -0
- package/components/site/copyright.webc +13 -0
- package/components/site/course-documents.webc +27 -0
- package/components/site/course-now.webc +393 -0
- package/components/site/course-summary.webc +136 -0
- package/components/site/demo-weeks.webc +91 -0
- package/components/site/glossary-entry.webc +31 -0
- package/components/site/glossary-panel.webc +1482 -0
- package/components/site/glossary.webc +45 -0
- package/components/site/grading.webc +50 -0
- package/components/site/instructor.webc +432 -0
- package/components/site/masthead.webc +147 -0
- package/components/site/nav-links.webc +174 -0
- package/components/site/policies.webc +17 -0
- package/components/site/practice-index.webc +31 -0
- package/components/site/schedule-overview.webc +145 -0
- package/components/site/schedule-weeks.webc +589 -0
- package/components/site/site-footer.webc +119 -0
- package/components/site/slide-timetable.webc +152 -0
- package/components/site/syllabus.webc +370 -0
- package/components/ui/arrow-link.webc +19 -0
- package/components/ui/assigned-list.webc +101 -0
- package/components/ui/callout.webc +11 -0
- package/components/ui/card-list.webc +124 -0
- package/components/ui/codepen-embed.webc +123 -0
- package/components/ui/download-button.webc +49 -0
- package/components/ui/eyebrow.webc +18 -0
- package/components/ui/icons/github.webc +6 -0
- package/components/ui/icons/google.webc +9 -0
- package/components/ui/link-list.webc +130 -0
- package/components/ui/link-section.webc +40 -0
- package/components/ui/meeting-card.webc +73 -0
- package/components/ui/meeting-decks.webc +38 -0
- package/components/ui/table-rubric.webc +251 -0
- package/components/ui/today-link.webc +43 -0
- package/components/ui/today-marker.webc +149 -0
- package/components/ui/week-block.webc +53 -0
- package/examples/starter/_data/course.json +20 -0
- package/examples/starter/_data/dates.json +16 -0
- package/examples/starter/_data/grading.json +6 -0
- package/examples/starter/_data/instructor.json +7 -0
- package/examples/starter/_data/policies.json +9 -0
- package/examples/starter/_data/scale.json +8 -0
- package/examples/starter/_data/schedule.json +22 -0
- package/examples/starter/_data/theme.json +17 -0
- package/examples/starter/content/index.webc +12 -0
- package/examples/starter/content/schedule.webc +12 -0
- package/examples/starter/content/slides/index.11tydata.js +5 -0
- package/examples/starter/content/slides/index.webc +12 -0
- package/examples/starter/content/slides/week-1-day-1.md +40 -0
- package/examples/starter/eleventy.config.js +8 -0
- package/glue/deck-notes.data.js +41 -0
- package/glue/deck-notes.webc +32 -0
- package/glue/lesson-day.data.js +17 -0
- package/glue/lesson-day.webc +0 -0
- package/glue/lesson-plans.data.js +13 -0
- package/glue/lesson-plans.webc +2 -0
- package/index.js +6 -0
- package/layouts/base.webc +79 -0
- package/layouts/deck.webc +46 -0
- package/layouts/demo.webc +16 -0
- package/layouts/document.webc +10 -0
- package/layouts/lesson-detail.webc +109 -0
- package/layouts/lesson.webc +71 -0
- package/layouts/notes.webc +23 -0
- package/layouts/worksheet.webc +52 -0
- package/lib/assets.js +42 -0
- package/lib/bundles.js +79 -0
- package/lib/check.js +110 -0
- package/lib/components.js +19 -0
- package/lib/copy.js +656 -0
- package/lib/data/build.js +22 -0
- package/lib/data/fonts.js +16 -0
- package/lib/data/glossary.js +304 -0
- package/lib/data/index.js +8 -0
- package/lib/data/lessons.js +173 -0
- package/lib/data/project.js +22 -0
- package/lib/data/read.js +61 -0
- package/lib/data/site.js +70 -0
- package/lib/data/term.js +80 -0
- package/lib/extensions.js +70 -0
- package/lib/files.js +14 -0
- package/lib/filters.js +584 -0
- package/lib/fit.js +106 -0
- package/lib/glue.js +26 -0
- package/lib/lesson-materials.js +66 -0
- package/lib/markdown.js +568 -0
- package/lib/minify.js +53 -0
- package/lib/paths.js +5 -0
- package/lib/pdf.js +134 -0
- package/lib/plugin.js +231 -0
- package/lib/plugins.js +34 -0
- package/lib/postcss.js +93 -0
- package/lib/theme-server.js +88 -0
- package/lib/theme.js +185 -0
- package/lib/worksheet-dialect.js +415 -0
- package/lib/worksheets.js +276 -0
- package/package.json +119 -4
- package/schemas/course.schema.json +161 -0
- package/schemas/dates.schema.json +165 -0
- package/schemas/grading.schema.json +59 -0
- package/schemas/instructor.schema.json +76 -0
- package/schemas/policies.schema.json +90 -0
- package/schemas/project.schema.json +209 -0
- package/schemas/scale.schema.json +68 -0
- package/schemas/schedule.schema.json +260 -0
- package/schemas/theme.schema.json +704 -0
- package/schemas/worksheet.schema.json +449 -0
|
@@ -0,0 +1,968 @@
|
|
|
1
|
+
/* A projected surface, not a page: loaded alone by _layouts/deck.webc, no
|
|
2
|
+
base.css/masthead. The class names below are the deck dialect's vocabulary
|
|
3
|
+
(see docs/slides.md). */
|
|
4
|
+
|
|
5
|
+
@import "font.css";
|
|
6
|
+
@layer reset, base, layout, slide, chrome, reflow, print;
|
|
7
|
+
|
|
8
|
+
/* Registered so the box height resolves once, on .slide-body, and reaches
|
|
9
|
+
descendants as a length rather than as container units. */
|
|
10
|
+
@property --slide-h {
|
|
11
|
+
syntax: "<length>";
|
|
12
|
+
inherits: true;
|
|
13
|
+
initial-value: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@layer reset {
|
|
17
|
+
/* Zero-specificity and in the lowest layer, so anything can override it. */
|
|
18
|
+
:where(*, *::before, *::after) { box-sizing: border-box; }
|
|
19
|
+
|
|
20
|
+
:where(body, h1, h2, h3, p, ul, ol, li, figure, table, dl, dd) {
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where(ul, ol) { list-style: none; }
|
|
26
|
+
|
|
27
|
+
:where(img, svg) {
|
|
28
|
+
max-inline-size: 100%;
|
|
29
|
+
block-size: auto;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@layer base {
|
|
34
|
+
:root {
|
|
35
|
+
/* tokens:deck */
|
|
36
|
+
|
|
37
|
+
--font-sans: "Instrument Sans", "Instrument Sans Fallback", ui-sans-serif, system-ui, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif;
|
|
38
|
+
--vocab-bg: light-dark(#D7F1F8, #0B2933);
|
|
39
|
+
--api-bg: light-dark(#2d3550, #1b2033);
|
|
40
|
+
--api-ink: #f2f0f6;
|
|
41
|
+
--api-muted: #b7bcd0;
|
|
42
|
+
--api-accent: #cdbbf0;
|
|
43
|
+
|
|
44
|
+
--font-serif: "Iowan Old Style", "Palatino Linotype", palatino, georgia, "Times New Roman", serif;
|
|
45
|
+
--font-mono: "PT Mono", ui-monospace, "SF Mono", "Cascadia Mono", menlo, consolas, monospace;
|
|
46
|
+
|
|
47
|
+
--pad: min(4.5rem, 4cqi, calc(4cqb * 16 / 9));
|
|
48
|
+
--progress: 0;
|
|
49
|
+
|
|
50
|
+
color-scheme: light dark;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Defined on body, not :root.
|
|
54
|
+
Light mode takes the text-tone family — the bright values are
|
|
55
|
+
pastels tuned for dark grounds. */
|
|
56
|
+
body {
|
|
57
|
+
|
|
58
|
+
background: var(--color-page);
|
|
59
|
+
color: var(--color-text);
|
|
60
|
+
font-family: var(--font-sans);
|
|
61
|
+
font-size: clamp(1rem, 2.3vi, 2.15rem);
|
|
62
|
+
line-height: 1.4;
|
|
63
|
+
text-wrap: pretty;
|
|
64
|
+
-webkit-font-smoothing: antialiased;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:where(a) {
|
|
68
|
+
color: inherit;
|
|
69
|
+
text-underline-offset: 0.18em;
|
|
70
|
+
text-decoration-thickness: from-font;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where(a, button, [tabindex]):focus-visible {
|
|
74
|
+
outline: 3px solid var(--color-accent-strong);
|
|
75
|
+
outline-offset: 3px;
|
|
76
|
+
border-radius: 3px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:where(strong) { font-weight: 650; }
|
|
80
|
+
|
|
81
|
+
:where(code, kbd, samp) {
|
|
82
|
+
font-family: var(--font-mono);
|
|
83
|
+
font-size: max(0.75rem, 0.92em);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@layer layout {
|
|
88
|
+
.deck {
|
|
89
|
+
container-type: size;
|
|
90
|
+
container-name: deck;
|
|
91
|
+
block-size: 100dvb;
|
|
92
|
+
overflow-y: auto;
|
|
93
|
+
overflow-x: hidden;
|
|
94
|
+
scroll-snap-type: y mandatory;
|
|
95
|
+
scroll-behavior: smooth;
|
|
96
|
+
scrollbar-width: none;
|
|
97
|
+
|
|
98
|
+
&::-webkit-scrollbar { display: none; }
|
|
99
|
+
|
|
100
|
+
&:focus-visible { outline-offset: -3px; }
|
|
101
|
+
|
|
102
|
+
@media (prefers-reduced-motion: reduce) {
|
|
103
|
+
scroll-behavior: auto;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.slide {
|
|
108
|
+
scroll-snap-align: start;
|
|
109
|
+
scroll-snap-stop: always;
|
|
110
|
+
block-size: 100dvb;
|
|
111
|
+
inline-size: 100%;
|
|
112
|
+
display: grid;
|
|
113
|
+
place-content: center;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* A 16:9 box centered at the largest size that fits: a screen of another
|
|
117
|
+
shape gets empty bars, never a taller slide. Everything is sized from the
|
|
118
|
+
box with no minimums, so a small screen shrinks the slide. No block
|
|
119
|
+
padding and `safe center` push overflow off the bottom only;
|
|
120
|
+
`min-block-size: 0` stops the box growing to fit its content. */
|
|
121
|
+
.slide-body {
|
|
122
|
+
--slide-h: min(100cqb, calc(100cqi * 9 / 16));
|
|
123
|
+
inline-size: min(100cqi, calc(100cqb * 16 / 9));
|
|
124
|
+
aspect-ratio: 16 / 9;
|
|
125
|
+
min-block-size: 0;
|
|
126
|
+
display: grid;
|
|
127
|
+
align-content: safe center;
|
|
128
|
+
gap: min(1.6rem, 1.6cqb, calc(1.6cqi * 9 / 16));
|
|
129
|
+
padding: 0 calc(var(--pad) * 1.15) calc(var(--pad) * 0.4);
|
|
130
|
+
font-size: max(0.75rem, min(2.15rem, 2.3cqi, calc(2.3cqb * 16 / 9)));
|
|
131
|
+
container-type: inline-size;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@layer slide {
|
|
136
|
+
.eyebrow {
|
|
137
|
+
font-size: max(0.75rem, 0.62em);
|
|
138
|
+
letter-spacing: 0.14em;
|
|
139
|
+
text-transform: uppercase;
|
|
140
|
+
font-weight: 650;
|
|
141
|
+
color: var(--color-accent-text);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* deck.css stands alone — no base.css, so the site's `.separators` (which
|
|
145
|
+
supplies this same layout) isn't loaded here either. */
|
|
146
|
+
.separators {
|
|
147
|
+
display: flex;
|
|
148
|
+
flex-wrap: wrap;
|
|
149
|
+
gap: 0.8em;
|
|
150
|
+
|
|
151
|
+
> *:not(:last-child)::after {
|
|
152
|
+
content: "⏺";
|
|
153
|
+
padding-inline-start: 0.8em;
|
|
154
|
+
font-size: 50%;
|
|
155
|
+
vertical-align: middle;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.slide {
|
|
160
|
+
:where(h1) {
|
|
161
|
+
font-size: min(6.4cqi, 5.2rem);
|
|
162
|
+
line-height: 1.02;
|
|
163
|
+
letter-spacing: -0.025em;
|
|
164
|
+
font-weight: 700;
|
|
165
|
+
text-wrap: balance;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:where(h2) {
|
|
169
|
+
font-size: min(4.4cqi, 3.8rem);
|
|
170
|
+
line-height: 1.06;
|
|
171
|
+
letter-spacing: -0.02em;
|
|
172
|
+
font-weight: 680;
|
|
173
|
+
text-wrap: balance;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:where(h3) {
|
|
177
|
+
font-size: max(0.75rem, min(1.8cqi, 1.45rem));
|
|
178
|
+
font-weight: 650;
|
|
179
|
+
letter-spacing: -0.005em;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Inline SVG figures take color from classes, never a hex; see "Figures"
|
|
183
|
+
in CLAUDE.md for the fill/stroke vocabulary. */
|
|
184
|
+
:where(svg) {
|
|
185
|
+
inline-size: 100%;
|
|
186
|
+
block-size: auto;
|
|
187
|
+
|
|
188
|
+
text {
|
|
189
|
+
fill: var(--color-text);
|
|
190
|
+
font-family: var(--font-sans);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.mono { font-family: var(--font-mono); }
|
|
194
|
+
|
|
195
|
+
.accent { fill: var(--color-accent-text); }
|
|
196
|
+
|
|
197
|
+
.muted { fill: var(--color-text-muted); }
|
|
198
|
+
|
|
199
|
+
.bad { fill: var(--color-error); }
|
|
200
|
+
|
|
201
|
+
.ok { fill: var(--color-success); }
|
|
202
|
+
|
|
203
|
+
.tint {
|
|
204
|
+
fill: var(--color-surface-accent);
|
|
205
|
+
stroke: none;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.stroke {
|
|
209
|
+
fill: none;
|
|
210
|
+
stroke: var(--color-text);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.stroke-accent {
|
|
214
|
+
fill: none;
|
|
215
|
+
stroke: var(--color-accent-text);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.stroke-muted {
|
|
219
|
+
fill: none;
|
|
220
|
+
stroke: var(--color-text-muted);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.stroke-bad {
|
|
224
|
+
fill: none;
|
|
225
|
+
stroke: var(--color-error);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&[data-kind="title"] {
|
|
230
|
+
.slide-body { align-content: safe center; }
|
|
231
|
+
|
|
232
|
+
.rule {
|
|
233
|
+
inline-size: min(9rem, 30cqi);
|
|
234
|
+
block-size: 6px;
|
|
235
|
+
background: var(--color-accent-strong);
|
|
236
|
+
border-radius: 3px;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* A section divider and a checkpoint (stop, everyone runs it) get the same
|
|
241
|
+
tinted full-bleed treatment — one opens a stretch, the other closes it. */
|
|
242
|
+
&:is([data-kind="section"], [data-kind="checkpoint"]) {
|
|
243
|
+
background: var(--color-surface-accent);
|
|
244
|
+
|
|
245
|
+
h2 {
|
|
246
|
+
font-size: min(5.6cqi, 4.4rem);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* A vocabulary slide is a dictionary entry: the word,
|
|
251
|
+
the definition beneath, and an optional example. Its own teal-blue
|
|
252
|
+
ground (the only slide kind that is not the page color or the accent wash) tells
|
|
253
|
+
the room a new word is arriving. */
|
|
254
|
+
/* An API slide is the reference card for a name you write in code: the class
|
|
255
|
+
it belongs to in the eyebrow, the name in monospace, what kind of member it
|
|
256
|
+
is and what it returns, how it is written, and what it does. A dark slate
|
|
257
|
+
ground marks it as code; concepts are `vocab` on teal. */
|
|
258
|
+
&[data-kind="api"] {
|
|
259
|
+
background: var(--api-bg);
|
|
260
|
+
color: var(--api-ink);
|
|
261
|
+
|
|
262
|
+
.slide-body { align-content: safe center; }
|
|
263
|
+
|
|
264
|
+
.eyebrow { color: var(--api-accent); }
|
|
265
|
+
|
|
266
|
+
h1 {
|
|
267
|
+
font-family: var(--font-mono);
|
|
268
|
+
font-size: min(8cqi, 6.4rem);
|
|
269
|
+
font-weight: 700;
|
|
270
|
+
line-height: 1.05;
|
|
271
|
+
letter-spacing: -0.02em;
|
|
272
|
+
color: var(--api-ink);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.meta {
|
|
276
|
+
font-family: var(--font-mono);
|
|
277
|
+
font-size: max(0.75rem, 0.72em);
|
|
278
|
+
letter-spacing: 0.02em;
|
|
279
|
+
color: var(--api-muted);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.sig {
|
|
283
|
+
inline-size: fit-content;
|
|
284
|
+
padding: 0.45em 0.9em;
|
|
285
|
+
background: rgb(255 255 255 / 8%);
|
|
286
|
+
border-inline-start: 4px solid var(--api-accent);
|
|
287
|
+
border-radius: 0 8px 8px 0;
|
|
288
|
+
font-family: var(--font-mono);
|
|
289
|
+
font-size: 1.05em;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.slide-body > p {
|
|
293
|
+
max-inline-size: 42ch;
|
|
294
|
+
font-size: 1.25em;
|
|
295
|
+
line-height: 1.38;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.example {
|
|
299
|
+
max-inline-size: 50ch;
|
|
300
|
+
color: var(--api-muted);
|
|
301
|
+
font-style: italic;
|
|
302
|
+
|
|
303
|
+
&::before {
|
|
304
|
+
content: "e.g. ";
|
|
305
|
+
font-style: normal;
|
|
306
|
+
font-variant: small-caps;
|
|
307
|
+
letter-spacing: 0.06em;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
p { display: inline; }
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
code {
|
|
314
|
+
background: rgb(255 255 255 / 10%);
|
|
315
|
+
color: inherit;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.sig code { background: none; }
|
|
319
|
+
|
|
320
|
+
.ref {
|
|
321
|
+
font-family: var(--font-mono);
|
|
322
|
+
font-size: max(0.75rem, 0.72em);
|
|
323
|
+
|
|
324
|
+
p { margin: 0; }
|
|
325
|
+
|
|
326
|
+
& a {
|
|
327
|
+
color: var(--api-accent);
|
|
328
|
+
text-underline-offset: 0.2em;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
& a::after { content: " ↗"; }
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
&[data-kind="vocab"] {
|
|
336
|
+
background: var(--vocab-bg);
|
|
337
|
+
|
|
338
|
+
.slide-body { align-content: safe center; }
|
|
339
|
+
|
|
340
|
+
/* Mixed toward the ink: the plain accent misses 4.5:1 on this ground. */
|
|
341
|
+
.eyebrow { color: color-mix(in oklab, var(--color-accent-text) 50%, var(--color-text)); }
|
|
342
|
+
|
|
343
|
+
h1 {
|
|
344
|
+
font-family: var(--font-serif);
|
|
345
|
+
font-size: min(10cqi, 8rem);
|
|
346
|
+
font-weight: 700;
|
|
347
|
+
line-height: 1;
|
|
348
|
+
letter-spacing: -0.01em;
|
|
349
|
+
padding-block-end: 0.15em;
|
|
350
|
+
border-block-end: 3px solid var(--color-text);
|
|
351
|
+
|
|
352
|
+
code {
|
|
353
|
+
font-family: var(--font-mono);
|
|
354
|
+
font-size: max(0.75rem, 0.78em);
|
|
355
|
+
background: none;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.slide-body > p {
|
|
360
|
+
max-inline-size: 40ch;
|
|
361
|
+
padding-inline-start: 0.9em;
|
|
362
|
+
border-inline-start: 4px solid var(--color-accent-strong);
|
|
363
|
+
font-family: var(--font-serif);
|
|
364
|
+
font-size: 1.3em;
|
|
365
|
+
line-height: 1.35;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.example {
|
|
369
|
+
max-inline-size: 44ch;
|
|
370
|
+
padding-inline-start: calc(0.9em + 4px);
|
|
371
|
+
font-family: var(--font-serif);
|
|
372
|
+
font-style: italic;
|
|
373
|
+
color: var(--color-text-muted);
|
|
374
|
+
|
|
375
|
+
&::before {
|
|
376
|
+
content: "e.g. ";
|
|
377
|
+
font-style: normal;
|
|
378
|
+
font-variant: small-caps;
|
|
379
|
+
letter-spacing: 0.06em;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
p { display: inline; }
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.lede {
|
|
388
|
+
font-size: 1.08em;
|
|
389
|
+
color: var(--color-text-muted);
|
|
390
|
+
max-inline-size: 44ch;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.tight { max-inline-size: 52ch; }
|
|
394
|
+
|
|
395
|
+
.bullets, .steps, :where(table, pre) { max-inline-size: 60ch; }
|
|
396
|
+
|
|
397
|
+
.cols :is(.bullets, .steps, table, pre) { max-inline-size: none; }
|
|
398
|
+
|
|
399
|
+
/* Markers are absolutely positioned rather than grid items: a grid list item
|
|
400
|
+
would promote every inline <strong>/<code> in the text into its own cell. */
|
|
401
|
+
.bullets {
|
|
402
|
+
display: grid;
|
|
403
|
+
gap: 0.6em;
|
|
404
|
+
font-size: 1.02em;
|
|
405
|
+
|
|
406
|
+
> li {
|
|
407
|
+
position: relative;
|
|
408
|
+
padding-inline-start: 1.5em;
|
|
409
|
+
|
|
410
|
+
&::before {
|
|
411
|
+
content: "";
|
|
412
|
+
position: absolute;
|
|
413
|
+
inset-inline-start: 0.3em;
|
|
414
|
+
inset-block-start: 0.56em;
|
|
415
|
+
inline-size: 0.42em;
|
|
416
|
+
block-size: 0.42em;
|
|
417
|
+
border-radius: 50%;
|
|
418
|
+
background: var(--color-accent-text);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/* `::: plain` wraps the list, so the class lands on the div, not the ul. */
|
|
424
|
+
.bullets.plain > li,
|
|
425
|
+
.plain > .bullets > li,
|
|
426
|
+
.card .bullets > li {
|
|
427
|
+
padding-inline-start: 0;
|
|
428
|
+
|
|
429
|
+
&::before { content: none; }
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/* Numbered from the list-item counter rather than a counter of its own, so a
|
|
433
|
+
list authored as `5.` — a second column continuing the first — starts at
|
|
434
|
+
five instead of silently restarting at one. */
|
|
435
|
+
.steps {
|
|
436
|
+
display: grid;
|
|
437
|
+
gap: 0.7em;
|
|
438
|
+
|
|
439
|
+
> li {
|
|
440
|
+
position: relative;
|
|
441
|
+
padding-inline-start: 2.2em;
|
|
442
|
+
min-block-size: 1.5em;
|
|
443
|
+
|
|
444
|
+
&::before {
|
|
445
|
+
content: counter(list-item);
|
|
446
|
+
position: absolute;
|
|
447
|
+
inset-inline-start: 0;
|
|
448
|
+
inset-block-start: 0.12em;
|
|
449
|
+
font-variant-numeric: tabular-nums;
|
|
450
|
+
font-weight: 700;
|
|
451
|
+
font-size: max(0.75rem, 0.72em);
|
|
452
|
+
color: var(--color-page);
|
|
453
|
+
background: var(--color-accent-text);
|
|
454
|
+
inline-size: 1.9em;
|
|
455
|
+
block-size: 1.9em;
|
|
456
|
+
display: grid;
|
|
457
|
+
place-items: center;
|
|
458
|
+
border-radius: 50%;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.cols {
|
|
464
|
+
display: grid;
|
|
465
|
+
gap: min(2.4cqi, 2.2rem);
|
|
466
|
+
|
|
467
|
+
> * { min-inline-size: 0; }
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/* Never stacked: a slide is a fixed-shape box, so columns scale with it. */
|
|
471
|
+
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
472
|
+
|
|
473
|
+
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
474
|
+
|
|
475
|
+
/* An explicit column, for a grid cell that holds more than one block — two
|
|
476
|
+
adjacent numbered lists, say, which markdown would otherwise run together
|
|
477
|
+
into a single list of eight. */
|
|
478
|
+
.col {
|
|
479
|
+
display: grid;
|
|
480
|
+
gap: 0.6em;
|
|
481
|
+
align-content: start;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.card {
|
|
485
|
+
background: var(--color-surface);
|
|
486
|
+
border: 1px solid var(--color-border);
|
|
487
|
+
border-radius: 14px;
|
|
488
|
+
padding: min(1.8cqi, 1.5rem);
|
|
489
|
+
display: grid;
|
|
490
|
+
gap: 0.4em;
|
|
491
|
+
align-content: start;
|
|
492
|
+
font-size: max(0.75rem, 0.86em);
|
|
493
|
+
|
|
494
|
+
.cols-3 & { font-size: max(0.75rem, 0.78em); }
|
|
495
|
+
|
|
496
|
+
h3 { color: var(--color-accent-text); }
|
|
497
|
+
|
|
498
|
+
/* A pair of cards contrasting what works with what doesn't. */
|
|
499
|
+
&.bad {
|
|
500
|
+
border-color: var(--color-error);
|
|
501
|
+
|
|
502
|
+
h3 { color: var(--color-error); }
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
&.good {
|
|
506
|
+
border-color: color-mix(in oklab, var(--color-success) 55%, var(--color-border));
|
|
507
|
+
|
|
508
|
+
h3 { color: var(--color-success); }
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
/* Code in a card is already boxed by the card. */
|
|
512
|
+
pre {
|
|
513
|
+
background: transparent;
|
|
514
|
+
border: none;
|
|
515
|
+
padding: 0;
|
|
516
|
+
font-size: 1.05em;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.answer { padding: 0.5em 0.8em; }
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.callout {
|
|
523
|
+
background: var(--color-surface-accent);
|
|
524
|
+
border-inline-start: 5px solid var(--color-accent-strong);
|
|
525
|
+
border-radius: 0 12px 12px 0;
|
|
526
|
+
padding: min(1.8cqi, 1.4rem) min(2.2cqi, 1.8rem);
|
|
527
|
+
font-size: 1.02em;
|
|
528
|
+
|
|
529
|
+
&.warn {
|
|
530
|
+
background: var(--color-surface-warning);
|
|
531
|
+
border-inline-start-color: var(--color-warning);
|
|
532
|
+
color: var(--color-warning);
|
|
533
|
+
|
|
534
|
+
/* Inside the warning tone everything takes the warning color, including
|
|
535
|
+
the pieces that would otherwise be accent-colored. */
|
|
536
|
+
:is(strong, .eyebrow, h1, h2, h3) { color: inherit; }
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
/* `::: answer` — hidden but space-reserved, so revealing never reflows
|
|
541
|
+
the slide. Revealed by deck.js; print shows every answer. */
|
|
542
|
+
.answer {
|
|
543
|
+
background: var(--color-surface-accent);
|
|
544
|
+
border-inline-start: 5px solid var(--color-accent-strong);
|
|
545
|
+
border-radius: 0 12px 12px 0;
|
|
546
|
+
padding: min(1.4cqi, 1.1rem) min(2cqi, 1.5rem);
|
|
547
|
+
visibility: hidden;
|
|
548
|
+
opacity: 0;
|
|
549
|
+
transition: opacity 180ms ease-out;
|
|
550
|
+
|
|
551
|
+
&.is-revealed {
|
|
552
|
+
visibility: visible;
|
|
553
|
+
opacity: 1;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
@media (prefers-reduced-motion: reduce) { transition: none; }
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/* An SVG figure reveals in place: a `<g class="answer">` fades in with the
|
|
560
|
+
same keys, and anything inside it marked `.pop` lands with a short scale
|
|
561
|
+
so the eye goes to it. */
|
|
562
|
+
svg .answer .pop {
|
|
563
|
+
transform-box: fill-box;
|
|
564
|
+
transform-origin: center;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
svg .answer.is-revealed .pop {
|
|
568
|
+
animation: pop-in 380ms ease-out;
|
|
569
|
+
|
|
570
|
+
@media (prefers-reduced-motion: reduce) { animation: none; }
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
@keyframes pop-in {
|
|
574
|
+
from {
|
|
575
|
+
transform: scale(1.14);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
to {
|
|
579
|
+
transform: scale(1);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.big-stat {
|
|
584
|
+
font-size: min(8cqi, 6rem);
|
|
585
|
+
font-weight: 720;
|
|
586
|
+
line-height: 0.95;
|
|
587
|
+
letter-spacing: -0.04em;
|
|
588
|
+
color: var(--color-accent-text);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
:where(table) {
|
|
592
|
+
border-collapse: collapse;
|
|
593
|
+
inline-size: 100%;
|
|
594
|
+
font-size: max(0.75rem, 0.94em);
|
|
595
|
+
|
|
596
|
+
:where(caption) {
|
|
597
|
+
text-align: start;
|
|
598
|
+
color: var(--color-text-muted);
|
|
599
|
+
font-size: max(0.75rem, 0.8em);
|
|
600
|
+
padding-block-end: 0.5em;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
:where(th, td) {
|
|
604
|
+
text-align: start;
|
|
605
|
+
padding: 0.5em 0.7em;
|
|
606
|
+
border-block-end: 1px solid var(--color-border);
|
|
607
|
+
vertical-align: baseline;
|
|
608
|
+
|
|
609
|
+
&.num {
|
|
610
|
+
text-align: end;
|
|
611
|
+
font-variant-numeric: tabular-nums;
|
|
612
|
+
white-space: nowrap;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
:where(thead th) {
|
|
617
|
+
font-size: max(0.75rem, 0.72em);
|
|
618
|
+
letter-spacing: 0.1em;
|
|
619
|
+
text-transform: uppercase;
|
|
620
|
+
color: var(--color-text-muted);
|
|
621
|
+
font-weight: 650;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
:where(tbody tr:last-child) :is(td, th) { border-block-end: none; }
|
|
625
|
+
|
|
626
|
+
tr.total :is(td, th) {
|
|
627
|
+
border-block-start: 2px solid var(--color-border-accent);
|
|
628
|
+
font-weight: 680;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/* Prism-highlighted fenced code, three tones only (muted/accent/green) —
|
|
633
|
+
all a projected slide can carry from the back of the room. */
|
|
634
|
+
:where(pre) {
|
|
635
|
+
background: var(--color-surface);
|
|
636
|
+
border: 1px solid var(--color-border);
|
|
637
|
+
border-radius: 12px;
|
|
638
|
+
padding: min(1.8cqi, 1.5rem);
|
|
639
|
+
overflow-x: auto;
|
|
640
|
+
font-size: max(0.75rem, min(1.55cqi, 1.15rem));
|
|
641
|
+
line-height: 1.55;
|
|
642
|
+
tab-size: 4;
|
|
643
|
+
|
|
644
|
+
:is(.c, .token.comment, .token.prolog, .token.doctype, .token.cdata) {
|
|
645
|
+
color: var(--color-text-muted);
|
|
646
|
+
font-style: italic;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
:is(.k, .token.keyword, .token.tag, .token.selector, .token.builtin, .token.important, .token.atrule) {
|
|
650
|
+
color: var(--color-accent-text);
|
|
651
|
+
font-weight: 650;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
:is(.s, .token.string, .token.char, .token.attr-value, .token.regex, .token.number, .token.boolean) { color: var(--color-success); }
|
|
655
|
+
|
|
656
|
+
:is(.token.punctuation, .token.operator) { color: var(--color-text-muted); }
|
|
657
|
+
|
|
658
|
+
.token.attr-name { font-style: italic; }
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/* Raster figures: the block cap leaves room for a heading and a line of
|
|
662
|
+
prose. */
|
|
663
|
+
.slide img {
|
|
664
|
+
max-inline-size: 100%;
|
|
665
|
+
max-block-size: calc(var(--slide-h) * 0.5);
|
|
666
|
+
inline-size: auto;
|
|
667
|
+
block-size: auto;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/* `::: big` (code-along slides — the code is the slide) gets
|
|
671
|
+
projector-sized type; `pre.big` is the same for a hand-written block. */
|
|
672
|
+
.big pre, pre.big {
|
|
673
|
+
font-size: min(2.6cqi, 2.1rem);
|
|
674
|
+
line-height: 1.5;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.big.short pre, pre.big.short { font-size: min(3.4cqi, 2.9rem); }
|
|
678
|
+
|
|
679
|
+
/* Inline SVG figures take color from classes, never a hex. */
|
|
680
|
+
.slide svg {
|
|
681
|
+
inline-size: 100%;
|
|
682
|
+
block-size: auto;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.slide svg text {
|
|
686
|
+
fill: var(--color-text);
|
|
687
|
+
font-family: var(--font-sans);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.slide svg .mono { font-family: var(--font-mono); }
|
|
691
|
+
|
|
692
|
+
.slide svg .accent { fill: var(--color-accent-text); }
|
|
693
|
+
|
|
694
|
+
.slide svg .muted { fill: var(--color-text-muted); }
|
|
695
|
+
|
|
696
|
+
.slide svg .bad { fill: var(--color-error); }
|
|
697
|
+
|
|
698
|
+
.slide svg .ok { fill: var(--color-success); }
|
|
699
|
+
|
|
700
|
+
.slide svg .tint {
|
|
701
|
+
fill: var(--color-surface-accent);
|
|
702
|
+
stroke: none;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.slide svg .stroke {
|
|
706
|
+
fill: none;
|
|
707
|
+
stroke: var(--color-text);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.slide svg .stroke-accent {
|
|
711
|
+
fill: none;
|
|
712
|
+
stroke: var(--color-accent-text);
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
.slide svg .stroke-muted {
|
|
716
|
+
fill: none;
|
|
717
|
+
stroke: var(--color-text-muted);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.slide svg .stroke-bad {
|
|
721
|
+
fill: none;
|
|
722
|
+
stroke: var(--color-error);
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
.kbdrow {
|
|
726
|
+
display: flex;
|
|
727
|
+
flex-wrap: wrap;
|
|
728
|
+
gap: 0.5em;
|
|
729
|
+
align-items: center;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
:where(kbd) {
|
|
733
|
+
background: var(--color-surface);
|
|
734
|
+
border: 1px solid var(--color-border);
|
|
735
|
+
border-block-end-width: 2px;
|
|
736
|
+
border-radius: 6px;
|
|
737
|
+
padding: 0.15em 0.45em;
|
|
738
|
+
font-size: max(0.75rem, 0.85em);
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
@layer chrome {
|
|
743
|
+
.topbar {
|
|
744
|
+
position: fixed;
|
|
745
|
+
inset-block-start: 0;
|
|
746
|
+
inset-inline: 0;
|
|
747
|
+
block-size: 5px;
|
|
748
|
+
background: var(--color-border);
|
|
749
|
+
z-index: 10;
|
|
750
|
+
|
|
751
|
+
&::after {
|
|
752
|
+
content: "";
|
|
753
|
+
display: block;
|
|
754
|
+
block-size: 100%;
|
|
755
|
+
inline-size: calc(var(--progress) * 100%);
|
|
756
|
+
background: var(--color-accent-strong);
|
|
757
|
+
transition: inline-size 180ms ease-out;
|
|
758
|
+
|
|
759
|
+
@media (prefers-reduced-motion: reduce) { transition: none; }
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.hud {
|
|
764
|
+
position: fixed;
|
|
765
|
+
inset-block-end: 0.75rem;
|
|
766
|
+
inset-inline-end: 0.9rem;
|
|
767
|
+
z-index: 10;
|
|
768
|
+
display: flex;
|
|
769
|
+
gap: 0.5rem;
|
|
770
|
+
align-items: center;
|
|
771
|
+
font-size: clamp(0.875rem, 1.1cqi, 1rem);
|
|
772
|
+
color: var(--color-text-muted);
|
|
773
|
+
|
|
774
|
+
button {
|
|
775
|
+
font: inherit;
|
|
776
|
+
color: inherit;
|
|
777
|
+
background: var(--color-surface);
|
|
778
|
+
border: 1px solid var(--color-border);
|
|
779
|
+
border-radius: 8px;
|
|
780
|
+
min-block-size: 44px;
|
|
781
|
+
min-inline-size: 44px;
|
|
782
|
+
padding: 0.2em 0.75em;
|
|
783
|
+
cursor: pointer;
|
|
784
|
+
|
|
785
|
+
&:hover:not(:disabled) {
|
|
786
|
+
border-color: var(--color-accent-text);
|
|
787
|
+
color: var(--color-accent-text);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
/* Its own ground, so the count reads on the dark api and teal vocab slides too. */
|
|
793
|
+
[data-count] {
|
|
794
|
+
font-variant-numeric: tabular-nums;
|
|
795
|
+
padding: 0.2em 0.6em;
|
|
796
|
+
background: var(--color-surface);
|
|
797
|
+
border-radius: 8px;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.skip {
|
|
802
|
+
position: absolute;
|
|
803
|
+
inset-block-start: -100vb;
|
|
804
|
+
|
|
805
|
+
&:focus {
|
|
806
|
+
inset-block-start: 0.5rem;
|
|
807
|
+
inset-inline-start: 0.5rem;
|
|
808
|
+
z-index: 20;
|
|
809
|
+
background: var(--color-surface);
|
|
810
|
+
padding: 0.5em 1em;
|
|
811
|
+
border-radius: 8px;
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
@layer reflow {
|
|
817
|
+
/* A frame narrower than an 840px slide (Brightspace, a phone, a split
|
|
818
|
+
window) reads the deck as a page: no 16:9 box, no snapping, type at
|
|
819
|
+
reading size. Wider screens never match, so projection is unchanged. */
|
|
820
|
+
@media screen and ((width < 840px) or (height < 473px)) {
|
|
821
|
+
:root { --pad: 1rem; }
|
|
822
|
+
|
|
823
|
+
.deck {
|
|
824
|
+
container-type: normal;
|
|
825
|
+
scroll-snap-type: none;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
.slide {
|
|
829
|
+
block-size: auto;
|
|
830
|
+
display: block;
|
|
831
|
+
scroll-snap-align: none;
|
|
832
|
+
padding-block: 2rem;
|
|
833
|
+
border-block-end: 1px solid var(--color-border);
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.slide-body {
|
|
837
|
+
--slide-h: 100dvb;
|
|
838
|
+
inline-size: auto;
|
|
839
|
+
max-inline-size: 46rem;
|
|
840
|
+
margin-inline: auto;
|
|
841
|
+
aspect-ratio: auto;
|
|
842
|
+
gap: 1rem;
|
|
843
|
+
padding: 0 1rem;
|
|
844
|
+
font-size: 1rem;
|
|
845
|
+
container-type: normal;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
.slide {
|
|
849
|
+
:where(h1) { font-size: 2rem; }
|
|
850
|
+
|
|
851
|
+
:where(h2) { font-size: 1.6rem; }
|
|
852
|
+
|
|
853
|
+
:where(h3) { font-size: 1.1rem; }
|
|
854
|
+
|
|
855
|
+
&:is([data-kind="section"], [data-kind="checkpoint"]) h2 { font-size: 1.8rem; }
|
|
856
|
+
|
|
857
|
+
&[data-kind="vocab"] h1 { font-size: 2.5rem; }
|
|
858
|
+
|
|
859
|
+
&[data-kind="api"] h1 { font-size: 2.1rem; }
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.big-stat { font-size: 3rem; }
|
|
863
|
+
|
|
864
|
+
:where(pre) {
|
|
865
|
+
padding: 0.9rem;
|
|
866
|
+
font-size: 0.875rem;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
.big pre, pre.big { font-size: 1rem; }
|
|
870
|
+
|
|
871
|
+
.big.short pre, pre.big.short { font-size: 1.15rem; }
|
|
872
|
+
|
|
873
|
+
.cols { gap: 1rem; }
|
|
874
|
+
|
|
875
|
+
.cols-3 { grid-template-columns: minmax(0, 1fr); }
|
|
876
|
+
|
|
877
|
+
.card { padding: 1rem; }
|
|
878
|
+
|
|
879
|
+
.callout { padding: 0.9rem 1.1rem; }
|
|
880
|
+
|
|
881
|
+
.answer { padding: 0.7rem 1rem; }
|
|
882
|
+
|
|
883
|
+
.slide[data-kind="title"] .rule { inline-size: 6rem; }
|
|
884
|
+
|
|
885
|
+
/* A bar along the bottom instead of buttons floating over the text. */
|
|
886
|
+
.hud {
|
|
887
|
+
inset-inline: 0;
|
|
888
|
+
inset-block-end: 0;
|
|
889
|
+
justify-content: flex-end;
|
|
890
|
+
padding: 0.4rem 0.9rem;
|
|
891
|
+
background: var(--color-page);
|
|
892
|
+
border-block-start: 1px solid var(--color-border);
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.deck { padding-block-end: 4rem; }
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
@media screen and (width < 600px) {
|
|
899
|
+
.cols-2 { grid-template-columns: minmax(0, 1fr); }
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
@layer print {
|
|
904
|
+
/* Landscape, one slide per page, no notes in either flavor; the
|
|
905
|
+
instructor handout is the notes sheet. */
|
|
906
|
+
@page { size: 297mm 167mm; margin: 12mm; }
|
|
907
|
+
|
|
908
|
+
@media print {
|
|
909
|
+
:root { color-scheme: light; }
|
|
910
|
+
|
|
911
|
+
body {
|
|
912
|
+
font-size: 13pt;
|
|
913
|
+
background: white;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
.deck {
|
|
917
|
+
block-size: auto;
|
|
918
|
+
overflow: visible;
|
|
919
|
+
scroll-snap-type: none;
|
|
920
|
+
container-type: normal;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.slide {
|
|
924
|
+
block-size: auto;
|
|
925
|
+
break-after: page;
|
|
926
|
+
display: block;
|
|
927
|
+
border-block-end: 1px solid #ccc;
|
|
928
|
+
margin-block-end: 1rem;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.slide-body {
|
|
932
|
+
--slide-h: 100dvb;
|
|
933
|
+
block-size: auto;
|
|
934
|
+
display: block;
|
|
935
|
+
inline-size: auto;
|
|
936
|
+
aspect-ratio: auto;
|
|
937
|
+
font-size: inherit;
|
|
938
|
+
padding: 0 0 1rem;
|
|
939
|
+
container-type: normal;
|
|
940
|
+
|
|
941
|
+
> * + * { margin-block-start: 0.6rem; }
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
.cols {
|
|
945
|
+
display: grid;
|
|
946
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
947
|
+
gap: 1rem;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
951
|
+
|
|
952
|
+
.slide {
|
|
953
|
+
h1 { font-size: 28pt; }
|
|
954
|
+
|
|
955
|
+
h2 { font-size: 20pt; }
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.hud, .topbar { display: none; }
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
.card, pre { break-inside: avoid; }
|
|
962
|
+
|
|
963
|
+
.answer {
|
|
964
|
+
visibility: visible;
|
|
965
|
+
opacity: 1;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
}
|