decklight 0.1.0 → 0.3.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 +202 -21
- package/README.md +105 -183
- package/SPEC.md +861 -74
- package/cli/agents.mjs +206 -0
- package/cli/associate.mjs +279 -0
- package/cli/audit.mjs +424 -0
- package/cli/bundle.mjs +210 -45
- package/cli/deckfile.mjs +233 -0
- package/cli/decklight.mjs +216 -5
- package/cli/dev.mjs +455 -0
- package/cli/edit.mjs +733 -63
- package/cli/extension.mjs +108 -0
- package/cli/git.mjs +141 -0
- package/cli/import.mjs +398 -0
- package/cli/init.mjs +465 -121
- package/cli/loader.mjs +263 -0
- package/cli/marketplace.mjs +730 -0
- package/cli/pdf.mjs +156 -0
- package/cli/pkg.mjs +69 -0
- package/cli/plugin.mjs +646 -0
- package/cli/port-conflict.mjs +94 -0
- package/cli/present.mjs +560 -0
- package/cli/publish.mjs +342 -0
- package/cli/qr.mjs +334 -0
- package/cli/rec.mjs +12 -8
- package/cli/remote.mjs +149 -0
- package/cli/report-bug.mjs +97 -0
- package/cli/restore.mjs +174 -0
- package/cli/serve.mjs +247 -0
- package/cli/sign.mjs +216 -0
- package/cli/skill-content.mjs +222 -0
- package/cli/skills.mjs +338 -0
- package/cli/supervise.mjs +57 -0
- package/cli/theme.mjs +201 -0
- package/cli/units.mjs +488 -0
- package/cli/upgrade.mjs +250 -0
- package/cli/util.mjs +90 -0
- package/cli/wizard.mjs +432 -0
- package/cli/zip.mjs +121 -0
- package/dist/decklight.css +949 -72
- package/dist/decklight.js +220 -103
- package/dist/decklight.js.map +4 -4
- package/docs/architecture.svg +1 -1
- package/package.json +9 -6
- package/themes/README.md +6 -4
- package/themes/aurora.css +4 -1
- package/themes/berry.css +4 -1
- package/themes/carbon.css +4 -1
- package/themes/citrus.css +4 -1
- package/themes/coastal.css +4 -1
- package/themes/cosmos.css +4 -1
- package/themes/dune.css +4 -1
- package/themes/eclipse.css +4 -1
- package/themes/ember.css +4 -1
- package/themes/fjord.css +4 -1
- package/themes/gallery.html +3 -11
- package/themes/glacier.css +4 -1
- package/themes/graphite.css +4 -1
- package/themes/harvest.css +4 -1
- package/themes/ibm-modern.css +4 -1
- package/themes/ink.css +4 -1
- package/themes/latte.css +4 -1
- package/themes/linen.css +4 -1
- package/themes/meadow.css +4 -1
- package/themes/metropolis.css +4 -1
- package/themes/midnight.css +4 -1
- package/themes/mint.css +4 -1
- package/themes/moss.css +4 -1
- package/themes/obsidian.css +4 -1
- package/themes/orchid.css +4 -1
- package/themes/packs.json +4 -31
- package/themes/paper.css +4 -1
- package/themes/peony.css +4 -1
- package/themes/porcelain.css +4 -1
- package/themes/reveal-beige.css +4 -1
- package/themes/reveal-black.css +4 -1
- package/themes/reveal-blood.css +4 -1
- package/themes/reveal-dracula.css +4 -1
- package/themes/reveal-league.css +4 -1
- package/themes/reveal-moon.css +4 -1
- package/themes/reveal-night.css +4 -1
- package/themes/reveal-serif.css +4 -1
- package/themes/reveal-simple.css +4 -1
- package/themes/reveal-sky.css +4 -1
- package/themes/reveal-solarized.css +4 -1
- package/themes/reveal-white.css +4 -1
- package/themes/sepia.css +4 -1
- package/themes/seriph.css +4 -1
- package/themes/slate.css +4 -1
- package/themes/storm.css +4 -1
- package/themes/synthwave.css +4 -1
- package/themes/velvet.css +4 -1
- package/themes/yamabuki.css +120 -0
- package/tools/args.mjs +32 -0
- package/tools/bridge.mjs +30 -0
- package/tools/chrome.mjs +52 -0
- package/tools/color.mjs +110 -0
- package/tools/deck-html.mjs +138 -0
- package/tools/elevenlabs-tts.mjs +248 -0
- package/tools/escape.mjs +40 -0
- package/tools/extension-check-runner.mjs +41 -0
- package/tools/extension-check.mjs +266 -0
- package/tools/gemini-tts.mjs +44 -4
- package/tools/lipsync-engines.mjs +81 -0
- package/tools/lipsync-server.mjs +290 -0
- package/tools/lipsync.mjs +181 -0
- package/tools/local-voice.mjs +209 -0
- package/tools/ooxml.mjs +151 -0
- package/tools/pptx.mjs +320 -0
- package/tools/publish-site-voices.mjs +5 -1
- package/tools/publish-targets.mjs +143 -0
- package/tools/publish-voices.mjs +230 -0
- package/tools/shot.mjs +129 -0
- package/tools/theme-check.mjs +139 -0
- package/tools/tts-engines.mjs +455 -0
- package/tools/tts-setup.mjs +257 -0
- package/tools/veo.mjs +204 -0
- package/tools/video.mjs +316 -0
- package/tools/visemes.mjs +26 -0
- package/tools/voiceover-server.mjs +0 -0
- package/tools/voiceover.mjs +73 -39
- package/tools/zip.mjs +143 -0
- package/docs/demo.svg +0 -124
- package/themes/aliens.css +0 -84
- package/themes/apple2.css +0 -126
- package/themes/blade-runner.css +0 -83
- package/themes/c64.css +0 -85
- package/themes/friends.css +0 -82
- package/themes/gameboy.css +0 -118
- package/themes/genesis.css +0 -84
- package/themes/godfather.css +0 -82
- package/themes/ibm-oldschool.css +0 -84
- package/themes/miami-vice.css +0 -84
- package/themes/pulp-fiction.css +0 -84
- package/themes/severance.css +0 -82
- package/themes/snes.css +0 -82
- package/themes/star-wars.css +0 -85
- package/themes/stranger-things.css +0 -84
- package/themes/terminator.css +0 -84
package/dist/decklight.css
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* Copyright 2026 Gilles Philippart
|
|
2
|
+
SPDX-License-Identifier: Apache-2.0 */
|
|
3
|
+
|
|
4
|
+
/* Decklight — structural stylesheet. Themes supply the tokens (SPEC THEMING);
|
|
2
5
|
this file supplies layout, builds, motion, chrome, code, terminal
|
|
3
6
|
structure, and print. */
|
|
4
7
|
|
|
@@ -15,7 +18,6 @@
|
|
|
15
18
|
--auto-animate-duration: 500ms;
|
|
16
19
|
--dim-opacity: 0.35;
|
|
17
20
|
}
|
|
18
|
-
.decklight[data-embed] { position: relative; width: 100%; aspect-ratio: 16 / 9; }
|
|
19
21
|
|
|
20
22
|
/* Accent overlay: --bg is the canvas (color OR gradient — the shorthand takes
|
|
21
23
|
either); --bg-accent overlays it ONLY when it is an image value. Using
|
|
@@ -55,12 +57,20 @@
|
|
|
55
57
|
too). The root keeps painting the themed --bg, so boot is a clean canvas. */
|
|
56
58
|
.decklight > section { display: none; }
|
|
57
59
|
|
|
60
|
+
/* `safe center`, not `center`, wherever a slide centers its own content.
|
|
61
|
+
Plain centering overflows SYMMETRICALLY: content taller than the box sends
|
|
62
|
+
half the excess out the TOP, straight through the padding that [data-pinned]
|
|
63
|
+
reserves for the pinned title, and lands on top of it — measured at 85px of
|
|
64
|
+
overlap for a two-line subtitle, with the title and the first heading on one
|
|
65
|
+
baseline (#68). `safe` falls back to start alignment exactly when the box
|
|
66
|
+
overflows, so the excess goes out the bottom, where `overflow: hidden` clips
|
|
67
|
+
it visibly and where scrollHeight can count all of it rather than half. */
|
|
58
68
|
.decklight-stage > section {
|
|
59
69
|
position: absolute;
|
|
60
70
|
inset: 0;
|
|
61
71
|
display: none;
|
|
62
72
|
flex-direction: column;
|
|
63
|
-
justify-content: center;
|
|
73
|
+
justify-content: safe center;
|
|
64
74
|
padding: 3.5% 5%;
|
|
65
75
|
box-sizing: border-box;
|
|
66
76
|
font-size: 30px;
|
|
@@ -75,7 +85,7 @@
|
|
|
75
85
|
|
|
76
86
|
.decklight aside.notes, .decklight aside.rehearse { display: none; }
|
|
77
87
|
|
|
78
|
-
/* ---------- pinned titles (SPEC
|
|
88
|
+
/* ---------- pinned titles (SPEC PRESENTING) ---------------------------------------
|
|
79
89
|
The engine marks pinnable sections with data-pinned + inline --pin-y /
|
|
80
90
|
--pin-space (pin Y + measured title height + gap). The leading heading is
|
|
81
91
|
lifted out of flow to sit at --pin-y; padding-top reserves its space so the
|
|
@@ -100,9 +110,122 @@
|
|
|
100
110
|
/* momentary measurement state: laid out, never painted (same-task add/remove) */
|
|
101
111
|
.decklight-stage > section.pin-measure { display: flex; visibility: hidden; }
|
|
102
112
|
|
|
103
|
-
/* ----------
|
|
113
|
+
/* ---------- per-slide layout override (SPEC PRESENTING) ----------------------------
|
|
114
|
+
data-layout on a section — cycled live with L/⇧L or authored directly.
|
|
115
|
+
'pinned' and 'centered' resolve in the engine (pin vs in-flow); 'top' also
|
|
116
|
+
anchors the flow to the top of the slide instead of centering it. The
|
|
117
|
+
split pair turns the section into a wrapping flex row: the header (title +
|
|
118
|
+
subtitle, or the pinned block) spans the full width, the first two content
|
|
119
|
+
blocks become ~half-width sides sharing a top edge — first left, second
|
|
120
|
+
right; 'split-flip' mirrors. A third block is a full-width footer under
|
|
121
|
+
both. A lone list gets .split-columns and splits across two columns. */
|
|
122
|
+
.decklight-stage > section[data-layout="top"] { justify-content: flex-start; }
|
|
123
|
+
|
|
124
|
+
.decklight-stage > section[data-layout|="split"] {
|
|
125
|
+
flex-direction: row;
|
|
126
|
+
flex-wrap: wrap;
|
|
127
|
+
/* stretch, not centre: two comparison columns must share a top edge, or the
|
|
128
|
+
shorter one's heading floats down the slide and the pair stops reading as
|
|
129
|
+
a pair. Stretching makes them equal height and their own content flows
|
|
130
|
+
from the top, which is what authors were hand-rolling flex shells to get.
|
|
131
|
+
align-content stays `safe` for the #68 reason — a line taller than the box
|
|
132
|
+
would otherwise ride up over the pinned title. */
|
|
133
|
+
align-items: stretch;
|
|
134
|
+
align-content: safe center;
|
|
135
|
+
column-gap: 4%;
|
|
136
|
+
}
|
|
137
|
+
.decklight-stage > section[data-layout="split-flip"] { flex-direction: row-reverse; }
|
|
138
|
+
.decklight-stage > section[data-layout|="split"] > * {
|
|
139
|
+
flex: 1 1 40%;
|
|
140
|
+
min-width: 0;
|
|
141
|
+
max-width: 48%;
|
|
142
|
+
}
|
|
143
|
+
.decklight-stage > section[data-layout|="split"] > h1,
|
|
144
|
+
.decklight-stage > section[data-layout|="split"] > h2,
|
|
145
|
+
.decklight-stage > section[data-layout|="split"] > .subtitle,
|
|
146
|
+
.decklight-stage > section[data-layout|="split"] > .decklight-hero-logo {
|
|
147
|
+
flex: 0 0 100%;
|
|
148
|
+
max-width: none;
|
|
149
|
+
}
|
|
150
|
+
.decklight-stage > section[data-layout|="split"] > .split-columns {
|
|
151
|
+
flex-basis: 100%;
|
|
152
|
+
max-width: none;
|
|
153
|
+
columns: 2;
|
|
154
|
+
column-gap: 2em;
|
|
155
|
+
}
|
|
156
|
+
.decklight-stage > section[data-layout|="split"] > .split-columns > li { break-inside: avoid; }
|
|
157
|
+
|
|
158
|
+
/* A third content block is a FOOTER, not a third column (SPEC PRESENTING): the note
|
|
159
|
+
under a comparison applies to both sides, so it spans them and centres
|
|
160
|
+
rather than hanging under whichever column it happened to follow. The engine
|
|
161
|
+
marks it; blocks past the second all land here. */
|
|
162
|
+
.decklight-stage > section[data-layout|="split"] > .split-footer,
|
|
163
|
+
.decklight-overview-grid .ov-clone[data-layout|="split"] > .split-footer {
|
|
164
|
+
flex: 0 0 100%;
|
|
165
|
+
max-width: none;
|
|
166
|
+
text-align: center;
|
|
167
|
+
align-self: center;
|
|
168
|
+
margin-top: 0.5em;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* ---------- background media (SPEC DECK_ANATOMY) -------------------------------------
|
|
172
|
+
The engine injects .slide-bg (setupMedia) as a section's first child when
|
|
173
|
+
the section carries data-background-image / data-background-video: an
|
|
174
|
+
absolutely positioned full-bleed layer UNDER the content (negative z-index
|
|
175
|
+
inside the section's stacking context — active/leaving slides carry a
|
|
176
|
+
z-index, and the print rule sets one). The image rides as an inline
|
|
177
|
+
background-image (size/position from the attributes); a video fills via
|
|
178
|
+
object-fit; .slide-bg-dim is a canvas-colored wash between media and text. */
|
|
179
|
+
.decklight .slide-bg {
|
|
180
|
+
position: absolute;
|
|
181
|
+
inset: 0;
|
|
182
|
+
z-index: -1;
|
|
183
|
+
overflow: hidden;
|
|
184
|
+
background-repeat: no-repeat;
|
|
185
|
+
background-position: center;
|
|
186
|
+
background-size: cover;
|
|
187
|
+
pointer-events: none;
|
|
188
|
+
}
|
|
189
|
+
.decklight .slide-bg > video {
|
|
190
|
+
position: absolute;
|
|
191
|
+
inset: 0;
|
|
192
|
+
width: 100%;
|
|
193
|
+
height: 100%;
|
|
194
|
+
max-width: none;
|
|
195
|
+
object-fit: cover;
|
|
196
|
+
}
|
|
197
|
+
.decklight .slide-bg-dim {
|
|
198
|
+
position: absolute;
|
|
199
|
+
inset: 0;
|
|
200
|
+
background: var(--bg, #000);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* full-bleed content image: covers the slide, sits under the (in-flow) text
|
|
204
|
+
like a background — same stacking slot as .slide-bg, later in DOM order */
|
|
205
|
+
.decklight img.full-bleed {
|
|
206
|
+
position: absolute;
|
|
207
|
+
inset: 0;
|
|
208
|
+
z-index: -1;
|
|
209
|
+
width: 100%;
|
|
210
|
+
height: 100%;
|
|
211
|
+
max-width: none;
|
|
212
|
+
margin: 0;
|
|
213
|
+
object-fit: cover;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* images inside split layouts: cap the height so a tall photo can't blow the
|
|
217
|
+
~half-width side out of the slide; contain keeps its aspect inside the cap */
|
|
218
|
+
.decklight-stage > section[data-layout|="split"] img:not(.full-bleed) {
|
|
219
|
+
max-height: 480px;
|
|
220
|
+
object-fit: contain;
|
|
221
|
+
/* the columns stretch; a replaced element should not — it would letterbox
|
|
222
|
+
inside a box taller than the picture */
|
|
223
|
+
align-self: center;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* ---------- subtitle (SPEC DECK_ANATOMY) ---------------------------------------------
|
|
104
227
|
The <p> directly after a slide's leading heading. One canonical look
|
|
105
|
-
everywhere —
|
|
228
|
+
everywhere — pinned or centered. Absolute size
|
|
106
229
|
(0.72 × the 30px slide base) so per-section font-size adaptations on dense
|
|
107
230
|
slides can't shrink it: the design space is fixed 1280×720, px is stable. */
|
|
108
231
|
.decklight .subtitle {
|
|
@@ -163,7 +286,7 @@
|
|
|
163
286
|
.decklight img, .decklight svg { max-width: 100%; }
|
|
164
287
|
.decklight section > svg, .decklight section > img { margin: 0.3em auto; display: block; }
|
|
165
288
|
|
|
166
|
-
/* ---------- builds (SPEC
|
|
289
|
+
/* ---------- builds (SPEC BUILDS) ---------------------------------------------- */
|
|
167
290
|
.decklight .build-step {
|
|
168
291
|
visibility: hidden;
|
|
169
292
|
opacity: 0;
|
|
@@ -276,6 +399,16 @@
|
|
|
276
399
|
margin-bottom: 6px;
|
|
277
400
|
padding-bottom: 9px;
|
|
278
401
|
}
|
|
402
|
+
/* Browse, and the marketplace rows it lists. Qualified refs and theme names
|
|
403
|
+
from someone else's catalog are shown as written — no capitalization. */
|
|
404
|
+
.decklight-theme-picker .tp-row.tp-browse {
|
|
405
|
+
text-transform: none;
|
|
406
|
+
color: #b9bec8;
|
|
407
|
+
border-top: 1px solid rgba(255, 255, 255, .08);
|
|
408
|
+
margin-top: 6px;
|
|
409
|
+
padding-top: 9px;
|
|
410
|
+
}
|
|
411
|
+
.decklight-theme-picker .tp-row.tp-mkt { text-transform: none; }
|
|
279
412
|
.decklight-theme-picker .tp-row {
|
|
280
413
|
padding: 7px 12px;
|
|
281
414
|
border-radius: 8px;
|
|
@@ -330,7 +463,21 @@
|
|
|
330
463
|
text-overflow: ellipsis;
|
|
331
464
|
}
|
|
332
465
|
|
|
333
|
-
/* ----------
|
|
466
|
+
/* ---------- restore overlay (R) — SPEC PRESENTING ---------------------------------
|
|
467
|
+
The history list: a monospace hash to anchor the eye, the subject doing the
|
|
468
|
+
work, and the age pushed right so the column reads as a timeline. */
|
|
469
|
+
.decklight-restore .rs-hash {
|
|
470
|
+
font-family: var(--font-mono, ui-monospace, monospace);
|
|
471
|
+
opacity: 0.75;
|
|
472
|
+
}
|
|
473
|
+
.decklight-restore .rs-when {
|
|
474
|
+
float: right;
|
|
475
|
+
opacity: 0.55;
|
|
476
|
+
font-size: 0.85em;
|
|
477
|
+
padding-left: 0.75em;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/* ---------- brand logo (SPEC PRESENTING) -------------------------------------------
|
|
334
481
|
Chrome-level mark on every slide. The engine sets data-canvas="dark|light"
|
|
335
482
|
on the root from the applied theme's real background luminance; the
|
|
336
483
|
on-light/on-dark variants toggle accordingly (on-any always shows). */
|
|
@@ -362,23 +509,77 @@
|
|
|
362
509
|
/* a hero slide carries its own mark — the corner chrome yields */
|
|
363
510
|
.decklight.has-hero-logo > .decklight-logo { display: none; }
|
|
364
511
|
|
|
365
|
-
/*
|
|
366
|
-
.
|
|
512
|
+
/* Messages: top-left, stacked newest-last, readable from the back of a room.
|
|
513
|
+
They fade after a few seconds — the history lives in the message log (I). */
|
|
514
|
+
.decklight-messages {
|
|
367
515
|
position: absolute;
|
|
368
|
-
|
|
369
|
-
left:
|
|
370
|
-
|
|
371
|
-
|
|
516
|
+
top: 18px;
|
|
517
|
+
left: 18px;
|
|
518
|
+
display: flex;
|
|
519
|
+
flex-direction: column;
|
|
520
|
+
align-items: flex-start;
|
|
521
|
+
gap: 8px;
|
|
522
|
+
max-width: min(60ch, 70%);
|
|
523
|
+
pointer-events: none;
|
|
524
|
+
z-index: 40;
|
|
525
|
+
}
|
|
526
|
+
.decklight-toast {
|
|
527
|
+
background: rgba(0, 0, 0, .78);
|
|
372
528
|
color: #fff;
|
|
373
|
-
font:
|
|
374
|
-
padding:
|
|
375
|
-
border-radius:
|
|
529
|
+
font: 500 20px/1.35 var(--font-mono, monospace);
|
|
530
|
+
padding: 10px 18px;
|
|
531
|
+
border-radius: 10px;
|
|
532
|
+
border-left: 4px solid var(--accent, #7ee787);
|
|
533
|
+
box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
|
|
376
534
|
opacity: 0;
|
|
377
|
-
|
|
535
|
+
transform: translateY(-6px);
|
|
536
|
+
transition: opacity .25s, transform .25s;
|
|
378
537
|
pointer-events: none;
|
|
379
|
-
z-index: 40;
|
|
380
538
|
}
|
|
381
|
-
.decklight-toast.show { opacity: 1; }
|
|
539
|
+
.decklight-toast.show { opacity: 1; transform: none; }
|
|
540
|
+
|
|
541
|
+
/* the message log (I) — every message, with the time it arrived */
|
|
542
|
+
.decklight-msglog {
|
|
543
|
+
position: absolute;
|
|
544
|
+
top: 18px;
|
|
545
|
+
left: 18px;
|
|
546
|
+
width: min(70ch, 80%);
|
|
547
|
+
max-height: 70%;
|
|
548
|
+
display: flex;
|
|
549
|
+
flex-direction: column;
|
|
550
|
+
background: rgba(0, 0, 0, .88);
|
|
551
|
+
color: #eee;
|
|
552
|
+
border-radius: 10px;
|
|
553
|
+
box-shadow: 0 8px 32px rgba(0, 0, 0, .45);
|
|
554
|
+
z-index: 60;
|
|
555
|
+
overflow: hidden;
|
|
556
|
+
}
|
|
557
|
+
.decklight-msglog .msg-head {
|
|
558
|
+
font: 600 14px var(--font-mono, monospace);
|
|
559
|
+
padding: 10px 14px;
|
|
560
|
+
background: rgba(255, 255, 255, .07);
|
|
561
|
+
letter-spacing: .04em;
|
|
562
|
+
text-transform: uppercase;
|
|
563
|
+
}
|
|
564
|
+
.decklight-msglog .msg-log {
|
|
565
|
+
overflow-y: auto;
|
|
566
|
+
padding: 8px 14px 12px;
|
|
567
|
+
}
|
|
568
|
+
.decklight-msglog .msg-row {
|
|
569
|
+
display: flex;
|
|
570
|
+
gap: 12px;
|
|
571
|
+
padding: 6px 0;
|
|
572
|
+
font: 16px/1.45 var(--font-mono, monospace);
|
|
573
|
+
border-bottom: 1px solid rgba(255, 255, 255, .06);
|
|
574
|
+
}
|
|
575
|
+
.decklight-msglog .msg-row:last-child { border-bottom: 0; }
|
|
576
|
+
.decklight-msglog .msg-time { color: #8b98a5; flex: 0 0 auto; }
|
|
577
|
+
.decklight-msglog .msg-text { word-break: break-word; }
|
|
578
|
+
.decklight-msglog .msg-empty {
|
|
579
|
+
color: #8b98a5;
|
|
580
|
+
font: 16px var(--font-mono, monospace);
|
|
581
|
+
padding: 8px 0;
|
|
582
|
+
}
|
|
382
583
|
|
|
383
584
|
/* draw style: strokes animate dash-offset; text/fills fade */
|
|
384
585
|
.decklight .build-step[data-build-style="draw"] { visibility: visible; opacity: 1; }
|
|
@@ -413,7 +614,28 @@
|
|
|
413
614
|
animation: none !important;
|
|
414
615
|
}
|
|
415
616
|
|
|
416
|
-
/* ----------
|
|
617
|
+
/* ---------- charts (SPEC CHARTS) --------------------------------------------
|
|
618
|
+
Generated theme-aware SVG charts. Structure only: every color in the SVG
|
|
619
|
+
itself is a diagram token (--d-*), so themes need nothing chart-specific. */
|
|
620
|
+
.decklight .chart { width: 100%; max-width: 860px; margin: 0.2em auto; }
|
|
621
|
+
.decklight .chart > svg { display: block; width: 100%; height: auto; }
|
|
622
|
+
.decklight .chart-svg text { font-family: var(--font-body, system-ui, sans-serif); }
|
|
623
|
+
/* invalid chart JSON: a visible error box (the terminal-broken idiom) —
|
|
624
|
+
never a blank slide */
|
|
625
|
+
.decklight .chart-broken {
|
|
626
|
+
font: 15px/1.5 var(--font-mono, ui-monospace, monospace);
|
|
627
|
+
text-align: left;
|
|
628
|
+
color: var(--fg, #eee);
|
|
629
|
+
background: var(--block-bg, rgba(128, 128, 128, .12));
|
|
630
|
+
border: 1.5px solid rgba(224, 92, 92, .8);
|
|
631
|
+
border-radius: var(--block-radius, 8px);
|
|
632
|
+
padding: 14px 18px;
|
|
633
|
+
white-space: pre-wrap;
|
|
634
|
+
word-break: break-word;
|
|
635
|
+
}
|
|
636
|
+
.decklight .chart-broken::before { content: '⚠ '; }
|
|
637
|
+
|
|
638
|
+
/* ---------- element animations (SPEC ELEMENT_ANIMATIONS) -------------------------------- */
|
|
417
639
|
.decklight section.active [data-animate="pulse"] { animation: dl-pulse 1.6s ease-in-out infinite; }
|
|
418
640
|
.decklight section.active [data-animate="float"] { animation: dl-float 3s ease-in-out infinite; }
|
|
419
641
|
.decklight section.active [data-animate="shake"] { animation: dl-shake .8s ease-in-out infinite; }
|
|
@@ -436,7 +658,7 @@
|
|
|
436
658
|
}
|
|
437
659
|
@keyframes dl-breathe { 50% { transform: scale(1.04); opacity: .82; } }
|
|
438
660
|
|
|
439
|
-
/* ---------- slide transitions (SPEC
|
|
661
|
+
/* ---------- slide transitions (SPEC SLIDE_TRANSITIONS) --------------------------------- */
|
|
440
662
|
.decklight section.tr-fade.entering { animation: dl-fade-in var(--transition-duration) ease both; }
|
|
441
663
|
.decklight section.tr-fade.leaving { animation: dl-fade-out var(--transition-duration) ease both; }
|
|
442
664
|
@keyframes dl-fade-in { from { opacity: 0; } }
|
|
@@ -470,7 +692,7 @@
|
|
|
470
692
|
.decklight .aa-fresh { opacity: 0; }
|
|
471
693
|
.decklight .aa-fresh.aa-in { opacity: 1; transition: opacity var(--auto-animate-duration) ease; }
|
|
472
694
|
|
|
473
|
-
/* ---------- code (SPEC
|
|
695
|
+
/* ---------- code (SPEC CODE_AND_MATH) ------------------------------------------------- */
|
|
474
696
|
.decklight pre {
|
|
475
697
|
text-align: left;
|
|
476
698
|
margin: 0.5em auto;
|
|
@@ -545,8 +767,28 @@
|
|
|
545
767
|
padding: 2px 10px;
|
|
546
768
|
}
|
|
547
769
|
.decklight-arrow:hover { color: var(--accent, #6af); }
|
|
770
|
+
/* progress bar (H) — a hairline along the very bottom edge; its width is the
|
|
771
|
+
position in the deck. Below the captions bar (bottom: 7%, z45), the
|
|
772
|
+
character overlay (z44) and the corner chrome, so it covers nothing.
|
|
773
|
+
Track is a translucent neutral (readable on any canvas, like the clock's
|
|
774
|
+
scrim); the fill is the theme's accent. */
|
|
548
775
|
.decklight-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 40; background: rgba(128,128,128,.2); }
|
|
549
776
|
.decklight-progress .bar { height: 100%; width: 0; background: var(--accent, #6af); transition: width 200ms ease; }
|
|
777
|
+
/* ink annotations (W pen / ⇧W laser) — SPEC PRESENTING. A canvas sibling of the
|
|
778
|
+
stage: above the slides (stage z1), below the corner chrome (z30+), the
|
|
779
|
+
captions bar (z45) and every picker/palette. Inert until a tool is on —
|
|
780
|
+
pointer-events: none keeps slide clicks working exactly as before. */
|
|
781
|
+
.decklight-annotate {
|
|
782
|
+
position: absolute;
|
|
783
|
+
inset: 0;
|
|
784
|
+
width: 100%;
|
|
785
|
+
height: 100%;
|
|
786
|
+
z-index: 25;
|
|
787
|
+
pointer-events: none;
|
|
788
|
+
touch-action: none;
|
|
789
|
+
}
|
|
790
|
+
.decklight-annotate.tool-pen { pointer-events: auto; cursor: crosshair; }
|
|
791
|
+
.decklight-annotate.tool-laser { pointer-events: auto; cursor: none; }
|
|
550
792
|
.decklight-slide-number {
|
|
551
793
|
position: absolute;
|
|
552
794
|
right: 20px;
|
|
@@ -561,6 +803,27 @@
|
|
|
561
803
|
margin-right: 12px;
|
|
562
804
|
font-family: var(--font-body, system-ui, sans-serif);
|
|
563
805
|
}
|
|
806
|
+
/* presenter clock (K) — wall time + elapsed talk time, directly BELOW the
|
|
807
|
+
slide number: messages own the top-left, the logo defaults bottom-left,
|
|
808
|
+
the arrows sit bottom-right, so this is the corner slot that covers no
|
|
809
|
+
other chrome. Own scrim, not theme tokens — readable on any canvas. */
|
|
810
|
+
.decklight-clock {
|
|
811
|
+
position: absolute;
|
|
812
|
+
right: 20px;
|
|
813
|
+
top: 42px;
|
|
814
|
+
z-index: 40;
|
|
815
|
+
display: flex;
|
|
816
|
+
gap: 10px;
|
|
817
|
+
padding: 5px 10px;
|
|
818
|
+
border-radius: 8px;
|
|
819
|
+
background: rgba(8, 9, 12, .72);
|
|
820
|
+
color: #fff;
|
|
821
|
+
font-size: 15px;
|
|
822
|
+
font-family: var(--font-mono, monospace);
|
|
823
|
+
pointer-events: none;
|
|
824
|
+
user-select: none;
|
|
825
|
+
}
|
|
826
|
+
.decklight-clock .clk-elapsed { color: var(--accent, #6af); }
|
|
564
827
|
/* touch chrome — shown only where there's no keyboard (see engine.js) */
|
|
565
828
|
.decklight-touch-controls { position: absolute; left: 14px; top: 14px; z-index: 41; display: none; gap: 8px; }
|
|
566
829
|
.decklight-touch-btn {
|
|
@@ -577,45 +840,8 @@
|
|
|
577
840
|
.decklight-touch-btn:active { background: rgba(70, 70, 74, .6); }
|
|
578
841
|
@media (pointer: coarse) { .decklight-touch-controls { display: flex; } }
|
|
579
842
|
|
|
580
|
-
/* module
|
|
581
|
-
.decklight-module
|
|
582
|
-
position: absolute;
|
|
583
|
-
inset: 0;
|
|
584
|
-
z-index: 50;
|
|
585
|
-
background: rgba(0, 0, 0, .55);
|
|
586
|
-
backdrop-filter: blur(3px);
|
|
587
|
-
display: flex;
|
|
588
|
-
align-items: center;
|
|
589
|
-
justify-content: center;
|
|
590
|
-
}
|
|
591
|
-
.decklight-module-menu .mm-panel {
|
|
592
|
-
width: min(460px, 80vw);
|
|
593
|
-
max-height: min(560px, 80vh);
|
|
594
|
-
display: flex;
|
|
595
|
-
flex-direction: column;
|
|
596
|
-
background: #16181d;
|
|
597
|
-
color: #e8eaee;
|
|
598
|
-
border-radius: 14px;
|
|
599
|
-
padding: 18px;
|
|
600
|
-
box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
|
|
601
|
-
font: 15px/1.4 system-ui, sans-serif;
|
|
602
|
-
}
|
|
603
|
-
.decklight-module-menu .mm-title {
|
|
604
|
-
font-weight: 600;
|
|
605
|
-
opacity: .7;
|
|
606
|
-
padding: 0 12px 10px;
|
|
607
|
-
text-transform: uppercase;
|
|
608
|
-
font-size: 12px;
|
|
609
|
-
letter-spacing: .08em;
|
|
610
|
-
}
|
|
611
|
-
.decklight-module-menu .mm-list { overflow-y: auto; }
|
|
612
|
-
.decklight-module-menu .mm-row {
|
|
613
|
-
padding: 8px 12px;
|
|
614
|
-
border-radius: 8px;
|
|
615
|
-
cursor: pointer;
|
|
616
|
-
}
|
|
617
|
-
.decklight-module-menu .mm-row.mm-selected { background: rgba(255, 255, 255, .14); }
|
|
618
|
-
.decklight-module-menu .mm-row.mm-current::after { content: ' ✓'; opacity: .7; }
|
|
843
|
+
/* a finder row that is another module (a separate file), not a slide here */
|
|
844
|
+
.decklight-finder .tp-row.tp-module { color: #cbb6ff; }
|
|
619
845
|
|
|
620
846
|
/* overview */
|
|
621
847
|
.decklight-overview-grid {
|
|
@@ -653,11 +879,12 @@
|
|
|
653
879
|
.decklight-overview-grid .ov-clone {
|
|
654
880
|
display: flex !important;
|
|
655
881
|
position: relative !important;
|
|
882
|
+
z-index: 0; /* keep a cloned .slide-bg inside its own thumbnail */
|
|
656
883
|
width: 100%;
|
|
657
884
|
height: 100%;
|
|
658
885
|
box-sizing: border-box;
|
|
659
886
|
flex-direction: column;
|
|
660
|
-
justify-content: center;
|
|
887
|
+
justify-content: safe center; /* see the section rule (#68) */
|
|
661
888
|
padding: 3.5% 5%;
|
|
662
889
|
font-size: 30px;
|
|
663
890
|
line-height: 1.5;
|
|
@@ -680,6 +907,40 @@
|
|
|
680
907
|
margin: 0;
|
|
681
908
|
max-width: none;
|
|
682
909
|
}
|
|
910
|
+
.decklight-overview-grid .ov-clone[data-layout="top"] { justify-content: flex-start; }
|
|
911
|
+
.decklight-overview-grid .ov-clone[data-layout|="split"] {
|
|
912
|
+
flex-direction: row;
|
|
913
|
+
flex-wrap: wrap;
|
|
914
|
+
/* stretch, not centre: two comparison columns must share a top edge, or the
|
|
915
|
+
shorter one's heading floats down the slide and the pair stops reading as
|
|
916
|
+
a pair. Stretching makes them equal height and their own content flows
|
|
917
|
+
from the top, which is what authors were hand-rolling flex shells to get.
|
|
918
|
+
align-content stays `safe` for the #68 reason — a line taller than the box
|
|
919
|
+
would otherwise ride up over the pinned title. */
|
|
920
|
+
align-items: stretch;
|
|
921
|
+
align-content: safe center;
|
|
922
|
+
column-gap: 4%;
|
|
923
|
+
}
|
|
924
|
+
.decklight-overview-grid .ov-clone[data-layout="split-flip"] { flex-direction: row-reverse; }
|
|
925
|
+
.decklight-overview-grid .ov-clone[data-layout|="split"] > * {
|
|
926
|
+
flex: 1 1 40%;
|
|
927
|
+
min-width: 0;
|
|
928
|
+
max-width: 48%;
|
|
929
|
+
}
|
|
930
|
+
.decklight-overview-grid .ov-clone[data-layout|="split"] > h1,
|
|
931
|
+
.decklight-overview-grid .ov-clone[data-layout|="split"] > h2,
|
|
932
|
+
.decklight-overview-grid .ov-clone[data-layout|="split"] > .subtitle,
|
|
933
|
+
.decklight-overview-grid .ov-clone[data-layout|="split"] > .decklight-hero-logo {
|
|
934
|
+
flex: 0 0 100%;
|
|
935
|
+
max-width: none;
|
|
936
|
+
}
|
|
937
|
+
.decklight-overview-grid .ov-clone[data-layout|="split"] > .split-columns {
|
|
938
|
+
flex-basis: 100%;
|
|
939
|
+
max-width: none;
|
|
940
|
+
columns: 2;
|
|
941
|
+
column-gap: 2em;
|
|
942
|
+
}
|
|
943
|
+
.decklight-overview-grid .ov-clone[data-layout|="split"] > .split-columns > li { break-inside: avoid; }
|
|
683
944
|
.decklight-overview-grid .ov-num {
|
|
684
945
|
position: absolute; left: 8px; top: 6px; z-index: 2;
|
|
685
946
|
font-size: 12px; color: var(--fg, #eee); background: rgba(0,0,0,.5); border-radius: 4px; padding: 0 7px;
|
|
@@ -796,6 +1057,30 @@
|
|
|
796
1057
|
.decklight-help td { padding: 3px 14px 3px 0; }
|
|
797
1058
|
.decklight-help td:first-child { font-family: var(--font-mono, monospace); color: var(--accent, #6af); }
|
|
798
1059
|
|
|
1060
|
+
/* first-run welcome — the help card's anatomy, on the theme's own tokens so it
|
|
1061
|
+
reads on all 46 built-in themes and anything a marketplace adds. z-index sits
|
|
1062
|
+
one above help: on the load it appears, nothing else is up anyway. */
|
|
1063
|
+
.decklight-welcome { position: absolute; inset: 0; z-index: 96; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; }
|
|
1064
|
+
.decklight-welcome .wel-card {
|
|
1065
|
+
background: var(--bg, #222); color: var(--fg, #eee);
|
|
1066
|
+
border-radius: 14px; padding: 30px 38px; max-width: min(620px, 86%);
|
|
1067
|
+
box-shadow: var(--shadow, 0 10px 40px rgba(0,0,0,.5));
|
|
1068
|
+
font-size: 16px; line-height: 1.5;
|
|
1069
|
+
}
|
|
1070
|
+
.decklight-welcome h3 { margin: 0 0 6px; color: var(--heading-color, inherit); font-family: var(--font-heading, inherit); }
|
|
1071
|
+
.decklight-welcome .wel-lead { margin: 0 0 18px; color: var(--muted, #aaa); font-size: 15px; }
|
|
1072
|
+
.decklight-welcome table { border-collapse: collapse; }
|
|
1073
|
+
.decklight-welcome td { padding: 5px 16px 5px 0; vertical-align: top; }
|
|
1074
|
+
.decklight-welcome td:first-child { font-family: var(--font-mono, monospace); color: var(--accent, #6af); white-space: nowrap; }
|
|
1075
|
+
.decklight-welcome code { font-family: var(--font-mono, monospace); background: var(--code-bg, rgba(128,128,128,.2)); border-radius: 4px; padding: 1px 5px; font-size: .9em; }
|
|
1076
|
+
.decklight-welcome .wel-foot { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
|
|
1077
|
+
.decklight-welcome .wel-foot span { color: var(--muted, #aaa); font-size: 13px; }
|
|
1078
|
+
.decklight-welcome .wel-go {
|
|
1079
|
+
font: inherit; font-size: 15px; cursor: pointer;
|
|
1080
|
+
background: var(--accent, #6af); color: var(--accent-contrast, #fff);
|
|
1081
|
+
border: 0; border-radius: 8px; padding: 8px 20px;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
799
1084
|
/* debug log window (D) — passive chrome: keys keep driving the deck.
|
|
800
1085
|
Hardcoded dark like the picker/narr cards: readable over every theme. */
|
|
801
1086
|
.decklight-debug {
|
|
@@ -859,8 +1144,136 @@
|
|
|
859
1144
|
}
|
|
860
1145
|
.decklight-captions.show { display: block; }
|
|
861
1146
|
|
|
862
|
-
/*
|
|
1147
|
+
/* the voice-over hint — "this deck has a voice-over, V plays it".
|
|
1148
|
+
Shares the captions' corner, which is why the two never show at once, and
|
|
1149
|
+
the toast's visual language (dark pill, mono, accent) because it is the
|
|
1150
|
+
same kind of thing: the deck telling you something, briefly. A real
|
|
1151
|
+
<button>, so it is clickable, focusable and announced. */
|
|
1152
|
+
.decklight-narr-hint {
|
|
1153
|
+
position: absolute;
|
|
1154
|
+
left: 50%;
|
|
1155
|
+
bottom: 7%;
|
|
1156
|
+
transform: translateX(-50%) translateY(6px);
|
|
1157
|
+
max-width: 72%;
|
|
1158
|
+
padding: 9px 16px;
|
|
1159
|
+
border: 0;
|
|
1160
|
+
border-left: 4px solid var(--accent, #7ee787);
|
|
1161
|
+
border-radius: 10px;
|
|
1162
|
+
background: rgba(0, 0, 0, .78);
|
|
1163
|
+
color: #fff;
|
|
1164
|
+
font: 500 18px/1.35 var(--font-mono, monospace);
|
|
1165
|
+
box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
|
|
1166
|
+
cursor: pointer;
|
|
1167
|
+
opacity: 0;
|
|
1168
|
+
transition: opacity .25s, transform .25s;
|
|
1169
|
+
z-index: 44; /* under the captions bar (45) — it yields that corner */
|
|
1170
|
+
}
|
|
1171
|
+
.decklight-narr-hint.show { opacity: 1; transform: translateX(-50%); }
|
|
1172
|
+
.decklight-narr-hint kbd {
|
|
1173
|
+
display: inline-block;
|
|
1174
|
+
padding: 1px 7px;
|
|
1175
|
+
border-radius: 5px;
|
|
1176
|
+
background: var(--accent, #7ee787);
|
|
1177
|
+
color: var(--accent-contrast, #0b0d10);
|
|
1178
|
+
font: inherit;
|
|
1179
|
+
font-weight: 700;
|
|
1180
|
+
}
|
|
1181
|
+
.decklight-narr-hint:hover, .decklight-narr-hint:focus-visible { background: rgba(0, 0, 0, .9); }
|
|
1182
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1183
|
+
/* fade only — the pill arrives unannounced, so it must not also move */
|
|
1184
|
+
.decklight-narr-hint { transform: translateX(-50%); transition: opacity .25s; }
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
/* animated character (N → Character…) — lip-synced narration companion.
|
|
1188
|
+
The controller sets data-viseme on the overlay each frame; one
|
|
1189
|
+
[data-mouth] group shows at a time. [data-eyelid]/[data-idle] are the
|
|
1190
|
+
default art's blink + sway — custom art gets them for free too. */
|
|
1191
|
+
.decklight-character {
|
|
1192
|
+
position: absolute;
|
|
1193
|
+
width: var(--character-size, 220px);
|
|
1194
|
+
height: var(--character-size, 220px);
|
|
1195
|
+
z-index: 44; /* under the captions bar */
|
|
1196
|
+
pointer-events: none;
|
|
1197
|
+
display: none;
|
|
1198
|
+
filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
|
|
1199
|
+
}
|
|
1200
|
+
.decklight-character.show { display: block; }
|
|
1201
|
+
.decklight-character.pos-br { right: 28px; bottom: 28px; }
|
|
1202
|
+
.decklight-character.pos-bl { left: 28px; bottom: 28px; }
|
|
1203
|
+
.decklight-character.pos-tr { right: 28px; top: 28px; }
|
|
1204
|
+
.decklight-character.pos-tl { left: 28px; top: 28px; }
|
|
1205
|
+
|
|
1206
|
+
/* solo — the narrator takes the stage. The slide steps aside and the
|
|
1207
|
+
character centers, sized to the stage: `inset: 0` pins all four offsets
|
|
1208
|
+
(overriding whichever pos-* corner is set) and `margin: auto` does the
|
|
1209
|
+
centering. The arrows and the captions stay — you still need to navigate,
|
|
1210
|
+
and the captions ARE the narration, not slide content. */
|
|
1211
|
+
.decklight.decklight-solo .decklight-stage,
|
|
1212
|
+
.decklight.decklight-solo .decklight-progress,
|
|
1213
|
+
.decklight.decklight-solo .decklight-slide-number { visibility: hidden; }
|
|
1214
|
+
/* width/height are set directly, NOT through --character-size: `size` in the
|
|
1215
|
+
config writes that variable inline on the element, and an inline custom
|
|
1216
|
+
property would beat this rule. */
|
|
1217
|
+
.decklight.decklight-solo .decklight-character {
|
|
1218
|
+
inset: 0;
|
|
1219
|
+
margin: auto;
|
|
1220
|
+
width: var(--character-solo-size, min(74vh, 74vw));
|
|
1221
|
+
height: var(--character-solo-size, min(74vh, 74vw));
|
|
1222
|
+
}
|
|
1223
|
+
.decklight-character svg, .decklight-character img { width: 100%; height: 100%; display: block; }
|
|
1224
|
+
.decklight-character.mode-video video {
|
|
1225
|
+
width: 100%;
|
|
1226
|
+
height: 100%;
|
|
1227
|
+
object-fit: cover;
|
|
1228
|
+
border-radius: 50%;
|
|
1229
|
+
background: rgba(8, 9, 12, .6);
|
|
1230
|
+
}
|
|
1231
|
+
.decklight-character [data-mouth] { visibility: hidden; }
|
|
1232
|
+
.decklight-character[data-viseme="A"] [data-mouth="A"],
|
|
1233
|
+
.decklight-character[data-viseme="B"] [data-mouth="B"],
|
|
1234
|
+
.decklight-character[data-viseme="C"] [data-mouth="C"],
|
|
1235
|
+
.decklight-character[data-viseme="D"] [data-mouth="D"],
|
|
1236
|
+
.decklight-character[data-viseme="E"] [data-mouth="E"],
|
|
1237
|
+
.decklight-character[data-viseme="F"] [data-mouth="F"],
|
|
1238
|
+
.decklight-character[data-viseme="G"] [data-mouth="G"],
|
|
1239
|
+
.decklight-character[data-viseme="H"] [data-mouth="H"],
|
|
1240
|
+
.decklight-character[data-viseme="X"] [data-mouth="X"] { visibility: visible; }
|
|
1241
|
+
.decklight-character [data-eyelid] {
|
|
1242
|
+
transform-box: fill-box;
|
|
1243
|
+
transform-origin: 50% 10%;
|
|
1244
|
+
transform: scaleY(0);
|
|
1245
|
+
animation: decklight-blink 4.7s infinite;
|
|
1246
|
+
}
|
|
1247
|
+
@keyframes decklight-blink {
|
|
1248
|
+
0%, 94.5%, 99.5%, 100% { transform: scaleY(0); }
|
|
1249
|
+
96%, 98% { transform: scaleY(1); }
|
|
1250
|
+
}
|
|
1251
|
+
.decklight-character [data-idle] {
|
|
1252
|
+
transform-box: fill-box;
|
|
1253
|
+
transform-origin: 50% 85%;
|
|
1254
|
+
animation: decklight-idle 6.4s ease-in-out infinite alternate;
|
|
1255
|
+
}
|
|
1256
|
+
@keyframes decklight-idle {
|
|
1257
|
+
from { transform: rotate(-1.1deg) translateY(0); }
|
|
1258
|
+
to { transform: rotate(1.1deg) translateY(1.5px); }
|
|
1259
|
+
}
|
|
1260
|
+
.decklight.decklight-print .decklight-character { display: none !important; }
|
|
1261
|
+
|
|
1262
|
+
/* notes editor (right-click a slide's background, or the palette) — E now
|
|
1263
|
+
arms element edit mode instead (below) */
|
|
863
1264
|
.decklight-editor .narr-card { width: min(640px, 88vw); }
|
|
1265
|
+
/* the engine wizard's provenance line (ENGINES#WIZARD, #232): who is asking and
|
|
1266
|
+
where the answer goes — deliberately NOT the muted narr-head treatment, since
|
|
1267
|
+
this is the one line a presenter must read before pasting a key */
|
|
1268
|
+
.decklight-editor .wiz-src {
|
|
1269
|
+
font-size: 12px;
|
|
1270
|
+
line-height: 1.5;
|
|
1271
|
+
padding: 4px 12px 8px;
|
|
1272
|
+
border-bottom: 1px solid rgba(255, 255, 255, .12);
|
|
1273
|
+
margin-bottom: 4px;
|
|
1274
|
+
opacity: .85;
|
|
1275
|
+
}
|
|
1276
|
+
.decklight-editor .wiz-src div:first-child { font-weight: 650; }
|
|
864
1277
|
.decklight-editor .edit-notes {
|
|
865
1278
|
min-height: 240px;
|
|
866
1279
|
resize: vertical;
|
|
@@ -869,6 +1282,40 @@
|
|
|
869
1282
|
font-size: 13px;
|
|
870
1283
|
}
|
|
871
1284
|
|
|
1285
|
+
/* element edit mode's right-click menu (E arms it, then right-click a slide
|
|
1286
|
+
element — #112). The first CURSOR-ANCHORED overlay: every other one dims
|
|
1287
|
+
the whole screen and centers a card — this one must not, since the slide
|
|
1288
|
+
under the cursor is the thing the menu is about. The backdrop stays fully
|
|
1289
|
+
transparent; only .cm-card is visible, positioned at the click by JS. */
|
|
1290
|
+
.decklight-ctxmenu {
|
|
1291
|
+
position: absolute;
|
|
1292
|
+
inset: 0;
|
|
1293
|
+
z-index: 80;
|
|
1294
|
+
}
|
|
1295
|
+
.decklight-ctxmenu .cm-card {
|
|
1296
|
+
position: absolute;
|
|
1297
|
+
min-width: 190px;
|
|
1298
|
+
background: #16181d;
|
|
1299
|
+
color: #e8eaee;
|
|
1300
|
+
border-radius: 10px;
|
|
1301
|
+
padding: 6px;
|
|
1302
|
+
box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
|
|
1303
|
+
font: 14px/1.4 system-ui, sans-serif;
|
|
1304
|
+
}
|
|
1305
|
+
.decklight-ctxmenu .cm-row {
|
|
1306
|
+
padding: 7px 12px;
|
|
1307
|
+
border-radius: 7px;
|
|
1308
|
+
cursor: pointer;
|
|
1309
|
+
white-space: nowrap;
|
|
1310
|
+
}
|
|
1311
|
+
.decklight-ctxmenu .cm-row.cm-selected { background: rgba(255, 255, 255, .14); }
|
|
1312
|
+
.decklight-ctxmenu .cm-row.cm-back {
|
|
1313
|
+
color: #b9bec8;
|
|
1314
|
+
border-bottom: 1px solid rgba(255, 255, 255, .12);
|
|
1315
|
+
margin-bottom: 4px;
|
|
1316
|
+
padding-bottom: 9px;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
872
1319
|
/* transcript overlay (palette → Transcript…) */
|
|
873
1320
|
.decklight-transcript .narr-card { width: min(680px, 88vw); }
|
|
874
1321
|
.decklight-transcript .tr-actions { display: flex; gap: 8px; padding: 4px 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
|
|
@@ -877,29 +1324,109 @@
|
|
|
877
1324
|
.decklight-transcript .tr-title:hover { color: #9ecbff; }
|
|
878
1325
|
.decklight-transcript .tr-seg { margin: 0 0 8px; opacity: .85; font-size: 13px; line-height: 1.55; }
|
|
879
1326
|
|
|
880
|
-
/* ---------- print (SPEC
|
|
1327
|
+
/* ---------- print (SPEC PRESENTING) ------------------------------------------------ */
|
|
1328
|
+
/* The stage overrides are scoped to the OUTER stage (child combinator): the
|
|
1329
|
+
handout/notes variants below wrap each slide in a mini-stage of its own,
|
|
1330
|
+
which must keep the normal stage/section rendering, only scaled. */
|
|
881
1331
|
.decklight.decklight-print { position: static; overflow: visible; }
|
|
882
|
-
.decklight.decklight-print .decklight-stage {
|
|
1332
|
+
.decklight.decklight-print > .decklight-stage {
|
|
883
1333
|
position: static;
|
|
884
1334
|
transform: none !important;
|
|
885
1335
|
width: auto !important;
|
|
886
1336
|
height: auto !important;
|
|
887
1337
|
}
|
|
888
|
-
.decklight.decklight-print .decklight-stage > section {
|
|
1338
|
+
.decklight.decklight-print > .decklight-stage > section {
|
|
889
1339
|
display: flex;
|
|
890
1340
|
position: relative;
|
|
1341
|
+
z-index: 0; /* a stacking context per page, so .slide-bg stays inside it */
|
|
891
1342
|
width: 1280px;
|
|
892
1343
|
height: 720px;
|
|
893
|
-
page-break-after: always;
|
|
894
|
-
break-after: page;
|
|
895
1344
|
border-bottom: 1px dashed rgba(128,128,128,.4);
|
|
896
1345
|
}
|
|
1346
|
+
/* Break BEFORE every page but the first, never after. Suppressing the trailing
|
|
1347
|
+
break on the last slide is not reliable — the stage's last child is often a
|
|
1348
|
+
script element, not a section, so `:last-child` never matches it. The
|
|
1349
|
+
adjacent-sibling form is immune to whatever trails the slides.
|
|
1350
|
+
(No tag literals in these comments: this file is inlined into decks, and
|
|
1351
|
+
`decklight upgrade` scans the result for tags.) */
|
|
1352
|
+
.decklight.decklight-print > .decklight-stage > section + section {
|
|
1353
|
+
page-break-before: always;
|
|
1354
|
+
break-before: page;
|
|
1355
|
+
}
|
|
897
1356
|
.decklight.decklight-print .build-step { visibility: visible !important; opacity: 1 !important; transform: none !important; }
|
|
898
1357
|
.decklight.decklight-print .draw-stroke { stroke-dashoffset: 0 !important; }
|
|
899
1358
|
.decklight.decklight-print .draw-fade { opacity: 1 !important; }
|
|
1359
|
+
|
|
1360
|
+
/* ---------- print variants: ?print=handout | notes (SPEC PRESENTING) ---------------
|
|
1361
|
+
Portrait pages, 816×1056 (US letter at 96dpi — the engine injects the
|
|
1362
|
+
matching @page). Every slide keeps its 1280×720 design box inside a
|
|
1363
|
+
mini-stage (`.decklight-stage.print-slide`, so all section rules still
|
|
1364
|
+
match) and transform-scales into a fixed slot; --print-slide-scale sizes
|
|
1365
|
+
slot and transform together. */
|
|
1366
|
+
.decklight.decklight-print .print-page {
|
|
1367
|
+
display: flex;
|
|
1368
|
+
flex-direction: column;
|
|
1369
|
+
box-sizing: border-box;
|
|
1370
|
+
width: 816px;
|
|
1371
|
+
height: 1056px;
|
|
1372
|
+
padding: 48px;
|
|
1373
|
+
border-bottom: 1px dashed rgba(128,128,128,.4);
|
|
1374
|
+
}
|
|
1375
|
+
.decklight.decklight-print .print-page + .print-page {
|
|
1376
|
+
page-break-before: always;
|
|
1377
|
+
break-before: page;
|
|
1378
|
+
}
|
|
1379
|
+
.decklight.decklight-print .print-slot {
|
|
1380
|
+
position: relative;
|
|
1381
|
+
overflow: hidden;
|
|
1382
|
+
flex: none;
|
|
1383
|
+
width: calc(1280px * var(--print-slide-scale));
|
|
1384
|
+
height: calc(720px * var(--print-slide-scale));
|
|
1385
|
+
border: 1px solid rgba(128,128,128,.45);
|
|
1386
|
+
}
|
|
1387
|
+
.decklight.decklight-print .decklight-stage.print-slide {
|
|
1388
|
+
position: absolute;
|
|
1389
|
+
top: 0;
|
|
1390
|
+
left: 0;
|
|
1391
|
+
width: 1280px;
|
|
1392
|
+
height: 720px;
|
|
1393
|
+
transform: scale(var(--print-slide-scale));
|
|
1394
|
+
transform-origin: 0 0;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
/* handout: 3 slides a page, each beside a column of ruled note lines */
|
|
1398
|
+
.decklight.decklight-print .print-handout { --print-slide-scale: 0.34; gap: 56px; }
|
|
1399
|
+
.decklight.decklight-print .print-row { display: flex; align-items: stretch; gap: 24px; }
|
|
1400
|
+
.decklight.decklight-print .print-notelines {
|
|
1401
|
+
flex: 1;
|
|
1402
|
+
background: repeating-linear-gradient(
|
|
1403
|
+
to bottom,
|
|
1404
|
+
transparent 0, transparent 33px,
|
|
1405
|
+
rgba(128, 128, 128, .55) 33px, rgba(128, 128, 128, .55) 34px);
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
/* notes: one slide a page, its speaker notes underneath */
|
|
1409
|
+
.decklight.decklight-print .print-notes-page { --print-slide-scale: 0.5625; gap: 36px; }
|
|
1410
|
+
.decklight.decklight-print .print-notes {
|
|
1411
|
+
flex: 1;
|
|
1412
|
+
min-height: 0;
|
|
1413
|
+
overflow: hidden;
|
|
1414
|
+
font-size: 15px;
|
|
1415
|
+
line-height: 1.65;
|
|
1416
|
+
text-align: left;
|
|
1417
|
+
}
|
|
1418
|
+
.decklight.decklight-print .print-notes p { margin: 0 0 10px; }
|
|
1419
|
+
|
|
900
1420
|
@media print {
|
|
901
1421
|
@page { size: 1280px 720px; margin: 0; }
|
|
902
|
-
|
|
1422
|
+
/* The page box has no margin, so the document must not either: the UA's
|
|
1423
|
+
default 8px body margin pushes the last slide's final pixels past the last
|
|
1424
|
+
page box and emits a blank sheet — 3 slides printed as 4 pages, 35 as 36.
|
|
1425
|
+
Measured: body 2160px tall, html 2181px. Nothing to do with page breaks,
|
|
1426
|
+
which is why suppressing the trailing break never fixed it. */
|
|
1427
|
+
html, body { margin: 0; padding: 0; }
|
|
1428
|
+
.decklight.decklight-print > .decklight-stage > section { border-bottom: 0; }
|
|
1429
|
+
.decklight.decklight-print .print-page { border-bottom: 0; }
|
|
903
1430
|
.decklight-controls, .decklight-progress, .decklight-touch-controls { display: none !important; }
|
|
904
1431
|
}
|
|
905
1432
|
|
|
@@ -914,7 +1441,10 @@
|
|
|
914
1441
|
}
|
|
915
1442
|
|
|
916
1443
|
|
|
917
|
-
/*
|
|
1444
|
+
/* Copyright 2026 Gilles Philippart
|
|
1445
|
+
SPDX-License-Identifier: Apache-2.0 */
|
|
1446
|
+
|
|
1447
|
+
/* Decklight terminal player chrome (SPEC TERMINAL_PLAYER).
|
|
918
1448
|
* Shipped from src/terminal/ so the terminal subsystem is self-contained;
|
|
919
1449
|
* the core build concatenates this into dist/decklight.css.
|
|
920
1450
|
* All colors come from theme tokens (--term-*, --ansi-*). */
|
|
@@ -1060,9 +1590,356 @@
|
|
|
1060
1590
|
.ansi-inv-fg { color: var(--term-bg, #101418); }
|
|
1061
1591
|
.ansi-inv-bg { background-color: var(--term-fg, #e6e6e6); }
|
|
1062
1592
|
|
|
1063
|
-
/* Print: casts fully expanded, no scroll clipping (SPEC
|
|
1593
|
+
/* Print: casts fully expanded, no scroll clipping (SPEC PRESENTING). The 16:9 floor
|
|
1064
1594
|
is released so the box grows with the full output. */
|
|
1065
1595
|
@media print {
|
|
1066
1596
|
.terminal-screen { max-height: none !important; overflow: visible; aspect-ratio: auto; min-height: auto; }
|
|
1067
1597
|
.terminal-controls { display: none; }
|
|
1068
1598
|
}
|
|
1599
|
+
|
|
1600
|
+
|
|
1601
|
+
math {
|
|
1602
|
+
font-family: "Cambria Math", 'STIXTwoMath-Regular', 'NotoSansMath-Regular', math;
|
|
1603
|
+
font-style: normal;
|
|
1604
|
+
font-weight: normal;
|
|
1605
|
+
line-height: normal;
|
|
1606
|
+
font-size-adjust: none;
|
|
1607
|
+
text-indent: 0;
|
|
1608
|
+
text-transform: none;
|
|
1609
|
+
letter-spacing: normal;
|
|
1610
|
+
word-wrap: normal;
|
|
1611
|
+
direction: ltr;
|
|
1612
|
+
/* Prevent Firefox from omitting the dot on i or j. */
|
|
1613
|
+
font-feature-settings: "dtls" off;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
math * {
|
|
1617
|
+
border-color: currentColor;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
/* display: block is necessary in Firefox and Safari.
|
|
1621
|
+
* Not in Chromium, which recognizes display: "block math" written inline. */
|
|
1622
|
+
math.tml-display {
|
|
1623
|
+
display: block;
|
|
1624
|
+
width: 100%;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
*.mathcal {
|
|
1628
|
+
/* NotoSans */
|
|
1629
|
+
font-feature-settings: 'ss01';
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
math .mathscr {
|
|
1633
|
+
font-family: "Temml";
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
mo.tml-prime {
|
|
1637
|
+
font-family: Temml;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
/* Cramped superscripts in WebKit */
|
|
1641
|
+
mfrac > :nth-child(2),
|
|
1642
|
+
msqrt,
|
|
1643
|
+
mover > :first-child {
|
|
1644
|
+
math-shift: compact
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
.menclose {
|
|
1648
|
+
display: inline-block;
|
|
1649
|
+
position: relative;
|
|
1650
|
+
padding: 0.5ex 0ex;
|
|
1651
|
+
}
|
|
1652
|
+
.tml-cancelto {
|
|
1653
|
+
display: inline-block;
|
|
1654
|
+
position: absolute;
|
|
1655
|
+
top: 0;
|
|
1656
|
+
left: 0;
|
|
1657
|
+
padding: 0.5ex 0ex;
|
|
1658
|
+
background-color: currentColor;
|
|
1659
|
+
/* Use the SVG as an alpha mask (painted by background-color) */
|
|
1660
|
+
-webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><defs><marker id='a' markerHeight='5' markerUnits='strokeWidth' markerWidth='7' orient='auto' refX='7' refY='2.5'><path fill='black' d='m0 0 7 2.5L0 5z'/></marker></defs><line x2='100%25' y1='100%25' stroke='black' stroke-width='.06em' marker-end='url(%23a)' vector-effect='non-scaling-stroke'/></svg>");
|
|
1661
|
+
mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><defs><marker id='a' markerHeight='5' markerUnits='strokeWidth' markerWidth='7' orient='auto' refX='7' refY='2.5'><path fill='black' d='m0 0 7 2.5L0 5z'/></marker></defs><line x2='100%25' y1='100%25' stroke='black' stroke-width='.06em' marker-end='url(%23a)' vector-effect='non-scaling-stroke'/></svg>");
|
|
1662
|
+
-webkit-mask-repeat: no-repeat;
|
|
1663
|
+
mask-repeat: no-repeat;
|
|
1664
|
+
-webkit-mask-size: 100% 100%;
|
|
1665
|
+
mask-size: 100% 100%;
|
|
1666
|
+
-webkit-mask-position: 0 0;
|
|
1667
|
+
mask-position: 0 0;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
@supports (-moz-appearance: none) {
|
|
1671
|
+
/* \vec w/o italic correction for Firefox */
|
|
1672
|
+
.tml-vec {
|
|
1673
|
+
transform: scale(0.75)
|
|
1674
|
+
}
|
|
1675
|
+
/* Fix \cancelto in Firefox */
|
|
1676
|
+
.ff-narrow {
|
|
1677
|
+
width: 0em;
|
|
1678
|
+
}
|
|
1679
|
+
.ff-nudge-left {
|
|
1680
|
+
margin-left: -0.2em;
|
|
1681
|
+
}
|
|
1682
|
+
/* Squash hidden mrows in \bordermatrix. Messes with centering, but necessary to squash. */
|
|
1683
|
+
.ff-squash mtd {
|
|
1684
|
+
display: block;
|
|
1685
|
+
height: 0;
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
@supports (not (-moz-appearance: none)) {
|
|
1690
|
+
/* Chromium and WebKit */
|
|
1691
|
+
/* prime vertical alignment */
|
|
1692
|
+
mo.tml-prime {
|
|
1693
|
+
font-family: Temml;
|
|
1694
|
+
}
|
|
1695
|
+
/* Italic correction on superscripts */
|
|
1696
|
+
.tml-sml-pad {
|
|
1697
|
+
padding-left: 0.05em;
|
|
1698
|
+
}
|
|
1699
|
+
.tml-med-pad {
|
|
1700
|
+
padding-left: 0.10em;
|
|
1701
|
+
}
|
|
1702
|
+
.tml-lrg-pad {
|
|
1703
|
+
padding-left: 0.15em;
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
@supports (-webkit-backdrop-filter: blur(1px)) {
|
|
1708
|
+
/* WebKit vertical & italic correction on accents */
|
|
1709
|
+
.wbk-acc {
|
|
1710
|
+
/* lower by x-height distance */
|
|
1711
|
+
transform: translate(0em, 0.431em);
|
|
1712
|
+
}
|
|
1713
|
+
.wbk-sml {
|
|
1714
|
+
transform: translate(0.07em, 0);
|
|
1715
|
+
}
|
|
1716
|
+
.wbk-sml-acc {
|
|
1717
|
+
transform: translate(0.07em, 0.431em);
|
|
1718
|
+
}
|
|
1719
|
+
.wbk-sml-vec {
|
|
1720
|
+
transform: scale(0.75) translate(0.07em, 0);
|
|
1721
|
+
}
|
|
1722
|
+
.wbk-med {
|
|
1723
|
+
transform: translate(0.14em, 0);
|
|
1724
|
+
}
|
|
1725
|
+
.wbk-med-acc {
|
|
1726
|
+
transform: translate(0.14em, 0.431em);
|
|
1727
|
+
}
|
|
1728
|
+
.wbk-med-vec {
|
|
1729
|
+
transform: scale(0.75) translate(0.14em, 0);
|
|
1730
|
+
}
|
|
1731
|
+
.wbk-lrg {
|
|
1732
|
+
transform: translate(0.21em, 0);
|
|
1733
|
+
}
|
|
1734
|
+
.wbk-lrg-acc {
|
|
1735
|
+
transform: translate(0.21em, 0.431em);
|
|
1736
|
+
}
|
|
1737
|
+
.wbk-lrg-vec {
|
|
1738
|
+
transform: scale(0.75) translate(0.21em, 0);
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
/* \cancel & \phase use background images. Get them to print. */
|
|
1743
|
+
menclose {
|
|
1744
|
+
-webkit-print-color-adjust: exact; /* Chrome & Edge */
|
|
1745
|
+
print-color-adjust: exact;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
/* Array cell justification in Firefox & WebKit */
|
|
1749
|
+
.tml-right {
|
|
1750
|
+
text-align: right;
|
|
1751
|
+
}
|
|
1752
|
+
.tml-left {
|
|
1753
|
+
text-align: left;
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
/* For CD labels that grow to the left in Firefox and WebKit */
|
|
1757
|
+
.tml-shift-left { margin-left:-200% }
|
|
1758
|
+
|
|
1759
|
+
/* Styles for Chromium only */
|
|
1760
|
+
@supports (not (-webkit-backdrop-filter: blur(1px))) and (not (-moz-appearance: none)) {
|
|
1761
|
+
/* Italic correction on accents */
|
|
1762
|
+
.chr-sml {
|
|
1763
|
+
transform: translate(0.07em, 0)
|
|
1764
|
+
}
|
|
1765
|
+
.chr-sml-vec {
|
|
1766
|
+
transform: scale(0.75) translate(0.07em, 0)
|
|
1767
|
+
}
|
|
1768
|
+
.chr-med {
|
|
1769
|
+
transform: translate(0.14em, 0)
|
|
1770
|
+
}
|
|
1771
|
+
.chr-med-vec {
|
|
1772
|
+
transform: scale(0.75) translate(0.14em, 0)
|
|
1773
|
+
}
|
|
1774
|
+
.chr-lrg {
|
|
1775
|
+
transform: translate(0.21em, 0)
|
|
1776
|
+
}
|
|
1777
|
+
.chr-lrg-vec {
|
|
1778
|
+
transform: scale(0.75) translate(0.21em, 0)
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
/* For CD labels that grow to the left */
|
|
1782
|
+
.tml-shift-left { margin-left:-100% }
|
|
1783
|
+
|
|
1784
|
+
/* MathML Core & Chromium do not support the MathML 3.0 element <menclose> attributes. */
|
|
1785
|
+
/* So use styles. */
|
|
1786
|
+
menclose {
|
|
1787
|
+
position: relative;
|
|
1788
|
+
padding: 0.5ex 0ex;
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
.tml-overline {
|
|
1792
|
+
padding: 0.1em 0 0 0;
|
|
1793
|
+
border-top: 0.065em solid;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
.tml-underline {
|
|
1797
|
+
padding: 0 0 0.1em 0;
|
|
1798
|
+
border-bottom: 0.065em solid;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
.tml-cancel {
|
|
1802
|
+
display: inline-block;
|
|
1803
|
+
position: absolute;
|
|
1804
|
+
left: 0.5px;
|
|
1805
|
+
bottom: 0;
|
|
1806
|
+
width: 100%;
|
|
1807
|
+
height: 100%;
|
|
1808
|
+
background-color: currentColor;
|
|
1809
|
+
}
|
|
1810
|
+
.upstrike {
|
|
1811
|
+
clip-path: polygon(0.05em 100%, 0em calc(100% - 0.05em), calc(100% - 0.05em) 0em, 100% 0.05em);
|
|
1812
|
+
}
|
|
1813
|
+
.downstrike {
|
|
1814
|
+
clip-path: polygon(0em 0.05em, 0.05em 0em, 100% calc(100% - 0.05em), calc(100% - 0.05em) 100%);
|
|
1815
|
+
}
|
|
1816
|
+
.sout {
|
|
1817
|
+
clip-path: polygon(0em calc(55% + 0.0333em), 0em calc(55% - 0.0333em), 100% calc(55% - 0.0333em), 100% calc(55% + 0.0333em));
|
|
1818
|
+
}
|
|
1819
|
+
.tml-xcancel {
|
|
1820
|
+
clip-path: polygon(0.05em 0em, 0em 0.05em, calc(50% - 0.05em) 50%, 0em calc(100% - 0.05em), 0.05em 100%, 50% calc(50% + 0.05em), calc(100% - 0.05em) 100%, 100% calc(100% - 0.05em), calc(50% + 0.05em) 50%, 100% 0.05em, calc(100% - 0.05em) 0%, 50% calc(50% - 0.05em));
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
.longdiv-top {
|
|
1824
|
+
border-top: 0.067em solid;
|
|
1825
|
+
padding: 0.1em 0.2em 0.2em 0.433em;
|
|
1826
|
+
}
|
|
1827
|
+
.longdiv-arc {
|
|
1828
|
+
position: absolute;
|
|
1829
|
+
top: 0;
|
|
1830
|
+
bottom: 0.1em;
|
|
1831
|
+
left: -0.4em;
|
|
1832
|
+
width: 0.7em;
|
|
1833
|
+
border: 0.067em solid;
|
|
1834
|
+
transform: translateY(-0.067em);
|
|
1835
|
+
border-radius: 70%;
|
|
1836
|
+
clip-path: inset(0 0 0 0.4em);
|
|
1837
|
+
box-sizing: border-box;}
|
|
1838
|
+
.menclose {display: inline-block;
|
|
1839
|
+
text-align: left;
|
|
1840
|
+
position: relative;
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1843
|
+
.phasor-bottom {
|
|
1844
|
+
border-bottom: 0.067em solid;
|
|
1845
|
+
padding: 0.2em 0.2em 0.1em 0.6em;
|
|
1846
|
+
}
|
|
1847
|
+
.phasor-angle {
|
|
1848
|
+
display: inline-block;
|
|
1849
|
+
position: absolute;
|
|
1850
|
+
left: 0.5px;
|
|
1851
|
+
bottom: -0.04em;
|
|
1852
|
+
height: 100%;
|
|
1853
|
+
aspect-ratio: 0.5;
|
|
1854
|
+
background-color: currentColor;
|
|
1855
|
+
clip-path: polygon(0.05em 100%, 0em calc(100% - 0.05em), calc(100% - 0.05em) 0em, 100% 0.05em);
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
.tml-fbox {
|
|
1859
|
+
padding: 3pt;
|
|
1860
|
+
border: 1px solid;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
.circle-pad {
|
|
1864
|
+
padding: 0.267em;
|
|
1865
|
+
}
|
|
1866
|
+
.textcircle {
|
|
1867
|
+
position: absolute;
|
|
1868
|
+
top: 0;
|
|
1869
|
+
bottom: 0;
|
|
1870
|
+
right: 0;
|
|
1871
|
+
left: 0;
|
|
1872
|
+
border: 0.067em solid;
|
|
1873
|
+
border-radius: 50%;
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
.actuarial {
|
|
1877
|
+
padding: 0.03889em 0.03889em 0 0.03889em;
|
|
1878
|
+
border-width: 0.08em 0.08em 0em 0em;
|
|
1879
|
+
border-style: solid;
|
|
1880
|
+
margin-right: 0.03889em;
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
/* Stretch \widetilde */
|
|
1884
|
+
.tml-crooked-2 {
|
|
1885
|
+
transform: scale(2.0, 1.1)
|
|
1886
|
+
}
|
|
1887
|
+
.tml-crooked-3 {
|
|
1888
|
+
transform: scale(3.0, 1.3)
|
|
1889
|
+
}
|
|
1890
|
+
.tml-crooked-4 {
|
|
1891
|
+
transform: scale(4.0, 1.4)
|
|
1892
|
+
}
|
|
1893
|
+
/* set array cell justification */
|
|
1894
|
+
.tml-right {
|
|
1895
|
+
text-align: -webkit-right;
|
|
1896
|
+
}
|
|
1897
|
+
.tml-left {
|
|
1898
|
+
text-align: -webkit-left;
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
.special-fraction {
|
|
1903
|
+
font-family: 'STIX TWO', 'Times New Roman', Times, Tinos, serif;
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
/* flex-wrap for line-breaking in Chromium */
|
|
1907
|
+
math {
|
|
1908
|
+
display: inline-flex;
|
|
1909
|
+
flex-wrap: wrap;
|
|
1910
|
+
align-items: baseline;
|
|
1911
|
+
}
|
|
1912
|
+
math > mrow {
|
|
1913
|
+
padding: 0.5ex 0ex;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
/* Default mtd top padding is 0.5ex per MathML-Core and user-agent CSS */
|
|
1917
|
+
/* We adjust for jot and small */
|
|
1918
|
+
mtable.tml-jot mtd {
|
|
1919
|
+
padding-top: 0.7ex;
|
|
1920
|
+
padding-bottom: 0.7ex;
|
|
1921
|
+
}
|
|
1922
|
+
mtable.tml-small mtd {
|
|
1923
|
+
padding-top: 0.35ex;
|
|
1924
|
+
padding-bottom: 0.35ex;
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
/* Firefox */
|
|
1928
|
+
@-moz-document url-prefix() {
|
|
1929
|
+
/* Avoid flex-wrap */
|
|
1930
|
+
math { display: inline; }
|
|
1931
|
+
math > mrow { padding: 0 }
|
|
1932
|
+
/* Adjust Firefox spacing between array rows */
|
|
1933
|
+
mtd, mtable.tml-small mtd { padding-top: 0; padding-bottom: 0; }
|
|
1934
|
+
mtable.tml-jot mtd { padding-top: 0.2ex; padding-bottom: 0.ex; }
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
/* AMS environment auto-numbering via CSS counter. */
|
|
1938
|
+
.tml-eqn::before {
|
|
1939
|
+
counter-increment: tmlEqnNo;
|
|
1940
|
+
content: "(" counter(tmlEqnNo) ")";
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
.decklight {
|
|
1944
|
+
counter-reset: tmlEqnNo;
|
|
1945
|
+
}
|