@refrakt-md/lumina 0.41.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.
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.41.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.41.0",
90
- "@refrakt-md/skeleton": "0.41.0",
91
- "@refrakt-md/transform": "0.41.0",
92
- "@refrakt-md/types": "0.41.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"] {