@refrakt-md/lumina 0.37.0 → 0.39.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.
@@ -565,13 +565,16 @@
565
565
  },
566
566
  "inlineStyles": {
567
567
  "ratio": {
568
- "prop": "--grid-ratio"
568
+ "prop": "--grid-ratio",
569
+ "transform": "fr"
569
570
  },
570
571
  "valign": {
571
- "prop": "--grid-valign"
572
+ "prop": "--grid-valign",
573
+ "transform": "align"
572
574
  },
573
575
  "gap": {
574
- "prop": "--grid-gap"
576
+ "prop": "--grid-gap",
577
+ "transform": "gap"
575
578
  },
576
579
  "min": "--grid-min",
577
580
  "aspect": "--grid-aspect"
@@ -1165,7 +1168,8 @@
1165
1168
  },
1166
1169
  "inlineStyles": {
1167
1170
  "valign": {
1168
- "prop": "--split-valign"
1171
+ "prop": "--split-valign",
1172
+ "transform": "align"
1169
1173
  },
1170
1174
  "aspect": "aspect-ratio"
1171
1175
  },
@@ -1251,7 +1255,8 @@
1251
1255
  },
1252
1256
  "inlineStyles": {
1253
1257
  "valign": {
1254
- "prop": "--split-valign"
1258
+ "prop": "--split-valign",
1259
+ "transform": "align"
1255
1260
  },
1256
1261
  "aspect": "aspect-ratio"
1257
1262
  }
@@ -1856,6 +1861,7 @@
1856
1861
  },
1857
1862
  "schemaOrg": {
1858
1863
  "type": "ImageObject",
1864
+ "byField": "body",
1859
1865
  "properties": [
1860
1866
  {
1861
1867
  "source": "image",
@@ -3428,7 +3434,8 @@
3428
3434
  },
3429
3435
  "inlineStyles": {
3430
3436
  "valign": {
3431
- "prop": "--split-valign"
3437
+ "prop": "--split-valign",
3438
+ "transform": "align"
3432
3439
  },
3433
3440
  "aspect": "aspect-ratio"
3434
3441
  },
@@ -3551,7 +3558,8 @@
3551
3558
  },
3552
3559
  "inlineStyles": {
3553
3560
  "valign": {
3554
- "prop": "--split-valign"
3561
+ "prop": "--split-valign",
3562
+ "transform": "align"
3555
3563
  },
3556
3564
  "aspect": "aspect-ratio"
3557
3565
  }
@@ -3901,7 +3909,8 @@
3901
3909
  },
3902
3910
  "inlineStyles": {
3903
3911
  "valign": {
3904
- "prop": "--split-valign"
3912
+ "prop": "--split-valign",
3913
+ "transform": "align"
3905
3914
  }
3906
3915
  }
3907
3916
  },
@@ -4051,7 +4060,8 @@
4051
4060
  },
4052
4061
  "inlineStyles": {
4053
4062
  "valign": {
4054
- "prop": "--split-valign"
4063
+ "prop": "--split-valign",
4064
+ "transform": "align"
4055
4065
  }
4056
4066
  }
4057
4067
  },
@@ -5087,7 +5097,8 @@
5087
5097
  },
5088
5098
  "inlineStyles": {
5089
5099
  "valign": {
5090
- "prop": "--split-valign"
5100
+ "prop": "--split-valign",
5101
+ "transform": "align"
5091
5102
  }
5092
5103
  },
5093
5104
  "schemaOrg": {
@@ -5349,7 +5360,8 @@
5349
5360
  },
5350
5361
  "inlineStyles": {
5351
5362
  "valign": {
5352
- "prop": "--split-valign"
5363
+ "prop": "--split-valign",
5364
+ "transform": "align"
5353
5365
  }
5354
5366
  },
5355
5367
  "schemaOrg": {
@@ -7108,7 +7120,8 @@
7108
7120
  },
7109
7121
  "inlineStyles": {
7110
7122
  "valign": {
7111
- "prop": "--split-valign"
7123
+ "prop": "--split-valign",
7124
+ "transform": "align"
7112
7125
  }
7113
7126
  },
7114
7127
  "variants": {
@@ -7270,7 +7283,8 @@
7270
7283
  },
7271
7284
  "inlineStyles": {
7272
7285
  "valign": {
7273
- "prop": "--split-valign"
7286
+ "prop": "--split-valign",
7287
+ "transform": "align"
7274
7288
  }
7275
7289
  }
7276
7290
  }
@@ -7490,7 +7504,8 @@
7490
7504
  },
