@uniweb/kit 0.10.5 → 0.10.6

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/kit",
3
- "version": "0.10.5",
3
+ "version": "0.10.6",
4
4
  "description": "Standard component library for Uniweb foundations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -101,3 +101,31 @@
101
101
  .prose :is(h1, h2, h3, h4) {
102
102
  scroll-margin-top: calc(var(--header-height, 4rem) + 1rem);
103
103
  }
104
+
105
+ /* ─── Math (Temml → MathML) ────────────────────────────────────────────────────
106
+ Browsers render MathML natively, so it is easy to conclude math needs no CSS.
107
+ It needs these, for two separate reasons.
108
+
109
+ Temml emits class hooks and expects a stylesheet to define them: `tml-left`
110
+ and `tml-right` carry the `&` column alignment of an `aligned` environment,
111
+ `tml-jot` its extra row spacing. Undefined, a derivation's `=` signs drift
112
+ out of line and its rows sit flush. Those three declarations are Temml's own.
113
+
114
+ The `math mtd` rule is not. Temml's stylesheet only *adjusts* row spacing for
115
+ jot, on the stated assumption that mtd already gets 0.5ex of vertical padding
116
+ "per MathML-Core and user-agent CSS" — but a pristine mtd measures 0px in
117
+ Chrome (2026-07). A pmatrix or cases carries no tml-* class at all, so
118
+ Temml's stylesheet alone fixes the derivation and leaves the matrix touching.
119
+
120
+ These live here rather than in their own opt-in file because correct math
121
+ metrics are not a design choice the way callout colours are — a site that
122
+ sets its typography should not also have to know this.
123
+
124
+ press ships the same declarations to the EPUB and Paged.js lanes, which have
125
+ their own stylesheets and cannot import this one. That duplicate is pinned by
126
+ `framework/_contracts/math-css-parity.test.js`, not by trust. */
127
+ .tml-right { text-align: right; }
128
+ .tml-left { text-align: left; }
129
+ .tml-sml-pad { padding-left: 0.05em; }
130
+ math mtd { padding-top: 0.5ex; padding-bottom: 0.5ex; }
131
+ math mtable.tml-jot mtd { padding-top: 0.7ex; padding-bottom: 0.7ex; }