-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoverrides.css
More file actions
353 lines (313 loc) · 8.95 KB
/
Copy pathoverrides.css
File metadata and controls
353 lines (313 loc) · 8.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
/*
* SPDX-FileCopyrightText: 2026 Mika Tammi
* SPDX-License-Identifier: CC-BY-4.0
*
* DZSlides overrides for the riski5 Helsinki FP meetup deck:
* - hide non-current slides (pandoc 3.7's DZSlides template ships
* pointer-events rules but no display:none/block — without this,
* every slide is visually stacked through the others)
* - opaque slide backgrounds so the lambda corner doesn't pick up
* text from underneath
* - bottom-left lambda corner branding
* - tighter code-block padding so Haskell snippets fit on one slide
* - slightly larger base font to read across a meetup-room projector
*/
/* === Slide visibility ===
* DZSlides positions every <section> absolutely and toggles
* `aria-selected` on the currently-displayed one. Pandoc 3.7's
* bundled template only flips pointer-events, leaving every slide
* visually stacked. We hide non-selected slides via `:not()` so
* that the *selected* slide keeps its natural display value —
* critical for `.title-deck` which needs `display: flex` for
* vertical centring (a `display: block` override would clobber it).
* The `.view` class is added by the JS when the user presses `o`
* for the overview/grid screen — in that mode every section must
* stay visible. */
body > section:not([aria-selected]) {
display: none;
}
html.view body > section {
display: block;
}
/* Slides keep their natural full height. Overflow is clipped at
* the slide's bottom edge so any over-long content is hidden
* rather than spilling beyond the slide. Section background is
* intentionally transparent so it inherits whatever the body /
* html background is. The corner brand (body::before, opacity 1)
* sits in the bottom-left of every slide and visually overlays
* any content beneath it — slides should keep their bottom-left
* corner light. */
body > section {
overflow: hidden;
background-color: transparent;
}
/* Lambda corner + "Pure Fun Solutions" wordmark — appears on every
* slide, every section, every theme. Position is fixed to the
* viewport (not the .slide flexbox) so it survives DZSlides'
* transform-based slide transitions. The pseudo-element doubles as
* both the lambda image (background) and the wordmark (text content)
* — flex centring keeps them on the same baseline. */
body::before {
content: "Pure Fun Solutions";
position: fixed;
bottom: 0.75rem;
left: 0.75rem;
height: 64px;
padding-left: 76px;
padding-right: 0.5rem;
background-image: url("../images/lambda-logo.png");
background-size: 64px 64px;
background-repeat: no-repeat;
background-position: left center;
display: flex;
align-items: center;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
font-size: 0.95rem;
font-weight: 600;
letter-spacing: 0.02em;
color: #2a2a2a;
z-index: 10;
opacity: 1;
pointer-events: none;
}
/* Bottom-right counterpart to the lambda + wordmark — a clickable
* link to the Pure Fun Solutions site. Use position: absolute so
* the body's own `position: absolute` (DZSlides default) is the
* containing block — avoids the body's runtime transform messing
* with `position: fixed` resolution. Same height + flex centring
* as the body::before logo so the two corner brands sit on the
* same vertical baseline. */
a.brand-link {
position: absolute;
bottom: 0.75rem;
right: 0.75rem;
height: 64px;
padding-left: 0.5rem;
display: flex;
align-items: center;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
font-size: 0.95rem;
font-weight: 600;
letter-spacing: 0.02em;
color: #2a2a2a;
text-decoration: none;
z-index: 100;
opacity: 1;
}
a.brand-link:hover,
a.brand-link:focus {
text-decoration: underline;
color: #1a7a1a;
}
/* Slightly larger root font; readable from the back row of a
* 30-person meetup room with a 1080p projector. */
html {
font-size: 22px;
}
/* Code blocks: more contrast, less padding, monospace at full body size. */
pre {
font-size: 0.85em;
line-height: 1.35;
padding: 0.6em 0.8em;
border-radius: 4px;
overflow-x: auto;
}
code {
font-size: 0.95em;
}
/* Section headings shouldn't dominate the slide; the speaker says it. */
h2 {
font-size: 1.6em;
margin-bottom: 0.5em;
}
h3 {
font-size: 1.2em;
}
/* DZSlides' default centring leaves big gaps with bullet content;
* top-align lets list-heavy slides start near the title. */
section.slide {
justify-content: flex-start;
padding-top: 2rem;
}
/* Bullet lists on slides should breathe a little. */
section.slide ul,
section.slide ol {
line-height: 1.4;
}
section.slide li + li {
margin-top: 0.35em;
}
/* Embedded SVG diagrams scale to the slide. The max-height is in
* em (not vh) so it tracks the slide's logical 600px height rather
* than the browser-window viewport height — a 1080p window
* otherwise gives 65vh ≈ 700px, much taller than the slide itself. */
section.slide img,
section.slide svg {
max-width: 100%;
max-height: 15em;
height: auto;
display: block;
margin: 0.4em auto;
}
section.code-dense img,
section.code-dense svg {
max-height: 13em;
}
/* {.presenter-note} slides: a bright reminder for the speaker
* mid-deck — run a command in another terminal etc. Centered,
* tinted background so it can't be missed during navigation. */
section.presenter-note {
padding: 2rem 3rem;
background-color: #fff7d6;
display: flex;
flex-direction: column;
justify-content: center;
}
section.presenter-note h2 {
font-size: 1.6em;
color: #8a5a00;
margin-bottom: 0.5em;
}
section.presenter-note pre {
font-size: 1.1em;
background-color: #2a2a2a;
color: #ffe9a8;
border-radius: 6px;
padding: 0.7em 1em;
margin: 0.5em 0;
}
section.presenter-note p {
font-size: 0.95em;
color: #4a3300;
margin: 0.4em 0;
}
/* {.full-photo} slides: ordinary slide heading, photo fills the
* remaining slide area below it. */
section.full-photo {
padding-top: 0.6rem;
}
section.full-photo h2 {
font-size: 1.2em;
margin-bottom: 0.3em;
}
section.full-photo img {
max-width: 100%;
max-height: calc(100% - 3em);
width: auto;
height: auto;
object-fit: contain;
margin: 0 auto;
display: block;
}
/* {.full-diagram} slides: small heading + the diagram fills the
* rest of the slide. Used for SoC + pipeline block diagrams. */
section.full-diagram {
padding-top: 0.4rem;
}
section.full-diagram h2 {
font-size: 1.1em;
margin-bottom: 0.2em;
}
section.full-diagram img,
section.full-diagram svg {
max-width: 100%;
max-height: calc(100% - 2.5em);
width: auto;
height: auto;
object-fit: contain;
margin: 0 auto;
display: block;
}
/* === Code-dense slide ({.code-dense}) ===
* Slides where most of the content is Haskell source — shrink the
* code font, tighten the spacing between consecutive code
* paragraphs so they read as one logical block, and drop the
* default top padding of `section.slide` so the slide actually
* fits inside the height-clipped section. */
section.code-dense {
padding-top: 0.6rem;
}
section.code-dense h2 {
font-size: 1.2em;
margin-bottom: 0.3em;
}
section.code-dense pre {
font-size: 0.6em;
line-height: 1.25;
padding: 0.35em 0.7em;
margin: 0.25em 0;
}
section.code-dense pre + pre,
section.code-dense div.sourceCode + div.sourceCode {
margin-top: 0.1em;
}
section.code-dense p {
font-size: 0.8em;
margin: 0.3em 0;
}
/* Tables on dense slides shrink with everything else; tighten cell
* padding so a 12-row history table fits next to its summary text. */
section.code-dense table {
font-size: 0.7em;
border-collapse: collapse;
margin: 0.3em auto;
}
section.code-dense table th,
section.code-dense table td {
padding: 0.18em 0.5em;
}
/* Two-column slides — code on the left, image on the right.
* 50/50 split, image bounded vertically so it fits inside the
* slide's clipped height. */
section.two-col div.columns {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.2em;
align-items: start;
}
section.two-col div.column {
min-width: 0;
overflow-x: visible;
}
section.two-col div.column img {
max-width: 100%;
max-height: 20em;
width: auto;
height: auto;
object-fit: contain;
display: block;
margin: 0;
}
/* === Top-of-deck title slide ({.title-deck}) ===
* Centred title + slightly smaller author name beneath. Both the
* h2 and the p are full-width blocks with `text-align: center`, so
* their text centres are *exactly* the slide centre regardless of
* content width or wrapping. The flex container handles vertical
* centring of the title block as a whole. */
section.title-deck {
/* Cover slide keeps full height; flex-centring lands on the
* geometric centre because there is no compensating padding. */
padding-top: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: stretch;
}
section.title-deck > * {
width: 100%;
text-align: center;
margin: 0;
}
section.title-deck h2 {
font-size: 2.4em;
font-weight: 700;
line-height: 1.2;
margin-bottom: 0.6em;
}
section.title-deck p {
font-size: 1.4em;
font-weight: 500;
color: #444;
}