@mythicalos/ui-core 0.2.0 → 0.2.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 +1 -1
- package/styles.css +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mythicalos/ui-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "mythicalOS framework-agnostic UI core — the pure logic (class derivation, poll scheduling, dialog/toast/gauge helpers), the token-driven component stylesheet, and the <mythical-select> form-associated web component. Zero framework runtime; the Preact and React bindings derive identical output from this package. Apache-2.0.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
package/styles.css
CHANGED
|
@@ -71,6 +71,11 @@ a:focus-visible, .link:focus-visible, .is-focus {
|
|
|
71
71
|
transition: border-color var(--my-t-fast);
|
|
72
72
|
}
|
|
73
73
|
.input:hover:not(:disabled) { border-color: var(--my-muted); } /* §1a-4 (input row v2 reference) */
|
|
74
|
+
/* `.mono` is declared far earlier at the SAME specificity (0,1,0), so `.input`'s `font: inherit`
|
|
75
|
+
shorthand above wins the cascade and resets the family — a `mono` input silently rendered in the
|
|
76
|
+
body face. Restate it at (0,2,0) so the modifier survives inside this package alone, rather than
|
|
77
|
+
depending on a consumer happening to re-declare `.mono` after our sheet. */
|
|
78
|
+
.input.mono { font-family: var(--my-font-mono); font-size: var(--my-fs-mono); }
|
|
74
79
|
.input.is-err { border-color: var(--my-error); }
|
|
75
80
|
.input:disabled, .input.is-disabled { background: var(--my-disabled-bg); color: var(--my-disabled-ink); cursor: not-allowed; }
|
|
76
81
|
.input.is-dirty { border-color: var(--my-accent); }
|