decklight 0.2.0 → 0.4.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/README.md +69 -31
- package/SPEC.md +881 -80
- package/cli/agents.mjs +116 -10
- package/cli/associate.mjs +286 -0
- package/cli/audit.mjs +424 -0
- package/cli/bundle.mjs +174 -46
- package/cli/deckfile.mjs +233 -0
- package/cli/decklight.mjs +201 -8
- package/cli/dev.mjs +244 -55
- package/cli/edit.mjs +577 -107
- package/cli/extension.mjs +108 -0
- package/cli/git.mjs +141 -0
- package/cli/import.mjs +398 -0
- package/cli/init.mjs +421 -116
- package/cli/loader.mjs +263 -0
- package/cli/marketplace.mjs +911 -0
- package/cli/pdf.mjs +156 -0
- package/cli/pkg.mjs +69 -0
- package/cli/plugin.mjs +654 -0
- package/cli/port-conflict.mjs +94 -0
- package/cli/present.mjs +564 -0
- package/cli/publish.mjs +342 -0
- package/cli/qr.mjs +334 -0
- package/cli/rec.mjs +5 -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 +219 -0
- package/cli/units.mjs +500 -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 +716 -29
- package/dist/decklight.js +198 -125
- package/dist/decklight.js.map +4 -4
- package/docs/architecture.svg +1 -1
- package/package.json +7 -5
- package/themes/README.md +6 -4
- package/themes/aurora.css +1 -1
- package/themes/berry.css +1 -1
- package/themes/carbon.css +1 -1
- package/themes/citrus.css +1 -1
- package/themes/coastal.css +1 -1
- package/themes/cosmos.css +1 -1
- package/themes/dune.css +1 -1
- package/themes/eclipse.css +1 -1
- package/themes/ember.css +1 -1
- package/themes/fjord.css +1 -1
- package/themes/gallery.html +3 -11
- package/themes/glacier.css +1 -1
- package/themes/graphite.css +1 -1
- package/themes/harvest.css +1 -1
- package/themes/ibm-modern.css +1 -1
- package/themes/ink.css +1 -1
- package/themes/latte.css +1 -1
- package/themes/linen.css +1 -1
- package/themes/meadow.css +1 -1
- package/themes/metropolis.css +1 -1
- package/themes/midnight.css +1 -1
- package/themes/mint.css +1 -1
- package/themes/moss.css +1 -1
- package/themes/obsidian.css +1 -1
- package/themes/orchid.css +1 -1
- package/themes/packs.json +2 -30
- package/themes/paper.css +1 -1
- package/themes/peony.css +1 -1
- package/themes/porcelain.css +1 -1
- package/themes/reveal-beige.css +1 -1
- package/themes/reveal-black.css +1 -1
- package/themes/reveal-blood.css +1 -1
- package/themes/reveal-dracula.css +1 -1
- package/themes/reveal-league.css +1 -1
- package/themes/reveal-moon.css +1 -1
- package/themes/reveal-night.css +1 -1
- package/themes/reveal-serif.css +1 -1
- package/themes/reveal-simple.css +1 -1
- package/themes/reveal-sky.css +1 -1
- package/themes/reveal-solarized.css +1 -1
- package/themes/reveal-white.css +1 -1
- package/themes/sepia.css +1 -1
- package/themes/seriph.css +1 -1
- package/themes/slate.css +1 -1
- package/themes/storm.css +1 -1
- package/themes/synthwave.css +1 -1
- package/themes/velvet.css +1 -1
- package/themes/yamabuki.css +1 -1
- package/tools/args.mjs +32 -0
- package/tools/bridge.mjs +30 -0
- package/tools/chrome.mjs +46 -11
- 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 +25 -3
- package/tools/lipsync-engines.mjs +81 -0
- package/tools/lipsync-server.mjs +78 -37
- package/tools/lipsync.mjs +36 -21
- 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 +2 -1
- package/tools/publish-targets.mjs +143 -0
- package/tools/publish-voices.mjs +230 -0
- package/tools/shot.mjs +91 -47
- package/tools/theme-check.mjs +144 -0
- package/tools/tts-engines.mjs +270 -41
- package/tools/tts-setup.mjs +257 -0
- package/tools/veo.mjs +204 -0
- package/tools/video.mjs +440 -0
- package/tools/voiceover-server.mjs +163 -54
- package/tools/voiceover.mjs +24 -7
- package/tools/zip.mjs +143 -0
- package/docs/demo.svg +0 -124
- package/themes/aliens.css +0 -87
- package/themes/apple2.css +0 -129
- package/themes/blade-runner.css +0 -86
- package/themes/c64.css +0 -88
- package/themes/friends.css +0 -85
- package/themes/gameboy.css +0 -121
- package/themes/genesis.css +0 -87
- package/themes/godfather.css +0 -85
- package/themes/ibm-oldschool.css +0 -87
- package/themes/miami-vice.css +0 -87
- package/themes/pulp-fiction.css +0 -87
- package/themes/severance.css +0 -85
- package/themes/snes.css +0 -85
- package/themes/star-wars.css +0 -88
- package/themes/stranger-things.css +0 -87
- package/themes/terminator.css +0 -87
package/dist/decklight.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* Copyright 2026 Gilles Philippart
|
|
2
2
|
SPDX-License-Identifier: Apache-2.0 */
|
|
3
3
|
|
|
4
|
-
/* Decklight — structural stylesheet. Themes supply the tokens (SPEC
|
|
4
|
+
/* Decklight — structural stylesheet. Themes supply the tokens (SPEC THEMING);
|
|
5
5
|
this file supplies layout, builds, motion, chrome, code, terminal
|
|
6
6
|
structure, and print. */
|
|
7
7
|
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
--auto-animate-duration: 500ms;
|
|
19
19
|
--dim-opacity: 0.35;
|
|
20
20
|
}
|
|
21
|
-
.decklight[data-embed] { position: relative; width: 100%; aspect-ratio: 16 / 9; }
|
|
22
21
|
|
|
23
22
|
/* Accent overlay: --bg is the canvas (color OR gradient — the shorthand takes
|
|
24
23
|
either); --bg-accent overlays it ONLY when it is an image value. Using
|
|
@@ -58,12 +57,20 @@
|
|
|
58
57
|
too). The root keeps painting the themed --bg, so boot is a clean canvas. */
|
|
59
58
|
.decklight > section { display: none; }
|
|
60
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. */
|
|
61
68
|
.decklight-stage > section {
|
|
62
69
|
position: absolute;
|
|
63
70
|
inset: 0;
|
|
64
71
|
display: none;
|
|
65
72
|
flex-direction: column;
|
|
66
|
-
justify-content: center;
|
|
73
|
+
justify-content: safe center;
|
|
67
74
|
padding: 3.5% 5%;
|
|
68
75
|
box-sizing: border-box;
|
|
69
76
|
font-size: 30px;
|
|
@@ -78,7 +85,7 @@
|
|
|
78
85
|
|
|
79
86
|
.decklight aside.notes, .decklight aside.rehearse { display: none; }
|
|
80
87
|
|
|
81
|
-
/* ---------- pinned titles (SPEC
|
|
88
|
+
/* ---------- pinned titles (SPEC PRESENTING) ---------------------------------------
|
|
82
89
|
The engine marks pinnable sections with data-pinned + inline --pin-y /
|
|
83
90
|
--pin-space (pin Y + measured title height + gap). The leading heading is
|
|
84
91
|
lifted out of flow to sit at --pin-y; padding-top reserves its space so the
|
|
@@ -103,21 +110,28 @@
|
|
|
103
110
|
/* momentary measurement state: laid out, never painted (same-task add/remove) */
|
|
104
111
|
.decklight-stage > section.pin-measure { display: flex; visibility: hidden; }
|
|
105
112
|
|
|
106
|
-
/* ---------- per-slide layout override (SPEC
|
|
113
|
+
/* ---------- per-slide layout override (SPEC PRESENTING) ----------------------------
|
|
107
114
|
data-layout on a section — cycled live with L/⇧L or authored directly.
|
|
108
115
|
'pinned' and 'centered' resolve in the engine (pin vs in-flow); 'top' also
|
|
109
116
|
anchors the flow to the top of the slide instead of centering it. The
|
|
110
117
|
split pair turns the section into a wrapping flex row: the header (title +
|
|
111
|
-
subtitle, or the pinned block) spans the full width,
|
|
112
|
-
~half-width sides — first left,
|
|
113
|
-
|
|
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. */
|
|
114
122
|
.decklight-stage > section[data-layout="top"] { justify-content: flex-start; }
|
|
115
123
|
|
|
116
124
|
.decklight-stage > section[data-layout|="split"] {
|
|
117
125
|
flex-direction: row;
|
|
118
126
|
flex-wrap: wrap;
|
|
119
|
-
|
|
120
|
-
|
|
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;
|
|
121
135
|
column-gap: 4%;
|
|
122
136
|
}
|
|
123
137
|
.decklight-stage > section[data-layout="split-flip"] { flex-direction: row-reverse; }
|
|
@@ -141,9 +155,77 @@
|
|
|
141
155
|
}
|
|
142
156
|
.decklight-stage > section[data-layout|="split"] > .split-columns > li { break-inside: avoid; }
|
|
143
157
|
|
|
144
|
-
/*
|
|
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) ---------------------------------------------
|
|
145
227
|
The <p> directly after a slide's leading heading. One canonical look
|
|
146
|
-
everywhere —
|
|
228
|
+
everywhere — pinned or centered. Absolute size
|
|
147
229
|
(0.72 × the 30px slide base) so per-section font-size adaptations on dense
|
|
148
230
|
slides can't shrink it: the design space is fixed 1280×720, px is stable. */
|
|
149
231
|
.decklight .subtitle {
|
|
@@ -204,7 +286,7 @@
|
|
|
204
286
|
.decklight img, .decklight svg { max-width: 100%; }
|
|
205
287
|
.decklight section > svg, .decklight section > img { margin: 0.3em auto; display: block; }
|
|
206
288
|
|
|
207
|
-
/* ---------- builds (SPEC
|
|
289
|
+
/* ---------- builds (SPEC BUILDS) ---------------------------------------------- */
|
|
208
290
|
.decklight .build-step {
|
|
209
291
|
visibility: hidden;
|
|
210
292
|
opacity: 0;
|
|
@@ -317,6 +399,16 @@
|
|
|
317
399
|
margin-bottom: 6px;
|
|
318
400
|
padding-bottom: 9px;
|
|
319
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; }
|
|
320
412
|
.decklight-theme-picker .tp-row {
|
|
321
413
|
padding: 7px 12px;
|
|
322
414
|
border-radius: 8px;
|
|
@@ -371,7 +463,21 @@
|
|
|
371
463
|
text-overflow: ellipsis;
|
|
372
464
|
}
|
|
373
465
|
|
|
374
|
-
/* ----------
|
|
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) -------------------------------------------
|
|
375
481
|
Chrome-level mark on every slide. The engine sets data-canvas="dark|light"
|
|
376
482
|
on the root from the applied theme's real background luminance; the
|
|
377
483
|
on-light/on-dark variants toggle accordingly (on-any always shows). */
|
|
@@ -508,7 +614,28 @@
|
|
|
508
614
|
animation: none !important;
|
|
509
615
|
}
|
|
510
616
|
|
|
511
|
-
/* ----------
|
|
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) -------------------------------- */
|
|
512
639
|
.decklight section.active [data-animate="pulse"] { animation: dl-pulse 1.6s ease-in-out infinite; }
|
|
513
640
|
.decklight section.active [data-animate="float"] { animation: dl-float 3s ease-in-out infinite; }
|
|
514
641
|
.decklight section.active [data-animate="shake"] { animation: dl-shake .8s ease-in-out infinite; }
|
|
@@ -531,7 +658,7 @@
|
|
|
531
658
|
}
|
|
532
659
|
@keyframes dl-breathe { 50% { transform: scale(1.04); opacity: .82; } }
|
|
533
660
|
|
|
534
|
-
/* ---------- slide transitions (SPEC
|
|
661
|
+
/* ---------- slide transitions (SPEC SLIDE_TRANSITIONS) --------------------------------- */
|
|
535
662
|
.decklight section.tr-fade.entering { animation: dl-fade-in var(--transition-duration) ease both; }
|
|
536
663
|
.decklight section.tr-fade.leaving { animation: dl-fade-out var(--transition-duration) ease both; }
|
|
537
664
|
@keyframes dl-fade-in { from { opacity: 0; } }
|
|
@@ -565,7 +692,7 @@
|
|
|
565
692
|
.decklight .aa-fresh { opacity: 0; }
|
|
566
693
|
.decklight .aa-fresh.aa-in { opacity: 1; transition: opacity var(--auto-animate-duration) ease; }
|
|
567
694
|
|
|
568
|
-
/* ---------- code (SPEC
|
|
695
|
+
/* ---------- code (SPEC CODE_AND_MATH) ------------------------------------------------- */
|
|
569
696
|
.decklight pre {
|
|
570
697
|
text-align: left;
|
|
571
698
|
margin: 0.5em auto;
|
|
@@ -647,6 +774,21 @@
|
|
|
647
774
|
scrim); the fill is the theme's accent. */
|
|
648
775
|
.decklight-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 40; background: rgba(128,128,128,.2); }
|
|
649
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; }
|
|
650
792
|
.decklight-slide-number {
|
|
651
793
|
position: absolute;
|
|
652
794
|
right: 20px;
|
|
@@ -737,11 +879,12 @@
|
|
|
737
879
|
.decklight-overview-grid .ov-clone {
|
|
738
880
|
display: flex !important;
|
|
739
881
|
position: relative !important;
|
|
882
|
+
z-index: 0; /* keep a cloned .slide-bg inside its own thumbnail */
|
|
740
883
|
width: 100%;
|
|
741
884
|
height: 100%;
|
|
742
885
|
box-sizing: border-box;
|
|
743
886
|
flex-direction: column;
|
|
744
|
-
justify-content: center;
|
|
887
|
+
justify-content: safe center; /* see the section rule (#68) */
|
|
745
888
|
padding: 3.5% 5%;
|
|
746
889
|
font-size: 30px;
|
|
747
890
|
line-height: 1.5;
|
|
@@ -768,8 +911,14 @@
|
|
|
768
911
|
.decklight-overview-grid .ov-clone[data-layout|="split"] {
|
|
769
912
|
flex-direction: row;
|
|
770
913
|
flex-wrap: wrap;
|
|
771
|
-
|
|
772
|
-
|
|
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;
|
|
773
922
|
column-gap: 4%;
|
|
774
923
|
}
|
|
775
924
|
.decklight-overview-grid .ov-clone[data-layout="split-flip"] { flex-direction: row-reverse; }
|
|
@@ -908,6 +1057,30 @@
|
|
|
908
1057
|
.decklight-help td { padding: 3px 14px 3px 0; }
|
|
909
1058
|
.decklight-help td:first-child { font-family: var(--font-mono, monospace); color: var(--accent, #6af); }
|
|
910
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
|
+
|
|
911
1084
|
/* debug log window (D) — passive chrome: keys keep driving the deck.
|
|
912
1085
|
Hardcoded dark like the picker/narr cards: readable over every theme. */
|
|
913
1086
|
.decklight-debug {
|
|
@@ -971,6 +1144,46 @@
|
|
|
971
1144
|
}
|
|
972
1145
|
.decklight-captions.show { display: block; }
|
|
973
1146
|
|
|
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
|
+
|
|
974
1187
|
/* animated character (N → Character…) — lip-synced narration companion.
|
|
975
1188
|
The controller sets data-viseme on the overlay each frame; one
|
|
976
1189
|
[data-mouth] group shows at a time. [data-eyelid]/[data-idle] are the
|
|
@@ -1046,8 +1259,21 @@
|
|
|
1046
1259
|
}
|
|
1047
1260
|
.decklight.decklight-print .decklight-character { display: none !important; }
|
|
1048
1261
|
|
|
1049
|
-
/* notes editor (
|
|
1262
|
+
/* notes editor (right-click a slide's background, or the palette) — E now
|
|
1263
|
+
arms element edit mode instead (below) */
|
|
1050
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; }
|
|
1051
1277
|
.decklight-editor .edit-notes {
|
|
1052
1278
|
min-height: 240px;
|
|
1053
1279
|
resize: vertical;
|
|
@@ -1056,6 +1282,40 @@
|
|
|
1056
1282
|
font-size: 13px;
|
|
1057
1283
|
}
|
|
1058
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
|
+
|
|
1059
1319
|
/* transcript overlay (palette → Transcript…) */
|
|
1060
1320
|
.decklight-transcript .narr-card { width: min(680px, 88vw); }
|
|
1061
1321
|
.decklight-transcript .tr-actions { display: flex; gap: 8px; padding: 4px 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
|
|
@@ -1064,29 +1324,109 @@
|
|
|
1064
1324
|
.decklight-transcript .tr-title:hover { color: #9ecbff; }
|
|
1065
1325
|
.decklight-transcript .tr-seg { margin: 0 0 8px; opacity: .85; font-size: 13px; line-height: 1.55; }
|
|
1066
1326
|
|
|
1067
|
-
/* ---------- 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. */
|
|
1068
1331
|
.decklight.decklight-print { position: static; overflow: visible; }
|
|
1069
|
-
.decklight.decklight-print .decklight-stage {
|
|
1332
|
+
.decklight.decklight-print > .decklight-stage {
|
|
1070
1333
|
position: static;
|
|
1071
1334
|
transform: none !important;
|
|
1072
1335
|
width: auto !important;
|
|
1073
1336
|
height: auto !important;
|
|
1074
1337
|
}
|
|
1075
|
-
.decklight.decklight-print .decklight-stage > section {
|
|
1338
|
+
.decklight.decklight-print > .decklight-stage > section {
|
|
1076
1339
|
display: flex;
|
|
1077
1340
|
position: relative;
|
|
1341
|
+
z-index: 0; /* a stacking context per page, so .slide-bg stays inside it */
|
|
1078
1342
|
width: 1280px;
|
|
1079
1343
|
height: 720px;
|
|
1080
|
-
page-break-after: always;
|
|
1081
|
-
break-after: page;
|
|
1082
1344
|
border-bottom: 1px dashed rgba(128,128,128,.4);
|
|
1083
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
|
+
}
|
|
1084
1356
|
.decklight.decklight-print .build-step { visibility: visible !important; opacity: 1 !important; transform: none !important; }
|
|
1085
1357
|
.decklight.decklight-print .draw-stroke { stroke-dashoffset: 0 !important; }
|
|
1086
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
|
+
|
|
1087
1420
|
@media print {
|
|
1088
1421
|
@page { size: 1280px 720px; margin: 0; }
|
|
1089
|
-
|
|
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; }
|
|
1090
1430
|
.decklight-controls, .decklight-progress, .decklight-touch-controls { display: none !important; }
|
|
1091
1431
|
}
|
|
1092
1432
|
|
|
@@ -1104,7 +1444,7 @@
|
|
|
1104
1444
|
/* Copyright 2026 Gilles Philippart
|
|
1105
1445
|
SPDX-License-Identifier: Apache-2.0 */
|
|
1106
1446
|
|
|
1107
|
-
/* Decklight terminal player chrome (SPEC
|
|
1447
|
+
/* Decklight terminal player chrome (SPEC TERMINAL_PLAYER).
|
|
1108
1448
|
* Shipped from src/terminal/ so the terminal subsystem is self-contained;
|
|
1109
1449
|
* the core build concatenates this into dist/decklight.css.
|
|
1110
1450
|
* All colors come from theme tokens (--term-*, --ansi-*). */
|
|
@@ -1250,9 +1590,356 @@
|
|
|
1250
1590
|
.ansi-inv-fg { color: var(--term-bg, #101418); }
|
|
1251
1591
|
.ansi-inv-bg { background-color: var(--term-fg, #e6e6e6); }
|
|
1252
1592
|
|
|
1253
|
-
/* Print: casts fully expanded, no scroll clipping (SPEC
|
|
1593
|
+
/* Print: casts fully expanded, no scroll clipping (SPEC PRESENTING). The 16:9 floor
|
|
1254
1594
|
is released so the box grows with the full output. */
|
|
1255
1595
|
@media print {
|
|
1256
1596
|
.terminal-screen { max-height: none !important; overflow: visible; aspect-ratio: auto; min-height: auto; }
|
|
1257
1597
|
.terminal-controls { display: none; }
|
|
1258
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
|
+
}
|