@hypersocial/decks-cli 0.9.25 → 0.9.26

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.
@@ -4,8 +4,8 @@ summary: Three or four steps rising left to right, each standing on the last, a
4
4
  brief: Three or four steps rising left to right, each building on the last.
5
5
  says: how it builds
6
6
  needs: 3 to 4 steps
7
- use: a process where each step needs the one before, levels of a plan, a path from first use to habit. Each name a word or two, no word over about 14 letters, each line under about 45 characters (names are sized by the column and the number of steps, so every word fits whole). Steps in order, undated, none bigger than another: rail; each step standing on the one before: staircase; dated milestones or a plan over time: timeline. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the stairs, clear of the presenter.
8
- slot: bottom-right
7
+ use: a process where each step needs the one before, levels of a plan, a path from first use to habit. Each name a word or two, no word over about 14 letters, each line under about 45 characters (names are sized by the column and the number of steps, so every word fits whole). Steps in order, undated, none bigger than another: rail; each step standing on the one before: staircase; dated milestones or a plan over time: timeline. The presenter stands top-left, over the low steps: keep the title to two lines and the first step short. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the stairs, clear of the presenter.
8
+ slot: top-left
9
9
  presenter: stage
10
10
  nopresenter: The stairs take the full width of the slide.
11
11
  cues: [go: #__ID__-s1] at the first step, then each in turn, then [go: slot].
@@ -49,6 +49,33 @@ script: It starts when you [go: #__ID__-s1] ask. Your assistant [go: #__ID__-s2]
49
49
  .l-staircase[data-presenter-size="xl"] .steps b { font-size: min(var(--t-body), calc(100cqi / (var(--n) * 9))); }
50
50
  .l-staircase[data-presenter-size="xl"] .steps p { font-size: min(var(--t-body), calc(100cqi / (var(--n) * 11))); }
51
51
  }
52
+ /* The presenter stands top-left (slot-left, raised), over the low steps; the steps take the full width. The slot's
53
+ containing block runs from the top of the steps' row to the slide's bottom edge, so a longer title moves the presenter
54
+ down with the steps. It is placed by its bottom edge (the head's), 331px under the row's top (235px at s), or 240px over the slide's
55
+ bottom edge when a longer title or a lead leaves less room (check --layout says when they no longer fit): captions grow up from
56
+ there and never move the head. 36px from the left leaves a tall head's caption, beside the head, clear of the third step.
57
+ The steps stand in four rows: each one spans from its own row to the floor, so it is taller than the one before by at
58
+ least a 40px row, whatever its words. The bottom row grows with step 1's and step 2's words (a step spanning a
59
+ flexible row would not grow it), from 30% of the height; step 2's own row adds 15%, less as a longer title shortens
60
+ the steps, so step 2 starts under that caption when step 1's words leave room (check --layout says when not). The two
61
+ upper rows share what is left.
62
+ A large presenter stands bottom-left, beside today's column moved to the right. Wide screens, with a presenter that is
63
+ neither corner (it ignores its slot) nor glass (its caption always stands over its head, on the title): those, a slide
64
+ without slot-left, a silent deck and a phone keep the rules above, and glass stands bottom-right. */
65
+ @media not all and (max-width: 650px) {
66
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, auto) minmax(0, 1fr); row-gap: 0; align-content: stretch; }
67
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) > :not(.steps, .narration-slot) { margin-bottom: 24px; }
68
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .steps { grid-row: 5; max-width: none; width: 100%; grid-template-rows: minmax(40px, 1fr) minmax(40px, 1fr) max(40px, min(15%, 100% - 480px)) minmax(30%, auto); row-gap: 0; align-items: stretch; }
69
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .steps li { grid-row: 4 / 5; grid-column: 1; min-height: auto; }
70
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .steps li:nth-child(2) { grid-row: 3 / 5; grid-column: 2; }
71
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .steps li:nth-child(3) { grid-row: 2 / 5; grid-column: 3; }
72
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .steps li:nth-child(4) { grid-row: 1 / 5; grid-column: 4; }
73
+ :root:not(.hd-no-presenter) .l-staircase.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .narration-slot { grid-row: 5; left: 36px; bottom: max(100% - 331px, 240px); }
74
+ :root:not(.hd-no-presenter) .l-staircase.slot-left[data-presenter-size="s"]:not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .narration-slot { bottom: max(100% - 235px, 240px); }
75
+ :root:not(.hd-no-presenter) .l-staircase.slot-left[data-presenter-size="l"]:not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) { padding-left: 698px; }
76
+ :root:not(.hd-no-presenter) .l-staircase.slot-left[data-presenter-size="xl"]:not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) { padding-left: 848px; }
77
+ .l-staircase.slot-left:is([data-presenter-style="glass"], :root:has(script[data-presenter-style="glass"]) :not([data-presenter-style])) .narration-slot { left: auto; right: 56px; }
78
+ }
52
79
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
53
80
  @media (min-width: 651px) {
54
81
  :root.hd-no-presenter .l-staircase :is(.steps, .tt) { max-width: none; }
@@ -65,7 +92,7 @@ script: It starts when you [go: #__ID__-s1] ask. Your assistant [go: #__ID__-s2]
65
92
  .l-staircase:is([data-presenter-size="l"], [data-presenter-size="xl"]) .steps li { --icon: 40; }
66
93
  }
67
94
  </style>
68
- <section class="slide l-staircase" id="__ID__" data-chapter="How it works" data-note="Source: where each step is described (the docs, the product).">
95
+ <section class="slide l-staircase slot-left" data-dock-clear=".steps li" id="__ID__" data-chapter="How it works" data-note="Source: where each step is described (the docs, the product).">
69
96
  <div class="kicker">How a deck gets made</div>
70
97
  <h2 class="tt" data-title-mobile="Each step builds.">Each step stands on the last.</h2>
71
98
  <ol class="steps">
@@ -24,7 +24,13 @@ script: You may have heard [look: #__ID__-old] that an avatar deck is a deepfake
24
24
  @media (max-width: 650px) {
25
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
+ /* On a phone the player grows the text marked data-phone-fit into the free room (packages/player/phone-fit.js): the new claim up to 1.3 times;
28
+ on a silent deck it stands at the foot of the free height, under the old one (beside the presenter the two stay
29
+ one block).
30
+ These sizes are its floor, and what check measures. */
27
31
  .l-strike .tt { max-width: none; font-size: var(--t-title); }
32
+ /* (A little of the free height stays under the claim: its letters reach below its tight last line.) */
33
+ @container style(--hd-phone-presenter: 0) { .l-strike .old { flex-grow: 1; } .l-strike .tt { flex-grow: .05; } }
28
34
  }
29
35
  /* A large presenter (data-presenter-size l or xl on this slide's section tag). */
30
36
  @media not all and (max-width: 650px) {
@@ -41,6 +47,6 @@ script: You may have heard [look: #__ID__-old] that an avatar deck is a deepfake
41
47
  <section class="slide l-strike" id="__ID__" data-chapter="What's true" data-note="Source: where the old claim is said, and what shows the new one is true.">
42
48
  <div class="kicker">What people think</div>
43
49
  <p class="old" id="__ID__-old">An avatar deck is a deepfake of you.</p>
44
- <h2 class="tt" id="__ID__-new">It's <mark>your avatar</mark>, made from your photo, and it says so.</h2>
50
+ <h2 class="tt" id="__ID__-new" data-phone-fit="1.3" data-phone-fit-words="off">It's <mark>your avatar</mark>, made from your photo, and it says so.</h2>
45
51
  <div class="narration-slot"></div>
46
52
  </section>
@@ -23,7 +23,9 @@ script: Meet the team. [go: #__ID__-p1] Ana builds it. [go: #__ID__-p2] Sam sell
23
23
  share but never shorter than its card's content; each face takes what its card leaves (a square, 48px to 120px),
24
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
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; }
26
+ /* Corners follow the theme up to an eighth of a card's width (--frame-min, about 160px), as framed pictures do:
27
+ rounder (Soft), a narrow card reads as a pill. */
28
+ .l-team .person { justify-content: center; padding: 12px; --frame-min: 160px; border-radius: min(calc(16 * var(--round)), var(--frame-min) / 8); gap: 2px; }
27
29
  .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
30
  .l-team b { font-size: var(--b, 16px); }
29
31
  .l-team small { font-size: var(--small, 10px); min-height: var(--role-lines, 0); }
@@ -33,6 +35,7 @@ script: Meet the team. [go: #__ID__-p1] Ana builds it. [go: #__ID__-p2] Sam sell
33
35
  to grow like four. The silent case is a style query, so a browser without one keeps the sizes that fitted. */
34
36
  .l-team .people:not(:has(> :nth-child(5))) { --b: var(--t-lead); --small: var(--t-label); --initials: 28px; --role-lines: 2lh; }
35
37
  .l-team .people:has(> :nth-child(5)) { grid-auto-rows: auto; align-content: start; }
38
+ .l-team .people:has(> :nth-child(5)) .person { justify-content: flex-start; }
36
39
  .l-team .people:has(> :nth-child(5)) .face { flex: none; height: 48px; }
37
40
  @container style(--hd-phone-presenter: 0) {
38
41
  .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; }
@@ -31,6 +31,15 @@ script: A PDF in an email gets finished [look: #__ID__-b1] about one time in fiv
31
31
  .l-two-bars .row { gap: 10px; }
32
32
  .l-two-bars .bar { height: 38px; border-width: calc(2 * var(--line)); border-radius: calc(var(--bar-round) * .6); 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
33
  .l-two-bars .num { font-size: var(--t-sub); }
34
+ /* The player grows them into the free room (--hd-phone-grow, 0 to 1: packages/player/phone-fit.js); at 0 they are the sizes above,
35
+ which check measures. The bars stay bars (longer than tall: up to 48px thick beside the presenter, 72px on a
36
+ silent deck); the growth goes to the numbers (up to the title size on a silent deck, room kept for about six
37
+ characters, $12.4M) and the spacing (up to 184px between the two bars); the labels at the lead size at most. */
38
+ .l-two-bars .bars { --quiet: calc((1 - var(--hd-phone-presenter)) * var(--hd-phone-grow, 0)); --num-room: calc((var(--t-sub) + (var(--t-title) - var(--t-sub)) * var(--quiet)) * (4 - .2 * var(--hd-phone-grow, 0)) + 10px); gap: calc(18px + 6px * var(--hd-phone-grow, 0) + 160px * var(--quiet)); }
39
+ .l-two-bars .bars li { gap: calc(6px + 14px * var(--quiet)); }
40
+ .l-two-bars .lab { font-size: calc(var(--t-body) + (var(--t-lead) - var(--t-body)) * var(--quiet)); }
41
+ .l-two-bars .bar { height: calc(38px + 10px * var(--hd-phone-grow, 0) + 24px * var(--quiet)); }
42
+ .l-two-bars .num { font-size: calc(var(--t-sub) + (var(--t-title) - var(--t-sub)) * var(--quiet)); }
34
43
  }
35
44
  /* A large presenter (data-presenter-size l or xl on this slide's section tag). */
36
45
  @media not all and (max-width: 650px) {
@@ -42,7 +51,7 @@ script: A PDF in an email gets finished [look: #__ID__-b1] about one time in fiv
42
51
  :root.hd-no-presenter .l-two-bars :is(.bars, .tt) { max-width: none; }
43
52
  }
44
53
  </style>
45
- <section class="slide l-two-bars" id="__ID__" data-chapter="The difference" data-note="Source: name where each number comes from (a study, analytics) and its date.">
54
+ <section class="slide l-two-bars" id="__ID__" data-chapter="The difference" data-phone-grow=".bars" data-note="Source: name where each number comes from (a study, analytics) and its date.">
46
55
  <div class="kicker">Watched to the end</div>
47
56
  <h2 class="tt" data-title-mobile="Narrated decks get finished.">Narrated decks get finished.</h2>
48
57
  <ol class="bars">
@@ -4,8 +4,8 @@ summary: Four things placed on two axes, one in each quarter, yours marked: wher
4
4
  brief: Four things on two axes, one in each quarter, yours marked.
5
5
  says: where it sits
6
6
  needs: 4 alternatives on two axes
7
- use: positioning against the alternatives, a choice between four options, a priority grid. Each name two or three words; each axis a few words. Name both axes so higher and further right are better. The quarters run top-left, top-right, bottom-left, bottom-right; mark yours with class us. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) puts the grid under the title and sizes it to fit, clear of the presenter.
8
- slot: bottom-right
7
+ use: positioning against the alternatives, a choice between four options, a priority grid. Each name two or three words; each axis a few words. Name both axes so higher and further right are better. The quarters run top-left, top-right, bottom-left, bottom-right; mark yours with class us. The presenter stands bottom-left, under the title's column: keep the title to two lines (about 14 characters a line: long words can take 28 to three) and the line under it to three (about 63 characters), so the captions fit over any head; check --layout counts them. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) puts the grid under the title and sizes it to fit, clear of the presenter.
8
+ slot: bottom-left
9
9
  presenter: stage
10
10
  nopresenter: The grid grows into the free corner.
11
11
  cues: [look: #__ID__-plane] as the narration names the axes; [go: #__ID__-us] at yours, then [go: slot].
@@ -53,6 +53,20 @@ script: Video is personal but slow. A PDF is quick but flat. [look: #__ID__-plan
53
53
  .l-two-by-two[data-presenter-size="xl"] :is(.tt, .lead) { max-width: 680px; }
54
54
  .l-two-by-two[data-presenter-size="xl"] .plane { max-width: 680px; }
55
55
  }
56
+ /* The presenter stands bottom-left (slot-left): the title and its line in a column over it (380px, or its longest word), the
57
+ grid larger, centred in the rest. A large presenter: today's column, moved to the right.
58
+ Wide screens, with a presenter that is not corner (corner ignores its slot and
59
+ stands bottom-right, so it, a slide without slot-left, a silent deck and a phone keep the rules above). */
60
+ @media not all and (max-width: 650px) {
61
+ :root:not(.hd-no-presenter) .l-two-by-two.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) { grid-template-columns: minmax(380px, min-content) minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); align-content: stretch; }
62
+ :root:not(.hd-no-presenter) .l-two-by-two.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .tt { font-size: var(--t-sub); line-height: 1.02; margin-top: 8px; }
63
+ :root:not(.hd-no-presenter) .l-two-by-two.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .lead { margin-top: 20px; }
64
+ :root:not(.hd-no-presenter) .l-two-by-two.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) .plane { grid-row: 1 / 5; width: min(100% - 120px, 700px); margin: 0 auto; }
65
+ :root:not(.hd-no-presenter) .l-two-by-two.slot-left[data-presenter-size="l"]:not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) { padding-left: 698px; }
66
+ :root:not(.hd-no-presenter) .l-two-by-two.slot-left[data-presenter-size="xl"]:not([data-presenter-style="corner"], [data-presenter-style="glass"], :root:has(script:is([data-presenter-style="corner"], [data-presenter-style="glass"])) :not([data-presenter-style])) { padding-left: 848px; }
67
+ /* Glass (a panel with its caption over its head, so it would cover the line) keeps the rules above, bottom-right. */
68
+ .l-two-by-two.slot-left:is([data-presenter-style="glass"], :root:has(script[data-presenter-style="glass"]) :not([data-presenter-style])) .narration-slot { left: auto; right: 56px; }
69
+ }
56
70
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
57
71
  @media (min-width: 651px) {
58
72
  :root.hd-no-presenter .l-two-by-two:not([data-presenter-size="l"], [data-presenter-size="xl"]) { grid-template-columns: 440px minmax(0, 720px); justify-content: center; }
@@ -60,7 +74,7 @@ script: Video is personal but slow. A PDF is quick but flat. [look: #__ID__-plan
60
74
  :root.hd-no-presenter .l-two-by-two:is([data-presenter-size="l"], [data-presenter-size="xl"]) :is(.tt, .lead, .plane) { max-width: none; }
61
75
  }
62
76
  </style>
63
- <section class="slide l-two-by-two" id="__ID__" data-chapter="Where it sits" data-note="Source: where each alternative's place comes from (a review, the team's own comparison).">
77
+ <section class="slide l-two-by-two slot-left" data-dock-clear=".plane" id="__ID__" data-chapter="Where it sits" data-note="Source: where each alternative's place comes from (a review, the team's own comparison).">
64
78
  <div class="kicker">Where it sits</div>
65
79
  <h2 class="tt" data-title-mobile="Personal and quick.">Personal, and quick to make.</h2>
66
80
  <p class="lead">A recorded video is personal but slow. A PDF is quick but flat.</p>
@@ -44,6 +44,7 @@ script: Watch it do the whole job. [look: #__ID__-clip] No cuts, no edits, start
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
+ /* The player grows the title into the free room, up to 38px (packages/player/phone-fit.js). */
47
48
  .l-video-full .tt { font-size: var(--t-sub); line-height: 1.02; }
48
49
  .l-video-full .narration-slot { right: 12px; bottom: 12px; }
49
50
  }
@@ -56,7 +57,7 @@ script: Watch it do the whole job. [look: #__ID__-clip] No cuts, no edits, start
56
57
  <div class="clip" id="__ID__-clip" role="img" aria-label="Screen recording placeholder"></div>
57
58
  <div class="bar">
58
59
  <div class="kicker">Demo · Unedited</div>
59
- <h2 class="tt" data-title-mobile="Watch it work.">Watch it do the whole job, start to finish.</h2>
60
+ <h2 class="tt" data-phone-fit="1.36" data-title-mobile="Watch it work.">Watch it do the whole job, start to finish.</h2>
60
61
  </div>
61
62
  <div class="narration-slot"></div>
62
63
  </section>