@hypersocial/decks-cli 0.9.24 → 0.9.25
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/package.json +1 -1
- package/skills/hyperdecks/SKILL.md +13 -2
- package/skills/hyperdecks/terminal.md +3 -2
- package/src/check.mjs +33 -16
- package/src/checkRules.mjs +67 -6
- package/src/commands.mjs +15 -4
- package/src/embedCapture.mjs +126 -0
- package/src/embedSources.mjs +252 -0
- package/src/embedsGuide.mjs +36 -0
- package/src/files.mjs +1 -0
- package/src/guide.mjs +8 -6
- package/src/layoutRoutes.mjs +6 -1
- package/src/layouts.mjs +8 -3
- package/src/ops.mjs +76 -0
- package/src/picturesGuide.mjs +1 -0
- package/src/preview-capture.mjs +70 -1
- package/src/runtime.mjs +2 -2
- package/templates/layouts/_deck.html +61 -12
- package/templates/layouts/bento.html +2 -1
- package/templates/layouts/closer.html +4 -2
- package/templates/layouts/cover-band.html +3 -1
- package/templates/layouts/cover-frame.html +5 -1
- package/templates/layouts/cover-poster.html +2 -1
- package/templates/layouts/cover-split.html +13 -2
- package/templates/layouts/cover-type.html +1 -1
- package/templates/layouts/embed.html +93 -0
- package/templates/layouts/features.html +12 -6
- package/templates/layouts/funnel.html +4 -2
- package/templates/layouts/hero.html +2 -2
- package/templates/layouts/lanes.html +3 -3
- package/templates/layouts/number.html +1 -1
- package/templates/layouts/phone-stage.html +13 -3
- package/templates/layouts/picture-full.html +13 -3
- package/templates/layouts/portrait.html +8 -0
- package/templates/layouts/quote.html +3 -2
- package/templates/layouts/rail.html +7 -4
- package/templates/layouts/scorecard.html +3 -2
- package/templates/layouts/sentence.html +2 -2
- package/templates/layouts/split.html +14 -1
- package/templates/layouts/spotlight.html +4 -1
- package/templates/layouts/stack.html +3 -2
- package/templates/layouts/staircase.html +4 -2
- package/templates/layouts/strike.html +1 -1
- package/templates/layouts/team.html +19 -5
- package/templates/layouts/timeline.html +5 -2
- package/templates/layouts/two-by-two.html +5 -1
- package/templates/layouts/video-full.html +3 -3
- package/templates/layouts/wall.html +39 -11
|
@@ -6,6 +6,7 @@ says: this is real
|
|
|
6
6
|
needs: 1 photo
|
|
7
7
|
use: a strong photo that is the point of the slide (the place, the object, the crowd, the moment) anywhere after the cover; for the first slide use cover-band. Its .pic is a placeholder check fails on: put in a wide photo (yours, or a found one: `hyperdecks photos add <id> --for picture-full`, deck_guide topic photos; 16:9 or wider; on a phone it shows whole at its own shape, so give it width and height) as <img class="pic" src="…" alt="…" width="…" height="…">. The slide is its frame, so the photo fills it (cover): the panel and the presenter keep to the left third, so keep the subject in the right two-thirds; set object-position on the img to move it. The panel grows with the words; never move them off the panel onto the picture. Never a generated or stock stand-in for a real event. A caption (optional, any theme): wrap the picture as <figure class="mount" data-caption="Where, when">…</figure>; short (about 40 characters), never the alt text.
|
|
8
8
|
slot: bottom-left
|
|
9
|
+
flip: data-flip on the section mirrors it: the panel and the presenter under it keep to the right third. Alternate it with a neighbouring picture-full slide.
|
|
9
10
|
presenter: stage
|
|
10
11
|
nopresenter: The panel may widen; the left third below it is free.
|
|
11
12
|
cues: [look: #__ID__-pic] as the narration turns to the picture.
|
|
@@ -23,19 +24,28 @@ script: This is where it happens. [look: #__ID__-pic] Every Saturday, all year r
|
|
|
23
24
|
.l-picture-full .tt { font-size: var(--t-sub); line-height: 1.02; }
|
|
24
25
|
.l-picture-full .lead { font-size: var(--t-body); }
|
|
25
26
|
@media (max-width: 650px) {
|
|
26
|
-
/* Phones: the picture across the top at its own shape (
|
|
27
|
+
/* Phones: the picture across the top, at its own shape (a portrait cropped to 400px tall), the panel directly under it
|
|
28
|
+
(never on it), its type a step up so the words use the height the picture leaves. The picture is never grown past its
|
|
29
|
+
shape: a wide one cropped to fill loses its sides, and the words in a screenshot with them. */
|
|
27
30
|
.l-picture-full { justify-content: flex-start; align-items: stretch; gap: 0; }
|
|
28
|
-
.l-picture-full .pic { position: relative; inset: auto; flex: none; width: auto; height: auto; max-height:
|
|
31
|
+
.l-picture-full .pic { position: relative; inset: auto; flex: none; width: auto; height: auto; max-height: 400px; margin: -28px -20px 0; }
|
|
29
32
|
.l-picture-full div.pic { aspect-ratio: 16 / 9; }
|
|
30
33
|
.slide.l-picture-full > .mount { position: relative; inset: auto; flex: none; margin: -28px -20px 0; }
|
|
31
34
|
.l-picture-full .mount > .pic { margin: 0; }
|
|
32
35
|
.l-picture-full .mount[data-caption]::after { right: 10px; bottom: 10px; padding: 3px 8px; }
|
|
33
|
-
.l-picture-full .panel { gap:
|
|
36
|
+
.l-picture-full .panel { gap: 12px; width: auto; min-width: 0; max-width: none; margin-top: 12px; padding: 20px 20px 22px; border-width: calc(2 * var(--line)); border-radius: calc(16 * var(--round)); box-shadow: calc(6 * var(--drop-x)) calc(6 * var(--drop-y)) calc(6 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
37
|
+
.l-picture-full .tt { font-size: var(--t-title); }
|
|
38
|
+
.l-picture-full .lead { font-size: var(--t-lead); }
|
|
34
39
|
}
|
|
35
40
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
36
41
|
@media (min-width: 651px) {
|
|
37
42
|
:root.hd-no-presenter .l-picture-full .panel { max-width: 720px; }
|
|
38
43
|
}
|
|
44
|
+
/* Flipped (data-flip on the section): the mirror image, for a neighbour of the same layout. Wide screens only; a phone
|
|
45
|
+
stacks the same either way. The presenter follows the panel (layouts/_deck.html). */
|
|
46
|
+
@media not all and (max-width: 650px) {
|
|
47
|
+
.l-picture-full[data-flip] { align-items: flex-end; }
|
|
48
|
+
}
|
|
39
49
|
</style>
|
|
40
50
|
<section class="slide l-picture-full slot-left" id="__ID__" data-chapter="In real life" data-note="Photo: say who took it, where and when.">
|
|
41
51
|
<div class="pic" id="__ID__-pic" role="img" aria-label="Photo placeholder"></div>
|
|
@@ -6,6 +6,7 @@ says: this is real
|
|
|
6
6
|
needs: 1 portrait photo
|
|
7
7
|
use: a person, a product held in the hand or a punchline told by a picture: one tall picture that earns the slide. Its .pic is a placeholder check fails on: put in a portrait photo (3:4 to 9:16; a found one: `hyperdecks photos add <id> --for portrait`, deck_guide topic photos) as <img class="pic" src="…" alt="…" width="…" height="…">; the card takes the picture's shape (up to the slide's height and 560px wide), so it is never cropped and never banded. A face only with permission; never a generated or stock stand-in for a real person. For a wide picture use picture-full. A caption (optional, any theme): wrap the picture as <figure class="mount" data-caption="Where, when">…</figure>; short (about 40 characters), never the alt text.
|
|
8
8
|
slot: bottom-left
|
|
9
|
+
flip: data-flip on the section mirrors it: the portrait on the left, tilted the other way, the words on the right with the presenter under them (bottom-right). Alternate it with a neighbouring portrait slide.
|
|
9
10
|
presenter: stage
|
|
10
11
|
nopresenter: The copy centres vertically beside the picture instead of leaving the bottom-left free.
|
|
11
12
|
cues: [look: #__ID__-pic] as the narration turns to the picture.
|
|
@@ -33,6 +34,13 @@ script: This is the person behind it. [look: #__ID__-pic] Every order, packed by
|
|
|
33
34
|
@media (min-width: 651px) {
|
|
34
35
|
:root.hd-no-presenter .l-portrait .text { align-self: center; padding-top: 0; }
|
|
35
36
|
}
|
|
37
|
+
/* Flipped (data-flip on the section): the mirror image, for a neighbour of the same layout. Wide screens only; a phone
|
|
38
|
+
stacks the same either way. The presenter follows the panel (layouts/_deck.html). */
|
|
39
|
+
@media not all and (max-width: 650px) {
|
|
40
|
+
.l-portrait[data-flip] { grid-template-columns: auto minmax(0, 1fr); }
|
|
41
|
+
.l-portrait[data-flip] .text { grid-column: 2; grid-row: 1; }
|
|
42
|
+
.l-portrait[data-flip] > :is(.pic, .mount) { grid-column: 1; grid-row: 1; margin-right: 0; margin-left: 24px; --tilt: -3deg; }
|
|
43
|
+
}
|
|
36
44
|
</style>
|
|
37
45
|
<section class="slide l-portrait slot-left" id="__ID__" data-chapter="The people" data-note="Photo: say who it is, who took it, when, and that they agreed to be shown.">
|
|
38
46
|
<div class="text">
|
|
@@ -18,8 +18,9 @@ script: In their words. [look: #__ID__-quote] Here is what they told us.
|
|
|
18
18
|
.l-quote figcaption b { display: block; font-size: var(--t-body); }
|
|
19
19
|
.l-quote figcaption small { font: var(--t-label) var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
|
|
20
20
|
@media (max-width: 650px) {
|
|
21
|
-
.l-quote .content { padding-left: 0; justify-content:
|
|
22
|
-
|
|
21
|
+
.l-quote .content { padding-left: 0; justify-content: var(--hd-phone-anchor); gap: 18px; }
|
|
22
|
+
/* A silent deck has the presenter's 172px back: the quote steps up to 40px (32px beside the presenter). */
|
|
23
|
+
.l-quote .quote { font-size: calc(32px + 8px * (1 - var(--hd-phone-presenter))); }
|
|
23
24
|
.l-quote .avatar { width: 44px; height: 44px; font-size: 16px; }
|
|
24
25
|
}
|
|
25
26
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
@@ -29,12 +29,15 @@ script: You send one link. [go: #__ID__-s1] They open it, [go: #__ID__-s3] your
|
|
|
29
29
|
.l-rail .track:has(> li:nth-child(6)) { --n: 6; }
|
|
30
30
|
@media (max-width: 650px) {
|
|
31
31
|
/* A phone: the rail runs down the left, a stop on each line. */
|
|
32
|
-
.l-rail .track { --dot:
|
|
32
|
+
.l-rail .track { --dot: 44px; grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-auto-columns: auto; gap: calc(18px - 6px * var(--hd-phone-presenter)); max-width: none; margin: 0; }
|
|
33
33
|
.l-rail .track::before { left: calc(var(--dot) / 2 - 2px); right: auto; top: calc(var(--dot) / 2); bottom: calc(var(--dot) / 2); width: 4px; height: auto; }
|
|
34
|
-
.l-rail .track li { display: grid; grid-template-columns: var(--dot) minmax(0, 1fr); column-gap:
|
|
34
|
+
.l-rail .track li { display: grid; grid-template-columns: var(--dot) minmax(0, 1fr); column-gap: 14px; row-gap: calc(4px - 2px * var(--hd-phone-presenter)); }
|
|
35
35
|
.l-rail .dot { grid-row: span 2; margin: 0; border-width: calc(2 * var(--line)); font-size: var(--t-label); }
|
|
36
|
-
.l-rail .track b { font-size: var(--t-
|
|
37
|
-
.l-rail .track p { font-size: var(--t-
|
|
36
|
+
.l-rail .track b { font-size: var(--t-lead); }
|
|
37
|
+
.l-rail .track p { font-size: var(--t-body); }
|
|
38
|
+
/* The stops spread down the free height, at most 130px a stop, never closer than their gap: a column whose
|
|
39
|
+
minimum is its content's height, so stops that do not fit make the slide run over where check sees it. */
|
|
40
|
+
.l-rail .track { display: flex; flex-direction: column; flex: 1 1 0; justify-content: space-between; max-height: calc(var(--n) * 130px); }
|
|
38
41
|
}
|
|
39
42
|
/* A large presenter (data-presenter-size l or xl on this slide's section tag): narrower; at xl the rail runs down the slide. */
|
|
40
43
|
@media not all and (max-width: 650px) {
|
|
@@ -28,8 +28,9 @@ script: Here is where we stand. [look: #__ID__-rows] Three are on track. One nee
|
|
|
28
28
|
.l-scorecard .state.watch { background: var(--accent); color: var(--accent-ink); } .l-scorecard .watch::before { content: "▲"; }
|
|
29
29
|
.l-scorecard .state.bad { background: var(--ink); color: var(--paper); } .l-scorecard .bad::before { content: "✕"; }
|
|
30
30
|
@media (max-width: 650px) {
|
|
31
|
-
|
|
32
|
-
.l-scorecard .rows
|
|
31
|
+
/* The rows share the free height, at most 130px a row, never under their words (as funnel's stages). */
|
|
32
|
+
.l-scorecard .rows { flex: 1 1 0; min-height: auto; justify-content: flex-start; gap: 6px; max-width: none; }
|
|
33
|
+
.l-scorecard .rows li { flex: 1 1 auto; max-height: 130px; align-content: center; grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; column-gap: 10px; padding: 10px 12px; border-width: calc(2 * var(--line)); border-radius: calc(12 * var(--round)); box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) calc(4 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
33
34
|
.l-scorecard .rows b { font-size: var(--t-body); }
|
|
34
35
|
.l-scorecard .val { font-size: var(--t-lead); }
|
|
35
36
|
.l-scorecard .state { grid-column: 1 / 3; justify-self: start; gap: 6px; padding: 3px 9px; border-width: calc(1 * var(--line)); }
|
|
@@ -19,8 +19,8 @@ script: Here is the whole point. [look: #__ID__-line] They show up to the meetin
|
|
|
19
19
|
.l-sentence mark { color: inherit; background: linear-gradient(transparent 58%, var(--accent) 58%); }
|
|
20
20
|
.on-accent.l-sentence mark { background: linear-gradient(transparent 58%, var(--card) 58%); }
|
|
21
21
|
@media (max-width: 650px) {
|
|
22
|
-
.l-sentence { gap: 12px; }
|
|
23
|
-
.l-sentence .tt { font-size: var(--t-
|
|
22
|
+
.l-sentence { gap: 12px; justify-content: var(--hd-phone-anchor); }
|
|
23
|
+
.l-sentence .tt { font-size: var(--t-display); max-width: none; }
|
|
24
24
|
}
|
|
25
25
|
/* A large presenter (data-presenter-size l or xl on this slide's section tag). */
|
|
26
26
|
@media not all and (max-width: 650px) {
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
layout: split
|
|
3
3
|
summary: Image plus copy: the copy on the left (a sticker for the logo or icon, kicker, title, one line, three ticks), a real picture on the right in a phone card (the picture is the background; add bg-pool to light it).
|
|
4
4
|
brief: Image plus copy: a sticker, title, line and three ticks beside a real picture.
|
|
5
|
-
use: a product, a feature or an app, shown with a real picture beside the words. A deck can carry several, spread out, with other shapes between them (check warns when one layout fills over a third of the slides). The phone's .shot is a placeholder check fails on: put in a phone screenshot (capture_url at 390×844) or a screen recording (upload_deck_asset) as <img class="shot"> or <video class="shot" autoplay muted loop playsinline>. For a desktop app, replace the card with <div class="frame laptop" id="__ID__-frame"><img class="shot" src="…" alt="…"></div>; for any other picture or clip (a square sheet, 4:3, 16:9), <img class="shot wide" src="…" alt="…" id="__ID__-frame"> (or <video class="shot wide" …>): its frame takes the picture's shape, no styling needed; for a photo (a found one: `hyperdecks photos add <id> --for split`, deck_guide topic photos), <img class="pic" src="…" alt="…" width="…" height="…" id="__ID__-frame"> (it takes the theme's photo treatment). A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) gives it the left of the slide, the copy and the picture side by side beside it (for the stage presenter). Swap the sticker's icon for the product's logo (<span class="sticker photo"><img src="…" alt=""></span>) or one icon from the deck's set (`hyperdecks icons search <word> --for split`, search_icons { for: "split" }).
|
|
5
|
+
use: a product, a feature or an app, shown with a real picture beside the words. A deck can carry several, spread out, with other shapes between them (check warns when one layout fills over a third of the slides). The phone's .shot is a placeholder check fails on: put in a phone screenshot (capture_url at 390×844) or a screen recording (upload_deck_asset) as <img class="shot"> or <video class="shot" autoplay muted loop playsinline>. For a desktop app, replace the card with <div class="frame laptop" id="__ID__-frame"><img class="shot" src="…" alt="…"></div>; for any other picture or clip (a square sheet, 4:3, 16:9), <img class="shot wide" src="…" alt="…" id="__ID__-frame"> (or <video class="shot wide" …>): its frame takes the picture's shape, no styling needed; for a photo (a found one: `hyperdecks photos add <id> --for split`, deck_guide topic photos), <img class="pic" src="…" alt="…" width="…" height="…" id="__ID__-frame"> (it takes the theme's photo treatment). A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) gives it the left of the slide, the copy and the picture side by side beside it (for the stage presenter); on a flipped split (data-flip) it takes the right, the picture and the copy beside it. Swap the sticker's icon for the product's logo (<span class="sticker photo"><img src="…" alt=""></span>) or one icon from the deck's set (`hyperdecks icons search <word> --for split`, search_icons { for: "split" }).
|
|
6
6
|
slot: bottom-left
|
|
7
|
+
flip: data-flip on the section mirrors it: the picture in the left column, the words on the right with the presenter under them (bottom-right). Alternate it with a neighbouring split slide.
|
|
7
8
|
presenter: stage
|
|
8
9
|
nopresenter: The copy centres vertically beside the picture instead of leaving the bottom-left free.
|
|
9
10
|
cues: [look: #__ID__-frame] when the narration turns to the picture; [go: #__ID__-t1], [go: #__ID__-t2], [go: #__ID__-t3] at the word that starts each tick, then [go: slot].
|
|
@@ -45,6 +46,18 @@ script: Here it is, doing the job. [look: #__ID__-frame] It starts with [go: #__
|
|
|
45
46
|
@media (min-width: 651px) {
|
|
46
47
|
:root.hd-no-presenter .l-split .text { align-self: center; padding-top: 0; }
|
|
47
48
|
:root.hd-no-presenter .l-split:is([data-presenter-size="l"], [data-presenter-size="xl"]) { padding-left: 72px; }
|
|
49
|
+
:root.hd-no-presenter .l-split:is([data-presenter-size="l"], [data-presenter-size="xl"])[data-flip] { padding-right: 72px; }
|
|
50
|
+
}
|
|
51
|
+
/* Flipped (data-flip on the section): the mirror image, for a neighbour of the same layout. Wide screens only; a phone
|
|
52
|
+
stacks the same either way. The presenter follows the panel (layouts/_deck.html). */
|
|
53
|
+
@media not all and (max-width: 650px) {
|
|
54
|
+
.l-split[data-flip] { grid-template-columns: minmax(0, 1fr) 680px; }
|
|
55
|
+
.l-split[data-flip] .text { grid-column: 2; grid-row: 1; }
|
|
56
|
+
.l-split[data-flip] .media { grid-column: 1; grid-row: 1; }
|
|
57
|
+
.l-split[data-flip] .frame.card { --tilt: -4deg; }
|
|
58
|
+
/* A large presenter keeps the right of the slide instead of the left. */
|
|
59
|
+
.l-split:is([data-presenter-size="l"], [data-presenter-size="xl"])[data-flip] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-left: 72px; padding-right: 728px; }
|
|
60
|
+
.l-split:is([data-presenter-size="xl"])[data-flip] { padding-right: 872px; }
|
|
48
61
|
}
|
|
49
62
|
</style>
|
|
50
63
|
<section class="slide l-split slot-left" id="__ID__" data-chapter="The product" data-note="Picture: name the screen or clip and the date it was captured.">
|
|
@@ -29,7 +29,10 @@ script: There are four ways to present. [look: #__ID__-row] This one is new: [go
|
|
|
29
29
|
.l-spotlight .row li.is-on b { font-size: min(var(--t-title), 11cqi); line-height: var(--display-leading); }
|
|
30
30
|
.l-spotlight .row li.is-on p { font-size: min(var(--t-lead), 8cqi); }
|
|
31
31
|
@media (max-width: 650px) {
|
|
32
|
-
|
|
32
|
+
/* The options share the free height, the picked one up to twice as tall (at most 170px; the rest 100px), words centred. */
|
|
33
|
+
.l-spotlight .row { flex: 1 1 0; min-height: auto; max-height: none; display: flex; flex-direction: column; gap: 8px; max-width: none; margin: 0; }
|
|
34
|
+
.l-spotlight .row li { flex: 1 1 auto; max-height: 100px; justify-content: center; }
|
|
35
|
+
.l-spotlight .row li.is-on { flex: 2 1 auto; max-height: 170px; justify-content: center; }
|
|
33
36
|
.l-spotlight .row li, .l-spotlight .row li.is-on { grid-column: 1; grid-row: auto; gap: 2px; padding: 10px 14px; border-width: calc(2 * var(--line)); border-radius: calc(14 * var(--round)); }
|
|
34
37
|
.l-spotlight .row li.is-on { box-shadow: calc(5 * var(--drop-x)) calc(5 * var(--drop-y)) calc(5 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
35
38
|
.l-spotlight .row b, .l-spotlight .row li.is-on b { font-size: min(var(--t-lead), 9cqi); }
|
|
@@ -37,8 +37,9 @@ script: It starts with [go: #__ID__-base] your deck. The player plays it, and th
|
|
|
37
37
|
.l-stack { display: flex; }
|
|
38
38
|
.l-stack .tt { font-size: var(--t-title); }
|
|
39
39
|
.l-stack .lead { font-size: var(--t-body); }
|
|
40
|
-
|
|
41
|
-
.l-stack .layers
|
|
40
|
+
/* The layers share the free height, at most 110px a layer, their words centred in each. */
|
|
41
|
+
.l-stack .layers { flex: 1 1 0; min-height: auto; align-self: stretch; justify-content: flex-start; gap: 6px; margin: 4px 0 0; }
|
|
42
|
+
.l-stack .layers li { flex: 1 1 auto; max-height: 110px; justify-content: center; gap: 1px; margin: 0 calc(var(--up) * 12px); padding: 9px 14px; border-width: calc(2 * var(--line)); border-radius: calc(12 * var(--round)); box-shadow: calc(3 * var(--drop-x)) calc(3 * var(--drop-y)) calc(3 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
42
43
|
.l-stack .layers b { font-size: var(--t-body); }
|
|
43
44
|
.l-stack .layers p { font-size: var(--t-label); }
|
|
44
45
|
}
|
|
@@ -31,8 +31,10 @@ script: It starts when you [go: #__ID__-s1] ask. Your assistant [go: #__ID__-s2]
|
|
|
31
31
|
.l-staircase .steps:has(> li:nth-child(4)) { --n: 4; }
|
|
32
32
|
@media (max-width: 650px) {
|
|
33
33
|
/* A phone: the steps as a list in order, 01 first, each one indented a step further than the one above. */
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
/* The steps share the free height, at most about 150px a step, never under their words (up to that cap): the list keeps its
|
|
35
|
+
content's height as its minimum, so steps that do not fit make the slide run over where check sees it. */
|
|
36
|
+
.l-staircase .steps { flex: 1 1 0; min-height: auto; max-height: calc(var(--n) * 150px); display: flex; flex-direction: column; align-items: stretch; gap: calc(8px - 2px * var(--hd-phone-presenter)); max-width: none; }
|
|
37
|
+
.l-staircase .steps li { flex: 1 1 auto; align-content: center; min-height: 0; gap: 2px; padding: calc(10px - 3px * var(--hd-phone-presenter)) 14px; margin-left: calc(var(--i) * 16px); border-width: calc(2 * var(--line)); border-radius: calc(12 * var(--round)); box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) calc(4 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
36
38
|
/* The number beside the name, the line under both. */
|
|
37
39
|
.l-staircase .steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 10px; }
|
|
38
40
|
.l-staircase .steps b { font-size: var(--t-lead); }
|
|
@@ -22,7 +22,7 @@ script: You may have heard [look: #__ID__-old] that an avatar deck is a deepfake
|
|
|
22
22
|
.l-strike .tt mark { color: inherit; background: linear-gradient(transparent 58%, var(--accent) 58%); }
|
|
23
23
|
.on-accent.l-strike .tt mark { background: linear-gradient(transparent 58%, var(--card) 58%); }
|
|
24
24
|
@media (max-width: 650px) {
|
|
25
|
-
.l-strike { gap: 14px; }
|
|
25
|
+
.l-strike { gap: 14px; justify-content: var(--hd-phone-anchor); }
|
|
26
26
|
.l-strike .old { font-size: var(--t-lead); max-width: none; }
|
|
27
27
|
.l-strike .tt { max-width: none; font-size: var(--t-title); }
|
|
28
28
|
}
|
|
@@ -19,11 +19,25 @@ script: Meet the team. [go: #__ID__-p1] Ana builds it. [go: #__ID__-p2] Sam sell
|
|
|
19
19
|
.l-team b { font-size: 30px; letter-spacing: -.02em; }
|
|
20
20
|
.l-team small { font: var(--t-label) var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
|
|
21
21
|
@media (max-width: 650px) {
|
|
22
|
-
.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
.l-team
|
|
26
|
-
.l-team
|
|
22
|
+
/* Grow only into height that is free. The people take the height under the title, two to a row, each row an equal
|
|
23
|
+
share but never shorter than its card's content; each face takes what its card leaves (a square, 48px to 120px),
|
|
24
|
+
so a face shrinks before a card runs on; a slide that needs more than that runs past the card where check sees it. */
|
|
25
|
+
.l-team .people { flex: 1 1 0; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(min-content, 1fr); gap: 8px; margin-top: 4px; }
|
|
26
|
+
.l-team .person { justify-content: center; padding: 12px; border-radius: calc(16 * var(--round)); gap: 2px; }
|
|
27
|
+
.l-team .face { flex: 1 1 0; width: auto; height: auto; min-height: 48px; max-height: 120px; aspect-ratio: 1; margin-bottom: 4px; font-size: var(--initials, 17px); }
|
|
28
|
+
.l-team b { font-size: var(--b, 16px); }
|
|
29
|
+
.l-team small { font-size: var(--small, 10px); min-height: var(--role-lines, 0); }
|
|
30
|
+
/* Up to four people: the words step up (14px roles, two lines' room so the faces in a row match). Five or more keep
|
|
31
|
+
the sizes and rows they had (face 48px, name 16px, role 10px, each row as tall as its own cards: equal rows would
|
|
32
|
+
all take the tallest card's height and run on sooner), except five or six on a silent deck, which have the room
|
|
33
|
+
to grow like four. The silent case is a style query, so a browser without one keeps the sizes that fitted. */
|
|
34
|
+
.l-team .people:not(:has(> :nth-child(5))) { --b: var(--t-lead); --small: var(--t-label); --initials: 28px; --role-lines: 2lh; }
|
|
35
|
+
.l-team .people:has(> :nth-child(5)) { grid-auto-rows: auto; align-content: start; }
|
|
36
|
+
.l-team .people:has(> :nth-child(5)) .face { flex: none; height: 48px; }
|
|
37
|
+
@container style(--hd-phone-presenter: 0) {
|
|
38
|
+
.l-team .people:has(> :nth-child(5)):not(:has(> :nth-child(7))) { grid-auto-rows: minmax(min-content, 1fr); align-content: normal; --b: var(--t-lead); --small: var(--t-label); --initials: 28px; --role-lines: 2lh; }
|
|
39
|
+
.l-team .people:has(> :nth-child(5)):not(:has(> :nth-child(7))) .face { flex: 1 1 0; height: auto; }
|
|
40
|
+
}
|
|
27
41
|
}
|
|
28
42
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
29
43
|
@media (min-width: 651px) {
|
|
@@ -19,13 +19,16 @@ script: It started [go: #__ID__-m1] with a sketch. Then [go: #__ID__-m2] a first
|
|
|
19
19
|
.l-timeline b { display: block; font-size: 32px; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 8px; }
|
|
20
20
|
.l-timeline p { font-size: 20px; line-height: 1.3; opacity: .7; }
|
|
21
21
|
@media (max-width: 650px) {
|
|
22
|
-
|
|
22
|
+
/* The steps spread down the free height (each at most 130px, never shorter than its own words), the line running
|
|
23
|
+
the length of them. A flex column, not 1fr rows: those make every step as tall as the tallest. */
|
|
24
|
+
.l-timeline .line { flex: 1 1 0; min-height: auto; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding-left: 26px; }
|
|
25
|
+
.l-timeline .line > li { flex: 1 1 auto; max-height: 130px; }
|
|
23
26
|
.l-timeline .line::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto; }
|
|
24
27
|
.l-timeline li { padding: 4px 0 8px 8px; border-radius: 0; }
|
|
25
28
|
.l-timeline li::before { left: -26px; top: 6px; width: 15px; height: 15px; box-shadow: 0 0 0 calc(4 * var(--line)) var(--paper); }
|
|
26
29
|
.l-timeline time { margin-bottom: 2px; }
|
|
27
30
|
.l-timeline b { font-size: 18px; margin-bottom: 2px; }
|
|
28
|
-
.l-timeline p { font-size:
|
|
31
|
+
.l-timeline p { font-size: var(--t-label); }
|
|
29
32
|
}
|
|
30
33
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
31
34
|
@media (min-width: 651px) {
|
|
@@ -35,10 +35,14 @@ script: Video is personal but slow. A PDF is quick but flat. [look: #__ID__-plan
|
|
|
35
35
|
.l-two-by-two { display: flex; }
|
|
36
36
|
.l-two-by-two .tt { font-size: var(--t-title); }
|
|
37
37
|
.l-two-by-two .lead { font-size: var(--t-body); }
|
|
38
|
-
|
|
38
|
+
/* The plane takes the free height and the column's width, up to 420px tall (30px under it for the x label),
|
|
39
|
+
never under the square it was (270px, 232px with a presenter): a long title makes the slide run over where check sees it. */
|
|
40
|
+
.l-two-by-two .plane { --axis: 3px; flex: 1 1 0; align-self: stretch; width: auto; aspect-ratio: auto; min-height: calc(270px - 38px * var(--hd-phone-presenter)); max-height: 420px; margin: 24px 0 30px 8px; }
|
|
39
41
|
.l-two-by-two .q { padding: 6px; }
|
|
40
42
|
.l-two-by-two .q b, .l-two-by-two .q.us b { padding: 6px 8px; border-width: calc(2 * var(--line)); border-radius: calc(10 * var(--round)); font-size: var(--t-label); box-shadow: calc(3 * var(--drop-x)) calc(3 * var(--drop-y)) calc(3 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
41
43
|
.l-two-by-two .ax { letter-spacing: .06em; }
|
|
44
|
+
/* The y label stands in the plane's 24px top margin, clear of the lead above. */
|
|
45
|
+
.l-two-by-two .ax.y { margin-bottom: 4px; }
|
|
42
46
|
}
|
|
43
47
|
/* A large presenter (data-presenter-size l or xl on this slide's section tag): the grid goes under the title, as wide
|
|
44
48
|
as the column allows and no taller than the height left. */
|
|
@@ -38,14 +38,14 @@ script: Watch it do the whole job. [look: #__ID__-clip] No cuts, no edits, start
|
|
|
38
38
|
}
|
|
39
39
|
.l-video-full .narration-slot { right: 32px; bottom: 4px; }
|
|
40
40
|
@media (max-width: 650px) {
|
|
41
|
-
/* Phones: the recording at its own shape across the card (up to 420px tall), the bar directly under it,
|
|
42
|
-
.l-video-full { --hd-presenter-scale: initial; flex-flow: column nowrap; justify-content:
|
|
41
|
+
/* Phones: the recording at its own shape across the card (up to 420px tall), the bar directly under it, one block at the phone anchor (--hd-phone-anchor). */
|
|
42
|
+
.l-video-full { --hd-presenter-scale: initial; flex-flow: column nowrap; justify-content: var(--hd-phone-anchor); padding: 0 0 200px; }
|
|
43
43
|
.l-video-full .clip { width: auto; }
|
|
44
44
|
.l-video-full .clip { flex: none; height: auto; max-height: 420px; }
|
|
45
45
|
.l-video-full div.clip { aspect-ratio: 16 / 9; }
|
|
46
46
|
.l-video-full .bar { --t-sub: calc(28px * var(--display-scale)); flex: none; min-height: 0; padding: 14px 20px 16px; }
|
|
47
47
|
.l-video-full .tt { font-size: var(--t-sub); line-height: 1.02; }
|
|
48
|
-
.l-video-full .narration-slot { right: 12px; bottom:
|
|
48
|
+
.l-video-full .narration-slot { right: 12px; bottom: 12px; }
|
|
49
49
|
}
|
|
50
50
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
51
51
|
@media (min-width: 651px) {
|
|
@@ -4,8 +4,9 @@ summary: A wall of three to five pictures, one large, and one solid tile beside
|
|
|
4
4
|
brief: Three to five photos, one large, and a solid tile for the sentence.
|
|
5
5
|
says: this is real
|
|
6
6
|
needs: 3 to 5 photos
|
|
7
|
-
use: people, an event, places, a set of things made: proof it happened, many times over. Each .pic is a placeholder check fails on: put in photos (`hyperdecks asset add`, upload_deck_asset; found ones: `hyperdecks photos add <id> --for wall`, deck_guide topic photos) as <img class="pic" src="…" alt="…" width="…" height="…">, the strongest first (it takes the large cell). On a wide screen the wall's cells are its shape, so each photo fills its cell (cover). Pick the cells for the set: by default they stand upright (about square with three photos, taller with four or five), for upright photos; for square photos write <div class="pics square"> (about square cells); for landscape photos <div class="pics wide"> (the large one across the top, the rest in a row under it, each about 16:9). check --layout warns when a cell crops a third of its photo and names the class; keep subjects near the middle, or set object-position on one. check asks to trim a photo's flat ground only when the trimmed photo still suits its cell; otherwise the cell crops the ground away. On a phone the photos
|
|
7
|
+
use: people, an event, places, a set of things made: proof it happened, many times over. Each .pic is a placeholder check fails on: put in photos (`hyperdecks asset add`, upload_deck_asset; found ones: `hyperdecks photos add <id> --for wall`, deck_guide topic photos) as <img class="pic" src="…" alt="…" width="…" height="…">, the strongest first (it takes the large cell). On a wide screen the wall's cells are its shape, so each photo fills its cell (cover). Pick the cells for the set: by default they stand upright (about square with three photos, taller with four or five), for upright photos; for square photos write <div class="pics square"> (about square cells); for landscape photos <div class="pics wide"> (the large one across the top, the rest in a row under it, each about 16:9). check --layout warns when a cell crops a third of its photo and names the class; keep subjects near the middle, or set object-position on one. check asks to trim a photo's flat ground only when the trimmed photo still suits its cell; otherwise the cell crops the ground away. On a phone the photos fill the height under the words at their own shapes, so nothing is cut (wide: the first across, the rest two to a row), and a photo credit stands under them. Three to five: in the default cells five fill two columns of two beside the large one, three keep one column and four let the last stand tall (so four upright photos crop the last one hard: use three or five, or square cells); square cells stand four as the large one beside a column of three; wide cells put every photo after the first in one row under it. Real photos only, never generated or stock stand-ins for real people or events. A caption (optional, any theme): wrap the picture as <figure class="mount" data-caption="Where, when">…</figure>; short (about 40 characters), never the alt text.
|
|
8
8
|
slot: bottom-right
|
|
9
|
+
flip: data-flip on the section mirrors it: the tile on the left with the presenter at its foot, the photos on the right (the large one at the right edge). Alternate it with a neighbouring wall slide.
|
|
9
10
|
presenter: stage
|
|
10
11
|
nopresenter: The tile's sentence centres in its height instead of keeping clear of the presenter at its foot.
|
|
11
12
|
cues: [look: #__ID__-wall] as the narration turns to the pictures; [go: #__ID__-p1] for the large one if the script names it, then [go: slot].
|
|
@@ -48,21 +49,48 @@ script: This is what it looks like in real life. [look: #__ID__-wall] Every one
|
|
|
48
49
|
.l-wall { display: flex; flex-direction: column; gap: 12px; }
|
|
49
50
|
.l-wall .tile { order: -1; gap: 8px; padding: 0; border-radius: 0; background: none; color: inherit; }
|
|
50
51
|
.on-ink.l-wall .tile { background: none; color: inherit; }
|
|
51
|
-
/*
|
|
52
|
-
|
|
53
|
-
(
|
|
54
|
-
|
|
55
|
-
.l-wall .pics:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
52
|
+
/* The photos take the free height in a grid, each as large as its cell allows at its own shape (never cropped,
|
|
53
|
+
never stretched): wide photos (.pics.wide) the strongest across the top and the rest two to a row (one row with the presenter); square
|
|
54
|
+
(.pics.square) two to a row; upright (the default) three to a row for three or five, two for four. A long title
|
|
55
|
+
leaves the grid at least 160px. */
|
|
56
|
+
.l-wall .pics { flex: 1 1 0; min-height: 160px; display: grid; grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 8px; place-items: center; }
|
|
57
|
+
/* With the presenter (--hd-phone-presenter: 1) the room is short, so wide photos stand at the title's width: the
|
|
58
|
+
strongest across, the rest in one row under it (four, three or two across), edge to edge. Each stands at its own
|
|
59
|
+
shape, top-aligned in the row: stretched to the row's tallest, a 1.62 photo beside 3:2 ones lost 7% to the crop.
|
|
60
|
+
A browser without style queries keeps the grid above, which fits too. */
|
|
61
|
+
@container style(--hd-phone-presenter: 1) {
|
|
62
|
+
.l-wall .pics.wide { flex: 0 1 auto; grid-template-rows: none; grid-auto-rows: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); place-items: start stretch; }
|
|
63
|
+
.l-wall .pics.wide:not(:has(> :nth-child(5))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
64
|
+
.l-wall .pics.wide:not(:has(> :nth-child(4))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
65
|
+
.l-wall .pics.wide > img.pic { width: 100%; max-height: none; }
|
|
66
|
+
}
|
|
67
|
+
.l-wall .pics > :is(.pic, .mount):first-child, .l-wall .pics:has(> :is(.pic, .mount):nth-child(4):last-child) > :is(.pic, .mount):last-child { grid-row: auto; }
|
|
68
|
+
.l-wall .pics:not(.wide, .square):has(> :is(.pic, .mount):nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
69
|
+
.l-wall .pics:not(.wide, .square):not(:has(> :is(.pic, .mount):nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
70
|
+
.l-wall .pics.wide { grid-template-rows: minmax(0, 2fr); }
|
|
71
|
+
.l-wall .pics.wide > :is(.pic, .mount):first-child { grid-column: 1 / -1; }
|
|
72
|
+
.l-wall .pic { border-width: calc(2 * var(--line)); --frame-min: 41px; border-radius: min(calc(10 * var(--round)), var(--frame-min) / 8); }
|
|
73
|
+
.l-wall .pics > img.pic { width: auto; height: auto; max-width: 100%; max-height: 100%; }
|
|
74
|
+
.l-wall .pics > div.pic { width: auto; height: 100%; max-width: 100%; aspect-ratio: 4 / 3; }
|
|
75
|
+
.l-wall .pics > div.pic:first-child { aspect-ratio: 1; }
|
|
76
|
+
.l-wall .pics > .mount { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; min-height: 0; }
|
|
77
|
+
.l-wall .mount > .pic { flex: 1 1 0; min-height: 0; width: auto; height: auto; max-width: 100%; }
|
|
78
|
+
/* A photo credit (.hd-credit, the player draws it at the slide's top corner) stands under the photos on a phone:
|
|
79
|
+
at the top it covered the kicker and title. */
|
|
80
|
+
section.slide.l-wall > .hd-credit { position: static; order: 1; align-self: flex-start; max-width: none; margin: 0; }
|
|
61
81
|
}
|
|
62
82
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
63
83
|
@media (min-width: 651px) {
|
|
64
84
|
:root.hd-no-presenter .l-wall .tile { justify-content: center; }
|
|
65
85
|
}
|
|
86
|
+
/* Flipped (data-flip on the section): the mirror image, for a neighbour of the same layout. Wide screens only; a phone
|
|
87
|
+
stacks the same either way. The presenter follows the panel (layouts/_deck.html). */
|
|
88
|
+
@media not all and (max-width: 650px) {
|
|
89
|
+
.l-wall[data-flip] { grid-template-columns: 380px minmax(0, 1fr); }
|
|
90
|
+
.l-wall[data-flip] .tile { grid-column: 1; grid-row: 1; }
|
|
91
|
+
.l-wall[data-flip] .pics { grid-column: 2; grid-row: 1; direction: rtl; }
|
|
92
|
+
.l-wall[data-flip] .pics > * { direction: ltr; }
|
|
93
|
+
}
|
|
66
94
|
</style>
|
|
67
95
|
<section class="slide l-wall" id="__ID__" data-chapter="In real life" data-note="Photos: say who took them, where and when, and that you may show the people in them.">
|
|
68
96
|
<div class="pics" id="__ID__-wall">
|