@refrakt-md/lumina 0.40.0 → 0.41.1

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.
@@ -7815,6 +7815,7 @@
7815
7815
  "blurb",
7816
7816
  "metadata",
7817
7817
  "tags",
7818
+ "intro",
7818
7819
  "body",
7819
7820
  "{content}"
7820
7821
  ],
@@ -7946,6 +7947,7 @@
7946
7947
  "blurb",
7947
7948
  "metadata",
7948
7949
  "tags",
7950
+ "intro",
7949
7951
  "body",
7950
7952
  "{content}"
7951
7953
  ],
@@ -8065,6 +8067,7 @@
8065
8067
  "blurb",
8066
8068
  "metadata",
8067
8069
  "tags",
8070
+ "intro",
8068
8071
  "body",
8069
8072
  "{content}"
8070
8073
  ],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@refrakt-md/lumina",
3
3
  "description": "Lumina theme for refrakt.md — design tokens, CSS, identity transform, and layout configs",
4
- "version": "0.40.0",
4
+ "version": "0.41.1",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -86,10 +86,10 @@
86
86
  "generate-tokens": "node scripts/generate-tokens.mjs"
87
87
  },
88
88
  "dependencies": {
89
- "@refrakt-md/runes": "0.40.0",
90
- "@refrakt-md/skeleton": "0.40.0",
91
- "@refrakt-md/transform": "0.40.0",
92
- "@refrakt-md/types": "0.40.0"
89
+ "@refrakt-md/runes": "0.41.1",
90
+ "@refrakt-md/skeleton": "0.41.1",
91
+ "@refrakt-md/transform": "0.41.1",
92
+ "@refrakt-md/types": "0.41.1"
93
93
  },
94
94
  "devDependencies": {
95
95
  "postcss": "^8.4.0"
@@ -87,14 +87,21 @@
87
87
  * Rune blocks (elements with data-rune) get section-level margins.
88
88
  * Prose elements (p, h2, pre, table, etc.) keep their natural flow
89
89
  * spacing from global.css — only gaining section margins when
90
- * immediately adjacent to a rune block. */
91
- .rf-page-content > article > * + [data-rune] {
90
+ * immediately adjacent to a rune block.
91
+ *
92
+ * A drawer enhanced into a `<dialog>` is not in the flow: it is a modal
93
+ * panel in the top layer, positioned by its own insets. Both rules skip
94
+ * it — otherwise the open panel keeps a 4rem margin top and bottom and
95
+ * stops short of the viewport edges (BUG-042), and prose after a closed,
96
+ * invisible drawer gains a section gap. The no-JS fallback is a
97
+ * `<section>`, which stays in the flow and keeps its spacing. */
98
+ .rf-page-content > article > * + [data-rune]:not(dialog) {
92
99
  margin-top: var(--rf-spacing-section, 4rem);
93
100
  margin-bottom: var(--rf-spacing-section, 4rem);
94
101
  }
95
102
  /* Prose after a rune block: section gap above only.
96
103
  * No margin-bottom so subsequent prose keeps natural flow spacing. */
97
- .rf-page-content > article > [data-rune] + :not([data-rune]) {
104
+ .rf-page-content > article > [data-rune]:not(dialog) + :not([data-rune]) {
98
105
  margin-top: var(--rf-spacing-section, 4rem);
99
106
  }
100
107
  .rf-page-content > article > [data-spacing="flush"] {
@@ -22,6 +22,25 @@
22
22
  content: "@";
23
23
  }
24
24
 
25
+ /* Content written before the first section that is not a lead paragraph —
26
+ * a `> Ref:` blockquote, a list, a fence, a table (WORK-638). It reads as
27
+ * the opening of the body. A closing `---` is the author's separator before
28
+ * the first section, which already draws its own rule. */
29
+ .rf-bug__intro {
30
+ font-size: var(--rf-text-sm);
31
+ line-height: var(--rf-leading-relaxed);
32
+ }
33
+ .rf-bug__intro blockquote {
34
+ border-left: 3px solid var(--rf-color-border);
35
+ padding: 0.5rem 1rem;
36
+ margin: 0.75rem 0;
37
+ font-style: italic;
38
+ color: var(--rf-color-muted);
39
+ }
40
+ .rf-bug__intro > hr:last-child {
41
+ display: none;
42
+ }
43
+
25
44
  .rf-bug__body {
26
45
  font-size: var(--rf-text-sm);
27
46
  line-height: var(--rf-leading-relaxed);
@@ -17,6 +17,25 @@
17
17
  margin-bottom: 1.5rem;
18
18
  }
19
19
 
20
+ /* Content written before the first section that is not a lead paragraph —
21
+ * a `> Ref:` blockquote, a list, a fence, a table (WORK-638). It reads as
22
+ * the opening of the body. A closing `---` is the author's separator before
23
+ * the first section, which already draws its own rule. */
24
+ .rf-decision__intro {
25
+ font-size: var(--rf-text-sm);
26
+ line-height: var(--rf-leading-relaxed);
27
+ }
28
+ .rf-decision__intro blockquote {
29
+ border-left: 3px solid var(--rf-color-border);
30
+ padding: 0.5rem 1rem;
31
+ margin: 0.75rem 0;
32
+ font-style: italic;
33
+ color: var(--rf-color-muted);
34
+ }
35
+ .rf-decision__intro > hr:last-child {
36
+ display: none;
37
+ }
38
+
20
39
  .rf-decision__body {
21
40
  font-size: var(--rf-text-sm);
22
41
  line-height: var(--rf-leading-relaxed);
@@ -23,6 +23,13 @@
23
23
  .rf-milestone__body ul {
24
24
  padding-left: 1.5rem;
25
25
  }
26
+ .rf-milestone__body blockquote {
27
+ border-left: 3px solid var(--rf-color-border);
28
+ padding: 0.5rem 1rem;
29
+ margin: 0.75rem 0;
30
+ font-style: italic;
31
+ color: var(--rf-color-muted);
32
+ }
26
33
 
27
34
  /* Auto-backlog */
28
35
  .rf-milestone__backlog {
@@ -26,6 +26,25 @@
26
26
  content: "@";
27
27
  }
28
28
 
29
+ /* Content written before the first section that is not a lead paragraph —
30
+ * a `> Ref:` blockquote, a list, a fence, a table (WORK-638). It reads as
31
+ * the opening of the body. A closing `---` is the author's separator before
32
+ * the first section, which already draws its own rule. */
33
+ .rf-work__intro {
34
+ font-size: var(--rf-text-sm);
35
+ line-height: var(--rf-leading-relaxed);
36
+ }
37
+ .rf-work__intro blockquote {
38
+ border-left: 3px solid var(--rf-color-border);
39
+ padding: 0.5rem 1rem;
40
+ margin: 0.75rem 0;
41
+ font-style: italic;
42
+ color: var(--rf-color-muted);
43
+ }
44
+ .rf-work__intro > hr:last-child {
45
+ display: none;
46
+ }
47
+
29
48
  .rf-work__body {
30
49
  font-size: var(--rf-text-sm);
31
50
  line-height: var(--rf-leading-relaxed);