@refrakt-md/lumina 0.38.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.
@@ -1861,6 +1861,7 @@
1861
1861
  },
1862
1862
  "schemaOrg": {
1863
1863
  "type": "ImageObject",
1864
+ "byField": "body",
1864
1865
  "properties": [
1865
1866
  {
1866
1867
  "source": "image",
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.38.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.38.0",
90
- "@refrakt-md/skeleton": "0.38.0",
91
- "@refrakt-md/transform": "0.38.0",
92
- "@refrakt-md/types": "0.38.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
- }