gp-dimm-city 1.8.2-alpha.1 → 1.9.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/CHANGELOG.md +55 -0
- package/components.yaml +2 -2
- package/package.json +1 -1
- package/styles/components/chrome.css +7 -1
- package/styles/components/data.css +7 -0
- package/styles/components/section.css +36 -1
- package/styles/components/specialty-identity.css +1 -0
- package/styles/components/specialty.css +6 -3
- package/styles/dc-component-defaults.css +1 -2
- package/styles/page-templates.css +55 -20
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,61 @@ cut a version that has no `## [X.Y.Z]` heading below.
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.9.0] - 2026-10-26
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **A specialty opens as a spread, and every learning path opens a page.**
|
|
15
|
+
`.dc-specialty-intro` takes `break-before: left` and `.dc-specialty-art`
|
|
16
|
+
`break-before: page`, so with the intro written first the plate faces it on
|
|
17
|
+
the right (an intro longer than a page pushes the plate to the next left
|
|
18
|
+
page). Every `.dc-learning-path` in a specialty takes `break-before: page`,
|
|
19
|
+
and its banner sits flush with the page top. The plate's break moved from
|
|
20
|
+
`chrome.css` to `page-templates.css` with the other specialty break rules.
|
|
21
|
+
A book that wrote the plate before the intro should swap them. Until
|
|
22
|
+
dimm-city/gutterpress#421 is fixed the live preview can put an intro on a
|
|
23
|
+
right-hand page; the PDF places it correctly.
|
|
24
|
+
- **Design guide:** specialty specimens on doc pages (`.page.dg-doc`) keep
|
|
25
|
+
their place in the flow (`guide.css` §8).
|
|
26
|
+
- **A panel's sub-headings sit one step below its title bar.** Under a 16pt
|
|
27
|
+
`##` bar an `###` is 13pt; under a 13pt bar (`###`, or `##` with
|
|
28
|
+
`{.dc-h3}`) an `###` is 11pt, and an `####` is 11pt in any panel. They
|
|
29
|
+
were the bar's size or larger and read as a second title; books had stepped
|
|
30
|
+
them down by hand with `{.dc-h4}`/`{.dc-h5}`, which still win. Panels with
|
|
31
|
+
no bar, lore's captions and creature names keep their own. Sub-headings in a
|
|
32
|
+
panel take `--space-lg` above, and an `###` in a column run takes the rail
|
|
33
|
+
too (`section.css`; documented in design-guide ch. 6, Sub-headings in a
|
|
34
|
+
panel). Books reflow: the Field Guide is four pages shorter.
|
|
35
|
+
- **Every column of an `@columns` run starts on one hang line.** The box
|
|
36
|
+
that opens a column takes no top margin; Chromium kept it in the first
|
|
37
|
+
column and after a forced break but dropped it at an unforced one
|
|
38
|
+
(`page-templates.css`, COLUMN TOPS).
|
|
39
|
+
- **A definition of three paragraphs or more is set upright.** Italic stays
|
|
40
|
+
for a short gloss; surreal keeps its italic (`data.css`).
|
|
41
|
+
- **A flavor line that leads into more text stays with it** (`break-after:
|
|
42
|
+
avoid`), never alone at a page foot (`chrome.css`).
|
|
43
|
+
- **A wall heading sits on its text.** A `##`/`###`/`####` written straight
|
|
44
|
+
on a page now lines up with the left edge of the paper sheet below it and
|
|
45
|
+
sits on it with no gap, its dashed foot the sheet's top seam. Tags used to
|
|
46
|
+
hang in 0.12in (every second one 0.3in) with a gap under them, so they
|
|
47
|
+
looked misaligned and detached from their text (`page-templates.css`).
|
|
48
|
+
- **A run of prose in `@columns` is one sheet that does not split** across a
|
|
49
|
+
page, and a `####`/`#####` inside it takes more room above than below and
|
|
50
|
+
never ends a column (`page-templates.css`).
|
|
51
|
+
|
|
52
|
+
### Removed
|
|
53
|
+
|
|
54
|
+
- **`--dc-page-slip-offset`**, the hang-in of wall tags, which no longer hang
|
|
55
|
+
in. A book that set it can drop it.
|
|
56
|
+
|
|
57
|
+
### Added
|
|
58
|
+
|
|
59
|
+
- **`--dc-specialty-intro-h3-color`**: the intro's `###` headings (and their
|
|
60
|
+
underline) in each specialty's own colour. It defaults to `--blood`, and
|
|
61
|
+
every `.dc-specialty.<name>` sets it to its `--spec-ink`, the text-safe ink
|
|
62
|
+
(5.6:1 to 10.3:1 on the heading's cream band across the Field Guide's eight
|
|
63
|
+
specialties).
|
|
64
|
+
|
|
10
65
|
## [1.8.2] - 2026-10-25
|
|
11
66
|
|
|
12
67
|
### Changed
|
package/components.yaml
CHANGED
|
@@ -436,7 +436,7 @@ components:
|
|
|
436
436
|
recipe: "@specialty-intro … @end-specialty-intro"
|
|
437
437
|
emits: div.dc-specialty-intro
|
|
438
438
|
css: [styles/components/specialty.css, styles/components/specialty-identity.css]
|
|
439
|
-
tokens: [--dc-specialty-intro-bg, --dc-specialty-intro-title-bg, --dc-specialty-intro-title-color, --dc-band-rule, --dc-band-rule-h, --dc-band-tick, --dc-band-tick-style, --dc-band-tick-w, --dc-band-rule-skew, --dc-band-rule-bleed, --dc-band-facet, --dc-band-facet-width, --dc-band-facet-clip, --dc-band-rim, --dc-band-reg]
|
|
439
|
+
tokens: [--dc-specialty-intro-bg, --dc-specialty-intro-title-bg, --dc-specialty-intro-title-color, --dc-specialty-intro-h3-color, --dc-band-rule, --dc-band-rule-h, --dc-band-tick, --dc-band-tick-style, --dc-band-tick-w, --dc-band-rule-skew, --dc-band-rule-bleed, --dc-band-facet, --dc-band-facet-width, --dc-band-facet-clip, --dc-band-rim, --dc-band-reg]
|
|
440
440
|
breaks: "break-inside: avoid; first h2 break-after: avoid"
|
|
441
441
|
notes: "The title band is the specialty's own bright signal colour (--spec-band) with a register: tech = LED rim and a rule of LED dots (a dotted border), magic = a facet plane, streetwarden = a hazard-tape rule, landfill = a torn bottom edge and no rule."
|
|
442
442
|
|
|
@@ -717,7 +717,7 @@ components:
|
|
|
717
717
|
recipe: "@page chapter-start"
|
|
718
718
|
emits: div.page.dc-page-chapter-start
|
|
719
719
|
css: styles/page-templates.css
|
|
720
|
-
tokens: [--dc-fiction-depth, --dc-page-title-ink, --dc-page-slip-bg, --dc-page-slip-ink, --dc-page-slip-edge, --dc-page-slip-shadow, --dc-page-slip-tape, --dc-page-slip-gap, --dc-page-
|
|
720
|
+
tokens: [--dc-fiction-depth, --dc-page-title-ink, --dc-page-slip-bg, --dc-page-slip-ink, --dc-page-slip-edge, --dc-page-slip-shadow, --dc-page-slip-tape, --dc-page-slip-gap, --dc-page-sheet-pad, --dc-heading-gap]
|
|
721
721
|
notes: "A chapter opener: the h1 gets headroom, is kept with the block after it and is a banner in the chapter's accent (any page's free-standing `#` is), the paragraph straight under it is a lede on a paper sheet, and a fiction excerpt takes the deeper hole (10px) by tokens. Free-standing text on any wall page prints on a substrate with no markup: `##` a paper slip with an accent rail, dashed foot and tape, `###` a plain slip, `####`+ a label slip, loose paragraphs, lists and quotes one paper sheet per run (page-templates.css, FREE-STANDING PAGE TEXT; the guide's @page .dg-doc pages are exempt)."
|
|
722
722
|
|
|
723
723
|
- name: page-credits
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gp-dimm-city",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Dimm City design system for Gutterpress: the markdown-it macros (@skill, @specialty, @learning-path, @callout, …), print stylesheets, design tokens, fonts and page templates the Dimm City TTRPG books are set in.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "plugin.js",
|
|
@@ -257,6 +257,12 @@ h1.dc-chevron {
|
|
|
257
257
|
padding: 2px 8px 4px;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
+
/* A flavor line that leads into more text is its lead-in: it stays with what
|
|
261
|
+
follows, never alone at a page foot. */
|
|
262
|
+
.dc-flavor:has(+ *) {
|
|
263
|
+
break-after: avoid;
|
|
264
|
+
}
|
|
265
|
+
|
|
260
266
|
/* ── Sub-header ───────────────────────────────────────────────────────── */
|
|
261
267
|
.dc-sub-header {
|
|
262
268
|
font-family: var(--font-mono);
|
|
@@ -426,7 +432,7 @@ hr {
|
|
|
426
432
|
.dc-specialty-art {
|
|
427
433
|
width: var(--page-width);
|
|
428
434
|
height: var(--page-height);
|
|
429
|
-
break-
|
|
435
|
+
/* Its break is in page-templates.css (SPECIALTY BREAK CONTROL). */
|
|
430
436
|
margin: 0;
|
|
431
437
|
overflow: hidden;
|
|
432
438
|
background: var(--ink-dark); /* dark fallback so a missing image reads as intentional art plate */
|
|
@@ -667,6 +667,13 @@
|
|
|
667
667
|
margin-top: 6pt;
|
|
668
668
|
}
|
|
669
669
|
|
|
670
|
+
/* Italic carries a short gloss, not running rules: a definition of three
|
|
671
|
+
paragraphs or more sets its body upright. Surreal keeps its italic, which
|
|
672
|
+
is the variant's voice (lucid is upright already). */
|
|
673
|
+
.dc-definition-block:not(.dc-definition-surreal):has(> p:nth-of-type(3)) {
|
|
674
|
+
--dc-definition-block-style: normal;
|
|
675
|
+
}
|
|
676
|
+
|
|
670
677
|
/* LUCID — sharp, aligned, in control. Machined chamfers (all four, 9px), a
|
|
671
678
|
2px inset frame in HUD blue with a cyan hairline inside it, upright body,
|
|
672
679
|
the headword ruled off in blue. */
|
|
@@ -306,11 +306,46 @@ div[class="section"] {
|
|
|
306
306
|
/* Sub-heading H3 — H3s inside a panel that are NOT the first child (i.e. NOT
|
|
307
307
|
the header bar) get a left-accent border matching the section accent. This
|
|
308
308
|
visually distinguishes subsection headings from the title bar. */
|
|
309
|
-
.dc-section-panel > h3:where(:not(.dc-h4, .dc-h5, .dc-h6)):not(:first-child)
|
|
309
|
+
.dc-section-panel > h3:where(:not(.dc-h4, .dc-h5, .dc-h6)):not(:first-child),
|
|
310
|
+
.dc-section-panel > :is(.gp-columns, [class*="gp-columns-"]) > h3:where(:not(.dc-h4, .dc-h5, .dc-h6)) {
|
|
310
311
|
border-left: 3px solid var(--dc-section-accent);
|
|
311
312
|
padding-left: var(--space-sm);
|
|
312
313
|
}
|
|
313
314
|
|
|
315
|
+
/* Sub-heading H3/H4/H5 inside a panel — more room above than below, so it
|
|
316
|
+
reads as the head of the text after it, not a caption on the text before
|
|
317
|
+
it (proximity). In a column run too; the heading that opens a column keeps
|
|
318
|
+
the column's hang line (page-templates.css, COLUMN TOPS). */
|
|
319
|
+
.dc-section-panel > :is(h3, h4, h5):not(:first-child),
|
|
320
|
+
.dc-section-panel > :is(.gp-columns, [class*="gp-columns-"]) > :is(h3, h4, h5):not(:first-child, .gp-column-break + *) {
|
|
321
|
+
margin-top: var(--space-lg);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/* A sub-heading is one step below the panel's title bar. The bar is set a
|
|
325
|
+
size down from its tag (an `##` bar at the h3 size, an `##` bar with the h3
|
|
326
|
+
look or a `###` bar at the h4 size), so an `###` under an `##` bar was the
|
|
327
|
+
bar's own size, an `###` under a `{.dc-h3}` bar was bigger than it, and an
|
|
328
|
+
`####` anywhere in a panel was the size of a `###` bar: each read as a
|
|
329
|
+
second title. Books stepped them down by hand (`{.dc-h4}`, `{.dc-h5}`);
|
|
330
|
+
this does it for every panel: under a 16pt bar an `###` is 13pt, and every
|
|
331
|
+
other sub-heading is 11pt. A panel with no bar (its first child is not an
|
|
332
|
+
`##` or `###`) is left alone: there the first heading is the title.
|
|
333
|
+
A heading with a look class (`{.dc-h4}`) keeps the look it asks for.
|
|
334
|
+
`:where()` keeps the specificity low, so a kind with its own sub-head
|
|
335
|
+
(lore's italic caption, a creature's name) keeps it. Use one sub-level per
|
|
336
|
+
panel: under a 13pt bar an `###` and an `####` are both 11pt, told apart
|
|
337
|
+
only by the `###`'s rail and colour. */
|
|
338
|
+
:where(.dc-section-panel:has(> h2:not(.dc-h3):first-child)) > h3:where(:not(.dc-h3, .dc-h4, .dc-h5, .dc-h6)):not(:first-child),
|
|
339
|
+
:where(.dc-section-panel:has(> h2:not(.dc-h3):first-child)) > :is(.gp-columns, [class*="gp-columns-"]) > h3:where(:not(.dc-h3, .dc-h4, .dc-h5, .dc-h6)) {
|
|
340
|
+
font-size: var(--fs-h4);
|
|
341
|
+
}
|
|
342
|
+
:where(.dc-section-panel:has(> :is(h2.dc-h3, h3):first-child)) > h3:where(:not(.dc-h3, .dc-h4, .dc-h5, .dc-h6)):not(:first-child),
|
|
343
|
+
:where(.dc-section-panel:has(> :is(h2.dc-h3, h3):first-child)) > :is(.gp-columns, [class*="gp-columns-"]) > h3:where(:not(.dc-h3, .dc-h4, .dc-h5, .dc-h6)),
|
|
344
|
+
:where(.dc-section-panel:has(> :is(h2, h3):first-child)) > h4:where(:not(.dc-h3, .dc-h4, .dc-h5, .dc-h6)),
|
|
345
|
+
:where(.dc-section-panel:has(> :is(h2, h3):first-child)) > :is(.gp-columns, [class*="gp-columns-"]) > h4:where(:not(.dc-h3, .dc-h4, .dc-h5, .dc-h6)) {
|
|
346
|
+
font-size: var(--fs-h5);
|
|
347
|
+
}
|
|
348
|
+
|
|
314
349
|
/* ── Free-standing heading, or a callout, directly before a panel — extra
|
|
315
350
|
top clearance so the heading (or the note) and the card's header bar don't
|
|
316
351
|
compete at the same visual weight on the vertical scan. */
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
--dc-specialty-intro-title-shape: polygon(var(--spec-edge-top), var(--spec-edge-title));
|
|
105
105
|
--dc-specialty-intro-title-bg: var(--spec-band);
|
|
106
106
|
--dc-specialty-intro-title-color: var(--spec-on-band);
|
|
107
|
+
--dc-specialty-intro-h3-color: var(--spec-ink);
|
|
107
108
|
--dc-specialty-intro-bg: var(--paper-light);
|
|
108
109
|
}
|
|
109
110
|
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
--dc-specialty-intro-title-bg → title-tab background (default --hud-magenta)
|
|
7
7
|
--dc-specialty-intro-title-color → title-tab text color (default --bg)
|
|
8
8
|
--dc-specialty-intro-bg → body panel surface (default --paper-cream)
|
|
9
|
+
--dc-specialty-intro-h3-color → ### heading text and its underline (default --blood)
|
|
9
10
|
--dc-specialty-intro-title-shape → title-tab clip-path polygon
|
|
10
11
|
--dc-specialty-intro-clip → body shell clip-path polygon
|
|
11
12
|
Specialty themes override via .dc-specialty.<name> .dc-specialty-intro { }. */
|
|
@@ -126,17 +127,19 @@
|
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
.dc-specialty-intro>h3 {
|
|
129
|
-
/* --
|
|
130
|
+
/* Default --blood: 7.73:1 on paper-cream (--crimson is 4.03, fails AA).
|
|
131
|
+
Inside a specialty it is the specialty's --spec-ink, its text-safe ink
|
|
132
|
+
(>= 4.5:1 on cream), so the heading carries that specialty's colour.
|
|
130
133
|
The band is design: it reads as a hard-edged "wall object" and keeps
|
|
131
134
|
the h3 legible independent of the ::before pseudo-panel behind it. */
|
|
132
|
-
color: var(--
|
|
135
|
+
color: var(--dc-specialty-intro-h3-color);
|
|
133
136
|
background: var(--paper-cream);
|
|
134
137
|
letter-spacing: 0.05em;
|
|
135
138
|
font-size: 1rem;
|
|
136
139
|
margin-top: 0.6rem;
|
|
137
140
|
margin-bottom: 0.2rem;
|
|
138
141
|
padding: 0.15rem 0.4rem 0.25rem;
|
|
139
|
-
border-bottom: 2px solid var(--
|
|
142
|
+
border-bottom: 2px solid var(--dc-specialty-intro-h3-color);
|
|
140
143
|
}
|
|
141
144
|
|
|
142
145
|
.dc-specialty-intro>p {
|
|
@@ -143,6 +143,7 @@
|
|
|
143
143
|
--dc-specialty-intro-title-bg: var(--hud-magenta); /* overridden by .dc-specialty.<name> context */
|
|
144
144
|
--dc-specialty-intro-title-color: var(--bg);
|
|
145
145
|
--dc-specialty-intro-bg: var(--hud-panel);
|
|
146
|
+
--dc-specialty-intro-h3-color: var(--blood); /* overridden by .dc-specialty.<name> context */
|
|
146
147
|
|
|
147
148
|
/* Title band chrome, shared by the learning-path banner (h3.dc-spray, data.css)
|
|
148
149
|
and the specialty-intro title (h2, specialty.css). A specialty sets these in
|
|
@@ -470,7 +471,6 @@
|
|
|
470
471
|
slip-shadow its hard shadow (opaque, no blur)
|
|
471
472
|
slip-tape the masking tape across a `##` slip (default: the tape's colour)
|
|
472
473
|
slip-gap the space above a slip, so it never jams against the box above
|
|
473
|
-
slip-offset how far a `###` / `####` slip hangs in from the left; every second one hangs further
|
|
474
474
|
sheet-pad the side padding of the prose sheet
|
|
475
475
|
title-ink type on the page-title banner, whose fill is the chapter's accent */
|
|
476
476
|
--dc-page-slip-bg: var(--paper-cream);
|
|
@@ -479,7 +479,6 @@
|
|
|
479
479
|
--dc-page-slip-shadow: var(--shadow-poster);
|
|
480
480
|
--dc-page-slip-tape: var(--dc-tape-bg);
|
|
481
481
|
--dc-page-slip-gap: var(--space-xl);
|
|
482
|
-
--dc-page-slip-offset: 0.12in;
|
|
483
482
|
--dc-page-sheet-pad: 0.18in;
|
|
484
483
|
--dc-page-title-ink: var(--paper-cream);
|
|
485
484
|
|
|
@@ -426,7 +426,8 @@
|
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
/* HEADING SLIPS. `--dc-page-slip-gap` is the space above one, so a slip never
|
|
429
|
-
jams against the box above it
|
|
429
|
+
jams against the box above it; below, it sits straight on its own sheet,
|
|
430
|
+
its dashed foot the sheet's top seam. A heading never ends a page (`break-after`,
|
|
430
431
|
which the tape pseudo-element does not disturb: it is out of flow). */
|
|
431
432
|
:where(.page:not(.dg-doc, .dc-page-contents, .dc-page-credits), .chapter) > :is(h2, h3, h4, h5, h6):not([class*="dc-"]:not(.dc-h3, .dc-h4, .dc-h5, .dc-h6, .dc-snug, .dc-avoid-split)) {
|
|
432
433
|
position: relative;
|
|
@@ -436,7 +437,7 @@
|
|
|
436
437
|
border-bottom: 3pt dashed var(--dc-page-slip-edge);
|
|
437
438
|
box-shadow: inset 7px 0 0 var(--dc-section-accent), var(--dc-page-slip-shadow);
|
|
438
439
|
padding: 0.075in 0.14in 0.07in 0.24in;
|
|
439
|
-
margin: var(--dc-page-slip-gap) 0
|
|
440
|
+
margin: var(--dc-page-slip-gap) 0 0;
|
|
440
441
|
break-after: avoid;
|
|
441
442
|
break-inside: avoid;
|
|
442
443
|
}
|
|
@@ -461,13 +462,14 @@
|
|
|
461
462
|
rotate: -2.5deg;
|
|
462
463
|
}
|
|
463
464
|
|
|
464
|
-
/* `###`: a
|
|
465
|
-
|
|
466
|
-
|
|
465
|
+
/* `###`: a tag: it shrinks to its words, with a thinner rail and foot. It
|
|
466
|
+
sits on the left edge of the sheet below it, with no gap, so the tag and
|
|
467
|
+
its text read as one piece (a tag hung in from the edge, every second one
|
|
468
|
+
further, looked misaligned and floated free of its text). */
|
|
467
469
|
:where(.page:not(.dg-doc, .dc-page-contents, .dc-page-credits), .chapter) > h3:not([class*="dc-"]:not(.dc-h3, .dc-h4, .dc-h5, .dc-h6, .dc-snug, .dc-avoid-split)) {
|
|
468
470
|
width: fit-content;
|
|
469
|
-
max-width:
|
|
470
|
-
margin-left:
|
|
471
|
+
max-width: 100%;
|
|
472
|
+
margin-left: 0;
|
|
471
473
|
border-bottom-width: 2pt;
|
|
472
474
|
box-shadow: inset 5px 0 0 var(--dc-section-accent), var(--dc-page-slip-shadow);
|
|
473
475
|
padding: 0.06in 0.12in 0.05in 0.2in;
|
|
@@ -476,15 +478,12 @@
|
|
|
476
478
|
/* `####` and below: a label slip that shrinks to its words, framed in ink. */
|
|
477
479
|
:where(.page:not(.dg-doc, .dc-page-contents, .dc-page-credits), .chapter) > :is(h4, h5, h6):not([class*="dc-"]:not(.dc-h3, .dc-h4, .dc-h5, .dc-h6, .dc-snug, .dc-avoid-split)) {
|
|
478
480
|
width: fit-content;
|
|
479
|
-
max-width:
|
|
480
|
-
margin: var(--dc-page-slip-gap) 0
|
|
481
|
+
max-width: 100%;
|
|
482
|
+
margin: var(--dc-page-slip-gap) 0 0;
|
|
481
483
|
border: 1.5pt solid var(--dc-page-slip-edge);
|
|
482
484
|
box-shadow: inset 5px 0 0 var(--dc-section-accent), var(--dc-page-slip-shadow);
|
|
483
485
|
padding: 0.05in 0.12in 0.04in 0.2in;
|
|
484
486
|
}
|
|
485
|
-
:where(.page:not(.dg-doc, .dc-page-contents, .dc-page-credits), .chapter) > :is(h3, h4, h5, h6):not([class*="dc-"]:not(.dc-h3, .dc-h4, .dc-h5, .dc-h6, .dc-snug, .dc-avoid-split)):nth-of-type(even) {
|
|
486
|
-
margin-left: calc(2.5 * var(--dc-page-slip-offset));
|
|
487
|
-
}
|
|
488
487
|
:where(.page:not(.dg-doc, .dc-page-contents, .dc-page-credits), .chapter) > :is(h3, h4, h5, h6):not([class*="dc-"]:not(.dc-h3, .dc-h4, .dc-h5, .dc-h6, .dc-snug, .dc-avoid-split)):first-child {
|
|
489
488
|
margin-top: 0;
|
|
490
489
|
}
|
|
@@ -522,6 +521,14 @@
|
|
|
522
521
|
box-shadow: var(--dc-page-slip-shadow);
|
|
523
522
|
padding: 0.1in var(--dc-page-sheet-pad);
|
|
524
523
|
margin-bottom: var(--space-md);
|
|
524
|
+
break-inside: avoid;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
/* A sub-head inside a prose sheet: more room above than below (proximity),
|
|
528
|
+
and it never ends a column. The head that opens a column keeps the hang line. */
|
|
529
|
+
:where(.page:not(.dg-doc, .dc-page-contents, .dc-page-credits), .chapter) > .gp-columns > :is(h4, h5):not([class*="dc-"]:not(.dc-h3, .dc-h4, .dc-h5, .dc-h6, .dc-snug, .dc-avoid-split)):not(:first-child, .gp-column-break + *) {
|
|
530
|
+
margin-top: var(--space-lg);
|
|
531
|
+
break-after: avoid;
|
|
525
532
|
}
|
|
526
533
|
|
|
527
534
|
/* HEADING AFTER A BOX. A box (an outcome ladder, a stat grid, a callout, a
|
|
@@ -611,10 +618,28 @@
|
|
|
611
618
|
}
|
|
612
619
|
|
|
613
620
|
/* ── SPECIALTY BREAK CONTROL ───────────────────────────────────────────────
|
|
614
|
-
A
|
|
615
|
-
|
|
616
|
-
|
|
621
|
+
A specialty opens as a spread: the intro on a left page, the art plate
|
|
622
|
+
facing it on the right. Write them in that order, intro first. Only the
|
|
623
|
+
intro asks for a side; the plate just takes the next page, which faces
|
|
624
|
+
the intro as long as the intro fits on one page (a longer intro pushes the
|
|
625
|
+
plate to the next left page). A `right` on the plate as well made the PDF
|
|
626
|
+
misplace intros (dimm-city/gutterpress#421).
|
|
627
|
+
Every learning path then opens a new page. The first path's break falls
|
|
628
|
+
where the plate's page ends, and the two combine into one break, so it
|
|
629
|
+
adds no blank page.
|
|
630
|
+
The breaks are literal values: the preview honours only a literal forced
|
|
631
|
+
break. This file owns .dc-specialty break rules, and dc.templates
|
|
632
|
+
outranks every components sheet. */
|
|
633
|
+
.dc-specialty-intro {
|
|
634
|
+
break-before: left;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.dc-specialty-art {
|
|
638
|
+
break-before: page;
|
|
639
|
+
}
|
|
640
|
+
|
|
617
641
|
.dc-specialty .dc-learning-path {
|
|
642
|
+
break-before: page;
|
|
618
643
|
break-inside: auto;
|
|
619
644
|
break-after: auto;
|
|
620
645
|
}
|
|
@@ -629,11 +654,21 @@
|
|
|
629
654
|
break-after: avoid;
|
|
630
655
|
}
|
|
631
656
|
|
|
632
|
-
/* A banner
|
|
633
|
-
shell's
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
.dc-specialty > .dc-learning-path
|
|
657
|
+
/* A banner opens its page, so it sits flush with the top. Chromium drops the
|
|
658
|
+
shell's top margin at an unforced break but keeps it after a forced one,
|
|
659
|
+
which every path now starts with, and that margin alone can push the
|
|
660
|
+
first card off its banner's page. */
|
|
661
|
+
.dc-specialty > .dc-learning-path > .dc-path-shell {
|
|
662
|
+
margin-top: 0;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/* ── COLUMN TOPS ───────────────────────────────────────────────────────────
|
|
666
|
+
Every column of an `@columns` run starts on one hang line. Chromium keeps
|
|
667
|
+
the top margin of the first box in the first column and of a box after a
|
|
668
|
+
forced `@column-break`, but drops it at an unforced column break, so two
|
|
669
|
+
neighbours (a definition beside a definition) started 0.12in apart. The box
|
|
670
|
+
that opens a column takes no top margin. */
|
|
671
|
+
:is(.gp-columns, [class*="gp-columns-"]) > :is(:first-child, .gp-column-break + *) {
|
|
637
672
|
margin-top: 0;
|
|
638
673
|
}
|
|
639
674
|
|