7491
7505
  "inlineStyles": {
7492
7506
  "valign": {
7493
- "prop": "--split-valign"
7507
+ "prop": "--split-valign",
7508
+ "transform": "align"
7494
7509
  }
7495
7510
  },
7496
7511
  "schemaOrg": {
package/index.css CHANGED
@@ -84,7 +84,6 @@
84
84
  @import "./styles/runes/diagram.css";
85
85
  @import "./styles/runes/diff.css";
86
86
  @import "./styles/runes/codegroup.css";
87
- @import "./styles/runes/snippet.css";
88
87
  @import "./styles/runes/embed.css";
89
88
  @import "./styles/runes/expand.css";
90
89
  @import "./styles/runes/event.css";
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.37.0",
4
+ "version": "0.39.0",
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.37.0",
90
- "@refrakt-md/skeleton": "0.37.0",
91
- "@refrakt-md/transform": "0.37.0",
92
- "@refrakt-md/types": "0.37.0"
89
+ "@refrakt-md/runes": "0.39.0",
90
+ "@refrakt-md/skeleton": "0.39.0",
91
+ "@refrakt-md/transform": "0.39.0",
92
+ "@refrakt-md/types": "0.39.0"
93
93
  },
94
94
  "devDependencies": {
95
95
  "postcss": "^8.4.0"
@@ -159,9 +159,9 @@
159
159
  /* Collapse the vertical margins of first / last children inside the body
160
160
  * so the drawer's own padding is what spaces content from the chrome —
161
161
  * otherwise a `<figure>` or `<p>` with its own top/bottom margin stacks
162
- * on top of the body's padding and the content looks adrift. A snippet
163
- * inside a drawer compiles to `body > .rf-codeblock > .rf-snippet > <pre>`,
164
- * so the margin-zero walk reaches two levels deep to catch the figure. */
162
+ * on top of the body's padding and the content looks adrift. A code block
163
+ * inside a drawer can sit one wrapper deep (`body > .rf-codeblock > <pre>`),
164
+ * so the margin-zero walk reaches two levels deep to catch it. */
165
165
  dialog.rf-drawer .rf-drawer__body > :first-child,
166
166
  dialog.rf-drawer .rf-drawer__body > :first-child > :first-child {
167
167
  margin-top: 0;
@@ -1,10 +1,15 @@
1
1
  @layer skin {
2
2
  /* Figure — skin. The image box, frame-aspect fill, size max-widths, and alignment
3
- * auto-margins live in @refrakt-md/skeleton (styles/runes/figure.css). */
4
- .rf-figure :is(img, .rf-placeholder) {
3
+ * auto-margins live in @refrakt-md/skeleton (styles/runes/figure.css).
4
+ *
5
+ * Direct children only: since BUG-028 a figure's body may hold code, a table or
6
+ * a nested rune, whose own images and captions are not the figure's. A non-media
7
+ * body needs nothing else here — a code block or table keeps its own styling,
8
+ * and the caption sits below it as it does below an image. */
9
+ .rf-figure > :is(img, .rf-placeholder) {
5
10
  border-radius: var(--rf-radius-media);
6
11
  }
7
- .rf-figure figcaption {
12
+ .rf-figure > figcaption {
8
13
  margin-top: 0.625rem;
9
14
  font-size: var(--rf-text-sm);
10
15
  color: var(--rf-color-muted);
@@ -1,29 +0,0 @@
1
- @layer skin {
2
- /* Snippet — file embedded as a code block.
3
- *
4
- * The standalone form is a `<figure class="rf-snippet">` wrapping the
5
- * existing `<pre class="rf-code-block">`. Nested forms (snippet inside
6
- * codegroup or diff) skip the figure wrapper entirely — the container's
7
- * chrome owns the layout there.
8
- *
9
- * The figure exists primarily so themes can style snippet-derived code
10
- * blocks distinctly from regular fences, and so tooling can find
11
- * `data-source-path` for "edit this file" affordances. Authors wanting a
12
- * labelled caption should wrap the snippet in `{% codegroup title="..." %}`.
13
- *
14
- * SPEC-062.
15
- */
16
-
17
- .rf-snippet {
18
- /* Override the UA `<figure>` defaults — browsers ship with
19
- * margin-inline: 40px and margin-block: 1em which makes the snippet
20
- * figure look indented inside any container. The longhand resets
21
- * cover both physical and logical margin properties because the
22
- * physical longhands set by `margin:` don't always cascade-override
23
- * the UA's logical longhands. */
24
- margin: var(--rf-spacing-md) 0;
25
- margin-inline-start: 0;
26
- margin-inline-end: 0;
27
- padding: 0;
28
- }
29
- }