wiki-formant 0.64.0 → 0.65.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/README.md CHANGED
@@ -1028,7 +1028,7 @@ the site's stylesheet gives them and the box a look.
1028
1028
 
1029
1029
  ## Base stylesheet
1030
1030
 
1031
- `wiki-formant/base.css` is the layout the package's markup does not work without, and nothing else: columns that stack until there is room, stored tab panels that show one at a time, a copy button pinned to its block's corner and visible on focus and on touch, a table's scroll box, the stats block's grid, the code-tab strip, the banner's row and the infobox's wrapping, the breadcrumb row, the `aria-sort` arrow as a mask over `currentColor`, the stats page's grid and bars, and the chart's height and pinned buttons. It also carries the shape and motion of the primitives every site re-implemented and forked — `.spinner` (a `currentColor` ring sized by `--spinner-size`), `.skeleton`'s pulse, `.empty-state`, the wrap rule for long tokens in inline `code` — and the reduced-motion guard none of them had. No colour and no scale, so a design system's own rules override it at equal specificity.
1031
+ `wiki-formant/base.css` is the layout the package's markup does not work without, and nothing else: columns that stack until there is room, stored tab panels that show one at a time, a copy button pinned to its block's corner and visible on focus and on touch, a table's scroll box, the stats block's grid, the code-tab strip, the banner's row and the infobox's wrapping, the breadcrumb row, the `aria-sort` arrow as a mask over `currentColor`, the stats page's grid and bars, and the chart's height and pinned buttons. It also carries the shape and motion of the primitives every site re-implemented and forked — `.spinner` (a `currentColor` ring sized by `--spinner-size`), `.skeleton`'s pulse, `.empty-state`, the wrap rule for long tokens in inline `code` — and the reduced-motion guard none of them had. No colour and no scale, so a design system's own rules override it at equal specificity. The one set of tokens it declares is the page frame every site lays out by: `--content-width` (72rem, gutters inside), `--sidebar-width` (18rem) and `--page-pad` (16 / 24 / 32px at base / 640 / 1024). They sit in the components layer, so a site never restates them in `@theme`, which would lose; an element that must differ sets its own.
1032
1032
 
1033
1033
  ```css
1034
1034
  @import "wiki-formant/base.css" layer(components);
package/dist/base.css CHANGED
@@ -11,6 +11,25 @@
11
11
  panel showed at once; one never received the utility classes ColumnsView
12
12
  used to emit, so two of its four alignments did nothing. */
13
13
 
14
+ /* ---- the page frame ---------------------------------------------------------
15
+ The three numbers every site's page is laid out by, and the one exception to
16
+ "no design token": they are the frame, not a look, and four sites restating
17
+ them is how one of them came to draw an 80rem page while the rest drew 72.
18
+ The column is 72rem with its gutters inside it, the rail 18rem, and the
19
+ gutter 16 / 24 / 32px at base / 640 / 1024, the header, column and footer
20
+ reading the same one so they line up. STRUCTURE.md D8 is the spec.
21
+
22
+ This file loads into the components layer, which outranks Tailwind's theme
23
+ layer: a site does not restate these in `@theme`, and one that must differ
24
+ sets the property on the element that differs. */
25
+ :root {
26
+ --content-width: 72rem;
27
+ --sidebar-width: 18rem;
28
+ --page-pad: 1rem;
29
+ }
30
+ @media (min-width: 40rem) { :root { --page-pad: 1.5rem; } }
31
+ @media (min-width: 64rem) { :root { --page-pad: 2rem; } }
32
+
14
33
  /* ---- ColumnsView ----------------------------------------------------------
15
34
  Stacked until there is room for a row. `data-gap` and `data-align` replace
16
35
  the Tailwind utilities the view used to emit, which only reached a site whose
@@ -93,7 +112,7 @@
93
112
  position: sticky;
94
113
  top: var(--rail-top, 0px);
95
114
  flex-shrink: 0;
96
- width: var(--sidebar-width, 18rem);
115
+ width: var(--sidebar-width);
97
116
  height: calc(100dvh - var(--rail-top, 0px));
98
117
  overflow: hidden;
99
118
  border-inline-end: var(--rail-border, none);
@@ -109,7 +128,7 @@ html[data-sidebar='closed'] .wiki-sidebar { width: 0; }
109
128
  .wiki-sidebar__scroll {
110
129
  display: flex;
111
130
  flex-direction: column;
112
- width: var(--sidebar-width, 18rem);
131
+ width: var(--sidebar-width);
113
132
  height: 100%;
114
133
  overflow-y: auto;
115
134
  }
@@ -148,6 +167,9 @@ html[data-sidebar='closed'] .wiki-sidebar { width: 0; }
148
167
  .code-tabs-btn { cursor: pointer; }
149
168
  .editorial-banner { display: flex; }
150
169
  .infobox { overflow-wrap: anywhere; }
170
+ /* A link grid's description is prose, so it stops at the site's measure: it
171
+ sits outside the article's prose box, and on radix.wiki ran 709px. */
172
+ .link-grid-group-description { max-width: var(--measure); }
151
173
  .infobox-series { display: flex; flex-direction: column; }
152
174
  .heading-anchor,
153
175
  .ref-backlink,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wiki-formant",
3
- "version": "0.64.0",
3
+ "version": "0.65.0",
4
4
  "description": "The portable half of a wiki: derived taxonomy and facet controls, a version-negotiating MCP transport, markdown twins, block rendering, a rich-text editor engine, conditional-GET plumbing, and the headers and CSP every origin sends.",
5
5
  "type": "module",
6
6
  "license": "MIT",