diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..e1949df --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: ["https://buymeacoffee.com/dutchdiederik"] diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..195f2e5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,77 @@ +name: Bug report +description: Something renders or behaves differently than the guide says it should. +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + Before filing: this framework is deliberately opinionated, and several + things that look like bugs are documented decisions. The + [six laws](https://github.com/DutchDiederik/AmberConsole#the-six-laws) and + [RATIONALE.md](https://github.com/DutchDiederik/AmberConsole/blob/main/RATIONALE.md) + cover most of them — the 18px type floor, the absence of a second hue, the + 2px stroke, the stepped meter fill. + + - type: textarea + id: what + attributes: + label: What happens, and what you expected instead + validations: + required: true + + - type: input + id: repro + attributes: + label: Smallest page that reproduces it + description: A CodePen, a gist, or markup pasted below. Start from `starter.html` if that is easiest. + validations: + required: true + + - type: input + id: browser + attributes: + label: Browser and version + placeholder: Firefox 142 on Windows 11 + validations: + required: true + + - type: dropdown + id: build + attributes: + label: Which build are you loading? + options: + - dist/amber-console.css + - dist/amber-console.min.css + - dist/amber-console.layer.css + - dist/amber-console.layer.min.css + - src/ directly, via my own bundler + validations: + required: true + + - type: input + id: palette + attributes: + label: Palette + description: The two root attributes, or "default" if you set neither. + placeholder: data-ac-tech="crt" data-ac-emitter="p7" + validations: + required: true + + - type: checkboxes + id: js + attributes: + label: Optional JavaScript loaded + description: Both are optional and independently loadable. Leave both unchecked for CSS only. + options: + - label: amber-console.js (behavior — tabs, dialogs, toggles, presets) + - label: amber-console.effects.js (persistence — ghosting, smear, decay) + + - type: checkboxes + id: env + attributes: + label: Does it also happen under any of these? + options: + - label: prefers-reduced-motion + - label: forced-colors / high contrast + - label: print preview + - label: a viewport under 480px diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..2537e70 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,51 @@ +name: Component or feature request +description: Propose something the framework does not have yet. +labels: ["enhancement"] +body: + - type: markdown + attributes: + value: | + **This is a genre framework, and the answer to most requests is no.** That + is not hostility — it is the thing that makes the system coherent. A + proposal is judged on whether it follows from the constraints of an amber + plasma panel, not on whether it would be useful in general. + + Read [the six laws](https://github.com/DutchDiederik/AmberConsole#the-six-laws) + first. Requests that need a second hue, an icon set, SVG, a light mode, + type below 18px, or a transition on a component are already answered + there, and `npm run check` fails the build on most of them. + + - type: textarea + id: what + attributes: + label: What you want, and what you are building that needs it + validations: + required: true + + - type: textarea + id: laws + attributes: + label: Which law justifies it? + description: > + Name the one it follows from and say how. "It would be handy" is not an + argument here; "the panel had a physical key for this and nothing in the + vocabulary draws one" is. + validations: + required: true + + - type: textarea + id: existing + attributes: + label: Why the existing vocabulary cannot express it + description: > + Check the [reference index](https://dutchdiederik.github.io/AmberConsole/docs/guide-reference.html) + first — it lists every class, attribute and token. Most requests turn out + to be a composition of two things that already exist. + validations: + required: true + + - type: textarea + id: markup + attributes: + label: Minimum markup you imagine writing + render: html diff --git a/.github/SECURITY.md b/.github/SECURITY.md new file mode 100644 index 0000000..17745e0 --- /dev/null +++ b/.github/SECURITY.md @@ -0,0 +1,43 @@ +# Security Policy + +## Supported versions + +| Version | Supported | +| --- | --- | +| 2.x | Yes | +| 1.x | No — upgrade path is in [DEPRECATIONS.md](../DEPRECATIONS.md) | + +## What the attack surface actually is + +Worth stating plainly, because it is small and it shapes what is worth reporting. + +Amber Console is a stylesheet plus two **optional**, independently loadable client-side JavaScript +modules. It has no server component, no build-time plugin, and no runtime dependencies — nothing is +installed alongside it. Neither JS module makes a network request, and neither writes HTML: the DOM +work is `createElement`, `setAttribute` and `classList`, with no `innerHTML`, `eval` or +`new Function` anywhere in `src/`. + +The only state it persists is a handful of display and simulation preferences under the `ac.sim.*` +prefix in `localStorage`, and every read is validated against a fixed set of known values before it +reaches a selector or an attribute. All access is wrapped in `try`/`catch`, because `localStorage` +throws in private mode and in sandboxed `file://` frames. + +Realistic report classes, then: + +- A stored preference that reaches the DOM without being validated first. +- A CSS value that can escape its custom property and alter a rule it should not. +- A `@font-face` or asset reference that resolves somewhere unintended. +- Anything in `scripts/` that reads or writes outside the repository. + +Not in scope: the demo pages in `docs/` invent all their data — no fixture there represents a real +system, account or credential. + +## Reporting + +Report privately through +[GitHub Security Advisories](https://github.com/DutchDiederik/AmberConsole/security/advisories/new). +Please do not open a public issue for a vulnerability first. + +Include the version, the browser, and the smallest page that reproduces it. You will get an +acknowledgement within a week. If the report is confirmed, the fix ships in the next release and the +advisory credits you unless you would rather it did not. diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..590d415 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,37 @@ +## What this changes, and why + + + +## Gates + +```bash +npm test # lint + check + gas + contrast + build (needs npm i) +npm run test:computed # computed styles: blink, persistence, corners +npm run test:visual # screenshots (run locally — CI cannot, font rasterisation) +``` + +- [ ] `npm test` passes +- [ ] `npm run test:computed` passes +- [ ] `npm run test:visual` passes, and any moved baseline was reviewed by eye and committed +- [ ] **`dist/` is rebuilt and committed** — CI fails the run if `git diff -- dist/` is dirty + +## If this adds or changes a component + +- [ ] Its own file in `src/components/`, added to the `@import` list in `src/amber-console.css` +- [ ] Header comment: what it is, the minimum markup, and **when not to use it** +- [ ] A live specimen in `docs/guide-controls.html` or `docs/guide-display.html`, with a copyable class string +- [ ] A row in the README class reference **and** in `docs/guide-reference.html` +- [ ] Correct under `prefers-reduced-motion`, `forced-colors: active` and `@media print` +- [ ] 44×44 minimum hit area if interactive, and a `:focus-visible` ring that reads on both `--ac-screen` and inverse video + +## If this removes or renames anything public + +- [ ] Listed in `DEPRECATIONS.md` with the release that removes it +- [ ] Nothing is removed outside a major version + +## Notes + + diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38de61d..2f2722c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,12 +30,31 @@ jobs: - name: Check prohibitions run: npm run check + # The palettes are generated; this fails if colors.css has drifted from + # what scripts/derive-gas.mjs produces. It was in `npm test` but not here, + # so a hand-edited palette could reach main. The two gate sets now match: + # lint, check, gas, contrast, build — which is exactly what `npm test` runs. + - name: Check palette derivations + run: npm run gas -- --check + - name: Check contrast ratios run: npm run contrast - name: Build run: npm run build + # Computed-style regression. This one DOES run here, unlike the visual + # suite: nothing it measures depends on font rasterisation, so it gives the + # same answer on a Linux runner as on the machine the baselines came from. + # It is also the only gate that can see the class of bug where a rule stops + # applying without becoming invalid — lint and the prohibition checker both + # pass straight through that. + - name: Install Chromium for the computed suite + run: npx playwright install --with-deps chromium + + - name: Computed-style regression + run: npm run test:computed + # dist/ is committed so the framework works from a raw GitHub URL and from # the Pages demo without a build step. This fails the run if someone edits # src/ and forgets to rebuild. diff --git a/.gitignore b/.gitignore index b89c229..8cea6ee 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,8 @@ node_modules/ .env .env.* -# Visual-regression run output. Only baselines/ is committed. +# Visual-regression run output — written only for a capture that FAILED, so it +# can be eyeballed against its baseline. Throwaway; the next run rewrites it. test/visual/*.actual.png # scripts/make-assets.mjs unlinks this; it only survives a crashed run. @@ -28,3 +29,13 @@ Thumbs.db *.swp .idea/ .vscode/ + +# NOTHING HERE IGNORES test/visual/baselines/, AND THAT IS DELIBERATE. +# +# A baseline IS the test. Ignoring one does not spare the repository the bytes, +# it only spares them review — and it costs the suite the thing it exists for, +# a fresh clone that can say whether the pages still render the way they did. +# An ignored file is not reported as missing, so the gap is silent. +# +# The full set is committed as of 2.0. Adding a page means committing its +# baselines with it. diff --git a/CHANGELOG.md b/CHANGELOG.md index 3804406..d295d2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,1450 @@ All notable changes to this project are documented here. Format follows Nothing yet. +## [2.0.0] — 2026-08-10 + +A breaking release: every custom property this framework owns is now `--ac-*` prefixed, and the +pre-prefix names are gone rather than aliased. If you never overrode a token, upgrading is a +drop-in. If you did, prefix what you set with `ac-` and you are done. + +Entries run newest first. The last work before release was an audit of the whole tree against its +own documentation — the first eleven groups below. Nothing there changed the API or removed +anything; it closed contracts the code was not keeping and corrected documents that described a +framework slightly different from this one. + +### Fixed — the committed `dist/` JavaScript was one release behind its own source + +The 2.0.0 entry below records that `scripts/build.mjs` now stamps a version into all four JS +banners. It does — but the four **committed artifacts** were never regenerated afterwards, so +`dist/amber-console.js` and `dist/amber-console.effects.js` still shipped an unstamped banner and +the two `.global.js` builds still carried the duplicated source banner the same change removed. The +fix was real; the output was stale. + +This is exactly what the `Verify dist/ is up to date` step in CI exists to catch, and it would have +caught it: `npm run build && git diff --exit-code -- dist/` exits 1 on the previous tree. It had not +run because the step post-dates the commit that went stale. + +### Fixed — three components disagreed about what "disabled" looks like + +`components/button.css` states the law: *inert, so no halo at all — not a dimmer one.* `.ac-btn`, +`.ac-check` and `.ac-radio` kept it. `.ac-tab` and `.ac-input` did not — both carried +`--ac-glow-box-dim` while disabled, so a dead tab and a dead well still scattered light. `.ac-tab` +was the worse of the two: its comment said *"Inert keeps no edge, the same as a disabled key"* while +the declaration under it did the opposite. + +Both now go to `box-shadow: none`. The toggle **housing** keeps its dim halo and that is now written +down as the one stated exception — it is a box that is still drawn rather than a cell that is no +longer lit, which is the argument `components/toggle.css` already made where it makes it. The thumb +inside it, which is the lamp, still goes dark. + +- **Neither state was measurable before.** The computed suite's fixture had a disabled *button* and a + disabled *toggle*, but an enabled input and no tab at all, and neither appears on any page the + screenshot suite baselines — so the whole 824-probe run came back clean across the change. + `test/computed/capture.mjs` now carries both, which is the 48 new probes. + +### Fixed — an over-range meter said so only while it was blinking + +`.ac-meter--alarm` promised *"inverse-video the whole track and blink it — there is no red"* and +delivered a slightly brighter border plus a blinking bar. Blink is switched off by +`prefers-reduced-motion`, by the blink style flag, by print and by forced colors — four environments +in which an alarmed meter was indistinguishable from a healthy one. + +The track now fills with `--ac-fill` and the bar is cut out of it in `--ac-on-fill`. That way round +is forced: the bar is already `--ac-fill`, so filling the track with the same token would make the +reading vanish into it. Added to the inverse-video lists in `base/a11y.css` (Highlight / +HighlightText) and to the `print-color-adjust: exact` list in `base/print.css`, without which the +lit track simply does not print. + +- **Neither meter state was measurable either, and the alarm is now the better-covered of the two.** + The blink group already rendered an alarmed meter but recorded animation properties only, so the + whole inverse-video change was invisible to it; and the only alarmed meter on a baselined page sits + inside `server.html`'s `#view-storage`, which ships `hidden` while the visual harness clicks + `#tab-services`. Two suites, one fixture between them, no coverage. `test/computed/capture.mjs` + grew a `meters` group probing the plain, dim and alarmed track and bar — ink, halo and the + afterglow ghost — across all four media and with the persistence layer on and off. + Under forced colors it records the system colour by **name** rather than by value: the emulated + palette belongs to the browser build, not to this stylesheet, and the computed suite is the half of + the testing that runs on a Linux CI runner. Every other probe in the file already measured + something platform-neutral; baking `rgb(55, 0, 110)` into the baseline would have made the first CI + run red for a reason that is not a regression. All matching keywords are joined rather than the + first taken, because Canvas and HighlightText are both white and first-match-wins mislabelled the + plain track. +- **The lagging ghost bar inverted with it.** `sim/afterglow.css` paints the shrink-ghost in + `--ac-fill`, which on an alarmed track is now the colour of the track behind it — so the one + bargraph where a falling reading matters most was the one that stopped trailing. It is drawn in + `--ac-on-fill` under `.ac-meter--alarm`. +- **`.ac-meter--dim` no longer reads as full drive in forced colors.** The bar was matched + unconditionally and came back as `Highlight`; it takes `GrayText` now, the same word that mode + already uses for the disabled thumb. Print needed no equivalent — `--ac-ink-faint` re-points to a + mid grey there, so a dim bar already prints grey against a black one. + +### Fixed — a scoped embed resolved half a palette + +The semantic aliases (`--ac-ink`, `--ac-fill`, `--ac-stroke`, …) were declared on `:root` alone. They +are indirections, and a `var()` is substituted **at the element that declares it**, then inherits as +a resolved colour. So a consumer following the `base/reset-scoped.css` guidance — who puts +`data-ac-tech` / `data-ac-emitter` on `.ac-root` rather than on ``, which is the natural thing +to do when you do not own `` — moved the five `--ac-emit-*` stops on that subtree and nothing +else. The surfaces changed and the text stayed neon. + +`tokens/colors.css` now declares the aliases on `:root, .ac-root`. Deliberately **not** on +`[data-ac-tech][data-ac-emitter]`, which would cover more elements and weigh (0,2,0) — enough to beat +a consumer's own `:root { --ac-ink: … }` and silently break the one override the REFERENCE chapter +tells people they may write. `.ac-root` weighs the same as `:root` and wins for its subtree by +proximity instead. `base/print.css` carries `.ac-root` in its re-point list for the same reason; +without it that closer declaration would win and a scoped embed would print in amber. + +### Fixed — demo controls that were not wired + +- **The radar's Interference Rejection switch did nothing.** It carried no `data-ac="toggle"`, so + `amber-console.js` never bound it, and `radar.js` had no handler either. It flips now, and reveals + a run of asynchronous-interference spokes when the rejection is OFF — the thing the control + removes, which has to be visible for the control to mean anything. The state is followed with a + `MutationObserver` on `aria-pressed` rather than a second `click` listener: a plain ` + +``` + +Page-to-page persistence needs one line in *your* stylesheet, because `@view-transition` is a +document-level switch that cannot be scoped to a selector — linking a stylesheet must not silently +rewrite how your site navigates: + +```css +@view-transition { navigation: auto; } +``` Custom properties survive into `dist/` unresolved — they are the public API, so you can override any of them at runtime without rebuilding. @@ -67,19 +115,23 @@ of them at runtime without rebuilding. -
+
Show Information
STATUS:AUTO MODE
-
+ ``` That renders a framed, glowing, scanlined control panel. No build step, no server — save it as a `.html` file and double-click it. +**Or start from [`starter.html`](starter.html)** in this repo: the same thing as a real file, with a +panel, buttons, a working no-JS toggle, a meter and an alarm already on it, commented line by line and +with three things to try at the bottom. Download the repo, double-click it, start deleting. + ## Class reference ### Layout @@ -88,9 +140,9 @@ That renders a framed, glowing, scanlined control panel. No build step, no serve | --- | --- | --- | | `.ac-screen` | Full-height frame that hosts the simulations | — | | `.ac-screen__body` | Padded content area inside it | override `--ac-screen-pad` | -| `.ac-stack` | Flex column, `gap` from `--gap` | — | -| `.ac-row` | Flex row, `gap` from `--gap` | `--wrap` `--center` `--baseline` `--between` `--end` | -| `.ac-grid` | Grid, columns from `--cols` | `--console` (operate left / instrument right) | +| `.ac-stack` | Flex column, `gap` from `--ac-gap` | — | +| `.ac-row` | Flex row, `gap` from `--ac-gap` | `--wrap` `--center` `--baseline` `--between` `--end` | +| `.ac-grid` | Grid, columns from `--ac-cols` | `--console` (operate left / instrument right) | | `.ac-col-2/3/4/6` | Column span | — | | `.ac-spacer` `.ac-grow` `.ac-push` | Fill, absorb, push-to-end | — | | `.ac-sr-only` | Available to assistive tech, invisible | — | @@ -102,10 +154,11 @@ That renders a framed, glowing, scanlined control panel. No build step, no serve | `.ac-btn` | Soft key | `--filled` `--dim` `--lg` `--sm` `--pad` `--block` | ` + + + + + +

Style & engine · never the hardware

+
+ + + + +
+ + +

The retrace band is part of the CRT simulation, and there is no sweep across a plasma panel to switch off.

+

JS Effects need the CRT simulation and a phosphor that holds long enough to see.

+ + + + + + +
+
+ State +
+
+
Technology
+ +
PLASMA
+
+
+
Emitter
+ +
NEON
+
+
+
Emission
+ +
585.2 nm
+
+
+
Mode
+ +
PRESET
+
+
+
Engine
+ +
CSS + JS
+
+
+
+ + +
+ Technology + +

A gas in a sealed gap, struck by a + sustain pulse. It emits directly — no phosphor in the stack — so the panel lights one + hue and varies only how hard it is driven.

+ + + + + + + + + + + + + +
+
+ + + +
+ + + A preset sets the display and its simulation. Everything stays adjustable — and Reset puts all of it back, switches, styles and engine alike. +
+ diff --git a/docs/_chapters.html b/docs/_chapters.html new file mode 100644 index 0000000..4a1b089 --- /dev/null +++ b/docs/_chapters.html @@ -0,0 +1,27 @@ + +
diff --git a/docs/_nav.html b/docs/_nav.html new file mode 100644 index 0000000..73ff9c1 --- /dev/null +++ b/docs/_nav.html @@ -0,0 +1,20 @@ + diff --git a/docs/docs.css b/docs/docs.css index 3a06410..87bae03 100644 --- a/docs/docs.css +++ b/docs/docs.css @@ -6,28 +6,353 @@ this file is required to use the framework. =========================================================================== */ +/* CROSS-DOCUMENT PERSISTENCE, OPTED IN HERE RATHER THAN IN THE FRAMEWORK. + `@view-transition` is a document-level switch and cannot be scoped to a + selector, so shipping it inside amber-console.css would change how navigation + behaves for everyone who links the stylesheet — including people who never + asked for a screen simulation. Linking a stylesheet must not rewrite how a + site navigates, so the framework styles the transition and leaves this one + line to the page. It is the whole opt-in. + + With it, moving between the three demo pages under a long phosphor leaves the + previous screen genuinely draining behind the new one, per pixel, with no + JavaScript involved at all. tokens/effects.css does the rest. */ +@view-transition { + navigation: auto; +} + /* --------------------------------------------------------------- shared -- */ +/* SKIP LINK — the first focusable thing on every page in docs/. + + DOCS-ONLY, AND DELIBERATELY NOT AN `.ac-` CLASS. A skip link belongs to a + *page*, not to a component library: it has to know where the page's main + region starts, and the framework has no opinion about that. Shipping an + `.ac-skip` would also add public API that the reference index, the guide and + the README all have to carry, for a rule that is nine lines of CSS a consumer + can write against their own layout. + + Not `display: none` when unfocused — a hidden element is not focusable, which + is the one thing this must be. It is pulled out of the flow by size instead + and returns to the top-left of the frame on focus, inside the bezel rather + than over the browser chrome, so the simulations reach it like everything + else on the panel. */ +.doc-skip { + position: absolute; + left: -9999px; + z-index: 200; + /* 44px like every other interactive thing in this system — a skip link is the + first control on the page and does not get to be the one exception. */ + display: flex; + align-items: center; + min-height: 44px; + padding: var(--ac-space-2) var(--ac-space-3); + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-on-fill); + /* Inverse video: dark ink on lit amber, so no halo — same pairing every other + --ac-on-fill site makes. */ + text-shadow: none; + background: var(--ac-fill); + text-decoration: none; +} +.doc-skip:focus { + left: var(--ac-space-3); + top: var(--ac-space-3); +} + +/* THE TABS SPECIMEN, SIZED SO SWITCHING A TAB DOES NOT RESIZE THE BOX. + + `.doc-demo--col` aligns its children to flex-start, so each panel would take + its own content width — three different widths, and the specimen would jump + as you moved between them. A widget whose job is to demonstrate a widget must + not do that. + + `width: max-content` on the wrapper makes it as wide as its widest child (the + soft-key strip), and stretch does the rest, so the panels line up under the + keys at whatever width the font renders them. No magic number to go stale. */ +.doc-tabspec { + display: flex; + flex-direction: column; + align-items: stretch; + gap: var(--ac-space-3); + width: max-content; + max-width: 100%; +} + .doc-byline { - font-family: var(--font-micro); - font-size: var(--type-micro); - letter-spacing: var(--tracking-micro); - color: var(--ink-faint); + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); text-decoration: none; } .doc-byline:hover { - color: var(--ink-bright); - text-shadow: var(--glow-text); + color: var(--ac-ink-bright); + text-shadow: var(--ac-glow-text); } -.doc-nav-sims { +/* ----------------------------------------------------------- setup board -- */ + +/* The bar's display readout. The board scrolls away and the bar does not, so + this is the one that is always visible — and it always names the TECHNOLOGY + before the emitter: "CRT · P3", never a bare "P3" that could be mistaken for + one more gas. */ +.doc-nav-display { display: flex; align-items: center; - gap: var(--space-4); - flex-wrap: wrap; + gap: var(--ac-space-2); + white-space: nowrap; + color: var(--ac-ink-dim); + text-shadow: var(--ac-glow-text-dim); +} +.doc-nav-display [data-ac-display-out] { + color: var(--ac-ink-bright); + text-shadow: var(--ac-glow-text); +} + +/* All four switches live in ONE region now — see the SWITCHES panel in the demo + markup — so the rows fill the width and the label pushes the track and its + ON/OFF to the right edge. Four labels running from "CRT" to "Scroll Smear" + read as scattered when each row is only as wide as its own contents. + + A fixed label column would have been the obvious way to line the tracks up and + is the wrong one: the longest label plus its JS badge needs about 15ch, and a + quarter of this board has roughly 298px of inner width at 1440. That overflows, + and .ac-setup is the one region in the system that is not allowed to scroll. */ +.doc-switches { + display: flex; + flex-direction: column; + align-items: stretch; + gap: var(--ac-space-2); +} +.doc-switches .ac-toggle { + display: flex; + width: 100%; +} +.doc-switches .ac-toggle > :first-child { + margin-right: auto; +} + +/* The axis a group of switches belongs to. Micro type and tight margins: this is + a divider that happens to have words on it, not a paragraph — the board's four + quarters are the real headings and this sits a level under them. + + It exists because merging Simulation, Style and Engine into one box costs the + thing three separate panels were saying for free. Those are three different + KINDS of statement — what the hardware is, what the viewer prefers, how much of + the library is running — and a flat list of four switches quietly claims Plasma + and JS Effects are the same sort of thing. See the header of components/setup.css. */ +.doc-switches__axis { + margin: var(--ac-space-4) 0 var(--ac-space-2); + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + line-height: 1.6; + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); + text-transform: uppercase; +} +.doc-switches__axis:first-of-type { + margin-top: 0; +} + +/* No cap and no scroller. Every emitter the panel has is on the glass at once — + which is affordable only because the catalog is split across two quarters by + technology. Four gases and seven phosphors side by side are shorter than + eleven rows in one column, and the split is the thing that made a board with + no scrolling in it possible at all. */ +.doc-displays { + border: none; + margin: 0; + padding: 0; +} + +/* The group heading is what makes the list two catalogs instead of one. It is + not decoration and it does not collapse into the rows. */ +.doc-displays__head { + margin: var(--ac-space-4) 0 0; + font-family: var(--ac-font-terminal); + font-size: var(--ac-type-small); + line-height: 1; + letter-spacing: 0.12em; + color: var(--ac-ink-bright); + text-transform: uppercase; + text-shadow: var(--ac-glow-text); +} +.doc-displays__head:first-child { + margin-top: 0; } -.doc-nav-sims .ac-toggle { - font-size: var(--type-small); + +/* Divides the CRT catalog into what a phosphor was BUILT FOR. Four of the seven + were made to be looked at for hours; three were made to do a job that reading + was not part of, and picking one of those for a UI is a deliberate choice + rather than a palette preference. See tokens/colors.css. */ +.doc-displays__group { + margin: var(--ac-space-3) 0 var(--ac-space-1); + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-ink-dim); + text-shadow: var(--ac-glow-text-dim); + text-transform: uppercase; + border-bottom: 1px solid var(--ac-ink-trace); + padding-bottom: 3px; +} +.doc-displays__group:first-of-type { + margin-top: 0; +} + +.doc-displays__note { + margin: var(--ac-space-2) 0 var(--ac-space-3); + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + line-height: 1.6; + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); + text-transform: uppercase; +} + +/* A KEY:VALUE row wearing a radio, so eleven of them still read as one column + of the character grid rather than eleven floating labels. + + align-items is baseline and not the center .ac-radio ships, because the leader + dots are the reason this is a row at all. An empty flex item's baseline is its + bottom margin edge, which is what drops the dotted rule exactly onto the text + baseline — but only if the text is in the same baseline group. One item + aligned to a baseline nothing else shares has no baseline to find, and the + rule floats up between the rows. The lamp is the one thing that does not want + a baseline: it is a 20px box, so it centers. */ +.doc-display { + display: flex; + align-items: baseline; + width: 100%; + min-height: 36px; + font-size: var(--ac-type-small); +} + +.doc-display input { + align-self: center; +} + +.doc-display__name { + flex: none; +} + +/* What the tube was FOR, beside its part number. The part number alone is only + meaningful to someone who already knows the catalog, which is the person least + in need of the panel. Kept short on purpose: the row is + [radio] NAME USE …dots… SPECTRUM, and the dotted leader is what absorbs the + slack — a long label eats it and then overflows the column at 390px. */ +.doc-display__use { + flex: none; + margin-left: 0.55em; + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-ink-dim); + text-shadow: var(--ac-glow-text-dim); + text-transform: uppercase; +} + +.doc-display__fill { + flex: 1; + /* COLLAPSIBLE TO NOTHING, and that is what keeps the row on one line. This + used to hold a 24px floor, which is fine when the row is [number] …dots… + [spectrum] and not fine once a purpose label sits between them: in the + printed board the columns are 254px and the reserved dots pushed every row + 13px past the edge. The leader is decoration and the two labels are not, so + the leader is what gives way. */ + min-width: 0; + align-self: baseline; + border-bottom: var(--ac-border-w) dotted var(--ac-ink-trace); +} + +.doc-display__note { + flex: none; + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); + text-transform: uppercase; +} + +/* 36px is a comfortable row on a mouse and too tight for a thumb. Where the + pointer is coarse, take the height back to the 44px floor. */ +@media (pointer: coarse) { + .doc-display { + min-height: 44px; + } +} + +/* The technology note. VT323 at 18px rather than the Silkscreen micro the other + notes use: this one is a paragraph to be read, not a label to be glanced at, + and Silkscreen at 8px is unreadable past about a dozen words. */ +/* WHAT THE OPTIONAL MODULE IS ACTUALLY DOING, shown only while it is doing it. + The switch beside it says ON; this says what ON bought. Three effects, and the + reason each one cannot be CSS is the reason the module exists at all — so the + box states that rather than just naming them. Hidden by the `hidden` + attribute, driven from syncEngineControls in ../src/amber-console.js. */ +.doc-engine { + margin-top: var(--ac-space-3); + padding: var(--ac-space-3); + border: 1px solid var(--ac-ink-trace); + border-radius: var(--ac-radius-sm); + background: var(--ac-screen-well); +} +.doc-engine__title { + display: block; + margin-bottom: var(--ac-space-2); + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + text-transform: uppercase; + color: var(--ac-ink-dim); + text-shadow: var(--ac-glow-text-dim); +} +.doc-engine__list { + margin: 0; + padding: 0; + list-style: none; + font-family: var(--ac-font-terminal); + font-size: var(--ac-type-small); + line-height: 1.25; + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); +} +.doc-engine__list li + li { + margin-top: 6px; +} +/* The effect's name carries the drive level; its description is the dim half of + the same line, so the three names scan as a list without a bullet. */ +.doc-engine__list b { + font-weight: normal; + color: var(--ac-ink); + text-shadow: var(--ac-glow-text); + text-transform: uppercase; +} + +.doc-info { + margin: 0; + font-family: var(--ac-font-terminal); + font-size: var(--ac-type-small); + line-height: 1.35; + letter-spacing: var(--ac-tracking-body); + color: var(--ac-ink-dim); + text-shadow: var(--ac-glow-text-dim); +} + +.doc-setup-hint { + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); + text-transform: uppercase; } /* ------------------------------------------------------- console screen -- */ @@ -36,29 +361,29 @@ display: flex; justify-content: space-between; align-items: flex-start; - gap: var(--space-6); + gap: var(--ac-space-6); flex-wrap: wrap; } .doc-wordmark { - font-size: var(--type-title); + font-size: var(--ac-type-title); letter-spacing: 0.18em; - color: var(--ink-bright); - text-shadow: var(--glow-text); + color: var(--ac-ink-bright); + text-shadow: var(--ac-glow-text); } .doc-console-head h1 { - font-size: var(--type-display); - letter-spacing: var(--tracking-display); - text-shadow: var(--glow-text); - border-bottom: var(--border-w) solid var(--stroke); + font-size: var(--ac-type-display); + letter-spacing: var(--ac-tracking-display); + text-shadow: var(--ac-glow-text); + border-bottom: var(--ac-border-w) solid var(--ac-stroke); padding-bottom: 4px; } .doc-fields { display: flex; flex-direction: column; - gap: var(--space-2); + gap: var(--ac-space-2); } .doc-fields .ac-field { width: min(100%, 60%); @@ -76,7 +401,7 @@ .doc-lamp { display: flex; justify-content: center; - gap: var(--space-6); + gap: var(--ac-space-6); flex-wrap: wrap; } @@ -96,7 +421,7 @@ min-width: 0; max-width: 1180px; margin: 0 auto; - padding: var(--space-8) var(--space-8) 80px; + padding: var(--ac-space-8) var(--ac-space-8) 80px; } /* Documentation tables have a large min-content width (long token names in @@ -107,68 +432,333 @@ max-width: 100%; } +/* ------------------------------------------------------- guide chapters -- */ + +/* THE GUIDE'S SECOND LEVEL. The top bar names the five destinations in this + project; this names the seven chapters of one of them, and the two must not + look like the same kind of control — so this is a rule with words on it rather + than a second bar. Not sticky: the menu bar is the thing that has to survive + scrolling, and two stacked sticky strips eat a quarter of a laptop viewport. + + Ten chapters do not fit one line at any width we design for, so the strip + is two rows rather than one scrolling row: a row that runs off the edge hides + its own tail, and a chapter index whose last entries are invisible is not an + index. + + Five columns rather than free wrapping, because free wrapping at the wrap's + full width puts nine chapters on one line and one orphan under them, which + reads as a mistake. A fixed 5x2 grid reads as a plan, and the columns line up + the way a printed index does. + + The block of columns is centred under the rule; the words inside each column + are not. Centring the items too would ragged the columns and lose the one + thing the grid was for. */ +.doc-chapters { + display: grid; + grid-template-columns: repeat(5, auto); + justify-content: center; + justify-items: start; + gap: var(--ac-space-3) var(--ac-space-6); + align-items: baseline; + margin-bottom: var(--ac-space-6); + padding-bottom: var(--ac-space-3); + border-bottom: var(--ac-border-w) solid var(--ac-stroke-dim); +} + +.doc-chapter { + display: flex; + align-items: baseline; + gap: var(--ac-space-2); + flex: none; + font-size: var(--ac-type-small); + line-height: 1; + color: var(--ac-ink-dim); + text-shadow: var(--ac-glow-text-dim); + text-decoration: none; + white-space: nowrap; +} +.doc-chapter:hover { + color: var(--ac-ink-bright); + text-shadow: var(--ac-glow-text); +} + +/* The chapter you are on is INVERSE VIDEO, which is law 2 doing the work a + color would do anywhere else — the machine saying "this one". */ +.doc-chapter[aria-current="page"] { + background: var(--ac-fill); + color: var(--ac-on-fill); + text-shadow: none; + padding: 3px var(--ac-space-2); +} +.doc-chapter[aria-current="page"] .doc-chapter__n { + color: var(--ac-on-fill); + text-shadow: none; +} + +.doc-chapter__n { + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); +} + +/* The directory on the overview page. Each card is the whole target — a title + that is a link with dead prose under it makes the prose look unclickable. */ +.doc-cards { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); + gap: var(--ac-space-4); +} + +.doc-card { + display: grid; + grid-template-columns: 34px 1fr; + gap: 4px var(--ac-space-3); + align-items: baseline; + padding: var(--ac-space-4); + border: var(--ac-border-w) solid var(--ac-stroke-dim); + border-radius: var(--ac-radius); + text-decoration: none; +} +.doc-card:hover { + border-color: var(--ac-stroke); + box-shadow: var(--ac-glow-box-dim); +} + +.doc-card__n { + grid-row: span 2; + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); +} +.doc-card__title { + font-size: var(--ac-type-body); + letter-spacing: 0.1em; + line-height: 1; + color: var(--ac-ink-bright); + text-shadow: var(--ac-glow-text); +} +.doc-card__blurb { + font-size: var(--ac-type-small); + color: var(--ac-ink-dim); + text-shadow: var(--ac-glow-text-dim); +} +.doc-card:hover .doc-card__blurb { + color: var(--ac-ink); + text-shadow: var(--ac-glow-text); +} + +/* Previous / next. A chapter that is a whole page needs a way out of the end of + it that is not the browser's back button. */ +.doc-pager { + display: flex; + justify-content: space-between; + gap: var(--ac-space-4); + margin-top: var(--ac-space-8); + padding-top: var(--ac-space-4); + border-top: var(--ac-border-w) solid var(--ac-stroke-dim); +} +.doc-pager__link { + font-size: var(--ac-type-small); + color: var(--ac-ink-dim); + text-shadow: var(--ac-glow-text-dim); + text-decoration: none; +} +.doc-pager__link:hover { + color: var(--ac-ink-bright); + text-shadow: var(--ac-glow-text); +} + .doc-head { - border-bottom: var(--border-w) solid var(--stroke); - padding-bottom: var(--space-4); - margin-bottom: var(--space-3); + border-bottom: var(--ac-border-w) solid var(--ac-stroke); + padding-bottom: var(--ac-space-4); + margin-bottom: var(--ac-space-3); +} + +/* A chapter masthead is one step down from the overview's. Same rule under it, + smaller voice: the front page is the system, a chapter is a part of it. */ +.doc-head--chapter h1 { + font-size: var(--ac-type-display); } .doc-head h1 { font-size: 56px; - letter-spacing: var(--tracking-display); - color: var(--ink-bright); - text-shadow: var(--glow-text); + letter-spacing: var(--ac-tracking-display); + color: var(--ac-ink-bright); + text-shadow: var(--ac-glow-text); } .doc-kicker { - font-size: var(--type-title); + font-size: var(--ac-type-title); letter-spacing: 0.2em; - color: var(--ink-dim); + color: var(--ac-ink-dim); + text-shadow: var(--ac-glow-text-dim); } +/* THE CHAPTER INTRO RUNS THE FULL MEASURE, like every other paragraph here. + It used to carry `max-width: 62ch`, which is the classical readability measure + and the right instinct in general — but nothing else on these pages is + constrained, so the one paragraph a reader meets FIRST was the one paragraph + that stopped halfway across the page and read as an unfinished left column + beside empty space. Consistency wins over the measure here: .doc-prose, + .doc-dim and the tables all run to .doc-wrap's 1180px, and the lede now does + too. */ .doc-lede { - max-width: 62ch; - color: var(--ink); - font-size: var(--type-body); + color: var(--ac-ink); + text-shadow: var(--ac-glow-text); + font-size: var(--ac-type-body); margin: 20px 0 0; } +/* WHY THIS PAGE SCROLLS BADLY AND THE DEMOS DO NOT, measured rather than + guessed — every plausible suspect was wrong. + + The frame's overlays cost nothing. Removing the bloom's viewport + backdrop-filter, its blend mode, its mask and the cell mesh, one at a time, + moved a 130-frame scroll by less than a millisecond each. What costs + everything is --ac-glow-text: four text-shadow layers out to a 56px radius, on + every text node of a 26,000px page. Applied with no simulation running at all + it reproduces the whole problem; taken off .ac-bloom the problem disappears. + The numbers, at 1440x900, median frame time over a 130-frame scroll: + + no simulation .......................... 16.7ms 0 frames over 32ms + .ac-bloom .............................. 48.2ms 79 + .ac-bloom minus the backdrop-filter .... 47.2ms 80 <- not the overlay + no simulation, but the bloom's glow .... 49.9ms 76 <- it is the glow + .ac-bloom with content-visibility ...... 16.8ms 38 + + So the fix cannot be to make the halo cheaper — the halo is the system. It is + to stop painting 26,000px of it for a 900px window. content-visibility skips + layout and paint for sections that are off screen entirely, which is a paint + the reader was never going to see. Nothing about the rendering of a section + you ARE looking at changes. + + THE INTRINSIC SIZES ARE FIRST-PAINT ESTIMATES AND NOTHING ELSE. `auto` means + the browser replaces each guess with the real measurement the first time a + section renders, so a stale number here costs a slightly wrong scrollbar + before you reach that section and nothing after. They are per-section rather + than one blanket value because this page runs from a 313px section to a + 7,300px one, and one average makes the scrollbar jump at every boundary. They + were measured at 1440; a narrower viewport is taller and self-corrects on + first render. */ .doc-wrap section { margin-top: 56px; } + +/* WHY THE SPECIMENS ARE SKIPPED WHEN THEY ARE OFF SCREEN, and it is not the + reason you would guess. The frame's overlays cost nothing: removing the + bloom's viewport backdrop-filter, its blend mode, its mask and the cell mesh, + one at a time, each moved a 130-frame scroll by less than a millisecond. What + costs everything is --ac-glow-text — four text-shadow layers out to a 56px radius, + on every text node on the page. Applied with no simulation running at all it + reproduces the whole problem; taken off .ac-bloom the problem disappears. + + Measured at 1440x900, median frame time over a 130-frame scroll of the guide + when the guide was still one 26,000px document: + + no simulation .......................... 16.7ms 0 frames over 32ms + .ac-bloom .............................. 48.2ms 79 + .ac-bloom minus the backdrop-filter .... 47.2ms 80 <- not the overlay + no simulation, but the bloom's glow .... 49.9ms 76 <- it is the glow + .ac-bloom with this rule ............... 16.8ms 38 + + So the fix cannot be to make the halo cheaper — the halo is the system. It is + to stop painting more of it than the window can show. Splitting the guide into + chapters did most of that on its own; this catches what is left, which is the + long specimen runs on CONTROLS and DISPLAY. + + THE UNIT IS THE SPECIMEN CARD, not the section: a chapter is now roughly one + section, so containing the section would contain the whole page and skip + nothing. Finer than this was measurably worse — nesting the containment inside + the grids cost more in containment overhead than it saved in paint. + + `auto` on contain-intrinsic-size means the browser keeps the real measurement + after a card has rendered once, so the guessed height only ever affects the + scrollbar before you have reached that part of the page. */ +.doc-demo, +.doc-sim-tile { + content-visibility: auto; + contain-intrinsic-size: auto 320px; +} + +/* A skipped card is skipped for the printer too on some engines, and a chapter + that prints half its specimens is a worse bug than the one above. Nothing is + scrolling on paper, so there is nothing to buy here anyway. */ +@media print { + .doc-demo, + .doc-sim-tile { + content-visibility: visible; + } +} .doc-wrap h2 { - font-size: var(--type-title); + font-size: var(--ac-type-title); letter-spacing: 0.14em; - color: var(--ink-bright); - text-shadow: var(--glow-text); + color: var(--ac-ink-bright); + text-shadow: var(--ac-glow-text); } .doc-wrap h3 { - font-size: var(--type-body); + font-size: var(--ac-type-body); letter-spacing: 0.1em; - color: var(--ink); + color: var(--ac-ink); + text-shadow: var(--ac-glow-text); } +/* PROSE RUNS THE FULL WIDTH OF THE WRAP, AND IT IS ONE RULE FOR EVERY PARAGRAPH. + + It used to be two. Paragraphs were capped at a 68ch measure, and because the + wrap is 1180px that left the right half of the page empty; a `.doc-prose` + wrapper then set `columns: 2` on selected runs to reclaim it. The result was a + page that changed layout without changing subject — some intros half-width + with a dead column beside them, some split into two ragged columns that rarely + balanced, and no way for a reader to tell which they were about to get. + + One measure for every paragraph is the fix. A reader tracking a long line is a + real cost, and it is the smaller of the two here: the inconsistency was the + thing that read as unfinished. + + If a narrower measure is wanted later it belongs on .doc-wrap, so the specimens + and the prose stay in the same column — capping the paragraph alone is what + produced the empty half in the first place. */ .doc-wrap p { - max-width: 68ch; - font-size: var(--type-body); - margin: 0 0 var(--space-3); + font-size: var(--ac-type-body); + margin: 0 0 var(--ac-space-3); +} + +/* Vestigial: a grouping wrapper that used to set `columns: 2`. Kept so the + markup in four guide chapters still has something to hang its spacing on. */ +.doc-prose { + margin-bottom: var(--ac-space-4); +} +.doc-prose p:last-child { + margin-bottom: 0; } .doc-sec-head { display: flex; align-items: baseline; - gap: var(--space-4); - border-bottom: var(--border-w) solid var(--stroke-dim); - padding-bottom: var(--space-2); - margin-bottom: var(--space-6); + gap: var(--ac-space-4); + border-bottom: var(--ac-border-w) solid var(--ac-stroke-dim); + padding-bottom: var(--ac-space-2); + margin-bottom: var(--ac-space-6); } .doc-num, .doc-mono { - font-family: var(--font-micro); - font-size: var(--type-micro); - letter-spacing: var(--tracking-micro); - color: var(--ink-faint); + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); } -.doc-dim { color: var(--ink-dim); } -.doc-faint { color: var(--ink-faint); } -.doc-small { font-size: var(--type-small); } +/* GLOW FOLLOWS THE DRIVE LEVEL, which is the rule section 04 states and this + pair was breaking: .doc-faint carried the FULL --ac-glow-text at --ac-ink-faint ink, + so the faintest text on the page wore the hottest halo — the drive tiers wired + backwards, in the one file that documents them. It also carried a --ac-glow-box, + which put a rectangular halo around a run of caption text; a box halo belongs + to a lit SURFACE, and a caption is not one. `npm run check` gates the missing + halo but not the wrong one, so neither showed up. */ +.doc-dim { color: var(--ac-ink-dim); text-shadow: var(--ac-glow-text-dim); } +.doc-faint { color: var(--ac-ink-faint); text-shadow: var(--ac-glow-text-faint); } +.doc-small { font-size: var(--ac-type-small); } .doc-grid2 { display: grid; @@ -178,7 +768,7 @@ .doc-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); - gap: var(--space-6); + gap: var(--ac-space-6); } .doc-span2 { grid-column: span 2; } @@ -189,22 +779,23 @@ align-items: start; } .doc-law-n { - font-size: var(--type-title); - color: var(--ink-bright); - text-shadow: var(--glow-text); + font-size: var(--ac-type-title); + color: var(--ac-ink-bright); + text-shadow: var(--ac-glow-text); line-height: 1; } .doc-law h3 { margin: 0 0 6px; } .doc-law p { margin: 0; - font-size: var(--type-small); - color: var(--ink-dim); + font-size: var(--ac-type-small); + color: var(--ac-ink-dim); + text-shadow: var(--ac-glow-text-dim); } /* A specimen card. Dim frame so it never competes with what it contains. */ .doc-demo { - border: var(--border-w) solid var(--stroke-dim); - border-radius: var(--radius); + border: var(--ac-border-w) solid var(--ac-stroke-dim); + border-radius: var(--ac-radius); padding: 22px; display: flex; flex-wrap: wrap; @@ -218,10 +809,11 @@ } .doc-cap { - font-family: var(--font-micro); - font-size: var(--type-micro); - letter-spacing: var(--tracking-micro); - color: var(--ink-faint); + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); display: block; margin: 0 0 10px; width: 100%; @@ -233,10 +825,26 @@ gap: 6px; flex: 1; min-width: 120px; + /* TOP-ALIGNED, against .doc-demo's align-items: center. Centring is right for + a row of buttons, and wrong for a row of swatches: one caption wrapping to + two lines made that swatch taller, and centring then lifted its chip 13px + above the others — a ragged row of colour boxes with one riding high. The + chips are the thing being compared, so they line up. */ + align-self: flex-start; } .doc-chip { height: 72px; - border: 1px solid var(--ink-trace); + border: 1px solid var(--ac-ink-trace); +} +/* Inline code inside a small caption inherits the caption's size. .doc-wrap code + is 20px, which is larger than .doc-small's 18px — so a caption naming two + tokens was set bigger than the label above it and wrapped a line earlier than + it needed to. */ +.doc-small code { + font-size: inherit; + /* A token is one word. Without this `--ac-fill` wrapped as `--` + `ac-fill` + across two lines, which reads as two different properties. */ + white-space: nowrap; } /* Plain documentation tables — deliberately not .ac-table, which is a data @@ -244,80 +852,110 @@ .doc-table { border-collapse: collapse; width: 100%; - font-size: var(--type-small); + font-size: var(--ac-type-small); } .doc-table th { text-align: left; font-weight: 400; - color: var(--ink-faint); - font-family: var(--font-micro); - font-size: var(--type-micro); - letter-spacing: var(--tracking-micro); - padding: 0 var(--space-4) var(--space-2) 0; - border-bottom: var(--border-w) solid var(--stroke-dim); + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + padding: 0 var(--ac-space-4) var(--ac-space-2) 0; + border-bottom: var(--ac-border-w) solid var(--ac-stroke-dim); } .doc-table td { - padding: var(--space-2) var(--space-4) var(--space-2) 0; - color: var(--ink); - border-bottom: 1px solid var(--ink-trace); + padding: var(--ac-space-2) var(--ac-space-4) var(--ac-space-2) 0; + color: var(--ac-ink); + text-shadow: var(--ac-glow-text); + border-bottom: 1px solid var(--ac-ink-trace); vertical-align: top; } .doc-table td.doc-tok { - color: var(--ink-dim); + color: var(--ac-ink-dim); + text-shadow: var(--ac-glow-text-dim); white-space: nowrap; } +/* THE EMPHASIZED ROW OF A DOC TABLE, and it is deliberately NOT + .ac-table__row--active. That modifier is a matched pair — it fills the row + with --ac-fill and repaints the text --ac-on-fill, which is the near-black + that makes the fill readable — and only half of the pair survives here. + `.ac-table__row--active td` and `.doc-table td` are both 0-1-1, docs.css is + linked after dist/amber-console.css, so the later file takes `color` back to + --ac-ink. The fill lands, the counter-color does not, and the deprecation + table rendered amber text on an amber fill at 1.00:1 — the STATUS column, + under a heading promising a status at a glance, was invisible. + + A raised region needs no counter-color at all, so there is no pair to break: + the wash moves the background one step and the ink is left where the rest of + the table already puts it. Emphasis then arrives the way this system says + energization arrives — MORE DRIVE, not inverse video — by lifting the token + cells off their dim tier onto the full one the other columns are already at. */ +.doc-table__row--gone td { + background: var(--ac-screen-raised); +} +.doc-table__row--gone td.doc-tok { + color: var(--ac-ink); + text-shadow: var(--ac-glow-text); +} .doc-dodont { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; - border: var(--border-w) solid var(--stroke-dim); - border-radius: var(--radius); + border: var(--ac-border-w) solid var(--ac-stroke-dim); + border-radius: var(--ac-radius); overflow: hidden; } .doc-dodont > div { padding: 18px 20px; } -.doc-dodont > div + div { border-left: var(--border-w) solid var(--stroke-dim); } +.doc-dodont > div + div { border-left: var(--ac-border-w) solid var(--ac-stroke-dim); } .doc-dd-h { - background: var(--fill); - color: var(--on-fill); + background: var(--ac-fill); + color: var(--ac-on-fill); + text-shadow: none; padding: 3px 10px; display: inline-block; - font-size: var(--type-small); - margin-bottom: var(--space-3); + font-size: var(--ac-type-small); + margin-bottom: var(--ac-space-3); } .doc-dd-h--off { background: transparent; - color: var(--ink-faint); - border: var(--border-w) solid var(--stroke-dim); + color: var(--ac-ink-faint); + text-shadow: none; + border: var(--ac-border-w) solid var(--ac-stroke-dim); } .doc-wrap ul { margin: 0; padding-left: 1.2em; - font-size: var(--type-small); - color: var(--ink-dim); + font-size: var(--ac-type-small); + color: var(--ac-ink-dim); + text-shadow: var(--ac-glow-text-dim); } .doc-wrap li { margin-bottom: 6px; } .doc-wrap code { - font-family: var(--font-terminal); + font-family: var(--ac-font-terminal); font-size: 20px; - color: var(--ink-bright); + color: var(--ac-ink-bright); + text-shadow: var(--ac-glow-text); } /* The copyable class string under every component specimen. */ .doc-code { display: block; width: 100%; - margin: var(--space-3) 0 0; - padding: var(--space-2) var(--space-3); - background: var(--screen-well); - border: var(--border-w) solid var(--stroke-dim); - border-radius: var(--radius-sm); - font-family: var(--font-terminal); - font-size: var(--type-small); + margin: var(--ac-space-3) 0 0; + padding: var(--ac-space-2) var(--ac-space-3); + background: var(--ac-screen-well); + border: var(--ac-border-w) solid var(--ac-stroke-dim); + border-radius: var(--ac-radius-sm); + font-family: var(--ac-font-terminal); + font-size: var(--ac-type-small); line-height: 1.3; - color: var(--ink-bright); + color: var(--ac-ink-bright); + text-shadow: var(--ac-glow-text); white-space: pre-wrap; overflow-wrap: anywhere; } @@ -325,24 +963,25 @@ /* "When not to use it" — deliberately faint; it is a caveat, not a heading. */ .doc-when { width: 100%; - margin: var(--space-2) 0 0; - font-size: var(--type-small); - color: var(--ink-faint); + margin: var(--ac-space-2) 0 0; + font-size: var(--ac-type-small); + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); } .doc-when::before { content: "NOT FOR: "; - font-family: var(--font-micro); - font-size: var(--type-micro); - letter-spacing: var(--tracking-micro); + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); } .doc-foot { margin-top: 72px; - border-top: var(--border-w) solid var(--stroke-dim); - padding-top: var(--space-4); + border-top: var(--ac-border-w) solid var(--ac-stroke-dim); + padding-top: var(--ac-space-4); display: flex; justify-content: space-between; - gap: var(--space-4); + gap: var(--ac-space-4); flex-wrap: wrap; } @@ -351,32 +990,751 @@ .doc-sim-tile { position: relative; min-height: 150px; - padding: var(--space-4); - border: var(--border-w) solid var(--stroke-dim); - border-radius: var(--radius); - background: var(--screen); + padding: var(--ac-space-4); + border: var(--ac-border-w) solid var(--ac-stroke-dim); + border-radius: var(--ac-radius); + background: var(--ac-screen); overflow: hidden; display: flex; flex-direction: column; - gap: var(--space-2); + gap: var(--ac-space-2); justify-content: center; align-items: center; text-align: center; } +/* ---------------------------------------------------------- server page -- */ + +/* Four instrument values across, dropping to two and then one as the frame + narrows. minmax rather than a fixed count because --ac-type-display is 44px: + below about 140px a track the value cannot fit in gets clipped by the frame's + overflow:clip instead of wrapping, which is the failure mode the visual + suite's overflow probe exists to catch. */ +.doc-vitals { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); + gap: var(--ac-space-4); + align-items: end; +} + +.doc-net { + display: flex; + flex-direction: column; + gap: var(--ac-space-2); +} + +/* A sparkline made of boxes. + + Law 6 bans the SVG element and `npm run check` greps for it, so there is no + path to draw and no chart library to reach for. That is not a limitation + being worked around: a panel of this era drew a history as a row of lit + cells because a character grid is what it had, and one lit cell per day is + exactly as much resolution as an availability strip deserves. + + Height rides on an inline `--h` (a number, so it is invisible to the glow + gate, which only inspects color declarations). A day that lost time drops to + --ac-ink-faint with the halo off, because glow is the signal of energization and + an outage is the one thing on the strip that was not lit. */ +.doc-spark { + display: flex; + align-items: flex-end; + gap: 2px; + height: 44px; + margin-top: var(--ac-space-4); + border-bottom: var(--ac-border-w) solid var(--ac-stroke-dim); +} + +.doc-spark__bar { + flex: 1 1 0; + min-width: 2px; + height: calc(var(--h, 100) * 1%); + background: var(--ac-fill); + box-shadow: var(--ac-glow-box); +} + +.doc-spark__bar--down { + background: var(--ac-ink-faint); + box-shadow: none; +} + +/* The caption row under a strip chart. Shared with the radar page's A-scope — + see .doc-ascope__scale in the radar block below. */ + +/* The service table. Only the switch column is pinned narrow; everything else + keeps its natural width and the whole table scrolls inside .ac-table-scroll + on a phone rather than each cell squeezing to unreadable. */ +.doc-services td:nth-child(1), +.doc-services td:nth-child(2), +.doc-services td:nth-child(3), +.doc-services td:nth-child(6) { + white-space: nowrap; +} +.doc-services td:last-child, +.doc-services th:last-child { + width: 1%; +} + +.doc-svc-toggle { + gap: var(--ac-space-2); +} + +/* A stopped container is still listed — an operator needs to see the thing that + is not running — but it is no longer reporting, so it recedes to the faintest + ink with the halo off. This is the whole color argument in one rule: with a + single hue available, "off" is said with brightness rather than with red. */ +.doc-services tr[data-stopped] td { + color: var(--ac-ink-faint); + text-shadow: none; +} + +.doc-datasets td:nth-child(1) { + white-space: nowrap; +} + +/* ----------------------------------------------------------- radar page -- */ + +/* THE DIAL, AND WHY EVERYTHING ON IT IS AN ARM. + .ac-sweep draws the face, the rings and the wake; everything a particular + radar has on its screen is page furniture and belongs here. All of it is + polar — a bearing and a range — and none of it may be an SVG, which law 6 + bans and `npm run check` greps for. + + So each mark is a zero-width span pinned with its BOTTOM at the center of the + dial, given a height in percent and rotated by its bearing. The far end then + lands exactly where polar coordinates say it does, at any dial size, with no + arithmetic in JavaScript and nothing to recompute on resize. The mark itself + is the arm's ::after, so one element carries both the position and the light. + + --ac-sweep-period is re-declared here with the SAME expression the component + uses as its fallback, which changes nothing about the sweep and gives the + contacts a value they can do arithmetic on: each one delays its strike by its + own bearing's share of a revolution. The beam and the light it leaves are then + the same event by construction rather than by two numbers being kept in step. */ +.doc-scope { + --ac-sweep-period: max(2.5s, calc(var(--ac-persist-tail, 2s) * 1.5)); + /* How much light a contact still has when the beam comes round again — the + TRAILS control, set by radar.js. Not the phosphor: see the note on the + soft key in radar.html. */ + --doc-trail-floor: 0.2; +} + +.doc-ppi { + position: relative; + display: flex; + align-items: center; + justify-content: center; + width: 100%; + max-width: 620px; + aspect-ratio: 1; + margin: 0 auto; +} + +/* The bezel gap the bearing scale lives in. */ +.doc-ppi .ac-sweep { + --ac-sweep-size: calc(100% - 76px); +} + +.doc-brg, +.doc-brgn, +.doc-shm, +.doc-ebl, +.doc-echo { + position: absolute; + left: 50%; + bottom: 50%; + width: 0; + height: 50%; + transform-origin: bottom center; + pointer-events: none; +} + +.doc-brg, +.doc-brgn { + transform: rotate(calc(var(--b, 0) * 1deg)); +} + +.doc-brg::before { + content: ""; + position: absolute; + top: 0; + left: -1px; + width: 2px; + height: 11px; + background: var(--ac-ink-trace); +} +.doc-brg--maj::before { + height: 19px; + background: var(--ac-ink-faint); +} + +/* Counter-rotated so the numerals stay upright, which is what a printed bezel + ring did — the card turned, the numbers did not. */ +.doc-brgn > span { + position: absolute; + top: 22px; + left: 50%; + transform: translate(-50%, 0) rotate(calc(var(--b, 0) * -1deg)); + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); +} + +/* Ship's heading marker: where the bow is pointing, full radius. */ +.doc-shm { + width: 2px; + margin-left: -1px; + transform: rotate(calc(var(--brg, 0) * 1deg)); + background: rgba(var(--ac-halo-1), 0.45); +} + +/* Electronic bearing line — dashed, because it is drawn by the set rather than + returned by anything. */ +.doc-ebl { + width: 2px; + margin-left: -1px; + transform: rotate(calc(var(--brg, 0) * 1deg)); + background: repeating-linear-gradient( + to bottom, + rgba(var(--ac-halo-2), 0.5) 0 9px, + transparent 9px 16px + ); +} + +/* Variable range marker. --rng is a fraction of the RADIUS everywhere on this + page, and 100% of the square face is the diameter, so the multiplication is + already right. */ +.doc-vrm { + position: absolute; + top: 50%; + left: 50%; + width: calc(var(--rng, 0.5) * 100%); + aspect-ratio: 1; + transform: translate(-50%, -50%); + border: var(--ac-border-w) dashed rgba(var(--ac-halo-2), 0.45); + border-radius: 50%; + pointer-events: none; +} + +/* Guard zone: a sector with the middle punched out. closest-side pins the mask's + 100% to the radius rather than to the corner, so the inner edge is a range and + not an approximation of one. */ +.doc-guard { + position: absolute; + inset: 0; + border-radius: 50%; + pointer-events: none; + background: conic-gradient(from 40deg, rgba(var(--ac-halo-4), 0.12) 0 40deg, transparent 40deg); + -webkit-mask: radial-gradient(circle closest-side at 50% 50%, transparent 0 55%, black 55%); + mask: radial-gradient(circle closest-side at 50% 50%, transparent 0 55%, black 55%); +} + +/* A CONTACT, WHICH IS THE POINT OF THE WHOLE PAGE. + The beam crosses this bearing once per revolution and re-strikes it. On P7 + that strike lands in the blue layer and the yellow-green one behind it takes + over within a frame — so the keyframes below cross from --ac-halo-flash to the + afterglow ramp, exactly as ac-ghost-cascade does in tokens/effects.css, and + for the same reason. The drain runs on --ac-decay-ease, which is the palette's + own sampled Becquerel curve rather than anything chosen here. */ +.doc-echo { + height: calc(var(--rng, 0.5) * 50%); + transform: rotate(calc(var(--brg, 0) * 1deg)); +} + +.doc-echo::after { + content: ""; + position: absolute; + top: 0; + left: 50%; + width: calc(var(--sz, 8) * 1px); + height: calc(var(--sz, 8) * 0.6px); + transform: translate(-50%, -50%); + border-radius: 50%; + background-color: rgb(var(--ac-halo-flash, var(--ac-halo-1))); + animation: doc-echo-strike var(--ac-sweep-period) var(--ac-decay-ease) infinite; + /* Negative by one full period so the face is already in steady state on the + first frame instead of lighting up bearing by bearing on load. */ + animation-delay: calc(var(--brg, 0) / 360 * var(--ac-sweep-period) - var(--ac-sweep-period)); +} + +@keyframes doc-echo-strike { + 0% { + opacity: 1; + background-color: rgb(var(--ac-halo-flash, var(--ac-halo-1))); + } + 4% { + opacity: 0.92; + background-color: rgb(var(--ac-halo-1)); + } + 100% { + opacity: var(--doc-trail-floor, 0); + background-color: rgb(var(--ac-halo-3)); + } +} + +/* Land does not move and returns hard, so it is drawn as a flatter, wider arc + than a hull is. */ +.doc-echo--land::after { + height: calc(var(--sz, 8) * 0.3px); +} + +/* A TRACKED CONTACT — one the ARPA has a solution on, and the four rows in the + plot below. Both this and --clutter were on the markup with no rule behind + them, so a tracked target looked exactly like a stray return and the class + documented an intention rather than anything you could see. + + IT IS SAID WITH DWELL, NOT WITH BRIGHTNESS OR WITH A FLOOR, and both of those + near-misses are worth recording. Brightness is already spent: the SELECTED + track is the bright one, ringed by --sel below. And a raised + --doc-trail-floor — the obvious way to say "held between sweeps" — would be + declared on the ::after, which is NEARER than the .doc-scope the TRAILS + softkey writes that same property on, so it would win and those four buttons + would stop moving the tracked contacts at all. + + So it is a second keyframe instead, identical to the one above except that the + strike holds full amplitude to 10% rather than 4% before draining to the SAME + var(--doc-trail-floor). Only animation-name is overridden, so duration, delay + and easing all still come from the base rule. Physically it is the right + reading too: the set is integrating this return over several revolutions, + which is what having a track on something means. */ +.doc-echo--tracked::after { + animation-name: doc-echo-strike-tracked; +} + +@keyframes doc-echo-strike-tracked { + 0% { + opacity: 1; + background-color: rgb(var(--ac-halo-flash, var(--ac-halo-1))); + } + 10% { + opacity: 1; + background-color: rgb(var(--ac-halo-1)); + } + 100% { + opacity: var(--doc-trail-floor, 0); + background-color: rgb(var(--ac-halo-3)); + } +} + +/* ASYNCHRONOUS INTERFERENCE, AND WHAT THE REJECTION SWITCH IS FOR. + Another set transmitting on the same band, at a repetition rate that is not + ours. Each of its pulses lands at a slightly different range on each of our + sweeps, so it paints as a curved run of dashes marching outward instead of a + return that stays put — which is exactly the property the rejection circuit + keys on: it keeps what repeats sweep to sweep and discards what does not. + + The dashes reuse .doc-echo's geometry — a span pinned at the centre, given a + height in percent, rotated to a bearing — because every mark on this face is + drawn that way and law 6 bans the SVG element that would be the alternative. + They are deliberately NOT re-struck by the beam: interference is not a target, + it does not belong to a bearing, and animating it per sweep would make it look + like one. It just sits there being wrong, which is what it does on a real + scope. */ +/* Stated rather than relying on .ac-sweep being the nearest positioned ancestor: + the spokes size themselves in PERCENT, so they need a containing block that is + definitely the face and definitely the right size. A bare is inline and + would hand them whatever happened to be positioned above it. */ +.doc-interf { + position: absolute; + inset: 0; + pointer-events: none; +} + +.doc-interf > span { + position: absolute; + left: 50%; + bottom: 50%; + transform-origin: 50% 100%; + width: 2px; + height: calc(var(--rng, 0.5) * 50%); + transform: rotate(calc(var(--brg, 0) * 1deg)); + pointer-events: none; +} + +.doc-interf > span::after { + content: ""; + position: absolute; + top: 0; + left: 50%; + width: 2px; + height: 7px; + transform: translate(-50%, -50%); + background-color: rgba(var(--ac-halo-2), 0.55); +} + +/* Interference is a receiver artefact, so it goes with the receiver: a set on + standby is not listening and cannot be interfered with. Same rule the echoes + already follow. */ +.doc-scope[data-standby] .doc-interf { + display: none; +} + +/* SEA CLUTTER — wave tops, and what the A/C SEA knob exists to remove. A + wind-driven return is weak and has no hull to have a length, so it is drawn + ROUND rather than as the flattened arc a vessel gets, and dimmer. + + `filter` rather than `opacity`, and that is the same trap as the floor above: + the strike keyframe animates opacity, so a static opacity here would simply be + overridden for the whole cycle. A filter composes with the animation instead + of competing with it. + + radar.js still does the actual suppressing off data-clutter — this class is + what a suppressed return looks like BEFORE the knob removes it, which is the + half a reader has to be able to see for the control to mean anything. */ +.doc-echo--clutter::after { + height: calc(var(--sz, 8) * 1px); + filter: opacity(0.6); +} + +/* The selected track, ringed. With one hue available, "this one" is a marker + and a brightness, never a color. */ +.doc-echo--sel::before { + content: ""; + position: absolute; + top: 0; + left: 50%; + width: calc(var(--sz, 8) * 1px + 16px); + aspect-ratio: 1; + transform: translate(-50%, -50%); + border: var(--ac-border-w) solid rgba(var(--ac-halo-4), 0.6); + border-radius: 50%; +} + +/* THE A-SCOPE. Amplitude against range on the bearing the beam is on — what a + radar was before the PPI existed, and here it is the control experiment: same + light, same decay, on a straight line instead of a circle. Every bar shares + one animation rather than carrying its own delay, because they are all the + same bearing and are therefore all struck at the same instant. */ +.doc-ascope { + display: flex; + align-items: flex-end; + gap: 2px; + height: 56px; + margin-top: var(--ac-space-4); + padding: 0 2px; + background: var(--ac-screen-well); + border: var(--ac-border-w) solid var(--ac-stroke-dim); + border-radius: var(--ac-radius-sm); +} + +.doc-ascope__bar { + flex: 1 1 0; + min-width: 2px; + height: calc(var(--h, 4) * 1%); + background-color: rgb(var(--ac-halo-1)); + animation: doc-ascope-drain var(--ac-sweep-period) var(--ac-decay-ease) infinite; +} + +@keyframes doc-ascope-drain { + 0% { + opacity: 1; + background-color: rgb(var(--ac-halo-flash, var(--ac-halo-1))); + } + 4% { + opacity: 0.92; + background-color: rgb(var(--ac-halo-1)); + } + 100% { + opacity: var(--doc-trail-floor, 0); + background-color: rgb(var(--ac-halo-3)); + } +} + +.doc-ascope__scale, +.doc-spark__scale { + display: flex; + justify-content: space-between; + gap: var(--ac-space-2); + margin-top: var(--ac-space-1); + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); + text-transform: uppercase; +} + +/* Forced colors maps every author background away, and on this page that empties + the radar face: the wake is already dropped by base/a11y.css for reasons of its + own, and the contacts, the bearing ticks and the A-scope are all filled boxes. + A blank circle is worse than a plain one, so everything that carries + INFORMATION is redrawn in the user's own palette — system color keywords are + the one set of values this mode does not override. The decorative marks (the + guard sector, the range marker) are left to disappear. */ +@media (forced-colors: active) { + .doc-brg::before, + .doc-ascope__bar { + background: CanvasText; + } + .doc-echo::after { + border: 1px solid CanvasText; + } +} + +/* Standby stops the antenna and stops writing. Nothing here fades anything out: + the picture is simply no longer being drawn, and on a long phosphor what you + watch is the last of it draining — which radar.js gets by wrapping the switch + in the effects module's framebuffer decay, the same call the range change + uses. */ +.doc-scope[data-standby] .ac-sweep__beam, +.doc-scope[data-standby] .doc-echo, +.doc-scope[data-standby] .doc-ascope__bar { + display: none; +} + +/* A rotating light is unambiguously motion, and so is a re-struck contact. When + motion is reduced the beam stops (sweep.css does that) and these must stop + with it — a face full of pulsing marks under a stationary beam is worse than + either. What is left is a lit sector and a static plot, which is still a + radar picture. */ +@media (prefers-reduced-motion: reduce) { + .doc-echo::after, + .doc-ascope__bar { + animation: none; + } +} + +/* The receiver controls. On the real set these were knobs; this system has no + rotary input and will not grow one, so each is the instrument it always was + with a pair of soft keys to move it — which is how the digital sets at the + end of this era replaced the knobs anyway. */ +.doc-knobs { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); + gap: var(--ac-space-6) var(--ac-space-8); +} + +.doc-knob { + display: flex; + align-items: center; + gap: var(--ac-space-2); + min-width: 0; +} +.doc-knob .ac-meter { + flex: 1; +} +.doc-knob .ac-btn { + flex: none; + padding: 10px 14px; +} + +.doc-softkeys { + margin-top: var(--ac-space-6); +} + +.doc-softkeys__key, +.doc-marker__key { + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); + text-transform: uppercase; +} + +.doc-marker { + display: flex; + align-items: center; + gap: var(--ac-space-3); +} +.doc-marker__key { + min-width: 3em; +} +.doc-marker__value { + margin-right: auto; + font-family: var(--ac-font-terminal); + font-size: var(--ac-type-body); + line-height: 1; + color: var(--ac-ink-bright); + text-shadow: var(--ac-glow-text); + font-variant-numeric: tabular-nums; +} +.doc-marker .ac-btn { + padding: 8px 14px; +} + +.doc-fix { + margin-top: var(--ac-space-3); +} + +.doc-targets td:nth-child(2) { + white-space: nowrap; +} + +/* -------------------------------------------------------- terminal page -- */ + +/* Three clocks, sized so they do not compete with the wordmark beside them. + A dealing room ran on all three and the desk was awake for all three. */ +.doc-clocks { + min-width: 190px; +} + +.doc-pagebar__entry { + flex: none; + width: 15ch; +} + +/* Contributor and center codes. Four letters that are an identifier rather than + a word, so they get the micro face and stop competing with the numbers. */ +.doc-ctr { + font-family: var(--ac-font-micro); + font-size: var(--ac-type-micro); + letter-spacing: var(--ac-tracking-micro); + color: var(--ac-ink-dim); + text-shadow: var(--ac-glow-text-dim); +} + +/* A FIELD THAT JUST CHANGED, and this is the law-1 answer to the question every + market screen has to answer: how do you flag a change with no color to flag + it in? The same way these screens did before color tubes were affordable — + invert the cell for a couple of seconds. terminal.js adds the class and takes + it off; the ghost of the previous value is drawn by the effects module and is + a separate mechanism entirely, which is why the two read as one event and not + as two. + + No `transition` here: this file is not gated for it the way src/components/ + is, but a value snapping to inverse and back is what the hardware did, and a + fade would make the change harder to catch rather than easier. + + THE SELECTOR HAS TO BEAT `.ac-table td`, which is (0,1,1) and sets the ink for + every cell in the table. A bare `.doc-tick` is (0,1,0) and loses — the cell + took the inverse background and kept the lit foreground, so the value flashed + green on green and vanished for a second and a half. */ +.ac-table td.doc-tick { + background: var(--ac-fill); + color: var(--ac-on-fill); + text-shadow: none; +} + +/* The cross-rate matrix. Its row headers are the only in the system that + are not a column heading, so they get the same inverse treatment the thead + already carries — otherwise the grid reads as though it has lost its left + edge. The diagonal is not a rate and must not look like one. */ +.doc-xrat th[scope="row"] { + text-align: left; + background: var(--ac-fill); + color: var(--ac-on-fill); + text-shadow: none; + white-space: nowrap; +} + +.doc-xrat__self { + color: var(--ac-ink-faint); + text-shadow: var(--ac-glow-text-faint); + text-align: center; +} + +.doc-depo th[scope="row"] { + text-align: left; + background: var(--ac-fill); + color: var(--ac-on-fill); + text-shadow: none; +} + +/* Nothing in a quote may wrap. A bid broken across two lines is not a bid, and + every one of these columns is a fixed-width figure that would rather scroll + inside .ac-table-scroll than fold. */ +.doc-fxsp td, +.doc-depo td, +.doc-govt td, +.doc-indx td, +.doc-xrat td, +.doc-book td { + white-space: nowrap; +} + +/* THE TAPE. A translate rather than a scroll, which buys three things at once: + it cannot widen the page, it costs no layout, and it rewrites no text — so it + spends nothing against the ghost budget that the rest of this page is being + careful with. */ +.doc-ticker { + overflow: hidden; + border-top: var(--ac-border-w) solid var(--ac-stroke-dim); + border-bottom: var(--ac-border-w) solid var(--ac-stroke-dim); + padding: var(--ac-space-2) 0; + font-family: var(--ac-font-terminal); + font-size: var(--ac-type-small); + line-height: 1; + letter-spacing: var(--ac-tracking-body); + color: var(--ac-ink); + text-shadow: var(--ac-glow-text); + text-transform: uppercase; + white-space: nowrap; +} + +/* THE METRONOME. It paints nothing and occupies nothing; it exists so the page + can take its pulse from an animation rather than from setInterval. The + difference matters exactly once, and decisively: the visual suite disables + every animation before it screenshots, so a tick driven from here cannot land + mid-capture at any machine speed, while a timed one is a race that gets worse + every time a page is added to the suite. terminal.js says the rest. + + The animated property is deliberately one that changes nothing anyone can see. + `animationiteration` fires on the cycle regardless of what the keyframes do. */ +.doc-metronome { + position: absolute; + width: 0; + height: 0; + overflow: hidden; + animation: doc-metronome 1.4s steps(1) infinite; +} + +@keyframes doc-metronome { + from { opacity: 1; } + to { opacity: 1; } +} + +/* The run carries the tape TWICE and slides by half its own width, which is what + makes the loop seamless — at -50% the second copy is exactly where the first + one started. It also means the tape is fully on screen at frame zero. Starting + it at `padding-left: 100%` is the usual marquee trick and is wrong here: it + parks the text off the right edge, so every frozen screenshot in the visual + suite would capture an empty band. */ +.doc-ticker__run { + display: inline-block; + animation: doc-tape 60s linear infinite; +} + +@keyframes doc-tape { + from { transform: translateX(0); } + to { transform: translateX(-50%); } +} + +/* A tape crawling under prose is motion with no state behind it, and unlike the + radar's beam it is not the hardware doing something — it is the hardware + showing you a list. Stopped, it is a list, which is all it ever was. */ +@media (prefers-reduced-motion: reduce) { + .doc-ticker__run { + animation: none; + } +} + @media (max-width: 860px) { .doc-grid2, .doc-grid3, - .doc-dodont { + .doc-dodont, + /* .ac-grid holds whatever --ac-cols says at every width — only --console carries + a breakpoint. Two panels of dense figures side by side are about 155px each + on a phone, which is narrower than one of their own rows, so this one has to + say when to stop. */ + .doc-desk { grid-template-columns: minmax(0, 1fr); } .doc-span2 { grid-column: auto; } + /* One column of 40ch is not a measure, it is a stack of fragments. */ + .doc-prose { columns: 1; } .doc-dodont > div + div { border-left: none; - border-top: var(--border-w) solid var(--stroke-dim); + border-top: var(--ac-border-w) solid var(--ac-stroke-dim); } .doc-wrap { - padding: var(--space-6) var(--space-4) 64px; + padding: var(--ac-space-6) var(--ac-space-4) 64px; + } + .doc-head h1 { font-size: var(--ac-type-display); } + /* Five columns on a phone is five columns of one word each. Stacked, the + chapters are a list — which is what a chapter index is anyway. */ + .doc-chapters { + grid-template-columns: minmax(0, 1fr); } - .doc-head h1 { font-size: var(--type-display); } } diff --git a/docs/guide-color.html b/docs/guide-color.html new file mode 100644 index 0000000..887d893 --- /dev/null +++ b/docs/guide-color.html @@ -0,0 +1,617 @@ + + + + + +COLOR — Amber Console + + + + + + + + + + + + + + + + + + + + + + + + +
+Skip to content + + + + + + + + + + +
+
+ + +
+ ▮ Plasma Gases +

Gas emitting directly. No phosphor in the stack.

+
+ Plasma gases + + + + +
+
+ + +
+ ▯ CRT Phosphors +

A beam on a phosphor, which emits and then persists.

+
+ CRT phosphors +

General purpose · built to be read

+ + + + +

Specialized · built for an instrument

+ + + +
+
+ + + +
+ Switches + +

Simulation · never a color

+
+ + + + +
+ +

Style & engine · never the hardware

+
+ + + + +
+ + +

The retrace band is part of the CRT simulation, and there is no sweep across a plasma panel to switch off.

+

JS Effects need the CRT simulation and a phosphor that holds long enough to see.

+ + + +
+ + +
+
+ State +
+
+
Technology
+ +
PLASMA
+
+
+
Emitter
+ +
NEON
+
+
+
Emission
+ +
585.2 nm
+
+
+
Mode
+ +
PRESET
+
+
+
Engine
+ +
CSS + JS
+
+
+
+ + +
+ Technology + +

A gas in a sealed gap, struck by a + sustain pulse. It emits directly — no phosphor in the stack — so the panel lights one + hue and varies only how hard it is driven.

+ + + + +

The gas the plasma panel was actually built on, and what this framework opens to. In a low-pressure glow the 2p→1s array dominates — the lowest excited states that radiate visibly, populated far more heavily than anything above them — so the discharge is one narrow orange-red rather than a mixture. Nixie tubes and the first flat panels ran on it.

+ + + + + + + + +
+
+ +
+ +
+ + + A preset sets the display and its simulation. Everything stays adjustable — and Reset puts all of it back, switches, styles and engine alike. +
+
+ + +
+ + + + + + + +
+ +
+
01 AMBER CONSOLE · SYSTEM GUIDE
+

COLOR

+
+

Five discharge intensities over three warm blacks. Every color decision in the system is a choice of intensity, and intensity means energization: bright is live, faint is inert.

+ +
+

THE PALETTES

+
+

A palette is not a theme and not a light/dark pair — it is a specific piece of + hardware, and naming one takes two attributes on the root element: + data-ac-tech is the technology, what is making light at all; + data-ac-emitter is which gas, or which phosphor, inside it. An emitter is only + meaningful within its technology — neon is a gas and exists only under plasma, + p3 is a phosphor and exists only under CRT — so every block is selected by both, and a + mismatched pair selects nothing rather than quietly rendering the wrong hardware. Pick one from + the two display catalogs on the board at the top of the page; the menu bar carries the readout, + not the choice. Both ramps are shown below regardless of which is active, and both are held to + the same contrast gate.

+
+ +

PLASMA / NEON · 24° · THE DEFAULT

+

A monochrome AC plasma panel. The light is neon + emitting directly from the gas — no phosphor anywhere in the stack. The hue is derived, not picked: + weight the Ne I visible lines by the CIE 1931 observer and the discharge sits at x=0.631 y=0.369, just + outside sRGB. That maps to 19°, which is a DC neon tube; a pulsed sustain enriches the 585.2nm line and + walks it up. 19–31° is the defensible band and 24° is its middle.

+
+
--EMIT-100 · #FFA86DHOT HIGHLIGHT, FOCUS
+
--EMIT-90 · #FF6B08PRIMARY — --ac-ink, --ac-fill
+
--EMIT-70 · #DD5800SECONDARY TEXT
+
--EMIT-50 · #AB4500DIM, DISABLED
+
--EMIT-30 · #5B2500TRACE, GHOST RULES
+
+
+
--SCREEN · #100600
+
--SCREEN-RAISED · #1B0C02
+
--SCREEN-WELL · #060200
+
--ON-FILL · #1E0C00
+
+ +

CRT / P3 · 38° · THE PHOSPHOR

+

The classic amber CRT phosphor (P3): a broad + ~590nm band with real green content, where neon is a line spectrum with almost none. Historically this is + a different display technology — but it is what most people mean by "amber terminal", it is the + ramp the source design system was drawn against, and it pairs naturally with .ac-crt.

+
+
--EMIT-100 · #FFD052HOT HIGHLIGHT, FOCUS
+
--EMIT-90 · #FFAE1EPRIMARY — --ac-ink, --ac-fill
+
--EMIT-70 · #CD8817SECONDARY TEXT
+
--EMIT-50 · #8D5B10DIM, DISABLED
+
--EMIT-30 · #4A2F08TRACE, GHOST RULES
+
+
+
--SCREEN · #0D0700
+
--SCREEN-RAISED · #170E02
+
--SCREEN-WELL · #060200
+
--ON-FILL · #1A0E00
+
+ + +

PLASMA / HELIUM · PALE PINK

+

Helium has no low manifold to dominate the way the heavier gases do — its visible lines all fall out of + n=3 and n=4 decaying to n=2, at comparable energies, so nothing outranks the rest. The strong yellow at + 587.6nm carries the luminance while 447.1nm and 667.8nm pull the result off the blackbody locus toward + purple. Integrates to x=0.3944 y=0.2986: a near-white with a pink cast, which is what a helium tube is.

+
+
--EMIT-100 · #FFA2B9HOT HIGHLIGHT, FOCUS
+
--EMIT-90 · #DC7D96PRIMARY — --ac-ink, --ac-fill
+
--EMIT-70 · #BC6A80SECONDARY TEXT
+
--EMIT-50 · #925163DIM, DISABLED
+
--EMIT-30 · #502A34TRACE, GHOST RULES
+
+
+
--SCREEN · #0E0809
+
--SCREEN-RAISED · #1B1214
+
--SCREEN-WELL · #060404
+
--ON-FILL · #201216
+
+ +

PLASMA / ARGON · PALE VIOLET-LAVENDER

+

Argon puts most of its power into the 696–772nm array, where the CIE observer scores under 0.01 — which is + why argon is dim, and why its 696.5nm peak is the strongest line but not the color. What you see + is the 415–475nm group, a hundred times weaker on the meter and a hundred times better placed for the eye. + x=0.2163 y=0.1047, desaturated 35% toward D65 to fit sRGB: paler here than in the tube.

+
+
--EMIT-100 · #C9B0FFHOT HIGHLIGHT, FOCUS
+
--EMIT-90 · #AF81FFPRIMARY — --ac-ink, --ac-fill
+
--EMIT-70 · #9F5DFFSECONDARY TEXT
+
--EMIT-50 · #8925F1DIM, DISABLED
+
--EMIT-30 · #4B1088TRACE, GHOST RULES
+
+
+
--SCREEN · #0B0812
+
--SCREEN-RAISED · #171222
+
--SCREEN-WELL · #050309
+
--ON-FILL · #1B112C
+
+ +

PLASMA / KRYPTON · PALE VIOLET-WHITE

+

A blue-violet cluster at 427–450nm against the 557.0nm green and the 587.1nm yellow. Spread that wide + integrates close to white — x=0.3153 y=0.2551 — which is why the panel reads violet rather than any one of + those lines. The strongest visible krypton line is 587.1nm, not the 557.0nm that is often quoted.

+
+
--EMIT-100 · #EAA5EBHOT HIGHLIGHT, FOCUS
+
--EMIT-90 · #BF86C0PRIMARY — --ac-ink, --ac-fill
+
--EMIT-70 · #A372A3SECONDARY TEXT
+
--EMIT-50 · #7F587FDIM, DISABLED
+
--EMIT-30 · #442E45TRACE, GHOST RULES
+
+
+
--SCREEN · #0B080B
+
--SCREEN-RAISED · #181318
+
--SCREEN-WELL · #050405
+
--ON-FILL · #1B141B
+
+ +
+

The ramp is --ac-emit-100 through + --ac-emit-30. It used to be --amber-*, which named a hue rather than a ramp and was + already only historically true — under NEON the color is not amber. With a lavender and a pink in the + file it stopped being defensible at all. --amber-* was removed in 2.0, + not aliased — a custom property that no longer exists resolves to nothing rather than erroring, so + this one fails silently and is worth grepping for. See + DEPRECATED. + Adding an emitter, or a whole technology, means adding one block to colors.css: five + stops, three surfaces, --ac-on-fill, the four --ac-halo-N triples the glow is built + from — and for the gases that block is generated by scripts/derive-gas.mjs, not typed.

+

The older data-ac-gas="neon" and + data-ac-gas="amber" still work and go in 3.0. The name was the bug: AMBER was never a gas, + it is the P3 CRT phosphor, and calling it one is exactly the confusion the pair above exists to + prevent.

+
+

SEMANTIC ALIASES

+
+ + + + + + + + +
TOKENMAPS TOUSE
--ac-ink / --ac-ink-brightemit-90 / 100Body text; bright for live values and hover.
--ac-ink-dim / --ac-ink-faintemit-70 / 50Labels and legends; faint for disabled. Neither glows — and neither does inverse video.
--ac-fill / --ac-on-fillemit-90 / per paletteInverse-video surfaces and the dark text on them.
--ac-stroke / --ac-stroke-dimemit-90 / 50All borders, always 2px. Dim for secondary frames.
+
+
+ THE THREE EMPHASIS LEVELS — NO FOURTH EXISTS + STATUS:AUTO MODE  PRESETS COMPLETED + STATUS:AUTO MODE  PRESETS COMPLETED + ✳ LAMP FAULT ✳ +
+
+ + + +
+ + + +
+
+ + + + + diff --git a/docs/guide-controls.html b/docs/guide-controls.html new file mode 100644 index 0000000..373dbef --- /dev/null +++ b/docs/guide-controls.html @@ -0,0 +1,752 @@ + + + + + +CONTROLS — Amber Console + + + + + + + + + + + + + + + + + + + + + + + + +
+Skip to content + + + + + + + + + + +
+
+ + +
+ ▮ Plasma Gases +

Gas emitting directly. No phosphor in the stack.

+
+ Plasma gases + + + + +
+
+ + +
+ ▯ CRT Phosphors +

A beam on a phosphor, which emits and then persists.

+
+ CRT phosphors +

General purpose · built to be read

+ + + + +

Specialized · built for an instrument

+ + + +
+
+ + + +
+ Switches + +

Simulation · never a color

+
+ + + + +
+ +

Style & engine · never the hardware

+
+ + + + +
+ + +

The retrace band is part of the CRT simulation, and there is no sweep across a plasma panel to switch off.

+

JS Effects need the CRT simulation and a phosphor that holds long enough to see.

+ + + +
+ + +
+
+ State +
+
+
Technology
+ +
PLASMA
+
+
+
Emitter
+ +
NEON
+
+
+
Emission
+ +
585.2 nm
+
+
+
Mode
+ +
PRESET
+
+
+
Engine
+ +
CSS + JS
+
+
+
+ + +
+ Technology + +

A gas in a sealed gap, struck by a + sustain pulse. It emits directly — no phosphor in the stack — so the panel lights one + hue and varies only how hard it is driven.

+ + + + +

The gas the plasma panel was actually built on, and what this framework opens to. In a low-pressure glow the 2p→1s array dominates — the lowest excited states that radiate visibly, populated far more heavily than anything above them — so the discharge is one narrow orange-red rather than a mixture. Nixie tubes and the first flat panels ran on it.

+ + + + + + + + +
+
+ +
+ +
+ + + A preset sets the display and its simulation. Everything stays adjustable — and Reset puts all of it back, switches, styles and engine alike. +
+
+ + +
+ + + + + + + +
+ +
+
05 AMBER CONSOLE · SYSTEM GUIDE
+

CONTROLS

+
+

Live components from the library. Hover to brighten, press to invert, tab to see the dashed focus ring.

+ +
+
+ +
BUTTON — VARIANTS +
+ + + + + +
+ Outline is default. Filled is inverse video — one primary per region. Dim is secondary. Disabled drops to faint and loses its glow. + class="ac-btn" ac-btn--filled ac-btn--dim ac-btn--block [disabled] +<!-- or drive it with ARIA: --> <button class="ac-btn" aria-pressed="true"> + --block takes the full + width of whatever it is in, which is what you want at the foot of a narrow instrument + column where a key floated left reads as unfinished: +
+ +
+

More than one filled button in a region. Inverse video means "the machine is + doing this"; two of them means neither reads.

+
+ +
BUTTON — SIZES +
+ + + +
+ class="ac-btn ac-btn--sm" ac-btn ac-btn--lg +

--sm on a touch panel: it computes to about 30px tall, under the + 44px hit-target floor. Use it only in dense, mouse-driven tooling.

+
+ +
BUTTON — TOUCH PADS (LABEL TOP-LEFT, BODY EMPTY) +
+ + + +
+ Sized for a gloved finger; the active mode is the filled one. Selection is state, not decoration. + class="ac-btn ac-btn--lg ac-btn--pad ac-grow" +

A row of pads without .ac-grow (or min-width:0) — + the 130px min-width floor will overflow a narrow viewport.

+
+ + +
BUTTON — CLASSIC VS ROUNDED +
+ + + + + +
+
+ + + + + +
+ Same five controls: upper row .ac-rounded, lower row + .ac-classic — which is the default, so the lower row is what a page looks like untouched. + The four corners are not cut the same. These keys were drawn as solid objects lit from + the top left, so the far corner is barely cut and the near one is cut hardest — 2 / 4 / 8 / 4 px running + down the diagonal. Cut all four alike and the key reads as an octagon instead of an object. The extrusion + is offset along that same diagonal, which is why the bottom and right edges carry a heavy band and the top + and left stay a single stroke: one claim about where the light is, made twice. + A filled key is IN — the band flips to the top and left, because the near + face of a sunken key is the upper one. The key does not move: a transform reads correctly but contributes + to scrollable overflow, and a latched key flush against its container pushed 4px past it. A box-shadow + costs nothing either way, so the light moves and the geometry does not. + Locked keeps neither edge nor halo: inert hardware does not glow. Labels park top-left + wherever a key is taller than its text, which is the classic face — a label plus room for a value. + Fn is .ac-btn--pad, the 96px touch pad, and it composes with either corner. + Keypad digits are exempt and stay centered; one character has no label/value split to serve. + <!-- classic is the default; these are the ways to say otherwise --> +<div class="ac-rounded"> … </div> <!-- one region back to the arc --> +<div class="ac-classic"> … </div> <!-- one region back to the cut --> +<html data-ac-style-classic="off"> <!-- the whole page; what the demo switch writes --> +

Both corner styles in one region. They are two readings of the same hardware, and + mixing them says the panel was assembled from two of them. Scope either class to a whole frame, or set + the flag on the root — this specimen is the documented exception.

+

Firefox and older Safari have no corner-shape, so they quantize + the radius to a hard 2px instead of cutting a chamfer. Deliberate: that is the same statement in a + property every engine has had for fifteen years, so both positions of the switch mean something + everywhere. The extrusion and the top-left label are identical on both paths.

+
+ +
TABS — SOFT KEYS, TITLE CASE +
+
+ + + +
+ +
+ Functions +
LampRUN
+
+ + +
+ Arrow keys, Home and End move between them when the optional JS module is loaded. + The selected tab is stated twice, and both are + load-bearing. aria-selected="true" is the truth for assistive tech and + is what the CSS styles; .ac-tab--active is the same fact as a class, for a + consumer whose own component sets a class and not ARIA. The JS module writes both, along + with tabindex — only the selected tab is tabbable, which is the roving-focus + half of the tablist model. Driving this from React or Vue? Write the same attributes + yourself and skip the module entirely; nothing here reads back. + <div class="ac-tabs" role="tablist" data-ac="tabs" aria-label="Console views"> + <button class="ac-tab ac-tab--active" role="tab" aria-selected="true" + tabindex="0" id="key-1" aria-controls="panel-1">Functions</button> + <button class="ac-tab" role="tab" aria-selected="false" tabindex="-1" + id="key-2" aria-controls="panel-2">Alarms</button> +</div> + +<div id="panel-1" role="tabpanel" aria-labelledby="key-1"> … </div> +<div id="panel-2" role="tabpanel" aria-labelledby="key-2" hidden> … </div> +

Navigation between pages — that is .ac-nav. Tabs swap a region, + not a screen.

+
+ +
+
INPUT + SELECT — RECESSED WELLS + + + + + Invalid is blink plus inverse video. There is no red border, because there is no red. + <label class="ac-field"> + <span class="ac-field__label">Title:</span> + <input class="ac-input" type="text"> +</label> +<span class="ac-select"><select class="ac-input">…</select></span> +
+
CHECKBOX — STATUS BITS (NO CHECK GLYPH) + + + + + + A set bit fills solid, exactly like a hardware indicator lamp. + <label class="ac-check"><input type="checkbox"><span>Spare</span></label> +

A single yes/no setting the operator flips — that reads better as an + .ac-toggle, which states ON or OFF in words.

+
+
+ +
+
RADIO — EXCLUSIVE MODES + + + + + The last one is .ac-radio--disabled. Like the + disabled checkbox and the disabled key, it drops to faint and loses its halo — + inert hardware does not glow. Set the class alongside the input's own + disabled; the class styles the label, the attribute is what actually stops + the click. + <label class="ac-radio"><input type="radio" name="mode"><span>Auto</span></label> +<label class="ac-radio ac-radio--disabled"><input type="radio" disabled>…</label> +

More than about five options — that is an .ac-select.

+
+
TOGGLE — HARD SNAP, ON/OFF READOUT + + + + The thumb jumps; it does not slide. Text state is mandatory — a switch position alone is ambiguous on a monochrome panel. The middle one is the CSS-only variant: no JavaScript at all. + <button class="ac-toggle" data-ac="toggle" aria-pressed="false">…</button> +<label class="ac-toggle ac-toggle--input">…<input type="checkbox">…</label> +
+
+ +
KEYPAD — NUMERIC ENTRY FOR GLOVED HANDS +
+ + + + + + + + + + + + +
+ The same pad + --dense, with __key--wide on the Enter key so it spans two of the + three columns — the layout every calculator and entry keypad settles on, because the key you + press last is the one worth making hard to miss: +
+ + + + + + + + + + + +
+ Keys are square and sized for a gloved finger. + .ac-keypad--dense is the same pad with the gap and the key floor pulled in, for + a mouse-driven panel or a sidebar where the full pad does not fit — it is a + concession, not a variant to reach for first, and it drops below the 44px touch + target the full pad is built to clear. Digits stay centered under either corner style; a + single character has no label-and-value split for the classic top-left label to + serve. + <div class="ac-keypad"><button class="ac-btn ac-keypad__key">7</button>…</div> +<div class="ac-keypad ac-keypad--dense"> <!-- mouse-driven only --> +<button class="ac-btn ac-keypad__key ac-keypad__key--wide">Ent</button> +

Any screen with a keyboard attached. This exists because there is no keyboard + in a projection booth. And --dense on a touch panel, for the same reason + .ac-btn--sm does not belong on one.

+
+ +
DIALOG — IT APPEARS; IT DOES NOT FADE IN + + Flat backdrop, no blur, no scale. Built on native <dialog>, so Escape and focus trapping come from the browser. + .ac-dialog--wide is the second and last size, for + the one case a confirm box cannot serve: a dialog carrying a table or a form of + more than about four fields, where the default measure would wrap every row. There is no + small variant and no full-screen one — a dialog narrower than this is a banner, and a + dialog the size of the screen is a screen. + <dialog class="ac-dialog"><form method="dialog"> + <h2 class="ac-dialog__title">Confirm</h2> + <div class="ac-dialog__body">…</div> + <div class="ac-dialog__actions">…</div> +</form></dialog> + +<dialog class="ac-dialog ac-dialog--wide"> <!-- a table, or a real form --> +

Anything the operator must see machine state behind. A modal on a control + surface hides the panel; use an .ac-banner instead.

+
+ +
+
+ + + +
+ + + +
+
+ + +
+

Confirm

+
+ THE BACKDROP IS FLAT BLACK AT 72%. NO BLUR, NO SCALE, NO FADE — + A REDRAWN SCREEN HAS NO IN-BETWEEN FRAMES. +
+
+ + +
+
+
+ + + + + diff --git a/docs/guide-deprecations.html b/docs/guide-deprecations.html new file mode 100644 index 0000000..f1b23c9 --- /dev/null +++ b/docs/guide-deprecations.html @@ -0,0 +1,703 @@ + + + + + +DEPRECATED — Amber Console + + + + + + + + + + + + + + + + + + + + + + + + +
+Skip to content + + + + + + + + + + +
+
+ + +
+ ▮ Plasma Gases +

Gas emitting directly. No phosphor in the stack.

+
+ Plasma gases + + + + +
+
+ + +
+ ▯ CRT Phosphors +

A beam on a phosphor, which emits and then persists.

+
+ CRT phosphors +

General purpose · built to be read

+ + + + +

Specialized · built for an instrument

+ + + +
+
+ + + +
+ Switches + +

Simulation · never a color

+
+ + + + +
+ +

Style & engine · never the hardware

+
+ + + + +
+ + +

The retrace band is part of the CRT simulation, and there is no sweep across a plasma panel to switch off.

+

JS Effects need the CRT simulation and a phosphor that holds long enough to see.

+ + + +
+ + +
+
+ State +
+
+
Technology
+ +
PLASMA
+
+
+
Emitter
+ +
NEON
+
+
+
Emission
+ +
585.2 nm
+
+
+
Mode
+ +
PRESET
+
+
+
Engine
+ +
CSS + JS
+
+
+
+ + +
+ Technology + +

A gas in a sealed gap, struck by a + sustain pulse. It emits directly — no phosphor in the stack — so the panel lights one + hue and varies only how hard it is driven.

+ + + + +

The gas the plasma panel was actually built on, and what this framework opens to. In a low-pressure glow the 2p→1s array dominates — the lowest excited states that radiate visibly, populated far more heavily than anything above them — so the discharge is one narrow orange-red rather than a mixture. Nixie tubes and the first flat panels ran on it.

+ + + + + + + + +
+
+ +
+ +
+ + + A preset sets the display and its simulation. Everything stays adjustable — and Reset puts all of it back, switches, styles and engine alike. +
+
+ + +
+ + + + + + + +
+ +
+
09 AMBER CONSOLE · SYSTEM GUIDE
+

DEPRECATED

+
+

Everything the framework has taken away, everything it is going to take away, + and what to write instead. If you are upgrading from 1.x, this is the chapter.

+ +
+

THE SHORT VERSION

+
+

The 1.x token names are gone. The 1.x attributes and + JavaScript calls all still work. So the upgrade only breaks for people who + overrode custom properties — if you linked the stylesheet and wrote your own markup, + 2.0 is a drop-in and there is nothing on this page for you.

+
+ +
+
DEPRECATED + Still works, still tested, still shipped. Announced in the + CHANGELOG and listed here with the release that removes it. Nothing is + removed in a minor or patch release — a deprecation announced in 2.x goes in 3.0 at + the earliest, so there is always a whole major cycle to migrate in.
+
REMOVED + Gone from the code. Only ever happens in a + major version. And while a feature is listed as deprecated it keeps working + as documented — it does not quietly degrade first. There is one deliberate + exception, and it is argued below: the custom properties were removed outright rather than + aliased, because a silently-ignored alias turned out to be worse than an honest + absence.
+
+ +

STATUS AT A GLANCE

+
+ + + + + + + + + + + +
FEATURESTATUSDEPRECATED INREMOVED INUSE INSTEAD
Unprefixed tokens — --ink, --gap, …REMOVED—2.0--ac-ink, --ac-gap, …
--amber-* ramp tokensREMOVED1.x2.0--ac-emit-100 … --ac-emit-30
--gas-* halo tokensREMOVED1.x2.0--ac-halo-1 … --ac-halo-4
data-ac-style-smearREMOVED—2.0Nothing — the smear is automatic now
data-ac-gas="neon" | "amber"Deprecated2.03.0data-ac-tech + data-ac-emitter
data-ac-gas-toggleDeprecated2.03.0[data-ac-display] radios
AmberConsole.afterglow(el)Deprecated2.03.0AmberConsoleEffects.afterglow(el)
+
+
+ +
+

REMOVED IN 2.0

+ +

EVERY CUSTOM PROPERTY IS NOW --AC- PREFIXED

+
+

This is the only breaking change in 2.0, and it fails + silently. Setting --ink: lime does not error, does not warn, and does + not work — the framework reads --ac-ink and never looks at --ink.

+
+ /* 1.x — silently ignored in 2.0 */ +:root { --ink: #ffb000; --radius: 0; --leading: 1.4; } + +/* 2.0 */ +:root { --ac-ink: #ffb000; --ac-radius: 0; --ac-leading: 1.4; } +
+

To migrate: put ac- in front of every Amber Console + property you set. Values, cascade behaviour and per-palette resolution are all + unchanged — this is a rename and nothing more. The complete list of what to rename + to is in REFERENCE · EVERY TOKEN.

+
+ +
+
WHY THEY WERE NOT KEPT AS ALIASES + They were, briefly, and it was worse than useless. Nothing + in the framework read the old names, so --ink: red did nothing + and said nothing — the hardest kind of bug to diagnose. An absent name at + least behaves consistently: it does nothing, everywhere, for one obvious reason.
+
WHY THEY WERE RENAMED AT ALL + Not tidiness. dist/amber-console.layer.css + exists so the framework can be embedded in an app that owns the page, and cascade + layers do not protect custom properties — an unlayered + :root { --radius: 12px } in the host beats a layered one. A host that happened + to use --radius, --gap or --cols silently re-cornered + every button, panel, dialog, input, toggle and meter in the framework. --gap + and --cols were near-certain collisions in any real codebase. + stylelint enforces the prefix now, so the next token cannot go bare.
+
+ +

--AC-GAP AND --AC-COLS NEED RENAMING AT THE CALL SITE

+
+

These two are consumer-set: .ac-row, + .ac-stack and .ac-grid read them off your element, not off + :root. So there was no framework-level value to bridge, and no alias was possible + even in principle. Rename them where you write them.

+
+ <!-- 1.x --> +<div class="ac-row" style="--gap: 12px"> +<div class="ac-grid" style="--cols: 3"> + +<!-- 2.0 --> +<div class="ac-row" style="--ac-gap: 12px"> +<div class="ac-grid" style="--ac-cols: 3"> + +

--AMBER-* AND --GAS-*

+
+

Deprecated in 1.x, removed here with the rest. + --amber-* named a hue rather than a ramp, which stopped being + defensible once the catalog held a lavender and a pink. --gas-* named a + gas when what it carried was the halo — the light scattered in the glass — which is a + property of the emitter, not the fill.

+
+
+ + + + + + +
1.X2.0
--amber-100 … --amber-30--ac-emit-100 … --ac-emit-30
--gas-1 … --gas-4--ac-halo-1 … --ac-halo-4
+
+ +

DATA-AC-STYLE-SMEAR

+
+

The scroll smear no longer has a switch. It is simply part of what + amber-console.effects.js does: on wherever the persistence simulation is running + and the engine flag permits it, off everywhere else.

+

It was a style flag that could only ever be on under CRT — every selector + implementing it is scoped to .ac-afterglow, and a plasma cell is driven + continuously and has nothing that trails. So it spent most of its life disabled and explaining + why, which is a third axis of state for a preference nobody was expressing. + prefers-reduced-motion still stops the smear, which was the only accessibility + case the flag was actually carrying.

+

Nothing breaks if you leave the attribute in your markup — + it is simply inert. Delete it at your convenience.

+

The mechanism it was written for did not go with it. A style flag can still + declare the frame class it is a no-op without, and the switch will disable itself and say why + — data-ac-style-retrace is the flag that uses it now. See + SCREEN & BOARD.

+
+
+ +
+

DEPRECATED — STILL WORKS, REMOVED IN 3.0

+ +

DATA-AC-GAS="NEON" | "AMBER"

+
+

The 1.x one-attribute palette switch. It still selects a + palette, so a 1.x page keeps rendering.

+
+ <!-- Deprecated, works through 2.x --> +<html data-ac-gas="neon"> +<html data-ac-gas="amber"> + +<!-- 2.0 --> +<html data-ac-tech="plasma" data-ac-emitter="neon"> +<html data-ac-tech="crt" data-ac-emitter="p3"> +
+

The name was the bug. amber was never a gas — + it is P3, a CRT phosphor — and a control that calls a phosphor a gas is exactly the confusion + 2.0 exists to remove. An emitter is only meaningful inside its technology, which is why naming + a palette now takes two attributes: data-ac-tech is what is making light at all, + data-ac-emitter is which gas or which phosphor inside it.

+
+ +
IT IS A PARTIAL ALIAS — THE ONE BEHAVIOURAL DIFFERENCE WORTH KNOWING + data-ac-gas carries the colour + but not the persistence: +
+ + + + + + +
MARKUPINKTAIL
data-ac-tech="crt" data-ac-emitter="p3"#ffae1e25 ms — P3's real decay
data-ac-gas="amber"#ffae1e105 ms — the generic default
+
+ So a 1.x page gets P3's amber with the generic plasma tail + rather than P3's own. Visually it is a slightly longer afterglow and nothing more; nothing + breaks. It is not worth fixing in the deprecated path, because the two-attribute form is right + there — but if your page leans on persistence timing, migrate rather than relying on the + alias. Migrating also unlocks the other nine palettes: + data-ac-gas can only ever reach these two and will not grow to reach more. +
+ +

DATA-AC-GAS-TOGGLE

+
+

The old two-position GAS button hook. Still cycles the same two palettes + through the new attributes, so a page using it stays correct while it migrates. It cannot + reach the rest of the catalog.

+

Replace it with one [data-ac-display] radio per palette — the + catalog is markup, not a table inside the JavaScript, so you can ship your own rows without + touching the module.

+
+ <input type="radio" name="ac-display" data-ac-display + data-ac-tech="crt" data-ac-emitter="p3" data-ac-sims="crt"> + +

AMBERCONSOLE.AFTERGLOW(EL)

+
+

A forwarding shim. Ghosting moved to + amber-console.effects.js, because it is an effect and + amber-console.js is behaviour — and the two files are independently + optional, which only means anything if neither imports the other.

+
+ AmberConsole.afterglow(row); // deprecated, still works +AmberConsoleEffects.afterglow(row); // 2.0 +row.remove(); +
+

The shim delegates when the effects module is present and does nothing when + it is not — the same no-op it always was with the simulation switched off. Call it + before you remove or empty the element: a detached node has no rect, so there + is nowhere to pin the ghost.

+
+
+ +
+

CHECKING YOUR OWN CODEBASE

+

Three greps. The first two are the breaking change; the third is the + housekeeping.

+ +
FIND BARE TOKENS + Every line this prints sets or reads an Amber Console property + that 2.0 no longer sees. + grep -rnE '\-\-(ink|fill|screen|radius|leading|gap|cols|stroke|emit|halo|glow|space|type|tracking|font|border-w|decay|persist|drive|edge|on-fill|mesh|blink|flicker|smear|ghost|afterimage|amber|gas)\b' . +
+ +
OR LIST THE PROPERTY NAMES THEMSELVES + Which also catches any bare token the list above misses. Your + own custom properties show up here too, so read it as a shortlist rather than a verdict. + grep -rhoE '\-\-[a-z][a-z0-9-]*' . | grep -v '^--ac-' | sort -u +
+ +
FIND THE DEPRECATED HOOKS + These all still work today and go in 3.0. + grep -rn 'data-ac-gas\|AmberConsole\.afterglow\|data-ac-style-smear' . +
+ +

This chapter is the on-site copy of + DEPRECATIONS.md in the repository, which is the canonical one and ships in the npm + package. CHANGELOG.md has the full reasoning behind each change, per release.

+
+ + + +
+ + + +
+
+ + + + + diff --git a/docs/guide-display.html b/docs/guide-display.html new file mode 100644 index 0000000..49770e5 --- /dev/null +++ b/docs/guide-display.html @@ -0,0 +1,674 @@ + + + + + +DISPLAY — Amber Console + + + + + + + + + + + + + + + + + + + + + + + + +
+Skip to content + + + + + + + + + + +
+
+ + +
+ ▮ Plasma Gases +

Gas emitting directly. No phosphor in the stack.

+
+ Plasma gases + + + + +
+
+ + +
+ ▯ CRT Phosphors +

A beam on a phosphor, which emits and then persists.

+
+ CRT phosphors +

General purpose · built to be read

+ + + + +

Specialized · built for an instrument

+ + + +
+
+ + + +
+ Switches + +

Simulation · never a color

+
+ + + + +
+ +

Style & engine · never the hardware

+
+ + + + +
+ + +

The retrace band is part of the CRT simulation, and there is no sweep across a plasma panel to switch off.

+

JS Effects need the CRT simulation and a phosphor that holds long enough to see.

+ + + +
+ + +
+
+ State +
+
+
Technology
+ +
PLASMA
+
+
+
Emitter
+ +
NEON
+
+
+
Emission
+ +
585.2 nm
+
+
+
Mode
+ +
PRESET
+
+
+
Engine
+ +
CSS + JS
+
+
+
+ + +
+ Technology + +

A gas in a sealed gap, struck by a + sustain pulse. It emits directly — no phosphor in the stack — so the panel lights one + hue and varies only how hard it is driven.

+ + + + +

The gas the plasma panel was actually built on, and what this framework opens to. In a low-pressure glow the 2p→1s array dominates — the lowest excited states that radiate visibly, populated far more heavily than anything above them — so the discharge is one narrow orange-red rather than a mixture. Nixie tubes and the first flat panels ran on it.

+ + + + + + + + +
+
+ +
+ +
+ + + A preset sets the display and its simulation. Everything stays adjustable — and Reset puts all of it back, switches, styles and engine alike. +
+
+ + +
+ + + + + + + +
+ +
+
06 AMBER CONSOLE · SYSTEM GUIDE
+

DISPLAY

+
+

The machine's own voice: frames, strips, readouts, and the single loudest element the system permits.

+ +
+
+ +
STATUSBAR — INVERSE (MACHINE VOICE) AND LINE (DATA ROW) +
+
STATUS:AUTO MODEPRESETS COMPLETED
+
SHOW TIME 0000:00 (MM:SS)DATE 07/23/26TIME 22:28:45
+
+ class="ac-statusbar" ac-statusbar--line role="status" +

Prose. A status bar holds KEY:VALUE strings, not sentences.

+
+ +
+
PANEL — LEGEND CHIP BREAKS THE BORDER +
Show Information +
TRAILER:
+
TITLE:HEAT
+
+ <div class="ac-panel"><span class="ac-panel__title">Show Information</span>…</div> +

A panel over a non---ac-screen background, unless you also set + --ac-panel-title-bg — the chip paints its own background to mask the border.

+
+
PANEL — INVERSE BAR TITLE +
Frame Count
+
255315
+
+ <div class="ac-panel ac-panel--bar"><div class="ac-panel__barTitle">Frame Count</div>…</div> +
+
+ +
+
READOUT — INSTRUMENT VALUE +
+
Lamp Volts
41.0V
+
Lamp Amps
154A
+
Frames
255315
+
Reel
04
+
+ Three sizes and one arrangement. + --lg is the hero value a room reads from the doorway; + --inline puts the label beside the number instead of above it, for a status + strip or a menu bar where a stacked readout would double the height of the row. The label + is still a label — inline is about where it sits, not about dropping it. + <div class="ac-readout"> + <div class="ac-readout__label">Lamp Volts</div> + <div class="ac-readout__value">41.0<span class="ac-readout__unit">V</span></div> +</div> +class="ac-readout ac-readout--lg" ac-readout--inline +

Text. A readout is for a number that changes.

+
+
BADGE — MICRO TAGS, PIXEL FACE +
+ CH 04ArmedSpare +
+ class="ac-badge" ac-badge--filled ac-badge--dim +

Anything the operator must read at a glance — 8px is a label, not a message.

+
+
+ +
+
TABLE — THE DATA GRID THIS GENRE LIVES ON +
+ + + + + + + +
TIMECODEDESCRIPTIONFRAMESTATE
22:28:41E-114DOUSER NOT CONFIRMED255315ACTIVE
22:14:02W-062LAMP CURRENT LOW 148A234880CLEARED
21:58:37W-041REEL UNIT SLACK212104CLEARED
+
+ The same table + --dense, which pulls the cell padding in from 6/12 to 2/10. It is for a log + that has to show twenty rows in the space of eight — the type size does not change, so + nothing gets harder to read; only the air between rows goes: +
+ + + + + + + + +
TIMECODEDESCRIPTIONFRAMESTATE
22:28:41E-114DOUSER NOT CONFIRMED255315ACTIVE
22:14:02W-062LAMP CURRENT LOW 148A234880CLEARED
21:58:37W-041REEL UNIT SLACK212104CLEARED
21:41:19I-003SHOW STARTED000000LOGGED
+
+ class="ac-table ac-table--zebra ac-table--dense" <td class="ac-table__num"> +<tr class="ac-table__row--active ac-blink"> +

A fixed set of named readings — that is .ac-list.

+
+
LIST — KEYED LOG WITH LEADER DOTS +
+
Lamp Hours
1284
+
Reel
04 / 06
+
Format
70MM
+
+
+
Lamp V
41.0
+
Lamp A
152
+
+
+
Rack
B
+
Bay
12
+
+ Four modifiers, two axes. + --dense is spacing — it tightens the rows, and it is what the State panel on + the board above uses. --dim and --bright are + drive level, not decoration: a dim list is context you are not reading + right now, a bright one is the reading the screen exists for. They compose, and they + follow the same law as everything else here — the halo moves with the ink, so a dim list + scatters less light rather than merely being greyer. + <dl class="ac-list"><div class="ac-list__item"> + <dt class="ac-list__key">Reel</dt><span class="ac-list__fill"></span> + <dd class="ac-list__value">04 / 06</dd></div></dl> +class="ac-list ac-list--dense" ac-list--dim ac-list--bright +

Sortable or multi-column data. That is a table.

+
+
+ +
+
METER — STEPPED BARGRAPH, NEVER A SMOOTH FILL +
+
+
050100
+
+
+
+
050100
+
+
+
+
050100
+
+ Three modifiers. + --dim recedes, --lg is the tall bar for the one reading a + supervisor watches from across the room, and --alarm is the bar in a + condition — it is a state, so drive it from your data and take it off again when + the value comes back, exactly as you would the blink on a row. + The fill is always stepped, at every size: a smooth bar implies a + resolution the instrument does not have. + <div class="ac-meter__track" style="--ac-meter-value: 72"> + <div class="ac-meter__bar"></div></div> +class="ac-meter ac-meter--lg" ac-meter--dim ac-meter--alarm +

A single precise reading. A number the operator can write down beats a bar + they have to estimate — use an .ac-readout.

+
+
SPINNER — A CHARACTER, NOT A CIRCLE +
+ + LOADING PRESET BANK +
+
+ + steps(4), 0.8s +
+ <span class="ac-spinner" role="status" aria-label="Working"></span> +

Anything whose duration you know. A machine that can measure progress should + show an .ac-meter; a spinner admits it cannot.

+
+
+ +
BANNER — ONE PER SCREEN, THE LOUDEST ELEMENT +
+
Remote Mode
+ +
Maintenance Window 02:00
+
+ ✳✳ glyphs are added by the component. Blink is reserved for a live, unacknowledged condition — and it is always paired with inverse video and the glyphs, so it still reads as an alarm when blink is switched off. + --filled is inverse video and the loudest thing + the framework can draw. --dim is the other end: a standing notice that is true + but is not news — a scheduled window, a mode the operator already knows about. It is the + variant that lets the rule above stay honest, because "one banner per screen" is only + keepable if there is somewhere to put the condition that does not need shouting. + <div class="ac-banner ac-banner--filled ac-blink" role="alert">Lamp Fault</div> +class="ac-banner" ac-banner--filled ac-banner--dim +

Two loud banners on one screen. The second one makes the first one + furniture.

+
+ +
+
PANEL — DIM FRAME (RECEDES) +
Interlocks + SECONDARY REGION — READ-ONLY INSTRUMENTATION +
+ class="ac-panel ac-panel--dim" ac-panel--bar +
+
RULE — THE ONLY DIVIDER +
+
+ .ac-hr — a section break inside a region +
+ .ac-hr--bright — a break between two things that are not the same kind of thing +
+ Two weights and no others, both at the 2px stroke — there + are no hairlines on this panel. Reach for a rule only when a region border would be + heavier than the separation deserves; most of the time the answer is two + .ac-panels. + <hr class="ac-hr"> <hr class="ac-hr ac-hr--bright"> +
+
+ +
+
+ + + +
+ + + +
+
+ + + + + diff --git a/docs/guide-effects.html b/docs/guide-effects.html new file mode 100644 index 0000000..32713e4 --- /dev/null +++ b/docs/guide-effects.html @@ -0,0 +1,621 @@ + + + + + +GLOW, BLINK, SCANLINES — Amber Console + + + + + + + + + + + + + + + + + + + + + + + + +
+Skip to content + + + + + + + + + + +
+
+ + +
+ ▮ Plasma Gases +

Gas emitting directly. No phosphor in the stack.

+
+ Plasma gases + + + + +
+
+ + +
+ ▯ CRT Phosphors +

A beam on a phosphor, which emits and then persists.

+
+ CRT phosphors +

General purpose · built to be read

+ + + + +

Specialized · built for an instrument

+ + + +
+
+ + + +
+ Switches + +

Simulation · never a color

+
+ + + + +
+ +

Style & engine · never the hardware

+
+ + + + +
+ + +

The retrace band is part of the CRT simulation, and there is no sweep across a plasma panel to switch off.

+

JS Effects need the CRT simulation and a phosphor that holds long enough to see.

+ + + +
+ + +
+
+ State +
+
+
Technology
+ +
PLASMA
+
+
+
Emitter
+ +
NEON
+
+
+
Emission
+ +
585.2 nm
+
+
+
Mode
+ +
PRESET
+
+
+
Engine
+ +
CSS + JS
+
+
+
+ + +
+ Technology + +

A gas in a sealed gap, struck by a + sustain pulse. It emits directly — no phosphor in the stack — so the panel lights one + hue and varies only how hard it is driven.

+ + + + +

The gas the plasma panel was actually built on, and what this framework opens to. In a low-pressure glow the 2p→1s array dominates — the lowest excited states that radiate visibly, populated far more heavily than anything above them — so the discharge is one narrow orange-red rather than a mixture. Nixie tubes and the first flat panels ran on it.

+ + + + + + + + +
+
+ +
+ +
+ + + A preset sets the display and its simulation. Everything stays adjustable — and Reset puts all of it back, switches, styles and engine alike. +
+
+ + +
+ + + + + + + +
+ +
+
03 AMBER CONSOLE · SYSTEM GUIDE
+

GLOW, BLINK, SCANLINES

+
+

The only three effects in the system. Glow marks energization, blink marks alarm, scanlines sit once on the outermost frame. There is no fourth effect.

+ +
+

THE THREE EFFECTS

+

No component anywhere in the CSS carries a transition — a control does not + ease into being pressed. The one + timing function in the whole framework belongs to the gas, not to the UI: see + .ac-afterglow in PERSISTENCE.

+

THE THREE SIMULATIONS

+
+

The board at the top of this page defaults to PLASMA on, CRT + off — every switch on it is documented in SCREEN & BOARD. Plasma is + what this panel is; CRT simulates a different display technology, and its blanking gaps are the + one thing a plasma screen conspicuously does not have. Turn it on to compare — the choice + persists. .ac-afterglow rides the CRT switch, so it is off by default too.

+

Three screen simulations layer on top, driven from two switches — + .ac-afterglow rides with .ac-crt, because persistence is a property + of the same glass the scanlines are on, and a tube that scans without holding is not a tube + anybody has watched. Each class still works alone if you wire it yourself: + .ac-bloom (the panel — hotter glow tokens for every descendant, a soft + center-weighted bleed breathing on a 9s mains cycle, and the cell mesh with its shimmer), + .ac-crt (the tube — scanline texture, edge vignette, one-cell line drift per 11s, + a 5.5s mains flicker, and a retrace band sweeping down every 13s) and + .ac-afterglow (plasma persistence — its own chapter, + PERSISTENCE). + All three are tuned near the threshold of perception: if you can point at + the effect, it is too strong. The motion describes energized hardware, not a UI transition — + state changes stay instant — and everything stops under prefers-reduced-motion. + .ac-scanlines is the static, motion-free texture for cards and print.

+

The classes compose; the switches do not. Nothing in the CSS + stops a frame carrying .ac-bloom and .ac-crt at once — the code + sample further down shows exactly that, because it is the composition reference. The board + above refuses it: turning one on turns the other off, since a panel with gas gaps and a + scanning beam in the same enclosure is not a panel. Both off is allowed and means a flat lit + surface. SCREEN & BOARD has the rest of that.

+

The flicker is the one number worth stating exactly, because the honest + version of it cannot be drawn at all: a tube refreshing at 60Hz, watched on a display + refreshing at 60Hz, has no headroom to show a 60Hz modulation — that is Nyquist, not a browser + limitation. What is renderable is the slow beat underneath it, so the scanline layer dips + 3.5% at its deepest on a 5.5s cycle, which moves the panel's own luminance by well under 1%. + The depth is scaled by the phosphor: P11, P31 and P4 are fully dark between frames and take the + whole budget, P7 and P39 take 9% of it, and a gas declares no flicker at all and renders + identically to a panel that never had this rule. It is a budget rather than a taste setting — + WCAG 2.3.1 governs the ceiling, and 0.18Hz sits more than an order of magnitude below the + 3–8Hz band it is written about.

+

The retrace band is the one effect with an off switch, and it + earns one by being the only part of the tube that travels. The refresh itself is unwatchable for + the Nyquist reason above — but what a short phosphor actually did was never the whole screen + blinking: at any instant only the band the beam had just written was at full brightness, and + everything behind it had already given up. That is spatial rather than temporal, so it can move + as slowly as you like and still read. It is also 26% of the frame crossing all of it every 13s, + over text somebody is trying to read, which is a fair thing to not want. Hence + data-ac-style-retrace="off" on <html> — the Retrace Band switch on + the board writes it, and it is a comfort preference in the way blink is, not a claim that the + tube had no retrace. An author who never wants it has a cheaper answer: the band is a + <span class="ac-retrace"> you put in the frame yourself, so leave it out and + there is nothing to switch. prefers-reduced-motion hides it either way.

+

Its amplitude is scaled by --ac-flicker like the hum is, and by the + same argument: the band is what a short phosphor looks like, so P11, P31 and P4 + get one you can watch and P7 and P39 keep a lightening sweep that is almost invisible. Both + halves of the flicker number — how hard the picture breathes and where the tube has already gone + dark — come out of the one constant. It is deliberately drawn near the floor of perception: a + 4.2% trough under a 5.3% edge at full flicker, which is half what it was in 2.0.0, because at + twice this it stopped reading as the panel's own unevenness and started reading as a bar sliding + over the page.

+
+ +

THE SCREEN DOOR

+
+

A screen door is not a scanline, and the difference is the whole + point of .ac-bloom. A cell here lights at the crossing of a row wire and + a column wire, boxed in on four sides by barrier ribs that carry no discharge and emit nothing + — so a lit pixel is a neon dot trapped in a square aperture, and what you see with your eye + close to the glass is a fine mesh in both axes. The dark horizontal blanking gaps + between raster lines belong to .ac-crt and to the tube it simulates. There is no + scan in a plasma panel, so there is nothing to blank. The ribs are drawn in pure black rather + than a tint, which is what makes the grid appear only where the panel is lit: over the unlit + screen a black veil has nothing to take away. On top of it sits the shimmer — the sustain + voltage is AC, so the gas is struck and re-struck rather than held, and a sub-pixel buzz on + two detuned cycles is the visible residue of that. Both stop under + prefers-reduced-motion; the mesh itself does not, because it is the shape of the + hardware rather than an effect playing over it.

+

All three go on the outermost frame, and the frame is the whole screen — + including the menu bar. A nav that floats above the simulations is a nav that + is not part of the panel, so .ac-nav--sticky sits inside the frame at z-index 20 + and every overlay paints above it, from 40 up. That is also why .ac-screen clips + with overflow: clip rather than hidden: hidden would + make the frame a scroll container, and a sticky bar inside one sticks to nothing.

+
+
+
GLOW — ENERGIZED + 255315 + --ac-glow-text on live values, --ac-glow-box on filled and focused elements.
+
GLOW — SECONDARY DRIVE + 255315 + The same value at --ac-ink-dim. Dim is a DRIVE LEVEL, not an off state — --ac-emit-70 is a cell driven at 70%, so it scatters 70% as much. The tiers are arithmetic, not taste: each stop's luminance is already fixed by the contrast ratio it was solved to, so 1.00 / 0.70 / 0.41 fall straight out of 7.0 / 5.2 / 3.4 : 1. Radius never scales — how far light spreads is a property of the glass, not of the drive.
+
NO GLOW — INERT + + A disabled control, which is the only thing that genuinely does not glow — the cell is not being driven at all, and a halo would be a lie about the hardware. That is law 1's actual claim, and it is the half the drive tiers must never quietly absorb. npm run check fails the build if an ink level is set without restating the halo that belongs to it.
+
BLINK — ALARM + ✳✳ CHECK DOUSER ✳✳ + steps(1) hard on/off, 1.1s. Never a fade — until .ac-afterglow is on, which softens the OFF edge only. The ON edge stays instant either way.
+
+ +

THE THREE SIMULATIONS, SIDE BY SIDE

+

Each tile is its own frame. Use the PLASMA and CRT switches on the + board at the top of the page to compare these against the live page — the difference should be + almost too small to name. CRT takes the afterglow with it, and both reach the menu bar, which + is inside the frame rather than floating above it.

+
+
+ FLAT — NO SIMULATION + 154A + The baseline. Everything still reads. +
+
+ + .AC-BLOOM — THE PANEL + 154A + Hotter glow tokens, a soft bleed, and the cell mesh. Put your eye close. +
+
+ + .AC-CRT — THE TUBE + 154A + Scanlines, vignette, drift, flicker, retrace — the band on + its own switch, data-ac-style-retrace. +
+
+ + .AC-AFTERGLOW — PERSISTENCE + 154A + Residual patches only, here — a static tile has nothing to decay. +
+
+ .AC-SCANLINES — STATIC TEXTURE + 154A + No motion at all. For print, cards and thumbnails. +
+
+ <div class="ac-screen ac-bloom ac-crt ac-afterglow"><span class="ac-mesh"></span><span class="ac-retrace"></span><span class="ac-persist"></span> … </div> +

Nesting a simulation inside another one. Once per screen, on the outermost frame + — the tiles above are the exception that proves it, and they are documentation, not UI.

+ +
+
BLOCK CURSORTITLE:HEAT + class="ac-cursor"
+
GLYPHS — THE ONLY ICON SET + ✳✳   █ ▮ ▯   ▲ ▼ ◄ ►   ┌─┐ └─┘ + Typeset in the terminal font. Never an SVG, never an emoji.
+
+
+ + + +
+ + + +
+
+ + + + + diff --git a/docs/guide-persistence.html b/docs/guide-persistence.html new file mode 100644 index 0000000..b8d5734 --- /dev/null +++ b/docs/guide-persistence.html @@ -0,0 +1,665 @@ + + + + + +AFTERGLOW & PERSISTENCE — Amber Console + + + + + + + + + + + + + + + + + + + + + + + + +
+Skip to content + + + + + + + + + + +
+
+ + +
+ ▮ Plasma Gases +

Gas emitting directly. No phosphor in the stack.

+
+ Plasma gases + + + + +
+
+ + +
+ ▯ CRT Phosphors +

A beam on a phosphor, which emits and then persists.

+
+ CRT phosphors +

General purpose · built to be read

+ + + + +

Specialized · built for an instrument

+ + + +
+
+ + + +
+ Switches + +

Simulation · never a color

+
+ + + + +
+ +

Style & engine · never the hardware

+
+ + + + +
+ + +

The retrace band is part of the CRT simulation, and there is no sweep across a plasma panel to switch off.

+

JS Effects need the CRT simulation and a phosphor that holds long enough to see.

+ + + +
+ + +
+
+ State +
+
+
Technology
+ +
PLASMA
+
+
+
Emitter
+ +
NEON
+
+
+
Emission
+ +
585.2 nm
+
+
+
Mode
+ +
PRESET
+
+
+
Engine
+ +
CSS + JS
+
+
+
+ + +
+ Technology + +

A gas in a sealed gap, struck by a + sustain pulse. It emits directly — no phosphor in the stack — so the panel lights one + hue and varies only how hard it is driven.

+ + + + +

The gas the plasma panel was actually built on, and what this framework opens to. In a low-pressure glow the 2p→1s array dominates — the lowest excited states that radiate visibly, populated far more heavily than anything above them — so the discharge is one narrow orange-red rather than a mixture. Nixie tubes and the first flat panels ran on it.

+ + + + + + + + +
+
+ +
+ +
+ + + A preset sets the display and its simulation. Everything stays adjustable — and Reset puts all of it back, switches, styles and engine alike. +
+
+ + +
+ + + + + + + +
+ +
+
04 AMBER CONSOLE · SYSTEM GUIDE
+

AFTERGLOW & PERSISTENCE

+
+

Nothing on either technology goes dark on the next refresh, and they do not go dark for the same reason. Persistence is eight separate phenomena — four of them pure CSS.

+ +
+

AFTERGLOW AND PERSISTENCE

+
+

A gas gap that stops being driven leaves excited and metastable + atoms behind, and that population keeps emitting while it relaxes and recombines — an + afterglow that is a property of the gas and of no coating at all. A phosphor is the opposite + case: the persistence is the coating, it is what the compound was chosen for, and it + ranges over four orders of magnitude between the parts on the board above. Most of the light + is gone early either way, then a tail whose length is the whole difference between them. + .ac-afterglow is that relaxation, and it is several separate things because + persistence is eight separate phenomena. Four of them are pure CSS, two need + JavaScript outright, and two arrive by both routes — and where JavaScript is needed it + is not being withheld, the thing is genuinely not expressible in a stylesheet. Nothing in the + cascade remembers the string a readout held one frame ago; scroll velocity cannot be + derived from a scroll timeline, which exposes position only; and + startViewTransition is the one API that hands you a picture of the screen you just + replaced without navigating away from it. Those three capabilities live in + amber-console.effects.js, which is optional and separate from + amber-console.js — the stylesheet alone still decays, de-energizes, throbs, + sweeps, and drains a whole page into the next one.

+

How long it lasts belongs to the emitter, not to this file. + A palette that knows its own decay declares it, and every timing below is derived from that one + number — so the panel does not have a persistence setting, it has whatever persistence the + hardware in it had. Which is also why persistence and flicker are the same number read in + two directions: a screen redraws every frame, and what is still lit when the next frame + arrives is the smear while what is missing is the flicker. A screen cannot be steady and + smear-free at once. P11 is fully dark between frames — no persistence, maximum flicker, which + is why it was fitted to tubes meant to be photographed rather than watched. P39 is + still at 91% — no flicker at any refresh rate, paid for in smear, which is why it went on + radar. Both come off one decay constant and cannot disagree.

+
+ +

WHAT A LONG PHOSPHOR COSTS

+
+

Two consequences worth knowing before the switches surprise you. The long + phosphors are capped where you wait on them and uncapped where you do not: + P7's tail is three seconds, which is correct and would be an unusable dialog close, so anything + that has to actually leave is clamped to 250ms and the ghosts run the full three. And a + long-persistence phosphor does not decay exponentially — it follows a power law, a fast knee + over a very long tail, which no single easing curve expresses. Those palettes ship a + linear() sampled from the decay model itself.

+

P7 is the one that is worth turning on. It is two coatings + rather than one: the beam writes into a blue layer that decays in microseconds, and that + layer's own photons pump a yellow-green layer behind it that holds for seconds. So the ink is + blue and the halo is green — text you are reading is being re-struck sixty times a second, and + text that stops being written leaves only the glow behind. It is the only palette here whose + halo is a different spectrum from its ink, which inverts a rule the rest of the system relies + on, and it is the reason a radar sweep is still legible when the beam comes round again.

+
+
+
1 · DECAY-OUT — CSS + Anything that disappears drains instead of switching off — + a tab panel, a closing dialog, an acknowledged alarm. Pure CSS, and the one part that + carries the effect on its own. The transition is declared on the hidden state only, so + hiding decays and showing snaps back instantly. Nothing here ever fades in.
+
2 · GHOSTING — effects.js + Text rewritten in place leaves the previous value behind + for a beat. Watch the clock and the frame counter on the console page. This is the one part + CSS cannot do — nothing in the cascade remembers the old string — so a MutationObserver in + amber-console.effects.js parks a copy at the rect it occupied. + The copy is .ac-ghost, and it + is worth knowing the name: it is a real element in your DOM for the length of the tail, it + is aria-hidden and pointer-events: none, and it is the hook to + style or suppress if a ghost lands somewhere you do not want one. + .ac-ghost--fast is the same node on the short tail, used where a value rewrites + often enough that the full decay would stack copies on top of each other. Both are removed + when they finish; nothing accumulates. + <span class="ac-ghost"> <!-- mounted and removed by effects.js --> +.ac-ghost { display: none } /* suppress it in one region, without the module */
+
3 · RESIDUAL PATCHES — CSS + The glass never sits perfectly uniform; charge relaxes + unevenly. Four overlapping pools at 3% over the amber, drifting on a 47s cycle. You do not + notice it directly — you notice when it stops.
+
4 · THE BLINK OFF-EDGE — CSS + A blinking alarm is the thing on the panel that stops being + driven most often — once a second, forever — so it is the last place the decay should be + missing. .ac-blink stays steps(1) by default; with persistence on, + only the ON edge stays hard. Instant up, curve down.
+
5 · DE-ENERGIZING — CSS + The commonest light-off event on a control panel is not a + node disappearing, it is a lamp going out: a pressed button releasing, a tab deselecting, + an interlock unchecking. Split by what each property describes: the + structure — background, border, color — releases fast so the control reads as off + immediately, while the halo decays on the full uncapped tail, because the halo is + the scattered light that persists. Under P39 a released button glows for a second and a + half. Hover is excluded on purpose — a wake behind the cursor reads as lag.
+
6 · SCROLL SMEAR — effects.js + Scrolling hands every cell on the panel a new value at + once, which is the largest light-off event there is, and the image trails. Scaled by real + scroll velocity, which is why it cannot be CSS: a scroll timeline exposes + position, and velocity is not derivable from it. Scroll this page briskly.
+
7 · FRAMEBUFFER DECAY — CSS and effects.js + The one place a real framebuffer snapshot is + available. Everything above decays an element — something the cascade can name. A phosphor + decays whatever was drawn, including the parts of the screen no element owns. + It arrives twice, by two different routes, which is why the board's engine + panel lists framebuffer decay as a JavaScript effect while this half needs no script at + all. + Between pages — CSS. Navigate to the + console and back under P39 and the old page drains behind the new one, per pixel. Needs one + line in your own stylesheet — @view-transition with + navigation: auto — because it is a document-level switch, and linking a + stylesheet must not rewrite how your site navigates. + Within a page — effects.js. A tab switch or + a dialog replaces most of the screen without navigating anywhere, and CSS has no hook for + that. The effects module exports transition(fn), which wraps the change in a + view transition so the same decay runs over it; amber-console.js already calls + it for tabs and dialogs. This is the half that goes dark when JS Effects is switched off — + and the signature is in REFERENCE with the + other two exported functions.
+
8 · A LIT AREA SHRINKING — CSS + effects.js + A bargraph does none of the seven things above: the element + stays, its text is elsewhere, its color never moves. What changes is its width, so + the strip it vacates was lit a moment ago and is now simply not drawn. On a two-second + phosphor that was the most visible wrong thing on the panel — everything around the bar + trailed and the bar itself snapped. A second bar now lags behind the live one on + --ac-persist-tail, and the asymmetry needs no rule of its own: on a fall the + ghost is wider and its trailing strip drains, and on a rise it is + narrower, so it hides underneath and nothing fades in. Watch a load bar on the + server dashboard under P39.
+
+

The eighth is the one place the two tiers do different + things rather than one filling a gap the other leaves, and the difference is real. A bar falling + gradually stops driving each cell at a slightly different moment, so the honest result + is a taper behind a receding edge — which is what the CSS draws, and what a drifting value + actually does. A bar that drops suddenly stops every vacated cell at once and should + fade uniformly instead. CSS cannot hold the old width, so it cannot tell those apart; + effects.js recovers the old geometry and parks a proper uniform ghost for that + case — which is also how the radar's A-scope and echoes get theirs, since it watches for any + lit area that shrank rather than for anything named.

+
+
BLINK — ALARM + ✳ LAMP FAULT ✳ + Toggle CRT on the board above and watch this one. Off, it + snaps between full and 10%. On, it holds, then drains over an ~88ms window of the 1.1s + cycle — deliberately near the floor of what registers as a decay at all.
+
EVERY BLINK SITE FOLLOWS + One rule swaps the animation-name rather than the + shorthand, so .ac-blink, .ac-cursor, an invalid + .ac-input and an over-range .ac-meter--alarm bar all keep their own + cycle length and pick up the same curve. The de-energizing rules use the same trick as + decay-out: the transition is declared on the UNLIT half, so going out drains and coming + on is instant.
+
+ <div class="ac-screen ac-afterglow"><span class="ac-persist"></span> … </div> + +

THE PPI SWEEP

+
+

The one widget where persistence is the whole thing, and the one + place a decaying trail is achievable in pure CSS. The obvious way to draw a radar wake is to + stamp a mark every frame and fade each one, which is a per-pixel framebuffer problem and needs + a canvas. But a PPI trail is not a history of marks — it is one continuous falloff behind a + rotating line, and a conic-gradient already is that falloff. Rotate it and the + decay comes for free, on the GPU, in one element, with no script at all.

+

The angular stops are the phosphor's decay curve read in degrees rather than + milliseconds, which is a substitution rather than a pun: the beam turns at a constant rate, so + angle behind the beam is time since that bearing was painted. Same curve, same + fast-knee-long-tail shape, different axis. The rotation period comes off + --ac-persist-tail, so the sweep returns about as the trail finishes draining — + which is precisely the trade P7 and P39 were bought to make.

+
+
+
PPI — NO SCRIPT + + Switch the display to P7 and the leading edge turns blue + against a yellow-green wake — that is --ac-halo-flash against + --ac-halo-1, the two coatings doing exactly what they did on the real tube. Every + other emitter has one coating, so its leading edge is simply the brighter end of its own + trail. The line itself is a constant-width arm rather than the first few degrees of the + gradient, which would be a wedge and would thin to nothing near the middle; the center + is bright because all 360 bearings cross it and it takes the whole revolution's + dose.
+
WHY IT SLOWS DOWN + Under P39 the sweep takes 3s and under P7 4.5s, because + both are scaled from the tail. Neon would scale to 0.16s, which is not a radar but a + strobe, so the period has a floor. A face whose trail has not drained by the time the beam + returns never reads as dark, and stops looking like a radar at all — it looks like a + spinning pie chart.
+
+ <div class="ac-sweep" role="img" aria-label="Search radar"><span class="ac-sweep__beam"></span></div> +

Assuming a removed node ghosts itself. The observer only sees text change; + a node that stops existing has no rect left to pin a ghost to, so ghost it + before you remove it — AmberConsoleEffects.afterglow(row), then + row.remove(). Retune the decay with the three tokens it is built from, none of + which is a duration you set directly — each is the palette's own + --ac-persist under a different cap. --ac-decay is capped at 250ms and + belongs to things that must actually leave; --ac-decay-fast is capped at 60ms and + belongs to de-energizing controls and hover release, because it fires on every control the + pointer crosses; --ac-persist-tail is uncapped and belongs to the ghosts and the + residual patches, which is where a long phosphor is allowed to be long. Rewritten text is its + own case at 400ms, enough to keep one generation legible and not two. + --ac-decay-ease is the curve.

+ +
+ + + +
+ + + +
+
+ + + + + diff --git a/docs/guide-reference.html b/docs/guide-reference.html new file mode 100644 index 0000000..f008381 --- /dev/null +++ b/docs/guide-reference.html @@ -0,0 +1,937 @@ + + + + + +REFERENCE — Amber Console + + + + + + + + + + + + + + + + + + + + + + + + +
+Skip to content + + + + + + + + + + +
+
+ + +
+ ▮ Plasma Gases +

Gas emitting directly. No phosphor in the stack.

+
+ Plasma gases + + + + +
+
+ + +
+ ▯ CRT Phosphors +

A beam on a phosphor, which emits and then persists.

+
+ CRT phosphors +

General purpose · built to be read

+ + + + +

Specialized · built for an instrument

+ + + +
+
+ + + +
+ Switches + +

Simulation · never a color

+
+ + + + +
+ +

Style & engine · never the hardware

+
+ + + + +
+ + +

The retrace band is part of the CRT simulation, and there is no sweep across a plasma panel to switch off.

+

JS Effects need the CRT simulation and a phosphor that holds long enough to see.

+ + + +
+ + +
+
+ State +
+
+
Technology
+ +
PLASMA
+
+
+
Emitter
+ +
NEON
+
+
+
Emission
+ +
585.2 nm
+
+
+
Mode
+ +
PRESET
+
+
+
Engine
+ +
CSS + JS
+
+
+
+ + +
+ Technology + +

A gas in a sealed gap, struck by a + sustain pulse. It emits directly — no phosphor in the stack — so the panel lights one + hue and varies only how hard it is driven.

+ + + + +

The gas the plasma panel was actually built on, and what this framework opens to. In a low-pressure glow the 2p→1s array dominates — the lowest excited states that radiate visibly, populated far more heavily than anything above them — so the discharge is one narrow orange-red rather than a mixture. Nixie tubes and the first flat panels ran on it.

+ + + + + + + + +
+
+ +
+ +
+ + + A preset sets the display and its simulation. Everything stays adjustable — and Reset puts all of it back, switches, styles and engine alike. +
+
+ + +
+ + + + + + + +
+ +
+
08 AMBER CONSOLE · SYSTEM GUIDE
+

REFERENCE

+
+

Everything the framework exposes, in one place. The seven chapters before this + one argue; this one only lists.

+ +
+

HOW TO READ IT

+
+

This chapter is the index, not the argument. Every entry + links back to the chapter that explains it, and nothing here is a summary of the reasoning — + if a row makes you ask why, the chapter it points at is where the answer lives.

+

It exists because a guide made of specimens answers "how do I do X" very + well and "does this thing even have Y" very badly. Both are real questions. Seven chapters of + prose could not answer the second one without being read end to end, and a framework whose + surface can only be discovered by reading it is a framework people re-implement pieces of.

+

Tokens are split by who sets them, which is the single most + useful distinction in the list and the one the source files do not make on their face. A + token you set is part of the API: override it and the framework follows. A token the + framework sets is plumbing — it is derived from the palette or from another token, it is + rewritten whenever the display changes, and setting it yourself means fighting the code that + owns it. Both are documented, because you may well need to read a derived value; only + one of them is a place to write.

+

Nothing here is versioned separately from the framework. If a name appears + in this table it is in the build you are looking at, and anything that has been taken away is + in DEPRECATED instead.

+
+
+ +
+

EVERY CLASS

+

All of them, grouped the way src/ is. A class marked + needs a child will not render on its own — the companion node is listed, and + EFFECTS shows the assembled frame.

+ +

LAYOUT AND UTILITY · src/base/layout.css

+
+ + + + + + + + + + + + + + + + + + + + + +
CLASSWHAT IT DOESNOTES
.ac-screenThe full-height frame the simulations paint on.Once per page. 100svh, overflow: clip.
.ac-screen__bodyThe padded content well inside the frame.Override with --ac-screen-pad.
.ac-stackFlex column, gap from --ac-gap.Default gap --ac-space-4.
.ac-rowFlex row, gap from --ac-gap.—
.ac-row--wrapLets the row wrap.—
.ac-row--centeralign-items: center.—
.ac-row--baselinealign-items: baseline.A big number beside its unit.
.ac-row--betweenjustify-content: space-between.Justifies every gap — see .ac-spacer.
.ac-row--endjustify-content: flex-end.—
.ac-gridGrid of --ac-cols equal tracks.Default gap --ac-space-6.
.ac-grid--consoleThe canonical split: operate left, instrument right.Stacks below 900px. No --ac-cols.
.ac-col-2 -3 -4 -6Column spans for a grid child.All reset to auto below 900px. No -5.
.ac-growAbsorbs leftover space, with min-width: 0.Needed on a row of .ac-btn--pad.
.ac-spacerEmpty element that eats the slack at one point.Use instead of --between in a row of three.
.ac-pushmargin-top: auto — drop to the bottom.The one margin in the system. Flex column only.
.ac-sr-onlyAvailable to assistive tech, invisible on the panel.For a <legend> the panel title already states.
.ac-rootScoped reset, for embedding in a page you do not own.src/base/reset-scoped.css. Use instead of the global reset.
+
+

All of these are demonstrated in + TYPE & GEOMETRY · LAYOUT.

+ +

CONTROLS · src/components/

+
+ + + + + + + + + + + + + + + + +
CLASSWHAT IT DOESMODIFIERS
.ac-btnThe key. Outline by default.--filled (inverse, one per region) --dim --sm --lg --pad --block
.ac-tabsSoft-key strip. Needs role="tablist".Children: .ac-tab, .ac-tab--active
.ac-toggleTwo-position switch with a mandatory ON/OFF word.--on (state) --input (CSS-only, no JS) · parts __track __thumb __state
.ac-checkStatus bit. A set bit fills solid; no check glyph.--disabled
.ac-radioExclusive mode selection.--disabled
.ac-fieldLabel plus control wrapper.--block --invalid · parts __label
.ac-inputThe recessed well itself.--block
.ac-selectWrapper that draws the well around a <select>.--block
.ac-keypadNumeric pad for gloved hands.--dense (mouse only) · keys .ac-keypad__key, __key--fn (CLR / ENT, read as commands), __key--wide (spans two columns)
.ac-dialogNative <dialog>, flat backdrop, no fade.--wide · parts __title __body __actions
.ac-navThe menu bar. Goes inside the frame.--sticky · parts __mark __links __link __meta · the current link inverts on [aria-current="page"], with __link--active as the class equivalent where you cannot write the aria state
.ac-setupThe permanently-open control board.parts __grid __foot
+
+

Live specimens in + CONTROLS.

+ +

DISPLAY · src/components/

+
+ + + + + + + + + + + + + + + + + +
CLASSWHAT IT DOESMODIFIERS
.ac-panelA framed region with a legend chip in its border.--dim (recedes) --bar (inverse title) · parts __title (the chip in the border), __barTitle (the full-width strip --bar draws instead — the one camel-cased name in the framework)
.ac-statusbarInverse strip — the machine's own voice.--line (a data row rather than a statement)
.ac-readoutLabelled instrument value.--lg --inline · parts __label (__label--plain drops the inverse-video strip) __value __unit
.ac-listKeyed log with leader dots. A <dl>.--dense --dim --bright · parts __item __key __fill __value
.ac-tableThe data grid.--zebra --dense · parts __num __row--active
.ac-table-scrollHorizontal scroll container for a wide table.The answer to a table that will not fit a phone.
.ac-meterStepped bargraph, never a smooth fill.--lg --dim --alarm · parts __track __bar __scale
.ac-badgeMicro tag in the pixel face.--filled --dim
.ac-bannerThe loudest element. One per screen.--filled --dim
.ac-spinnerA rotating character, not a circle.--lg --dim
.ac-hrThe only divider, at the 2px stroke.--bright
.ac-cursorBlock cursor after the text.—
.ac-sweepThe PPI radar sweep. Pure CSS.part __beam (the rotating wedge; the sweep draws nothing without it) — see PERSISTENCE.
+
+

Live specimens in + DISPLAY.

+ +

SIMULATIONS AND EFFECTS · src/sim/, src/base/blink.css

+
+ + + + + + + + + + + + + + +
CLASSWHAT IT DOESNEEDS A CHILD
.ac-bloomThe plasma panel: hotter glow, a breathing bleed, the cell mesh..ac-mesh
.ac-crtThe tube: scanline texture, vignette, 11s drift, 5.5s hum, the retrace band..ac-retrace
.ac-afterglowPersistence. Rides with .ac-crt on the board..ac-persist
.ac-scanlinesThe static, motion-free texture. For cards, thumbnails and print.no
.ac-meshThe cell mesh and its shimmer. Companion to bloom.—
.ac-retraceThe sweeping band. Companion to CRT; switchable, and omittable.—
.ac-persistThe layer ghosts and the smear are mounted into. Companion to afterglow.—
.ac-ghostOne decaying copy of a rewritten value. Mounted and removed by effects.js.—
.ac-ghost--fastThe same, on the short tail, where a value rewrites often.—
.ac-blinkLaw-2 emphasis. steps(1), 1.1s, never a fade.—
+
+

All three simulations compose in CSS; the + board refuses to run plasma and CRT together, which is a rule of the demo and not of the + framework. EFFECTS and + PERSISTENCE have the arguments.

+ +

CORNER STYLE · src/components/classic.css

+
+ + + + + + +
CLASSWHAT IT DOESSCOPE
.ac-classicCut corners, extruded key edge, label top-left. The default look.One region — including back inside a rounded one.
.ac-roundedThe way back to the arc.One region.
+
+

The page-wide version of the same choice is + data-ac-style-classic below. Where corner-shape is unsupported the + corners quantize to a hard 2px instead of cutting, so both positions mean something in every + browser. CONTROLS shows both at once.

+
+ +
+

EVERY ATTRIBUTE

+

Two kinds, and they are not interchangeable. State attributes + go on <html> and are read by the CSS — write them yourself and the framework + follows, with or without the JavaScript. Hooks are how the optional module + finds controls; they do nothing on their own.

+ +

STATE · on the root element, read by CSS

+
+ + + + + + + + + + +
ATTRIBUTEVALUESWHAT IT SELECTSDEFAULT
data-ac-techplasma crtWhat is making light at all.plasma
data-ac-emitterneon helium argon krypton · p1 p3 p4 p7 p11 p31 p39Which gas or phosphor inside that technology. The palette.neon
data-ac-enginecss css+jsWhether the effects module may contribute.css+js
data-ac-style-blinkon offLaw-2 blink, everywhere at once.on
data-ac-style-classicon offCut corners and extruded key edges, page-wide.on
data-ac-style-retraceon offThe CRT retrace band.on
+
+

The style flags are always written + explicitly, both ways, and that is deliberate: CSS selecting on the absence of + an attribute cannot tell "the author has not chosen" apart from "the author chose off", and the + defaults above are the only place that distinction is allowed to live. An emitter is only + meaningful inside its technology, which is why naming a palette takes two attributes and not + one — see COLOR.

+ +

HOOKS · read by amber-console.js, inert without it

+
+ + + + + + + + + + + + + + + + + + + +
ATTRIBUTEGOES ONWHAT IT WIRES
data-ac="tabs"An .ac-tabs containerThe arrow-key tablist model and roving focus.
data-ac="toggle"An .ac-toggle buttonClick-to-flip, keeping aria-pressed and the ON/OFF word in sync.
data-ac-screenThe frameNames the element the simulations mount on. Falls back to the first .ac-screen.
data-ac-simA toggle"plasma" or "crt" — mounts the classes and the companion child.
data-ac-styleA toggleThe flag name: "blink", "classic", "retrace".
data-ac-style-noteAny elementRevealed while the named style flag can do nothing.
data-ac-engineA buttonThe engine switch. On the root it is state, above; on a button it is the control.
data-ac-engine-note
-off / -on
Any elementThe three states of that switch: cannot / could but off / contributing.
data-ac-displayA radioOne catalog row. Carries -tech, -emitter, -sims, -peak.
data-ac-display-outAny elementA readout: tech emitter peak mode engine label.
data-ac-display-infoAny elementProse for one technology or one exact tech/emitter pair.
data-ac-display-resetA buttonReset to Preset — simulations, styles and engine together.
data-ac-dialog-openA buttonThe id of the <dialog> to show.
data-ac-dialog-closeA button inside the dialogCloses the dialog it is in. Takes no value. Only needed where the button is not in a <form method="dialog">, which closes on its own.
data-ac-scrollingThe frameWritten by effects.js while the page moves. Read it; do not set it.
+
+

The catalog is markup, not a table + inside the JavaScript. Ship your own [data-ac-display] radios with your + own palettes and the module needs no edit — which is the same reason the technology prose is + one [data-ac-display-info] node per key rather than strings escaped through a + script. SCREEN & BOARD documents the assembled + board.

+ + +

Element hooks are bound once, on + load. Both optional modules bind themselves at DOMContentLoaded, so a + page that ships its markup in the HTML calls nothing at all. The exception is markup inserted + afterwards: a [data-ac="tabs"] strip or a [data-ac="toggle"] + your own code rendered is not wired, and the fix is one call — + AmberConsole.init(el) over the new subtree, or AmberConsole.init() + for the whole document. It keeps a set of what it has already wired, so calling it twice on + the same element cannot double-bind a listener.

+

Two hooks need nothing either way. + The dialog pair is delegated from the document, so a + <dialog> appended at runtime opens and closes with no call. And the + persistence module watches the whole tree with a MutationObserver — ghosting and + smear find new nodes on their own, which is why AmberConsoleEffects.init() is + called for you and is not something you normally touch.

+ +

THE THREE FUNCTIONS · everything either module exports

+
+ + + + + + + +
CALLWHEN YOU NEED IT
AmberConsole.init(el?)Wire markup that arrived after load. Both modules bind themselves at DOMContentLoaded, so a static page never calls this. Idempotent — it remembers what it has already wired.
AmberConsoleEffects.afterglow(el)Leave a decaying copy of an element behind. Call it before you remove the element — a detached node has no rectangle, so there is nowhere to pin the ghost. Text rewrites ghost themselves; this is for a node about to stop existing.
AmberConsoleEffects.transition(fn)Run a change and let the screen it replaces decay per pixel, rather than element by element. Wrap discrete swaps only — a tab switch, a dialog, a panel replacement.
+
+ AmberConsoleEffects.transition(() => { // falls back to a plain call + panel.replaceChildren(nextScreen); // when the API, the simulation or the +}); // engine flag is unavailable +

Only discrete changes, and the + reason is mechanical rather than aesthetic. A new view transition cancels the + one already running, so wrapping a per-second text tick would mean P7's three-second snapshot + being thrown away sixty times a second and never completing once — strictly worse than not + doing it. Frequent text is what the ghost mechanism is for; ghosts compose rather than + cancelling. transition() is always safe to call: it declines and simply runs your + function when the API is missing, motion is reduced, the tab is hidden, the persistence + simulation is off, or the page asked for the CSS-only engine.

+
+ +
+

EVERY TOKEN

+

Every custom property in the framework begins --ac-. That is not + tidiness: dist/amber-console.layer.css exists so the framework can be embedded in + an app that owns the page, and cascade layers do not protect custom properties + — an unlayered :root { --radius: 12px } in the host beats a layered one. A host + that happened to use --gap or --cols silently re-cornered every + control in the framework. stylelint enforces the prefix now, so the next token + cannot go bare.

+ +

COLOR · you set these

+
+ + + + + + + + + + + + + + + + + + + +
TOKENWHAT IT IS
--ac-inkBody text. The 7.0:1 stop.
--ac-ink-brightThe live value. 10.5:1.
--ac-ink-dimSecondary drive. 5.2:1 — a cell driven at 70%, not an off state.
--ac-ink-faintFurniture and disabled text. 3.4:1 — below the text floor, which is why it is furniture.
--ac-ink-traceThe faintest mark the panel can make — leader dots, unlit scale ticks. 1.63:1, non-text only.
--ac-screenThe glass. One of three warm blacks.
--ac-screen-wellA recessed surface: inputs, selects.
--ac-screen-raisedA surface standing above the glass.
--ac-fillInverse video: filled keys, status strips.
--ac-fill-brightThe hot fill, for a latched or alarmed surface.
--ac-on-fillText drawn on a fill.
--ac-strokeEvery border in the system.
--ac-stroke-dimThe receded border.
--ac-emit-100 -90 -70 -50 -30The emission ramp the five ink levels are solved from.
--ac-halo-1 -2 -3 -4The scatter ramp — light spread in the glass, as raw r, g, b triples.
+
+

Eleven palettes set all of these, and every + stop in every one of them is solved to the same contrast ratio — so what changes between + displays is the hue, never the brightness. COLOR shows + the derivation. The halo tokens are triples rather than colors so they can be given an alpha at + the point of use.

+ +

TYPE, SPACE AND GEOMETRY · you set these

+
+ + + + + + + + + + + + + + + + + + + + + + + +
TOKENWHAT IT IS
--ac-font-terminalThe body face. A bitmap terminal font.
--ac-font-microThe 8px pixel face, for badges and micro labels.
--ac-type-display -title -body -small -microThe five sizes. 18px is the floor for anything anybody reads.
--ac-tracking-display -body -microLetter-spacing per size band.
--ac-leadingLine height. One number for the whole system.
--ac-space-1 -2 -3 -4 -6 -8 -12The scale, in 4px half-cells: 4 8 12 16 24 32 48.
--ac-border-w2px. There are no hairlines on this panel.
--ac-radiusKeys, panels, dialogs. 2px 4px 8px 4px by default — the four corners are cut to different depths, TL TR BR BL. 8px under .ac-rounded.
--ac-radius-smWells and switch housings. 1px 2px 4px 2px — the same diagonal at half depth. 4px under .ac-rounded.
--ac-gapPer element, not on the root: the gap of one row, stack or grid.
--ac-colsPer element: the track count of one .ac-grid.
--ac-screen-padPer element: the padding of one .ac-screen__body.
--ac-meter-valuePer element: 0–100 on an .ac-meter__track.
--ac-panel-title-bgPer element: what the legend chip masks itself against.
--ac-backdropPer element: what an open .ac-dialog paints behind itself. Defaults to flat 72% black — keep it opaque enough to read as a powered-down panel, and do not blur it.
--ac-sweep-sizePer element: the maximum diameter of an .ac-sweep face. Defaults to 260px; the radar demo overrides it.
--ac-sweep-periodPer element: seconds per revolution. Defaults to the phosphor's own tail × 1.5, floored at 2.5s — so a long phosphor comes round about as its trail finishes draining, and neon does not strobe.
--ac-sweep-arcPer element: how many degrees of wake trail the beam. Defaults to 250°, which is what the period expression evaluates to. Lower it for an emitter below the persistence floor, or the wake is a thin spinning line.
--ac-sweep-linePer element: the width of the writing beam itself, 3px by default. A constant width at every radius, because a CRT spot is.
+
+

Every row marked per element + is set on your + element rather than on :root — they are per-instance dials, and there is no global + value to override. Two of them, --ac-gap and --ac-cols, are for that + reason the only tokens in the 1.x rename that could not be bridged with an alias: there was no + framework-level value to alias from, so they have to be renamed where you write them. + See DEPRECATED.

+ +

GLOW, MOTION AND PERSISTENCE · mostly the framework's

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TOKENWHO SETS ITWHAT IT IS
--ac-glow-textyouThe halo on a lit value. Never scales with drive — radius is a property of the glass.
--ac-glow-text-dimyouThe halo that belongs to --ac-ink-dim.
--ac-glow-text-faintyouThe halo that belongs to --ac-ink-faint.
--ac-glow-boxyouThe halo on a filled or focused surface.
--ac-glow-box-dimyouIts receded twin.
--ac-halo-spreadframeworkHow far the glow reaches, per palette. The only one of these three that is a radius — it multiplies the blur distance, and it is the square root of the scatter below.
--ac-halo-scatterframeworkHow much light reaches the halo, per palette. An alpha multiplier, not a distance — neon is 1.00 by definition and every other emitter is stated against it. Radius never scales with drive; only alpha does.
--ac-halo-flashframeworkAn r, g, b triple, not a number: the colour of a two-coating phosphor's fast layer. Declared by P7 alone, and the reason its sweep leads in blue over a yellow-green wake.
--ac-persistframeworkThe working tail, per palette — capped for use in transitions.
--ac-persist-tailframeworkThe uncapped tail. 35µs on P11, 3s on P7. What the engine gate reads.
--ac-persist-fastframeworkDocumentation only — no CSS reads it. The decay of a two-coating phosphor's fast layer (P7, 0.04ms). It records where the hardcoded 4% crossover in ac-ghost-cascade comes from; keyframe offsets cannot read a custom property, so the figure has to be written twice and this is the half that says why. Not the ghost duration — that is .ac-ghost--fast, which is min(--ac-persist-tail, 400ms).
--ac-decay
--ac-decay-fast
--ac-decay-ease
frameworkThe decay durations and curve. Derived from the tail.
--ac-flickerframework0–1, per phosphor. Scales the mains hum and the retrace band, from one number.
--ac-drive-dim
--ac-drive-faint
frameworkThe drive fractions the dim and faint tiers are, arithmetically.
--ac-mesh-pitch
--ac-mesh-wire
frameworkThe cell mesh: spacing, and the darkness of a barrier rib. The rib figure is a contrast budget.
--ac-cornerframeworkbevel or round. What the classic flag actually flips.
--ac-edge
--ac-edge-press
frameworkThe key's extruded edge, and the same key pressed IN.
--ac-edge-3d
--ac-edge-3d-in
frameworkThe classic values those two point at.
--ac-litframework0 or 1 — whether a control is currently lit. A registered @property, which is the whole point: registering it is what makes a custom property animatable, so the afterimage's alpha and radius decay together off this one number instead of needing a box-shadow transition per state.
--ac-blink-anim
--ac-blink-name
--ac-blink-ease
frameworkThe blink, assembled per palette.
--ac-blink-force
--ac-blink-force-ease
frameworkThe root-level override, read first at every blink site. How one rule stops every blink at once.
--ac-ghost-animframeworkThe ghost's decay animation.
--ac-smearframework0–1, how fast the page is currently scrolling. Written onto the frame by effects.js every frame and read by the blur below. Read it; do not set it.
--ac-smear-filterframeworkThe scroll smear. Set to none by reduced-motion and by print.
--ac-afterimage-displayframeworkSwitches the static afterimage halo off wholesale.
+
+

The "framework" rows are still + worth knowing — several are the single point where an entire class of effect is + switched off, which is exactly how prefers-reduced-motion and the print stylesheet + do their jobs in a handful of lines rather than a selector list. Read them freely; write them + only if you have read the file that owns them, because the palette rewrites most of these + whenever the display changes.

+
+ +
+

EVERY STORED KEY

+

The optional module remembers what the board was set to. All of it is + localStorage, all of it is prefixed ac.sim., and every write is + wrapped — localStorage throws in private mode and in sandboxed + file:// frames, and a panel that cannot persist must still work.

+
+ + + + + + + + + + + + + +
KEYVALUESWRITTEN BY
ac.sim.techplasma crtPicking a catalog row.
ac.sim.emitterThe emitter namePicking a catalog row.
ac.sim.plasma1 0The PLASMA switch, and any preset that moves it.
ac.sim.crt1 0The CRT switch, and any preset that moves it.
ac.sim.engine1 0The JS Effects switch. Cleared by Reset.
ac.sim.style.blink1 0A blink switch, if the page ships one. Cleared by Reset.
ac.sim.style.classic1 0The Classic Buttons switch. Cleared by Reset.
ac.sim.style.retrace1 0The Retrace Band switch. Cleared by Reset.
ac.sim.mod1 0Whether the board has been moved off its preset.
+
+
+
CLEARED IS NOT THE SAME AS SET TO THE DEFAULT + Reset removes the style and engine keys rather than + writing the default into them, and the difference is the whole mechanism. An absent key + means the user has never said, which is the only state a derived default is + allowed to fill in. Writing the default would claim the preference on their behalf, and a + flag that derives from the simulation would stop following it forever after. There is no + separate "has this been touched" flag, because localStorage already answers + that question and a second source of truth for it would be a thing to keep in sync.
+
A PREFERENCE IS ONLY RESTORED WHILE THE PAGE CAN CHANGE IT BACK + Take a switch out of your markup and the flag it wrote falls + back to your own attribute, or to the default — the stored value is not read. A preference + with no control left on the page is not a preference, it is a setting the visitor can no + longer reach, and one earlier click would otherwise have turned blink off on that page + forever. Nothing is written back in that case either: the stored value still belongs to + whichever page does ship the switch.
+
+
+ +
+

EVERY ENVIRONMENT

+

The framework renders in four environments it does not control, and it has a + considered answer in each. You do not switch any of these on. They are in the + stylesheet, they respond to the reader's own settings, and the reason they are listed here + rather than argued in a chapter is that the correct thing to know about them is that there is + nothing to do.

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
ENVIRONMENTWHAT CHANGESFILE
forced-colors
(high contrast)
The whole design is a colour trick, so this needs a real fallback rather than a broken + one. Every simulation overlay is removed; every border is restated in + CanvasText, because the borders are the layout; and every + inverse-video surface is restated in Highlight / HighlightText, + because "the machine is speaking" is information and must not flatten into an outline. + Blink survives — it carries the alarm — but returns to a hard edge.src/base/a11y.css
@media printThe palette inverts to black on white by re-pointing the semantic tokens, so no + component needs a print rule of its own. The 2px rules stay because they are the layout; + glow, bloom, scanlines and every animation go, because they describe energized hardware + and paper is not. Filled surfaces carry print-color-adjust: exact, without + which a browser silently drops them and a set interlock bit prints as an empty square.src/base/print.css
prefers-reduced-motionAll three simulations stop. The cell mesh is the one overlay that keeps rendering — it + is the shape of the panel rather than an effect playing over it, and only its + buzz is motion. Blink stops, the smear stops, ghosts are hidden outright, and every decay + transition is blanketed.src/sim/frame.css
No vendored fontsA build swap rather than a media query: replace the tokens/fonts.css import + with tokens/fonts-cdn.css and rebuild, and the five vendored + woff2 files are dropped in favour of the same two faces from a CDN. Same + tokens, same stack, one fewer thing to host.src/tokens/fonts-cdn.css
+
+

Two of the four are gated rather + than trusted. npm run contrast runs the full pair table against all eleven + palettes independently, so a ratio that passes under one emitter and fails under another is a + build failure; and the visual suite captures a forced-colors and a print case for every demo + page. The one thing the suite cannot see is a missing + print-color-adjust — Playwright renders print to a screen surface, which honours + backgrounds regardless — so that list is checked by hand against a real print preview.

+

There is also a scoped embed + for putting the framework inside an app that owns the page: swap + base/reset.css for base/reset-scoped.css, wrap your markup in + .ac-root, and use dist/amber-console.layer.css so the framework loses + specificity fights against your own rules. The palette attributes may go on + <html> or on the .ac-root wrapper — both resolve correctly — but + do not split them across the two.

+
+ + + +
+ + + +
+
+ + + + + diff --git a/docs/guide-screen.html b/docs/guide-screen.html new file mode 100644 index 0000000..1e0026a --- /dev/null +++ b/docs/guide-screen.html @@ -0,0 +1,644 @@ + + + + + +SCREEN & BOARD — Amber Console + + + + + + + + + + + + + + + + + + + + + + + + +
+Skip to content + + + + + + + + + + +
+
+ + +
+ ▮ Plasma Gases +

Gas emitting directly. No phosphor in the stack.

+
+ Plasma gases + + + + +
+
+ + +
+ ▯ CRT Phosphors +

A beam on a phosphor, which emits and then persists.

+
+ CRT phosphors +

General purpose · built to be read

+ + + + +

Specialized · built for an instrument

+ + + +
+
+ + + +
+ Switches + +

Simulation · never a color

+
+ + + + +
+ +

Style & engine · never the hardware

+
+ + + + +
+ + +

The retrace band is part of the CRT simulation, and there is no sweep across a plasma panel to switch off.

+

JS Effects need the CRT simulation and a phosphor that holds long enough to see.

+ + + +
+ + +
+
+ State +
+
+
Technology
+ +
PLASMA
+
+
+
Emitter
+ +
NEON
+
+
+
Emission
+ +
585.2 nm
+
+
+
Mode
+ +
PRESET
+
+
+
Engine
+ +
CSS + JS
+
+
+
+ + +
+ Technology + +

A gas in a sealed gap, struck by a + sustain pulse. It emits directly — no phosphor in the stack — so the panel lights one + hue and varies only how hard it is driven.

+ + + + +

The gas the plasma panel was actually built on, and what this framework opens to. In a low-pressure glow the 2p→1s array dominates — the lowest excited states that radiate visibly, populated far more heavily than anything above them — so the discharge is one narrow orange-red rather than a mixture. Nixie tubes and the first flat panels ran on it.

+ + + + + + + + +
+
+ +
+ +
+ + + A preset sets the display and its simulation. Everything stays adjustable — and Reset puts all of it back, switches, styles and engine alike. +
+
+ + +
+ + + + + + + +
+ +
+
07 AMBER CONSOLE · SYSTEM GUIDE
+

SCREEN & BOARD

+
+

How a full console screen assembles — and what the board at the top of every one of these pages is actually doing.

+ +
+

SCREEN ANATOMY

+

Title and soft keys on top; the operating column left, instrumentation right; + destructive or exiting actions bottom-right, far from RUN.

+
+ + + + + + + + + +
ZONECONTENTSRULES
HEADERWordmark, page title (ALL CAPS, underlined), Title Case tabs right.One display-size line only.
LEFT COLUMNLegend panel with input wells, status strips, motion pads, banner.Reading order top to bottom is the operator's workflow.
RIGHT COLUMNBit-field checkboxes in a dim panel, bar panels with readouts.Read-only instrumentation; dim frames so it recedes.
FOOTER ROWMode changes left, exit and destructive actions bottom-right.Never adjacent to a motion control.
FRAME.ac-crt, .ac-bloom and/or .ac-afterglow on the outermost element, plus one companion child per simulation: .ac-mesh for bloom, .ac-retrace for CRT, .ac-persist for afterglow. The nav goes inside it.Once per screen, never nested. All three should be operator-toggleable — the demos put afterglow on the CRT switch.
+
+ <div class="ac-screen ac-bloom ac-crt ac-afterglow" data-ac-screen> + <span class="ac-mesh"></span> + <span class="ac-retrace"></span> + <span class="ac-persist"></span> + <nav class="ac-nav ac-nav--sticky">…</nav> + <div class="ac-screen__body"> + <div class="ac-grid ac-grid--console ac-grow"> + <div class="ac-stack">…operate…</div> + <div class="ac-stack">…instrument…</div> + </div> + </div> +</div> +

See the assembled reference + screen: ORION-70 PROJECTION CONSOLE — and the three other demos in + the overview. For the smallest frame that still works, + starter.html is one commented file with a single simulation on + it; START HERE describes what is on it.

+
+ +
+

THE BOARD

+

The setup board at the top of every page in this project. It is documentation + furniture, not part of the framework — but every control on it writes an attribute or a class + the framework actually reads, so it doubles as the worked example of how to drive the system + from a UI.

+ +

FOUR AXES, AND THEY ARE NEVER THE SAME AXIS

+
+

DISPLAY is what hardware is in the panel, and it is the only + axis that sets a color. It is split across two quarters — four gases and seven phosphors — + because they are two catalogs and not one list of eleven: a gas emits a line spectrum and its + peak is the strongest visible line, which is not the perceived hue; a phosphor emits + one broad band and its peak is the hue. Argon reads lavender while its strongest line is deep + red at 696.5nm. Both numbers are true and they answer different questions.

+

SIMULATION is what the glass does about it, and it never + sets a color. STYLE is a preference that makes no claim about the hardware at all. + ENGINE is how much of the library is running — not hardware, and not a + preference either. The last three share one quarter with their own labels inside it, because + three bordered regions of switches ran 606px on a board that is not allowed to scroll; the + labels are carrying what those borders were saying.

+
+ +

EVERY CONTROL ON IT

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CONTROLAXISWHAT IT WRITESDEFAULTREMEMBERED AS
Gas / phosphor radiosDisplaydata-ac-tech and data-ac-emitter on <html>, plus the + simulation named in that row's data-ac-sims.PLASMA / NEONac.sim.tech, ac.sim.emitter
PlasmaSimulation.ac-bloom on the frame and an .ac-mesh child.ONac.sim.plasma
CRTSimulation.ac-crt and .ac-afterglow on the frame, with + .ac-retrace and .ac-persist children.OFFac.sim.crt
JS EffectsEnginedata-ac-engine="css+js" or "css" on <html>.ON, and disabled while it would do nothingac.sim.engine
Classic ButtonsStyledata-ac-style-classic="on|off" on <html>.ON, on every presetac.sim.style.classic
Retrace BandStyledata-ac-style-retrace="on|off" on <html>.ON, and disabled under a gasac.sim.style.retrace
Reset to PresetAll fourPuts the simulations back to the pairing the current display shipped with, and + forgets every style and engine preference — corners, band and JS Effects all return to ON.—clears ac.sim.mod, ac.sim.engine, every ac.sim.style.*
+
+ +

FIVE THINGS THE BOARD DOES THAT LOOK LIKE BUGS

+
+
PLASMA AND CRT EXCLUDE EACH OTHER + Switching one ON switches the other OFF, and both toggles + move to prove it. They are not two layers of glass, they are two technologies, and no panel + has gas gaps and a scanning beam in one enclosure — a cell mesh and raster blanking gaps at + once is the pair EFFECTS spends a paragraph telling apart. Both OFF is + allowed: that is a flat lit surface, no particular hardware, and an honest thing to + want to look at. Exclusion, not a radio group. The CSS classes themselves still compose if + you wire them by hand.
+
PICKING A DISPLAY MOVES THE SWITCHES + Every catalog row carries data-ac-sims, so a + preset sets the hardware and the simulation that belongs to it — choosing P39 turns + CRT on, choosing helium turns it off again. Everything stays adjustable afterwards, and the + moment you adjust it the State panel reads MOD instead of PRESET + and the menu bar appends *MOD. Reset to Preset puts it back.
+
JS EFFECTS GOES DISABLED BY ITSELF + The module needs the CRT simulation and a phosphor whose + tail is at least 80ms; under a gas, or under P11's 35 microseconds, it would + contribute nothing. That figure is a perceptual floor and not a compositing one — much under + it and the eye stops reading a relaxation and starts reading a switch — so P1 and P3, at 24 + and 25ms, are on the dark side of it too. Rather than let the switch claim otherwise it goes + inert and the State panel reads CSS ONLY: the readout describes what is + rendering the panel, not what the flag permits. A preference you actually expressed is not + clobbered by this; it is restored when it can do something again. Only P39 and + P7 clear the floor, which makes them the only two panels where the switch can be + clicked at all — and clicking it reads MOD, because Reset puts it back.
+
THE RETRACE SWITCH GOES INERT UNDER A GAS + Same rule, different reason. Every rule drawing the band is + scoped to .ac-crt, and there is no sweep across a plasma panel to switch off — + a gas cell is driven continuously and the whole surface is lit at once. So under any gas the + switch disables itself and says why. Unlike JS Effects it does not care how long the + phosphor holds or whether the JavaScript is loaded: the band is pure CSS, so P11 gets a + working switch and a dead engine at the same time.
+
THERE IS NO BLINK SWITCH + Deliberate. Blink is law-2 emphasis and half of what the + alarm specimens in EFFECTS and + DISPLAY are demonstrating, so the guide keeps it on and + does not offer to turn it off. The flag is in the framework regardless — write + data-ac-style="blink" on a toggle to expose it, or set + data-ac-style-blink="off" on <html>. + prefers-reduced-motion stops it either way, which is the case that + matters.
+
+ <button class="ac-toggle" data-ac-sim="crt" aria-pressed="false">…</button> +<button class="ac-toggle" data-ac-style="classic" aria-pressed="true">…</button> +<button class="ac-toggle" data-ac-style="retrace" aria-pressed="true">…</button> +<p data-ac-style-note="retrace">…why the switch above is dead…</p> +<input type="radio" name="ac-display" data-ac-display + data-ac-tech="crt" data-ac-emitter="p7" data-ac-sims="crt" data-ac-peak="450/558 nm"> +

Shipping this board in your own app. It is a hardware bench for looking at the + system, not a settings screen — pick the palette your product is and write the two attributes + once.

+
+ + + +
+ + + +
+
+ + + + + diff --git a/docs/guide-type.html b/docs/guide-type.html new file mode 100644 index 0000000..00ef404 --- /dev/null +++ b/docs/guide-type.html @@ -0,0 +1,670 @@ + + + + + +TYPE & GEOMETRY — Amber Console + + + + + + + + + + + + + + + + + + + + + + + + +
+Skip to content + + + + + + + + + + +
+
+ + +
+ ▮ Plasma Gases +

Gas emitting directly. No phosphor in the stack.

+
+ Plasma gases + + + + +
+
+ + +
+ ▯ CRT Phosphors +

A beam on a phosphor, which emits and then persists.

+
+ CRT phosphors +

General purpose · built to be read

+ + + + +

Specialized · built for an instrument

+ + + +
+
+ + + +
+ Switches + +

Simulation · never a color

+
+ + + + +
+ +

Style & engine · never the hardware

+
+ + + + +
+ + +

The retrace band is part of the CRT simulation, and there is no sweep across a plasma panel to switch off.

+

JS Effects need the CRT simulation and a phosphor that holds long enough to see.

+ + + +
+ + +
+
+ State +
+
+
Technology
+ +
PLASMA
+
+
+
Emitter
+ +
NEON
+
+
+
Emission
+ +
585.2 nm
+
+
+
Mode
+ +
PRESET
+
+
+
Engine
+ +
CSS + JS
+
+
+
+ + +
+ Technology + +

A gas in a sealed gap, struck by a + sustain pulse. It emits directly — no phosphor in the stack — so the panel lights one + hue and varies only how hard it is driven.

+ + + + +

The gas the plasma panel was actually built on, and what this framework opens to. In a low-pressure glow the 2p→1s array dominates — the lowest excited states that radiate visibly, populated far more heavily than anything above them — so the discharge is one narrow orange-red rather than a mixture. Nixie tubes and the first flat panels ran on it.

+ + + + + + + + +
+
+ +
+ +
+ + + A preset sets the display and its simulation. Everything stays adjustable — and Reset puts all of it back, switches, styles and engine alike. +
+
+ + +
+ + + + + + + +
+ +
+
02 AMBER CONSOLE · SYSTEM GUIDE
+

TYPE & GEOMETRY

+
+

Two bitmap faces and one grid. Text sits on terminal rows, space is measured in 4px half-cells, and a stroke is 2px because a hairline cannot exist on this panel.

+ +
+

TYPE

+

Two bitmap faces. VT323 — a digitization of the DEC VT320 terminal ROM — carries + everything at 18px and above. Silkscreen handles 8px bit labels where VT323 loses its grid. + Below 18px, VT323 is unreadable: that is the floor, not a guideline.

+
+
DISPLAY · 44 / 0.1EMSHOW LOCAL - AUTO
+
TITLE · 30RESET FRAME COUNT
+
BODY · 22SHOW TIME 0000:00 (MM:SS) DATE 07/23/26
+
SMALL · 18SHOW INFORMATION ──────────────
+
MICRO · 8 SILKSCREENREMOTE START BIT · REEL UNIT READY · SYSTEM READY
+
+
+

CASING

ALL CAPS for machine text, + Title Case for operator soft keys. SHOW LOCAL - AUTO MODE is the system reporting; + Change Show is a key a human presses.

+

SUBSTITUTION NOTE

The source + hardware used a mask-ROM face with no digital release. VT323 and Silkscreen are era-correct + stand-ins. Supply a licensed bitmap face and only --ac-font-terminal changes.

+
+
+ +
+

GEOMETRY

+
+
SPACING · 4 8 12 16 24 32 48 +
+
+
+
+
+
+
+ 4px half-cells of the character grid.
+
STROKE · 2PX ONLY +
+ No hairlines — a 1px rule cannot exist on this panel. The one + exception is .ac-badge, which is a chip rather than structure.
+
RADIUS · KEYS / WELLS / STRIPS +
+
+
+
+
+ Three steps, and the first two follow the corner style rather + than a fixed number. Classic — the default — cuts --ac-radius to + 2 4 8 4 and --ac-radius-sm to 1 2 4 2, deepest at the + near corner; .ac-rounded spends the same budget on an arc, 8px and 4px. A strip + is square in both. Never pills.
+
+
+ + +
+

LAYOUT

+

Flex and grid, with gap everywhere and never a margin + between siblings — a margin is a distance nobody declared, and it would fight the 4px + half-cell the rest of this chapter is snapped to. Two containers, one grid, and a handful of + child utilities. Every one of them carries min-width: 0, which is not a detail: + a grid or flex item's automatic minimum size is its content, and + .ac-btn--pad's 130px floor will push a track wider than its share and overflow the + page. That has happened, and it is what the responsive probe in the test suite exists to + catch.

+ +
+

Both containers take their gap from --ac-gap, which you set on + the element rather than on :root — it is a per-instance dial, not a token with a + global value. Unset, a row or stack is --ac-space-4 (16px) and a grid is + --ac-space-6 (24px), because a grid separates regions and a row separates + controls.

+
+ +
+
ROW — THE FOUR ALIGNMENTS +
+
+ CENTER + + items centered on the cross axis +
+
+ 28.4 + BASELINE — a big number and its unit sit on one line +
+
+ BETWEEN + EDGE +
+
+ END + +
+
+ class="ac-row ac-row--center" --center --baseline --between --end --wrap +style="--ac-gap: 12px" <!-- per instance, not a root token --> +

Reaching for --between to push one item right in a row that + has three. It justifies every gap; use .ac-spacer below, which pushes + exactly where you put it.

+
+ +
GROW, SPACER, PUSH +
+ + + +
+
+ STATUS + + +
+
+ A stack with room to spare — +
+ +
+
+ .ac-grow absorbs leftover space (and carries + min-width: 0 with it, which is why a row of touch pads needs it). + .ac-spacer is an empty element that eats the slack at exactly one point. + .ac-push is margin-top: auto — the one margin in the system, and it + is a layout instruction rather than a distance. + class="ac-grow" <span class="ac-spacer"></span> class="ac-push" +

Nothing — these are the pinned-footer and fill-the-row idioms, and the + console screen uses all three. .ac-push only works in a flex column.

+
+
+ +
GRID — --AC-COLS AND THE SPANS +
+
.ac-col-3
+
.ac-col-3
+
.ac-col-2
+
.ac-col-4
+
.ac-col-6 — a full row
+
+ The track count is --ac-cols on the grid, and the + spans are on the children: .ac-col-2, -3, -4, + -6. There is no -5 and there will not be — the console layouts are + halves, thirds and quarters of six, and a span nobody can divide evenly is a layout that will + not survive the next breakpoint. Below 900px every span resets to + auto and the grid becomes its declared track count of narrow columns; + set --ac-cols: 1 in your own media query if that is not what you want. + <div class="ac-grid" style="--ac-cols: 6"> + <div class="ac-col-3">…</div> <!-- half --> + <div class="ac-col-2">…</div> <!-- third --> +</div> + +<div class="ac-grid ac-grid--console"> <!-- the canonical split, no --ac-cols --> + <div class="ac-stack">…operate…</div> + <div class="ac-stack">…instrument…</div> +</div> +

A span larger than --ac-cols. It does not error, it just + overflows the track and takes the page with it.

+
+ +
+
.AC-GRID--CONSOLE — THE CANONICAL SPLIT + Operate left, instrument right: + minmax(0, 1fr) beside minmax(280px, 380px), with no + --ac-cols to set. It stacks below 900px, which is the width at + which the instrument column can no longer hold its 280px floor beside a usable operating + column. That number is measured off the source console screen rather than picked off a + device list — there is no phone/tablet/desktop ladder in this framework, only the two widths + where something specific stops fitting. +

Three columns. The split is an argument about where an operator looks, and + a third column has nowhere to be in it.

+
+
THE SHELL, AND TWO CLASSES THAT ARE NOT LAYOUT + .ac-screen is the full-height frame that hosts + the simulations — 100svh, not 100vh, so a retracting URL bar + cannot leave a screenful of nothing to scroll past, and overflow: clip rather + than hidden, so the sticky nav inside it still has the viewport to stick to. + .ac-screen__body is the padded content well inside it, overridable with + --ac-screen-pad. + .ac-root is the scoped reset: + put it on a wrapper when you are embedding the framework in a page you do not own, and the + box-sizing and type reset applies inside it instead of to body. It needs the + swap to go with it — base/reset-scoped.css in place of + base/reset.css in amber-console.css, then rebuild; the shipped + bundle carries the global reset, so on that build the class styles nothing on its own. The + palette attributes may go on the wrapper rather than on <html> and + resolve correctly either way. + .ac-sr-only is the visually-hidden utility — it exists for the + <legend> of a bit group whose visible label is already the panel's own + title, which is the one place the accessible name and the drawn name legitimately + differ. + <div class="ac-screen" data-ac-screen> + <div class="ac-screen__body" style="--ac-screen-pad: 20px 24px"> … </div> +</div> +<div class="ac-root"> … </div> <legend class="ac-sr-only">Status bits</legend> +

Nesting .ac-screen. Once per page, on the outermost frame.

+
+
+
+ + + +
+ + + +
+
+ + + + + diff --git a/docs/guide.html b/docs/guide.html index 91bf87b..26a9861 100644 --- a/docs/guide.html +++ b/docs/guide.html @@ -4,7 +4,7 @@ SYSTEM GUIDE — Amber Console - + @@ -15,7 +15,7 @@ - + @@ -38,55 +38,443 @@ CRT off. Any class or overlay node that is off by default must be absent here, or it paints for one frame on every load before initSims removes it. -->
+Skip to content + + + + + + + +
+
+ + +
+ ▮ Plasma Gases +

Gas emitting directly. No phosphor in the stack.

+
+ Plasma gases + + + + +
+
+ + +
+ ▯ CRT Phosphors +

A beam on a phosphor, which emits and then persists.

+
+ CRT phosphors +

General purpose · built to be read

+ + + + +

Specialized · built for an instrument

+ + + +
+
+ + + +
+ Switches + +

Simulation · never a color

+
+ + + + +
+ +

Style & engine · never the hardware

+
+ + + + +
+ + +

The retrace band is part of the CRT simulation, and there is no sweep across a plasma panel to switch off.

+

JS Effects need the CRT simulation and a phosphor that holds long enough to see.

+ + + +
+ + +
+
+ State +
+
+
Technology
+ +
PLASMA
+
+
+
Emitter
+ +
NEON
+
+
+
Emission
+ +
585.2 nm
+
+
+
Mode
+ +
PRESET
+
+
+
Engine
+ +
CSS + JS
+
+
+
+ + +
+ Technology + +

A gas in a sealed gap, struck by a + sustain pulse. It emits directly — no phosphor in the stack — so the panel lights one + hue and varies only how hard it is driven.

+ + + + +

The gas the plasma panel was actually built on, and what this framework opens to. In a low-pressure glow the 2p→1s array dominates — the lowest excited states that radiate visibly, populated far more heavily than anything above them — so the discharge is one narrow orange-red rather than a mixture. Nixie tubes and the first flat panels ran on it.

+ + + + + + + + +
+
+ +
+ +
+ + + A preset sets the display and its simulation. Everything stays adjustable — and Reset puts all of it back, switches, styles and engine alike. +
+
+
+ + + + + + +
+
AMBER CONSOLE

SYSTEM GUIDE

-
REV 1.0 · MONOCHROME PLASMA UI · INDUSTRIAL CONTROL PANEL GENRE
+
REV 2.0 · MONOCHROME PLASMA UI · INDUSTRIAL CONTROL PANEL GENRE

A design system for interfaces that look like they run machinery. Everything here is derived from the physical limits of a late-80s amber plasma display: one lit color, a character grid, 2-pixel strokes, and no time for decoration. The constraints are the design.

- +
-
01

PHILOSOPHY

+
00

PHILOSOPHY

Six laws, each inherited from a hardware limitation rather than a style preference. Break one and the illusion collapses.

-
1

ONE GAS, MANY INTENSITIES

-

There is no phosphor in here. A monochrome plasma panel is a grid of gas gaps holding a - neon–argon mixture, and the amber is neon emitting directly when the gap strikes — around - 590nm, the colour neon simply is. Phosphors arrive only with colour plasma, where xenon UV - excites red, green and blue stripes. So the panel can light one colour and vary how hard. - Hierarchy comes from brightness, inverse video, and blink — never hue. There is no red, no - green, no success color.

+
1

ONE EMITTER, MANY INTENSITIES

+

Whatever is making the light, there is only ever one of it. A monochrome plasma panel is a + grid of gas gaps holding a neon–argon mixture, and the orange-red is neon emitting directly + when the gap strikes — its strongest visible line is at 585.2nm, though the hue you see is + the eye integrating every line at once rather than that one number. No phosphor is involved + in that case at all; phosphors arrive with colour plasma, where xenon UV excites red, green + and blue stripes. A monochrome CRT is the other way round — the persistence is a + phosphor coating, and the catalog above fits seven of them. Either way the panel lights one + colour and varies only how hard. Hierarchy comes from brightness, inverse video, and blink — + never hue. There is no red, no green, no success color.

2

INVERSE VIDEO IS IMPORTANCE

A solid amber block with dark text is the machine speaking: live status, section headers, the active mode. Ration it — two or three per screen, no more.

@@ -123,622 +511,235 @@

SYSTEM GUIDE

- -
-
02

COLOR

-

Five discharge intensities over three warm blacks. Every color decision in the system - is a choice of intensity, and intensity means energization: bright is live, faint is inert.

-

There are two palettes, and they are not a light/dark pair — they are two - different pieces of hardware. Switch with data-ac-gas on the root element, or use the GAS - toggle in the menu bar. Both ramps are shown below regardless of which one is active; both are held to - the same contrast gate.

- -

DATA-AC-GAS="NEON" · 24° · THE DEFAULT

-

A monochrome AC plasma panel. The light is neon - emitting directly from the gas — no phosphor anywhere in the stack. The hue is derived, not picked: - weight the Ne I visible lines by the CIE 1931 observer and the discharge sits at x=0.631 y=0.369, just - outside sRGB. That maps to 19°, which is a DC neon tube; a pulsed sustain enriches the 585.2nm line and - walks it up. 19–31° is the defensible band and 24° is its middle.

-
-
--AMBER-100 · #FFA86DHOT HIGHLIGHT, FOCUS
-
--AMBER-90 · #FF6B08PRIMARY — --ink, --fill
-
--AMBER-70 · #DD5800SECONDARY TEXT
-
--AMBER-50 · #AB4500DIM, DISABLED
-
--AMBER-30 · #5B2500TRACE, GHOST RULES
-
-
-
--SCREEN · #100600
-
--SCREEN-RAISED · #1B0C02
-
--SCREEN-WELL · #060200
-
--ON-FILL · #1E0C00
-
- -

DATA-AC-GAS="AMBER" · 38° · THE PHOSPHOR

-

The classic amber CRT phosphor (P3): a broad - ~590nm band with real green content, where neon is a line spectrum with almost none. Historically this is - a different display technology — but it is what most people mean by "amber terminal", it is the - ramp the source design system was drawn against, and it pairs naturally with .ac-crt.

-
-
--AMBER-100 · #FFD052HOT HIGHLIGHT, FOCUS
-
--AMBER-90 · #FFAE1EPRIMARY — --ink, --fill
-
--AMBER-70 · #CD8817SECONDARY TEXT
-
--AMBER-50 · #8D5B10DIM, DISABLED
-
--AMBER-30 · #4A2F08TRACE, GHOST RULES
-
-
-
--SCREEN · #0D0700
-
--SCREEN-RAISED · #170E02
-
--SCREEN-WELL · #060200
-
--ON-FILL · #1A0E00
+ + +
+

START HERE

+

One file at the root of the repository, called starter.html. It is + the shortest path from reading this page to having a panel on screen — not a snippet to + assemble, but a whole working page you open by double-clicking it. No build step, no server, no + package manager, and no JavaScript on the page at all.

+ +
+ STARTER — ONE FILE, ONE STYLESHEET, NO BUILD + OPEN starter.html ► + It arrives as a small console rather than a swatch sheet: + the .ac-grid--console split, with an operating panel on the left — status strip, + four button states, an input well, a select, status bits, an unscripted toggle, a meter with + its scale and a blinking alarm — and a dimmed instrument panel on the right carrying two + readouts, a rule, a keyed list and badges. Under both, a third region on + .ac-rounded, so both corner styles are on screen at once. + The instruction is to start deleting. Every block is commented with what it + is and why it is shaped that way before you remove it, and what survives is your + page.
+ + <!-- this is the whole setup --> +<link rel="stylesheet" href="dist/amber-console.css"> + +<body class="ac-screen ac-bloom"> + <span class="ac-mesh"></span> + <div class="ac-screen__body"> … </div> +</body> + +

WHAT IT IS DEMONSTRATING

+
+

That the framework is CSS. The glow, the cell mesh, the + chamfered corners and the toggle flipping between ON and OFF are all stylesheet — the file + carries no script, deliberately, so that nobody comes away thinking a runtime is required. + The two optional modules in dist/ add the setup board's switches and the three + persistence effects that genuinely cannot be done in CSS, which + 04 PERSISTENCE is about. You do not need either to + build with this.

+

That you pick one technology. + .ac-bloom and .ac-crt are not two layers of glass, they are two + kinds of display, and no panel is both — a screen door is not a scanline, and there is no + scan in a plasma panel to blank. So the starter ships plasma alone, and writes the tube out + beside it as a swap: class="ac-screen ac-crt ac-afterglow" on the body, the + .ac-mesh child replaced by .ac-retrace and .ac-persist, + and a phosphor set on <html>. Afterglow rides with the CRT because it is + not a third technology — it is what the phosphor does after the beam has gone. + amber-console.js enforces the exclusivity and switches one off when the other + comes on; CSS cannot, so on a hand-authored page it is on the author. + 03 EFFECTS makes the argument in full.

+

That every companion node is paired with its class. Each + simulation paints into a child of the frame, and the file says so at each one: keep the + <span> for the class you keep, and delete both together. A class with no + layer to paint into renders nothing, which is the single most common way a first page comes + out flat.

+

That spacing is a box you write, not something a component does for + you. .ac-panel draws a border and pads its inside; it does + not space its own children, because nothing in this system puts margins between + siblings — they would fight the 4px half-cell grid. So each panel in the starter holds one + .ac-stack, and the rows inside it are 16px apart because that is + --ac-gap's default. The same applies to a fieldset of status bits: the framework + styles the controls, not the elements it never claimed, so the UA border on a + <fieldset> is yours to clear — and the file does it inline where you can + see it happen.

-

The --amber-* prefix names the - ramp, not the hue — it is historical, and under NEON those tokens are not amber. Adding a third - gas means adding one block to colors.css: five stops, three surfaces, - --on-fill, and the four --gas-N triples the glow is built from.

-

SEMANTIC ALIASES

+

THREE THINGS TO TRY, WHICH THE FILE ENDS ON

- + - - - - + + + + + + + + + + + + + + +
TOKENMAPS TOUSE
TO CHANGEWRITETHE CHAPTER FOR IT
--ink / --ink-brightamber-90 / 100Body text; bright for live values and hover.
--ink-dim / --ink-faintamber-70 / 50Labels and legends; faint for disabled — and faint never glows.
--fill / --on-fillamber-90 / per paletteInverse-video surfaces and the dark text on them.
--stroke / --stroke-dimamber-90 / 50All borders, always 2px. Dim for secondary frames.
The hardware<html data-ac-tech="crt" data-ac-emitter="p3"> — the classic amber + terminal. Eleven emitters across the two technologies, and the pair is always stated + together.01 COLOR
The blinkingdata-ac-style-blink="off" on the root. Alarms still read — they keep the + inverse fill, because blink was never the only thing saying it.03 EFFECTS
Anything else:root { --ac-radius: 0px; --ac-type-body: 20px }. Every color, size and + space is a custom property, and they survive into dist/ unresolved.08 REFERENCE
-
- THE THREE EMPHASIS LEVELS — NO FOURTH EXISTS - STATUS:AUTO MODE  PRESETS COMPLETED - STATUS:AUTO MODE  PRESETS COMPLETED - ✳ LAMP FAULT ✳ -
+

Accessibility is already handled and the + starter says so: reduced motion, forced colors and print are all respected, and every color + pair in the system is contrast-checked. There is nothing to add to get that. The file also + ships inside the npm package — npm i amber-console puts a copy at + node_modules/amber-console/starter.html.

+

Adding the framework to an app that already exists. That is + dist/amber-console.layer.css plus your own markup, so the framework loses + specificity fights against your rules — see 07 SCREEN & BOARD + for how a full console assembles.

- -
-
03

TYPE

-

Two bitmap faces. VT323 — a digitization of the DEC VT320 terminal ROM — carries - everything at 18px and above. Silkscreen handles 8px bit labels where VT323 loses its grid. - Below 18px, VT323 is unreadable: that is the floor, not a guideline.

-
-
DISPLAY · 44 / 0.1EMSHOW LOCAL - AUTO
-
TITLE · 30RESET FRAME COUNT
-
BODY · 22SHOW TIME 0000:00 (MM:SS) DATE 07/23/26
-
SMALL · 18SHOW INFORMATION ──────────────
-
MICRO · 8 SILKSCREENREMOTE START BIT · REEL UNIT READY · SYSTEM READY
-
-
-

CASING

ALL CAPS for machine text, - Title Case for operator soft keys. SHOW LOCAL - AUTO MODE is the system reporting; - Change Show is a key a human presses.

-

SUBSTITUTION NOTE

The source - hardware used a mask-ROM face with no digital release. VT323 and Silkscreen are era-correct - stand-ins. Supply a licensed bitmap face and only --font-terminal changes.

+ +
+

THE GUIDE

+

Nine chapters — seven that argue and two that only list. Every specimen on + every one of them is live markup from the library, running under whatever hardware the board + above is set to, so the guide is also the largest test of the system in the repository. Read + 01–07 in order if you are learning the system; go straight to 08 REFERENCE if + you already know it and want to know whether a given class, attribute or token exists.

+
+ + 01 + COLOR + Five intensities over three warm blacks, two technologies, eleven emitters. Why a palette is a piece of hardware and not a theme, and why naming one takes two attributes. + + + 02 + TYPE & GEOMETRY + Two bitmap faces, an 18px floor, 4px half-cells and a 2px stroke. The character grid, and the box rules that fall out of it. + + + 03 + EFFECTS + Glow, blink and scanlines — the only three — plus the screen simulations that layer over them. A screen door is not a scanline, and the difference is the whole point. + + + 04 + PERSISTENCE + Eight separate phenomena, four of them pure CSS and the rest needing JavaScript for what a stylesheet genuinely cannot express. What a long phosphor costs, and the PPI sweep that is the argument in one widget. + + + 05 + CONTROLS + Live specimens: buttons and touch pads, both corner styles, tabs, recessed wells, status bits, toggles, the keypad and the dialog. Every one with its class string. + + + 06 + DISPLAY + The machine's own voice — status strips, panels, readouts, tables, keyed lists, stepped meters, the spinner and the one banner a screen is allowed. + + + 07 + SCREEN & BOARD + How a full console assembles, zone by zone — and every control on the setup board at the top of these pages: what it writes, where it starts, whether it is remembered. + + + 08 + REFERENCE + The index rather than the argument: every class, every root attribute, every token split by whether you set it or the framework does, every key the board remembers you by, and the four environments the stylesheet answers on its own. + + + 09 + DEPRECATED + Everything taken away since 1.0 and everything going in 3.0, with what to write instead. The token rename is the only breaking change in 2.0, and it fails silently — start here if you are upgrading. +
- -
-
04

GLOW, BLINK, SCANLINES

-

The only three effects in the system. Glow marks energization, blink marks alarm, - scanlines sit once on the outermost frame. There is no fourth effect, and no component - anywhere in the CSS carries a transition — a control does not ease into being pressed. The one - timing function in the whole framework belongs to the gas, not to the UI: see - .ac-afterglow below.

-

The switches above default to PLASMA on, CRT off. Plasma is - what this panel is; CRT simulates a different display technology, and its blanking gaps are the - one thing a plasma screen conspicuously does not have. Turn it on to compare — the choice - persists. .ac-afterglow rides the CRT switch, so it is off by default too.

-

Three screen simulations layer on top, driven from two switches — - .ac-afterglow rides with .ac-crt, because persistence is a property - of the same glass the scanlines are on, and a tube that scans without holding is not a tube - anybody has watched. Each class still works alone if you wire it yourself: - .ac-bloom (the panel — hotter glow tokens for every descendant, a soft - center-weighted bleed breathing on a 9s mains cycle, and the cell mesh with its shimmer), - .ac-crt (the tube — - scanline texture, edge vignette, one-cell line drift per 11s, ±2% flicker, and a retrace band - sweeping down every 13s) and .ac-afterglow (plasma persistence — see below). - All three are tuned near the threshold of perception: if you can point at - the effect, it is too strong. The motion describes energized hardware, not a UI transition — - state changes stay instant — and everything stops under prefers-reduced-motion. - .ac-scanlines is the static, motion-free texture for cards and print.

-

A screen door is not a scanline, and the difference is the whole - point of .ac-bloom. A cell here lights at the crossing of a row wire and - a column wire, boxed in on four sides by barrier ribs that carry no discharge and emit nothing - — so a lit pixel is a neon dot trapped in a square aperture, and what you see with your eye - close to the glass is a fine mesh in both axes. The dark horizontal blanking gaps - between raster lines belong to .ac-crt and to the tube it simulates. There is no - scan in a plasma panel, so there is nothing to blank. The ribs are drawn in pure black rather - than a tint, which is what makes the grid appear only where the panel is lit: over the unlit - screen a black veil has nothing to take away. On top of it sits the shimmer — the sustain - voltage is AC, so the gas is struck and re-struck rather than held, and a sub-pixel buzz on - two detuned cycles is the visible residue of that. Both stop under - prefers-reduced-motion; the mesh itself does not, because it is the shape of the - hardware rather than an effect playing over it.

-

All three go on the outermost frame, and the frame is the whole screen — - including the menu bar. A nav that floats above the simulations is a nav that - is not part of the panel, so .ac-nav--sticky sits inside the frame at z-index 20 - and every overlay paints above it, from 40 up. That is also why .ac-screen clips - with overflow: clip rather than hidden: hidden would - make the frame a scroll container, and a sticky bar inside one sticks to nothing.

-
-
GLOW — ENERGIZED - 255315 - --glow-text on live values, --glow-box on filled and focused elements.
-
NO GLOW — INERT - 255315 - Dim and disabled states never glow. Glow is a signal, not a texture.
-
BLINK — ALARM - ✳✳ CHECK DOUSER ✳✳ - steps(1) hard on/off, 1.1s. Never a fade — until .ac-afterglow is on, which softens the OFF edge only. The ON edge stays instant either way.
-
- -

PLASMA AFTERGLOW

-

A gas gap that stops being driven does not go dark on the next refresh. The - discharge leaves excited and metastable neon behind it, and that population keeps emitting - while it relaxes and recombines — the afterglow, which is a property of the gas and not of any - coating. Most of the light is gone in the first fifth of a second, then a short dim tail. - .ac-afterglow is that relaxation, and it is several separate things because - persistence is six separate phenomena — and only four are reachable from CSS alone.

-
-
1 · DECAY-OUT - Anything that disappears drains instead of switching off — - a tab panel, a closing dialog, an acknowledged alarm. Pure CSS, and the one part that - carries the effect on its own. The transition is declared on the hidden state only, so - hiding decays and showing snaps back instantly. Nothing here ever fades in.
-
2 · GHOSTING - Text rewritten in place leaves the previous value behind - for a beat. Watch the clock and the frame counter on the console page. This is the one part - CSS cannot do — nothing in the cascade remembers the old string — so a MutationObserver in - amber-console.js parks a copy at the rect it occupied.
-
3 · RESIDUAL PATCHES - The glass never sits perfectly uniform; charge relaxes - unevenly. Four overlapping pools at 3% over the amber, drifting on a 47s cycle. You do not - notice it directly — you notice when it stops.
-
4 · THE BLINK OFF-EDGE - A blinking alarm is the thing on the panel that stops being - driven most often — once a second, forever — so it is the last place the decay should be - missing. .ac-blink stays steps(1) by default; with persistence on, - only the ON edge stays hard. Instant up, curve down.
-
5 · DE-ENERGIZING - The commonest light-off event on a control panel is not a - node disappearing, it is a lamp going out: a pressed button releasing, a tab deselecting, - an interlock unchecking, the pointer leaving a control. Those never hide, so decay-out - never saw them and they snapped off in one frame while everything around them relaxed. - Press RUN then STOP on the console and watch the pad drain.
-
6 · SCROLL SMEAR - Scrolling hands every cell on the panel a new value at - once, which is the largest light-off event there is, and the image trails. Scaled by real - scroll speed and drained when you stop. Scroll this page briskly.
-
-
-
BLINK — ALARM - ✳ LAMP FAULT ✳ - Toggle CRT in the nav and watch this one. Off, it - snaps between full and 10%. On, it holds, then drains over an ~88ms window of the 1.1s - cycle — deliberately near the floor of what registers as a decay at all.
-
EVERY BLINK SITE FOLLOWS - One rule swaps the animation-name rather than the - shorthand, so .ac-blink, .ac-cursor, an invalid - .ac-input and an over-range .ac-meter--alarm bar all keep their own - cycle length and pick up the same curve. The de-energizing rules use the same trick as - decay-out: the transition is declared on the UNLIT half, so going out drains and coming - on is instant.
-
- <div class="ac-screen ac-afterglow"><span class="ac-persist"></span> … </div> -

Assuming a removed node ghosts itself. The observer only sees text change; - a node that stops existing has no rect left to pin a ghost to, so ghost it - before you remove it — AmberConsole.afterglow(row), then - row.remove(). Retune the decay with --ac-decay (105ms), - --ac-decay-fast (60ms, for rewritten text and de-energizing controls) and - --ac-decay-ease.

- -

THE THREE SIMULATIONS, SIDE BY SIDE

-

Each tile is its own frame. Use the PLASMA and CRT switches in the nav - to compare these against the live page — the difference should be almost too small to name. - CRT takes the afterglow with it. Note that the switches reach the menu bar too.

-
-
- FLAT — NO SIMULATION - 154A - The baseline. Everything still reads. -
-
- - .AC-BLOOM — THE PANEL - 154A - Hotter glow tokens, a soft bleed, and the cell mesh. Put your eye close. -
-
- - .AC-CRT — THE TUBE - 154A - Scanlines, vignette, drift, flicker, retrace. -
-
- - .AC-AFTERGLOW — PERSISTENCE - 154A - Residual patches only, here — a static tile has nothing to decay. -
-
- .AC-SCANLINES — STATIC TEXTURE - 154A - No motion at all. For print, cards and thumbnails. -
-
- <div class="ac-screen ac-bloom ac-crt ac-afterglow"><span class="ac-mesh"></span><span class="ac-retrace"></span><span class="ac-persist"></span> … </div> -

Nesting a simulation inside another one. Once per screen, on the outermost frame - — the tiles above are the exception that proves it, and they are documentation, not UI.

- + +
+

THE DEMOS

+

Four assembled screens, none of them a component gallery. Each is a whole + product built only from what this guide documents, and each puts a different part of the system + under load — which is why the effect worth watching is a different one on each.

-
BLOCK CURSORTITLE:HEAT - class="ac-cursor"
-
GLYPHS — THE ONLY ICON SET - ✳✳   █ ▮ ▯   ▲ ▼ ◄ ►   ┌─┐ └─┘ - Typeset in the terminal font. Never an SVG, never an emoji.
-
-
- -
-
05

GEOMETRY

-
-
SPACING · 4 8 12 16 24 32 48 -
-
-
-
-
-
-
- 4px half-cells of the character grid.
-
STROKE · 2PX ONLY -
- No hairlines — a 1px rule cannot exist on this panel. The one - exception is .ac-badge, which is a chip rather than structure.
-
RADIUS · 8 PADS / 4 WELLS / 0 STRIPS -
-
-
-
-
- CRT-rounded corners, never pills.
-
-
- - -
-
06

CONTROLS

-

Live components from the library. Hover to brighten, press to invert, tab to see the - dashed focus ring.

-
- -
BUTTON — VARIANTS -
- - - - - -
- Outline is default. Filled is inverse video — one primary per region. Dim is secondary. Disabled drops to faint and loses its glow. - class="ac-btn" ac-btn--filled ac-btn--dim ac-btn--block [disabled] -<!-- or drive it with ARIA: --> <button class="ac-btn" aria-pressed="true"> -

More than one filled button in a region. Inverse video means "the machine is - doing this"; two of them means neither reads.

-
- -
BUTTON — SIZES -
- - - -
- class="ac-btn ac-btn--sm" ac-btn ac-btn--lg -

--sm on a touch panel: it computes to about 30px tall, under the - 44px hit-target floor. Use it only in dense, mouse-driven tooling.

-
- -
BUTTON — TOUCH PADS (LABEL TOP-LEFT, BODY EMPTY) -
- - - -
- Sized for a gloved finger; the active mode is the filled one. Selection is state, not decoration. - class="ac-btn ac-btn--lg ac-btn--pad ac-grow" -

A row of pads without .ac-grow (or min-width:0) — - the 130px min-width floor will overflow a narrow viewport.

-
- -
TABS — SOFT KEYS, TITLE CASE -
- - - -
- Arrow keys, Home and End move between them when the optional JS module is loaded. - <div class="ac-tabs" role="tablist" data-ac="tabs"> - <button class="ac-tab" role="tab" aria-selected="true" aria-controls="panel-1">Functions</button> -</div> -

Navigation between pages — that is .ac-nav. Tabs swap a region, - not a screen.

-
- -
-
INPUT + SELECT — RECESSED WELLS - - - - - Invalid is blink plus inverse video. There is no red border, because there is no red. - <label class="ac-field"> - <span class="ac-field__label">Title:</span> - <input class="ac-input" type="text"> -</label> -<span class="ac-select"><select class="ac-input">…</select></span> -
-
CHECKBOX — STATUS BITS (NO CHECK GLYPH) - - - - - - A set bit fills solid, exactly like a hardware indicator lamp. - <label class="ac-check"><input type="checkbox"><span>Spare</span></label> -

A single yes/no setting the operator flips — that reads better as an - .ac-toggle, which states ON or OFF in words.

-
-
- -
-
RADIO — EXCLUSIVE MODES - - - - <label class="ac-radio"><input type="radio" name="mode"><span>Auto</span></label> -

More than about five options — that is an .ac-select.

-
-
TOGGLE — HARD SNAP, ON/OFF READOUT - - - - The thumb jumps; it does not slide. Text state is mandatory — a switch position alone is ambiguous on a monochrome panel. The middle one is the CSS-only variant: no JavaScript at all. - <button class="ac-toggle" data-ac="toggle" aria-pressed="false">…</button> -<label class="ac-toggle ac-toggle--input">…<input type="checkbox">…</label> -
-
- -
KEYPAD — NUMERIC ENTRY FOR GLOVED HANDS -
- - - - - - - - - - - - -
- <div class="ac-keypad"><button class="ac-btn ac-keypad__key">7</button>…</div> -

Any screen with a keyboard attached. This exists because there is no keyboard - in a projection booth.

-
- -
DIALOG — IT APPEARS; IT DOES NOT FADE IN - - Flat backdrop, no blur, no scale. Built on native <dialog>, so Escape and focus trapping come from the browser. - <dialog class="ac-dialog"><form method="dialog"> - <h2 class="ac-dialog__title">Confirm</h2> - <div class="ac-dialog__body">…</div> - <div class="ac-dialog__actions">…</div> -</form></dialog> -

Anything the operator must see machine state behind. A modal on a control - surface hides the panel; use an .ac-banner instead.

-
+
CONSOLE — ORION-70 PROJECTION CONSOLE + SHOW LOCAL - STANDBY ► + The reference screen, and the one SCREEN & BOARD is describing: + operating column left, instrumentation right, destructive actions bottom-right. Show + information in input wells, an alarm log, interlock bits, lamp values, a frame counter. + Watch ghosting here — the clock and the frame counter rewrite themselves in + place, which is the one persistence effect CSS cannot do at all.
+ +
SERVER — D-STAR NODE DASHBOARD + NODE 01 · 8 OF 8 SERVICES UP ► + Node vitals, host load, network throughput, disks, daemons, + containers, ZFS pools and an event log, behind tabs. The density case: tables that scroll + rather than fold, and a stopped container that recedes to the faintest ink with its halo off + because there is no red to say it in. Watch a load bar under P39 — a lit + area shrinking is the eighth persistence effect, and the bar is where it was most obviously + missing.
+ +
RADAR — SEASCAN RM-12 + RM-12 · 3 NM · HEAD-UP ► + A PPI with a bearing ring, contacts, a guard sector, an + electronic bearing line and a variable range marker, plus an A-scope, receiver controls and a + target plot. Every mark is a rotated zero-width span, because law 6 bans the SVG element and + npm run check greps for it. Watch it under P7 — the leading + edge turns blue against a yellow-green wake, which is the two coatings doing what they did on + the real tube.
+ +
TERMINAL — TELEMARK 400 + FXSP · SPOT FOREIGN EXCHANGE ► + A dealing-room page: spot FX, cross rates, eurocurrency + deposits, government bonds, an index summary, an order book and a crawling tape. The + law-1 answer to the question every market screen has to answer — how do you flag a change + with no color to flag it in? Watch a quote update: the cell inverts for a + beat, which is what these screens did before color tubes were affordable.
+

Reading any of them as a component gallery. They are four different products + that happen to share a stylesheet — the point is that the constraints survive being taken + somewhere they were not designed for.

- -
-
07

DISPLAY

-

The machine's own voice: frames, strips, readouts, and the single loudest element - the system permits.

-
- -
STATUSBAR — INVERSE (MACHINE VOICE) AND LINE (DATA ROW) -
-
STATUS:AUTO MODEPRESETS COMPLETED
-
SHOW TIME 0000:00 (MM:SS)DATE 07/23/26TIME 22:28:45
-
- class="ac-statusbar" ac-statusbar--line role="status" -

Prose. A status bar holds KEY:VALUE strings, not sentences.

-
- -
-
PANEL — LEGEND CHIP BREAKS THE BORDER -
Show Information -
TRAILER:
-
TITLE:HEAT
-
- <div class="ac-panel"><span class="ac-panel__title">Show Information</span>…</div> -

A panel over a non---screen background, unless you also set - --ac-panel-title-bg — the chip paints its own background to mask the border.

-
-
PANEL — INVERSE BAR TITLE -
Frame Count
-
255315
-
- class="ac-panel ac-panel--bar" -
-
- -
-
READOUT — INSTRUMENT VALUE -
-
Lamp Volts
41.0V
-
Lamp Amps
154A
-
Frames
255315
-
- <div class="ac-readout"> - <div class="ac-readout__label">Lamp Volts</div> - <div class="ac-readout__value">41.0<span class="ac-readout__unit">V</span></div> -</div> -

Text. A readout is for a number that changes.

-
-
BADGE — MICRO TAGS, PIXEL FACE -
- CH 04ArmedSpare -
- class="ac-badge" ac-badge--filled ac-badge--dim -

Anything the operator must read at a glance — 8px is a label, not a message.

-
-
- -
-
TABLE — THE DATA GRID THIS GENRE LIVES ON -
- - - - - - - -
TIMECODEDESCRIPTIONFRAMESTATE
22:28:41E-114DOUSER NOT CONFIRMED255315ACTIVE
22:14:02W-062LAMP CURRENT LOW 148A234880CLEARED
21:58:37W-041REEL UNIT SLACK212104CLEARED
-
- class="ac-table ac-table--zebra ac-table--dense" <td class="ac-table__num"> -<tr class="ac-table__row--active ac-blink"> -

A fixed set of named readings — that is .ac-list.

-
-
LIST — KEYED LOG WITH LEADER DOTS -
-
Lamp Hours
1284
-
Reel
04 / 06
-
Format
70MM
-
- <dl class="ac-list"><div class="ac-list__item"> - <dt class="ac-list__key">Reel</dt><span class="ac-list__fill"></span> - <dd class="ac-list__value">04 / 06</dd></div></dl> -

Sortable or multi-column data. That is a table.

-
-
- -
-
METER — STEPPED BARGRAPH, NEVER A SMOOTH FILL -
-
-
050100
-
-
-
-
- <div class="ac-meter__track" style="--ac-meter-value: 72"> - <div class="ac-meter__bar"></div></div> -

A single precise reading. A number the operator can write down beats a bar - they have to estimate — use an .ac-readout.

-
-
SPINNER — A CHARACTER, NOT A CIRCLE -
- - LOADING PRESET BANK -
-
- - steps(4), 0.8s -
- <span class="ac-spinner" role="status" aria-label="Working"></span> -

Anything whose duration you know. A machine that can measure progress should - show an .ac-meter; a spinner admits it cannot.

-
-
- -
BANNER — ONE PER SCREEN, THE LOUDEST ELEMENT -
-
Remote Mode
- -
- ✳✳ glyphs are added by the component. Blink is reserved for a live, unacknowledged condition — and it is always paired with inverse video and the glyphs, so it still reads as an alarm when blink is switched off. - <div class="ac-banner ac-banner--filled ac-blink" role="alert">Lamp Fault</div> -

Two banners on one screen. The second one makes the first one furniture.

-
- -
PANEL — DIM FRAME (RECEDES) -
Interlocks - SECONDARY REGION — READ-ONLY INSTRUMENTATION -
- class="ac-panel ac-panel--dim" -
- -
-
- - -
-
08

SCREEN ANATOMY

-

How a full console screen assembles. Title and soft keys on top; the operating - column left, instrumentation right; destructive or exiting actions bottom-right, far from - RUN.

-
- - - - - - - - - -
ZONECONTENTSRULES
HEADERWordmark, page title (ALL CAPS, underlined), Title Case tabs right.One display-size line only.
LEFT COLUMNLegend panel with input wells, status strips, motion pads, banner.Reading order top to bottom is the operator's workflow.
RIGHT COLUMNBit-field checkboxes in a dim panel, bar panels with readouts.Read-only instrumentation; dim frames so it recedes.
FOOTER ROWMode changes left, exit and destructive actions bottom-right.Never adjacent to a motion control.
FRAME.ac-crt, .ac-bloom and/or .ac-afterglow on the outermost element, plus one companion child per simulation: .ac-mesh for bloom, .ac-retrace for CRT, .ac-persist for afterglow. The nav goes inside it.Once per screen, never nested. All three should be operator-toggleable — the demos put afterglow on the CRT switch.
-
- <div class="ac-screen ac-bloom ac-crt ac-afterglow" data-ac-screen> - <span class="ac-mesh"></span> - <span class="ac-retrace"></span> - <span class="ac-persist"></span> - <nav class="ac-nav ac-nav--sticky">…</nav> - <div class="ac-screen__body"> - <div class="ac-grid ac-grid--console ac-grow"> - <div class="ac-stack">…operate…</div> - <div class="ac-stack">…instrument…</div> - </div> - </div> -</div> -

See the assembled reference - screen: ORION-70 PROJECTION CONSOLE.

-
+
- -
-

Confirm

-
- THE BACKDROP IS FLAT BLACK AT 72%. NO BLUR, NO SCALE, NO FADE — - A REDRAWN SCREEN HAS NO IN-BETWEEN FRAMES. -
-
- - -
-
-
- + diff --git a/docs/index.html b/docs/index.html index 853e009..48b01ab 100644 --- a/docs/index.html +++ b/docs/index.html @@ -37,38 +37,383 @@ here, or it paints for one frame on every load before initSims removes it. amber-console.js mounts .ac-retrace and .ac-persist when CRT is switched on. -->
+ Skip to content - +
+ + +

The retrace band is part of the CRT simulation, and there is no sweep across a plasma panel to switch off.

+

JS Effects need the CRT simulation and a phosphor that holds long enough to see.

+ + + + -
+ +
+
+ State +
+
+
Technology
+ +
PLASMA
+
+
+
Emitter
+ +
NEON
+
+
+
Emission
+ +
585.2 nm
+
+
+
Mode
+ +
PRESET
+
+
+
Engine
+ +
CSS + JS
+
+
+
+ + +
+ Technology + +

A gas in a sealed gap, struck by a + sustain pulse. It emits directly — no phosphor in the stack — so the panel lights one + hue and varies only how hard it is driven.

+ + + + +

The gas the plasma panel was actually built on, and what this framework opens to. In a low-pressure glow the 2p→1s array dominates — the lowest excited states that radiate visibly, populated far more heavily than anything above them — so the discharge is one narrow orange-red rather than a mixture. Nixie tubes and the first flat panels ran on it.

+ + + + + + + + +
+
+ +
+ +
+ + + A preset sets the display and its simulation. Everything stays adjustable — and Reset puts all of it back, switches, styles and engine alike. +
+ + + +
ORION-70

SHOW LOCAL - STANDBY

-
+
@@ -77,7 +422,7 @@

SHOW LOCAL - STANDBY

-
+
Show Information
@@ -106,7 +451,7 @@

SHOW LOCAL - STANDBY

-
+
@@ -114,7 +459,7 @@

SHOW LOCAL - STANDBY

-
+
@@ -123,7 +468,7 @@

SHOW LOCAL - STANDBY

-
@@ -207,6 +552,7 @@

Confirm Exit

+ diff --git a/docs/radar.html b/docs/radar.html new file mode 100644 index 0000000..f3c2cc1 --- /dev/null +++ b/docs/radar.html @@ -0,0 +1,872 @@ + + + + + +SEASCAN RM-12 RADAR — Amber Console + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content + + + + + + + + + + + +
+
+ + +
+ ▮ Plasma Gases +

Gas emitting directly. No phosphor in the stack.

+
+ Plasma gases + + + + +
+
+ + +
+ ▯ CRT Phosphors +

A beam on a phosphor, which emits and then persists.

+
+ CRT phosphors +

General purpose · built to be read

+ + + + +

Specialized · built for an instrument

+ + + +
+
+ + + +
+ Switches + +

Simulation · never a color

+
+ + + + +
+ +

Style & engine · never the hardware

+
+ + + + +
+ + + + + + +
+ Running · what CSS cannot do +
    +
  • Ghosting — rewritten text leaves its old value to decay
  • +
  • Scroll smear — the image trails while the page moves
  • +
  • Framebuffer decay — the old screen drains behind the new
  • +
+
+
+ + +
+
+ State +
+
+
Technology
+ +
PLASMA
+
+
+
Emitter
+ +
NEON
+
+
+
Emission
+ +
585.2 nm
+
+
+
Mode
+ +
PRESET
+
+
+
Engine
+ +
CSS + JS
+
+
+
+ + +
+ Technology + + + + + +

A beam sweeps a phosphor coating, + which emits while struck and then persists. The color belongs to the phosphor, not the + beam; the P-number names the compound.

+ + + + + +

The radar phosphor, and it went onto scope tubes for a reason: the flash gives + position and the trail gives history. Two coatings, not one. The beam writes into a blue + ZnS:Ag layer that decays in microseconds, and that layer's own photons pump a + yellow-green one behind it which holds for seconds. So the ink is blue and the halo is + green: text you are reading is being re-struck sixty times a second, and text that stops + being written leaves only the glow.

+ + + +
+
+ +
+ +
+ + + A preset sets the display and its simulation. Everything stays adjustable — and Reset puts all of it back, switches, styles and engine alike. +
+
+ + +
+
+
+
SEASCAN
+

RM-12 · 3 NM · HEAD-UP

+
+ +
+ + + +
+
+ +
+ + +
+
+
Plan Position Indicator
+ +
+ + + + + + + + + 000030060 + 090120150 + 180210240 + 270300330 + + +
+ + + +
+ 0 + Bearing 073.5° + 3 NM +
+
+ + +
+ +
+
+ + +
+ +
+
Transmitter
+
+
+
TRANSMIT
+
Pulse Short · 80 ns
+
+ + + + +
+
+ +
+ Own Ship +
+
+
Heading
+ +
047.5°T
+
+
+
Course
+ +
049°T
+
+
+
Speed
+ +
12.4 KN
+
+
+
Log
+ +
11.8 KN
+
+
+ +
+
+
Decca 5B
+ +
R 12.34 G 45.67
+
+
+
Fix
+ +
51°57.2'N 004°06.8'E
+
+
+
+ +
+ Markers +
+
+ EBL + 073.5° + + +
+
+ VRM + 1.62 NM + + +
+
+
+ +
+ Range +

Ring interval follows the scale.

+
+ Range scale + + + + + +
+
+
+
+ + +
+ Receiver +
+
+
+
+
+
+
Gain62%
+
+ + +
+
+
+
+
+
+
A/C Sea30%
+
+ + +
+
+
+
+
+
+
A/C Rain12%
+
+ + +
+
+
+
+
+
+
Tune84%
+
+ + +
+
+ +
+ +
+ Trails + + + + +
+ +
+ Pulse + + + +
+ + +
+
+ + +
+ Target Plot +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TrkVesselBrgRngCseSpdCPATCPAState
T1Coaster041°1.86218°9.20.407:10Tracked
T2Tanker105°1.32064°6.11.112:40Tracked
T3Ferry168°2.25341°17.50.905:55Tracked
T4Fishing214°0.90—1.40.9—Acquiring
+
+
+ +
+ HEAD-UP + RELATIVE MOTION + TRAILS 3 MIN + IR ON + ANT 24 RPM + + UTC 00:00:00 +
+
+
+ + + + + + + diff --git a/docs/radar.js b/docs/radar.js new file mode 100644 index 0000000..93d617e --- /dev/null +++ b/docs/radar.js @@ -0,0 +1,560 @@ +/* SEASCAN RM-12 radar demo behavior. Vanilla, no dependencies. + * + * Demo logic only. The display board, the toggles and the persistence tier are + * the framework's (../dist/amber-console.js and .effects.js); the radar face, + * its wake and every contact's decay are pure CSS in sweep.css and docs.css. + * What is left for this file is the fiction of a set that is running. + * + * THE SWEEP IS THE CLOCK, and that is the one structural decision here. + * + * Everything on the face happens when the beam crosses it, so this file does not + * own a timer for the radar at all — it listens for `animationiteration` on the + * beam and advances the world once per revolution. A setInterval would drift + * against the CSS animation within a minute, and the whole subject of this page + * is that the beam and the light it leaves behind are the same event. It also + * means the period is never hard-coded: switch to P39 and the antenna slows to + * match the phosphor, because both come off --ac-persist-tail. + * + * Determinism, as on the server page: THE MARKUP IS FRAME ZERO. Nothing is + * randomized on load, drift comes from a seeded Lehmer generator rather than + * Math.random, and no revolution has happened when the visual suite takes its + * screenshot — capture.mjs disables every animation, so `animationiteration` + * never fires there at all. Only the UTC clock is painted at load, and it reads + * a Date the harness has frozen. + */ + +/* ------------------------------------------------------------- P7 first -- * + * FIT THE RIGHT TUBE BEFORE THE FRAMEWORK LOOKS. + * + * The chosen display is stored under one key namespace shared by every page in + * this repo, which is what makes it stick while you read the guide. Arriving + * here it is a problem: a visitor coming from the console demo brings PLASMA · + * NEON with them, and a radar in neon is a red strobe with no flash layer — + * the sweep's leading edge falls back to the trail color and the one thing + * this page exists to show is simply absent. + * + * So on a FIRST visit this seeds the store with the set's own tube and records + * that it has done so. It runs at parse time, before the framework's + * DOMContentLoaded init reads any of it, so there is no frame of the wrong + * palette and nothing to repaint. On every later visit the flag is set and + * whatever you chose here is what you get — deliberately picking P39 to watch a + * green screen survives, which is the whole point of the board being on the + * page. + * ------------------------------------------------------------------------- */ +(function () { + try { + if (localStorage.getItem("ac.radar.fitted")) return; + localStorage.setItem("ac.sim.tech", "crt"); + localStorage.setItem("ac.sim.emitter", "p7"); + localStorage.setItem("ac.sim.crt", "1"); + localStorage.setItem("ac.sim.plasma", "0"); + localStorage.setItem("ac.sim.mod", "0"); + localStorage.setItem("ac.radar.fitted", "1"); + } catch { + /* Private mode and sandboxed file:// frames throw. The markup has P7 + checked, so a store that cannot be written still opens on the right tube; + only the CRT simulation is lost, and the board can turn it on. */ + } +})(); + +(function () { + var $ = function (s) { return document.querySelector(s); }; + var $$ = function (s) { return [].slice.call(document.querySelectorAll(s)); }; + var pad = function (n, w) { n = String(n); while (n.length < w) n = "0" + n; return n; }; + var clamp = function (v, lo, hi) { return v < lo ? lo : v > hi ? hi : v; }; + var deg = function (d) { d %= 360; return d < 0 ? d + 360 : d; }; + + /* Bearings are always three digits and one decimal — 073.5°, never 73.5° — + because that is how they are spoken and how a helm order is read back. */ + function brgStr(v) { + var s = deg(v).toFixed(1); + while (s.indexOf(".") < 3) s = "0" + s; + return s + "°"; + } + + function setText(el, s) { + if (el && el.textContent !== s) el.textContent = s; + } + + /* MINSTD, as on the server page: 16807 * 2147483646 is exact in a double, so + the sequence is reproducible. */ + var seed = 19831104; + function rnd() { + seed = (seed * 16807) % 2147483647; + return seed / 2147483647; + } + + /* Wrap a discrete change so the screen it replaces drains per pixel instead of + cutting. The effects module declines safely when persistence is off or the + API is missing, so this is always callable. */ + function withDecay(fn) { + var vt = window.AmberConsoleEffects && window.AmberConsoleEffects.transition; + if (typeof vt === "function") vt(fn); + else fn(); + } + + var beam = $("#beam"); + var ppi = $("#ppi"); + var panel = $("#scope-panel"); + + /* --- the picture ------------------------------------------------------ */ + + var range = 3; /* nautical miles to the edge of the face */ + var eblBrg = 73.5; /* electronic bearing line, degrees relative */ + var vrmRng = 1.62; /* variable range marker, NM */ + var guard = { from: 40, to: 80, inner: 0.55 }; + + /* Receiver controls. These are the markup's values; nothing recomputes from + them until one is actually moved, so frame zero stays frame zero. */ + var knobs = { gain: 62, sea: 30, rain: 12, tune: 84 }; + + /* Sea clutter is banded rather than continuous: each ring of wave tops needs + more suppression than the one outside it, which is exactly what a swept + gain control did. */ + var CLUTTER_THRESHOLD = { 1: 40, 2: 60, 3: 80 }; + + /* The four tracked contacts. Bearing and range are what the set has measured; + the rates are per HOUR, so a revolution advances them by the real amount and + the plot moves at the speed the vessels are actually doing. A ferry at 17.5 + knots closing head-on covers a third of a mile a minute, which is thirteen + revolutions — visible without anything being exaggerated. */ + var TRACKS = { + 1: { brg: 41, rng: 1.86, dBrg: -2.1, dRng: -3.2, cpa: 0.4, tcpa: 430, state: "Tracked" }, + 2: { brg: 105, rng: 1.32, dBrg: 4.8, dRng: 1.9, cpa: 1.1, tcpa: 760, state: "Tracked" }, + 3: { brg: 168, rng: 2.25, dBrg: -0.7, dRng: -18.4, cpa: 0.9, tcpa: 355, state: "Tracked" }, + 4: { brg: 214, rng: 0.9, dBrg: 1.2, dRng: 0.4, cpa: 0.9, tcpa: null, state: "Acquiring" } + }; + + /* Every contact on the face remembers the range it was drawn at, so a change + of range scale is a re-projection rather than a redraw from a table. */ + var echoes = $$(".doc-echo").map(function (el) { + return { + el: el, + nm: parseFloat(el.style.getPropertyValue("--rng")) * 3, + brg: parseFloat(el.style.getPropertyValue("--brg")), + sz: parseFloat(el.style.getPropertyValue("--sz")), + clutter: Number(el.getAttribute("data-clutter") || 0), + land: el.classList.contains("doc-echo--land"), + trk: (el.id.match(/^echo-(\d)$/) || [])[1] + }; + }); + + function placeEcho(e) { + var frac = e.nm / range; + var suppressed = e.clutter && knobs.sea >= CLUTTER_THRESHOLD[e.clutter]; + e.el.hidden = frac > 1 || Boolean(suppressed); + if (frac <= 1) e.el.style.setProperty("--rng", frac.toFixed(4)); + } + + /* --- range scale ------------------------------------------------------ */ + + function setRange(nm, rings) { + if (nm === range) return; + /* The one change on this page big enough to be worth a framebuffer decay: + the entire picture is re-projected at once, and on a long phosphor the old + one is still draining while the new one fills in behind the beam. That is + what changing range looked like. */ + withDecay(function () { + range = nm; + for (var i = 0; i < echoes.length; i++) placeEcho(echoes[i]); + paintMarkers(); + paintHeadline(); + /* The guard zone is a fraction of the range scale, so changing the scale + moves the zone rather than the traffic — a track that was inside it at + 3 NM is a fifth of the way out at 12. Re-evaluating here rather than + waiting for the next scan is the one place this page does not let the + beam be the clock, because an alarm that outlives its cause is worse + than one that arrives a scan early. */ + paintTracks(); + setText($("#ascope-max"), nm + " NM"); + log(nm + " NM · RINGS " + rings); + }); + } + + $$("[data-range]").forEach(function (input) { + input.addEventListener("change", function () { + if (input.checked) setRange(Number(input.dataset.range), input.dataset.rings); + }); + }); + + /* --- markers ---------------------------------------------------------- */ + + function paintMarkers() { + $("#ebl").style.setProperty("--brg", deg(eblBrg).toFixed(1)); + setText($("#ebl-out"), brgStr(eblBrg)); + $("#vrm").style.setProperty("--rng", (vrmRng / range).toFixed(4)); + setText($("#vrm-out"), vrmRng.toFixed(2) + " NM"); + setText($("#ascope-brg"), "Bearing " + brgStr(eblBrg)); + } + + $$("[data-ebl]").forEach(function (btn) { + btn.addEventListener("click", function () { + eblBrg = deg(eblBrg + Number(btn.dataset.ebl)); + paintMarkers(); + }); + }); + + $$("[data-vrm]").forEach(function (btn) { + btn.addEventListener("click", function () { + vrmRng = clamp(vrmRng + Number(btn.dataset.vrm), 0.04, range); + paintMarkers(); + }); + }); + + /* --- receiver controls ------------------------------------------------ */ + + function setKnob(name, value) { + knobs[name] = clamp(value, 0, 100); + var meter = document.getElementById("k-" + name); + var track = meter.querySelector(".ac-meter__track"); + track.style.setProperty("--ac-meter-value", String(knobs[name])); + track.setAttribute("aria-valuenow", String(knobs[name])); + setText(meter.querySelector("[data-pct]"), knobs[name] + "%"); + applyReceiver(); + } + + /* What the controls actually DO to the picture, which is the half a panel of + dead knobs would be missing. */ + function applyReceiver() { + for (var i = 0; i < echoes.length; i++) { + var e = echoes[i]; + + /* Anti-clutter sea: wave tops go band by band. Turn it far enough up and + the buoy inside the clutter goes with them, which is the mistake the + control has always invited. */ + if (e.clutter) { + e.el.hidden = knobs.sea >= CLUTTER_THRESHOLD[e.clutter] || e.nm / range > 1; + continue; + } + + /* Anti-clutter rain differentiates the video, so an extended return keeps + its leading edge and loses its body. Land is what that is visible on. */ + if (e.land) { + e.el.style.setProperty("--sz", (e.sz * (1 - knobs.rain / 260)).toFixed(1)); + } + } + + /* Off-tune costs echo strength before it costs anything else. */ + var q = 0.35 + 0.65 * (1 - Math.min(1, Math.abs(knobs.tune - 84) / 45)); + ppi.style.filter = q >= 0.999 ? "" : "brightness(" + q.toFixed(2) + ")"; + $("#ascope").style.filter = ppi.style.filter; + } + + $$("[data-knob]").forEach(function (btn) { + btn.addEventListener("click", function () { + setKnob(btn.dataset.knob, knobs[btn.dataset.knob] + Number(btn.dataset.step)); + }); + }); + + /* --- soft keys -------------------------------------------------------- */ + + function exclusive(attr, btn) { + $$("[" + attr + "]").forEach(function (b) { + b.setAttribute("aria-pressed", String(b === btn)); + }); + } + + $$("[data-trails]").forEach(function (btn) { + btn.addEventListener("click", function () { + exclusive("data-trails", btn); + /* The floor the contacts decay to, NOT .ac-afterglow — that class belongs + to the CRT simulation on the board. See the note in radar.html. */ + panel.style.setProperty("--doc-trail-floor", btn.dataset.trails); + setText($("#st-trails"), "TRAILS " + btn.textContent.toUpperCase()); + }); + }); + + $$("[data-pulse]").forEach(function (btn) { + btn.addEventListener("click", function () { + exclusive("data-pulse", btn); + setText($("#tx-note"), "Pulse " + btn.dataset.pulse); + }); + }); + + $$("[data-pres]").forEach(function (btn) { + btn.addEventListener("click", function () { + exclusive("data-pres", btn); + setText($("#st-pres"), btn.dataset.pres); + paintHeadline(); + }); + }); + + /* INTERFERENCE REJECTION. The switch shipped painted but unwired — it carried + no data-ac="toggle", so amber-console.js never bound it, and nothing here + listened either. It looked like a control and was set dressing. + + The attribute is on it now, so the shared toggle handler flips aria-pressed + and the ON/OFF word, and this only has to follow it. + + WATCHING THE ATTRIBUTE RATHER THAN THE CLICK, and that is a correctness fix + rather than a preference. A second `click` listener on the same element runs + in BIND order, and this file is a plain + + + + diff --git a/docs/server.js b/docs/server.js new file mode 100644 index 0000000..1456c67 --- /dev/null +++ b/docs/server.js @@ -0,0 +1,479 @@ +/* D-STAR server dashboard demo behavior. Vanilla, no dependencies. + * + * This file is DEMO logic only — the fiction of a machine that is running. The + * tab keyboard model, the PLASMA/CRT toggles, the display board and the dialog + * are handled by the framework's optional module (../dist/amber-console.js), so + * nothing generic lives here. + * + * TWO RULES SHAPE ALL OF IT, and both come from test/visual/capture.mjs. + * + * 1. THE MARKUP IS FRAME ZERO. Every number in server.html is what this file + * computes before the first tick, so the page a screenshot catches at 250ms + * is the page in the HTML. Nothing is randomized on load, and setInterval has + * no leading tick() — the first one lands at t=1s, well after the shutter. + * The single exception is the wall clock, which is painted immediately and is + * deterministic anyway because the harness freezes Date. + * + * 2. DRIFT IS SEEDED, NEVER Math.random(). A Lehmer generator with a fixed seed + * means two runs of the visual suite produce the same numbers even if the + * timing ever slips, so a baseline that differs is a real regression rather + * than the dice. The wall clock reads new Date(), which the harness freezes. + * + * The numbers are also INTERNALLY CONSISTENT rather than four independent + * wobbles: host CPU is the sum of what the containers are using, memory is what + * they have allocated plus the ARC, and both the package temperature and the + * wall draw are functions of the CPU. Stop Jellyfin and the machine gets cooler + * and cheaper, which is the whole reason a dashboard is worth looking at. + */ +/* ------------------------------------------------------------- P3 first -- * + * FIT THE RIGHT TUBE BEFORE THE FRAMEWORK LOOKS. + * + * Same mechanism as the radar and terminal demos, and the same reason. The + * chosen display is stored under one key namespace shared by every page in this + * repo, which is what makes it stick while you read the guide — and which means + * a visitor arriving from the console demo brings PLASMA · NEON with them. This + * page is a server dashboard on a P3 amber terminal, which is the tube most + * people mean by "amber terminal", so it fits its own. + * + * Note it seeds the SIMULATION as well as the palette. The board's markup ships + * with P3 checked and the CRT switch on (scripts/build.mjs writes both from the + * page's `emitter=` argument), but the framework restores simulations from their + * own storage keys rather than from the checked preset — a preset is a starting + * point, not a lock, so a simulation you switched yourself has to survive a + * reload. Without a seeded value there is nothing to restore and the SIMS + * defaults win, which is plasma. That is why the page opened amber-on-plasma. + * + * Runs at parse time, before the framework's DOMContentLoaded init reads any of + * it, so there is no frame of the wrong palette. On every later visit the flag + * is set and whatever you chose here is what you get. + * ------------------------------------------------------------------------- */ +(function () { + try { + if (localStorage.getItem("ac.server.fitted")) return; + localStorage.setItem("ac.sim.tech", "crt"); + localStorage.setItem("ac.sim.emitter", "p3"); + localStorage.setItem("ac.sim.crt", "1"); + localStorage.setItem("ac.sim.plasma", "0"); + localStorage.setItem("ac.sim.mod", "0"); + localStorage.setItem("ac.server.fitted", "1"); + } catch { + /* Private mode and sandboxed file:// frames throw. The markup has P3 checked + and the CRT switch on, so a store that cannot be written still opens on the + right tube; only the simulation is lost, and the board can turn it on. */ + } +})(); + +(function () { + var $ = function (s) { return document.querySelector(s); }; + var $$ = function (s) { return [].slice.call(document.querySelectorAll(s)); }; + var pad = function (n, w) { n = String(n); while (n.length < w) n = "0" + n; return n; }; + var clamp = function (v, lo, hi) { return v < lo ? lo : v > hi ? hi : v; }; + + /* Write only when the string actually changed. + This is not a micro-optimization. The afterglow simulation watches the frame + for text mutations and leaves a decaying ghost behind every one it sees, so + re-writing "ACTIVE" into eight rows every second would spray the panel with + ghosts of text that never changed and burn the ghost budget the mutations + that matter need. */ + function setText(el, s) { + if (el && el.textContent !== s) el.textContent = s; + } + + /* A value plus its unit, which is two nodes because .ac-readout__unit is a + smaller face — the digits have to keep the eye. */ + function setValue(el, value, unitText) { + if (el.firstChild && el.firstChild.nodeType === 3 && el.childNodes.length === 2) { + setText(el.firstChild, value); + return; + } + el.textContent = value; + var span = document.createElement("span"); + span.className = "ac-readout__unit"; + span.textContent = unitText; + el.appendChild(span); + } + + /* MINSTD. The multiplier is 16807 rather than a fatter one because + 16807 * 2147483646 is under 2^53 and therefore exact in a double — a bigger + constant silently loses the low bits and stops being reproducible, which is + the one property this generator exists for. */ + var seed = 20260728; + function rnd() { + seed = (seed * 16807) % 2147483647; + return seed / 2147483647; + } + /* Symmetric noise: +/- `spread`, biased by nothing. */ + function noise(spread) { + return (rnd() * 2 - 1) * spread; + } + + /* --- the machine ------------------------------------------------------ */ + + var MEM_TOTAL = 32768; /* MB of RAM fitted */ + var ARC = 14694; /* MB the filesystem cache holds regardless of load */ + var hostSec = 3651067; /* 42d 06:11:07, the host's own uptime */ + + /* cpu is a percentage of one machine, mem is MB, up is that container's own + uptime in seconds — which resets to zero when it is started by hand. */ + var SERVICES = { + caddy: { name: "Caddy", cpu: 0.4, mem: 62, up: 3564660, on: true }, + postgres: { name: "Postgres", cpu: 2.1, mem: 884, up: 3564660, on: true }, + immich: { name: "Immich", cpu: 7.8, mem: 2400, up: 1118400, on: true }, + jellyfin: { name: "Jellyfin", cpu: 19.4, mem: 1100, up: 1118400, on: true }, + paperless: { name: "Paperless", cpu: 0.9, mem: 410, up: 1118400, on: true }, + grafana: { name: "Grafana", cpu: 1.6, mem: 236, up: 705300, on: true }, + wireguard: { name: "Wireguard", cpu: 0.2, mem: 28, up: 3564660, on: true }, + syncthing: { name: "Syncthing", cpu: 3.3, mem: 174, up: 705300, on: true } + }; + + /* Remember what each container idles at. A drift with no pull back toward a + baseline is a random walk, and a random walk always leaves: left running an + hour, every meter on the page ends up pinned at 100% and the dashboard has + quietly become a lie. */ + for (var svcId in SERVICES) SERVICES[svcId].base = SERVICES[svcId].cpu; + + var scrub = { running: false, pct: 0 }; + var backupBusy = false; + + /* --- log -------------------------------------------------------------- */ + + var LOG_MAX = 12; + + function stamp() { + var d = new Date(); + return pad(d.getHours(), 2) + ":" + pad(d.getMinutes(), 2) + ":" + pad(d.getSeconds(), 2); + } + + /* Newest first. Built with createElement rather than innerHTML: the strings + are ours, but a log is the one place a demo should not teach the other + habit. */ + function log(message) { + var list = $("#log"); + var item = document.createElement("div"); + item.className = "ac-list__item"; + + var key = document.createElement("dt"); + key.className = "ac-list__key"; + key.textContent = stamp(); + + var fill = document.createElement("span"); + fill.className = "ac-list__fill"; + + var value = document.createElement("dd"); + value.className = "ac-list__value"; + value.textContent = message; + + item.appendChild(key); + item.appendChild(fill); + item.appendChild(value); + list.insertBefore(item, list.firstChild); + + while (list.children.length > LOG_MAX) { + var last = list.lastElementChild; + /* Leave a decaying copy behind rather than have the row blink out of + existence. A no-op unless the afterglow is running. */ + if (window.AmberConsoleEffects) window.AmberConsoleEffects.afterglow(last); + list.removeChild(last); + } + } + + /* --- services --------------------------------------------------------- */ + + function row(id) { return $('#services tr[data-svc="' + id + '"]'); } + + function running() { + var n = 0; + for (var id in SERVICES) if (SERVICES[id].on) n++; + return n; + } + + /* The headline, the status bar and the banner all say the same thing at three + volumes: a title you read once, a machine voice you glance at, and — only + when something is actually down — the loudest element the system has. */ + function paintFleet() { + var n = running(); + var down = 8 - n; + + setText($("#headline"), "NODE 01 · " + n + " OF 8 SERVICES UP"); + setText($("#running"), n + " OF 8 RUNNING"); + setText($("#status"), "STATUS:" + (down ? "DEGRADED" : "NOMINAL")); + + var slot = $("#alarm-slot"); + var banner = slot.firstElementChild; + + if (down && !banner) { + banner = document.createElement("div"); + banner.className = "ac-banner ac-blink"; + banner.setAttribute("role", "alert"); + slot.appendChild(banner); + slot.hidden = false; + } else if (!down && banner) { + if (window.AmberConsoleEffects) window.AmberConsoleEffects.afterglow(banner); + slot.removeChild(banner); + slot.hidden = true; + return; + } + if (banner) { + setText(banner, down + (down === 1 ? " Service Down" : " Services Down")); + } + } + + function paintService(id) { + var svc = SERVICES[id]; + var tr = row(id); + var starting = tr.hasAttribute("data-starting"); + + setText(tr.querySelector("[data-cpu]"), svc.on ? svc.cpu.toFixed(1) + "%" : "—"); + setText(tr.querySelector("[data-mem]"), svc.on + ? (svc.mem >= 1024 ? (svc.mem / 1024).toFixed(1) + " GB" : Math.round(svc.mem) + " MB") + : "—"); + setText(tr.querySelector("[data-up]"), svc.on + ? pad(Math.floor(svc.up / 86400), 2) + "d " + + pad(Math.floor(svc.up / 3600) % 24, 2) + ":" + + pad(Math.floor(svc.up / 60) % 60, 2) + : "—"); + + var state = tr.querySelector("[data-state]"); + if (starting) { + /* A spinner and not a meter, and the distinction is the component's own + rule: a machine that can measure progress shows a bar, one that cannot + admits it. Nothing here knows how long a container takes to come up. */ + state.textContent = ""; + var spin = document.createElement("span"); + spin.className = "ac-spinner"; + spin.setAttribute("role", "status"); + spin.setAttribute("aria-label", "Starting"); + state.appendChild(spin); + state.appendChild(document.createTextNode(" Starting")); + } else { + setText(state, svc.on ? "Active" : "Stopped"); + } + + /* Faint for anything not currently reporting, which includes a container on + its way up. With one hue available, "off" is said with brightness. */ + if (svc.on && !starting) tr.removeAttribute("data-stopped"); + else tr.setAttribute("data-stopped", ""); + + var btn = tr.querySelector("[data-svc-toggle]"); + var lit = svc.on || starting; + btn.setAttribute("aria-pressed", String(lit)); + btn.classList.toggle("ac-toggle--on", lit); + setText(btn.querySelector(".ac-toggle__state"), lit ? "ON" : "OFF"); + } + + /* The switch is wired here rather than with data-ac="toggle" on purpose: the + framework's own handler would flip it, and this needs the flip and its + consequences to happen in one place and in a known order. */ + function setService(id, on) { + var svc = SERVICES[id]; + var tr = row(id); + + if (on) { + if (svc.on || tr.hasAttribute("data-starting")) return; + tr.setAttribute("data-starting", ""); + paintService(id); + paintFleet(); + + setTimeout(function () { + tr.removeAttribute("data-starting"); + svc.on = true; + svc.up = 0; + svc.cpu = svc.base; + paintService(id); + paintFleet(); + paintHost(); + log(svc.name.toUpperCase() + " ACTIVE"); + }, 1600); + return; + } + + if (!svc.on && !tr.hasAttribute("data-starting")) return; + svc.on = false; + tr.removeAttribute("data-starting"); + paintService(id); + paintFleet(); + paintHost(); + log(svc.name.toUpperCase() + " STOPPED"); + } + + $$("[data-svc-toggle]").forEach(function (btn) { + btn.addEventListener("click", function () { + var id = btn.parentNode.parentNode.getAttribute("data-svc"); + setService(id, btn.getAttribute("aria-pressed") !== "true"); + }); + }); + + $("#svc-all-on").addEventListener("click", function () { + for (var id in SERVICES) if (!SERVICES[id].on) setService(id, true); + }); + + /* --- host load -------------------------------------------------------- */ + + function setMeter(id, pct, label) { + var meter = document.getElementById(id); + var track = meter.querySelector(".ac-meter__track"); + var shown = Math.round(pct); + + track.style.setProperty("--ac-meter-value", String(shown)); + track.setAttribute("aria-valuenow", String(shown)); + setText(meter.querySelector("[data-pct]"), shown + "%"); + + var gb = meter.querySelector("[data-gb]"); + if (gb && label) setText(gb, label); + + /* Over-range inverse-videos the track and blinks it. There is no red. */ + if (id === "m-cpu") meter.classList.toggle("ac-meter--alarm", shown > 90); + } + + function paintHost() { + var cpu = 3.6; + var mem = ARC; + for (var id in SERVICES) { + if (!SERVICES[id].on) continue; + cpu += SERVICES[id].cpu * 0.85; + mem += SERVICES[id].mem; + } + /* A scrub is the machine reading every block it owns. It costs a core and + it pins the disks, which is the point of showing both meters at once. */ + if (scrub.running) cpu += 11; + cpu = clamp(cpu, 1, 100); + + setMeter("m-cpu", cpu); + setMeter("m-mem", (mem / MEM_TOTAL) * 100, + "Memory · " + (mem / 1024).toFixed(1) + " / 32 GB"); + setMeter("m-io", scrub.running ? 92 : clamp(18 + noise(9), 0, 100)); + + /* Both of these are consequences, not readings: silicon that works harder + runs hotter and pulls more from the wall. */ + setValue($("#v-temp"), String(Math.round(47.4 + cpu * 0.4)), "°C"); + setValue($("#v-watts"), String(Math.round(52 + cpu * 0.65)), "W"); + setText($("#v-load"), (cpu / 100 * 1.24).toFixed(2)); + } + + /* --- backup ----------------------------------------------------------- */ + + $("#backup").addEventListener("click", function () { + if (backupBusy) return; + backupBusy = true; + + var btn = this; + btn.disabled = true; + btn.textContent = "Backup Running"; + setText($("#b-when"), "In Progress"); + log("BACKUP STARTED"); + + setTimeout(function () { + var size = (40 + rnd() * 4).toFixed(1); + setValue($("#b-size"), size, "GB"); + setText($("#b-when"), "Completed " + stamp().slice(0, 5)); + btn.disabled = false; + btn.textContent = "Run Backup Now"; + backupBusy = false; + log("BACKUP OK " + size + " GB"); + }, 3200); + }); + + /* --- scrub ------------------------------------------------------------ */ + + $("#scrub").addEventListener("click", function () { + if (scrub.running) return; + scrub.running = true; + scrub.pct = 0; + this.disabled = true; + this.textContent = "Scrub Running"; + setText($("#s-state"), "Reading Tank · 10.9 TB"); + log("SCRUB STARTED"); + }); + + function paintScrub() { + var pct = Math.round(scrub.pct); + var track = $("#s-meter .ac-meter__track"); + track.style.setProperty("--ac-meter-value", String(pct)); + track.setAttribute("aria-valuenow", String(pct)); + setValue($("#s-pct"), String(pct), "%"); + } + + /* --- clock and counters ----------------------------------------------- */ + + /* The clock and the uptime counter, and the ONE thing painted before the first + tick. Both are pure functions of the wall clock and of a fixed starting + count, so painting them on load is deterministic — and leaving them unpainted + is not free: the markup has to carry SOME time, and whatever it carries would + sit on the glass for a full second before the first tick corrected it. */ + function paintClock() { + var d = new Date(); + setText($("#clock"), + "TIME " + pad(d.getHours(), 2) + ":" + pad(d.getMinutes(), 2) + ":" + pad(d.getSeconds(), 2)); + + setText($("#uptime"), + "UP " + Math.floor(hostSec / 86400) + "D " + + pad(Math.floor(hostSec / 3600) % 24, 2) + ":" + + pad(Math.floor(hostSec / 60) % 60, 2) + ":" + + pad(hostSec % 60, 2)); + setValue($("#v-uptime"), String(Math.floor(hostSec / 86400)), "d"); + } + + function tick() { + hostSec += 1; + paintClock(); + + /* Container load wanders around its own baseline rather than a shared one, + so a busy transcoder stays busy and a reverse proxy stays idle. */ + for (var id in SERVICES) { + var svc = SERVICES[id]; + if (!svc.on) continue; + svc.up += 1; + svc.cpu = clamp( + svc.cpu + (svc.base - svc.cpu) * 0.25 + noise(svc.base * 0.35 + 0.3), 0.1, 96); + + /* A transcode. Roughly once a minute the media server takes most of the + machine for a few seconds, and the mean reversion above walks it back + down over the following ten. This exists to drive the CPU meter over + its range and into .ac-meter--alarm, which is the only way to see that + treatment on a page whose numbers are otherwise well behaved. */ + if (id === "jellyfin" && rnd() < 0.02) svc.cpu = 85 + rnd() * 11; + paintService(id); + } + + if (scrub.running) { + scrub.pct += 4.5 + noise(1.5); + if (scrub.pct >= 100) { + scrub.pct = 100; + scrub.running = false; + $("#scrub").disabled = false; + $("#scrub").textContent = "Start Scrub"; + setText($("#s-state"), "Complete · 0 Errors"); + log("SCRUB COMPLETE 0 ERR"); + } + paintScrub(); + } + + setValue($("#n-down"), String(Math.round(clamp(118 + noise(46), 0, 940))), "Mb/s"); + setValue($("#n-up"), String(Math.round(clamp(27 + noise(14), 0, 220))), "Mb/s"); + + paintHost(); + } + + /* No leading tick(). See rule 1 at the top of this file: the markup already IS + the first frame, and a tick here would redraw every number on the page + before the visual suite's shutter opens. Only the clock is painted, and only + because a stale one would be visible to a human for a whole second. + + THE FIRST TICK IS HELD BACK TO SIX SECONDS, and that number is not taste. + capture.mjs waits for networkidle (500ms of quiet), injects a stylesheet, + waits 250ms, walks the whole DOM for the overflow probe, and opens whatever + tabs the page ships closed — then the shutter. A first tick inside that + window makes the same page screenshot as frame zero or frame one depending + on how busy the machine was, and the suite goes red at random. + + THIS WAS 2.5 SECONDS AND IT WENT RED, which is why the margin is now this + wide. The window is not a property of this page: it grows every time a demo + is added to the suite, because a slower run delays every capture in it. 2.5 + was comfortable at two pages and marginal at four. Six is clear of the whole + sequence, and nobody watching the page can tell the difference. */ + paintClock(); + setTimeout(function () { + tick(); + setInterval(tick, 1000); + }, 6000); +})(); diff --git a/docs/social-card.png b/docs/social-card.png index 709996a..b645d1a 100644 Binary files a/docs/social-card.png and b/docs/social-card.png differ diff --git a/docs/terminal.html b/docs/terminal.html new file mode 100644 index 0000000..3fedb92 --- /dev/null +++ b/docs/terminal.html @@ -0,0 +1,769 @@ + + + + + +TELEMARK 400 MARKET TERMINAL — Amber Console + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content + + + + + + + + + + + + +
+
+ + +
+ ▮ Plasma Gases +

Gas emitting directly. No phosphor in the stack.

+
+ Plasma gases + + + + +
+
+ + +
+ ▯ CRT Phosphors +

A beam on a phosphor, which emits and then persists.

+
+ CRT phosphors +

General purpose · built to be read

+ + + + +

Specialized · built for an instrument

+ + + +
+
+ + + +
+ Switches + +

Simulation · never a color

+
+ + + + +
+ +

Style & engine · never the hardware

+
+ + + + +
+ + + + + + +
+ Running · what CSS cannot do +
    +
  • Ghosting — rewritten text leaves its old value to decay
  • +
  • Scroll smear — the image trails while the page moves
  • +
  • Framebuffer decay — the old screen drains behind the new
  • +
+
+
+ + +
+
+ State +
+
+
Technology
+ +
PLASMA
+
+
+
Emitter
+ +
NEON
+
+
+
Emission
+ +
585.2 nm
+
+
+
Mode
+ +
PRESET
+
+
+
Engine
+ +
CSS + JS
+
+
+
+ + +
+ Technology + + + + + +

A beam sweeps a phosphor coating, + which emits while struck and then persists. The color belongs to the phosphor, not the + beam; the P-number names the compound.

+ + + + + + +

P1's willemite with arsenic added, which lengthens the decay by orders of magnitude + and leaves the color alone — this palette and P1 are the same green, and differ only in + how long it lasts. At hundreds of milliseconds the screen is still near full brightness + when the next refresh arrives, so there is no flicker to see at any refresh rate. It is + paid for in smear.

+ + +
+
+ +
+ +
+ + + A preset sets the display and its simulation. Everything stays adjustable — and Reset puts all of it back, switches, styles and engine alike. +
+
+ + +
+
+
+
TELEMARK
+

FXSP · SPOT FOREIGN EXCHANGE

+
+ +
+
+
LON
+ +
00:00:00
+
+
+
NYC
+ +
00:00
+
+
+
TOK
+ +
00:00
+
+
+
+ + +
+ Page +
+ +
+ + + + + +
+ + + +
+

Type a page code and press Enter. FXSP · XRAT · DEPO · GOVT · INDX

+
+ + +
+ FXSP · Spot Foreign Exchange +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
PairCtrbBidAskHighLowSpdNetPctTimeLoc
USD/DEMMRDN1.78251.78351.79021.781010-58-0.3214:32FRA
USD/JPYTKYU128.45128.55129.10128.3010-45-0.3514:32TOK
GBP/USDLNDX1.76401.76501.76881.760210+260.1514:31LON
USD/CHFZURG1.42851.42951.43401.427210-31-0.2214:32ZUR
USD/FRFARDN6.01506.02006.04106.012550-190-0.3114:30PAR
USD/NLGDELF2.00752.00952.01602.006220-64-0.3214:31AMS
USD/ITLMILA1268.501269.501274.001267.25100-310-0.2414:29MIL
USD/CADSTHM1.31251.31351.31621.310810+140.1114:28NYC
USD/BEFANTW37.25037.29037.42037.21540-115-0.3114:27BRU
DEM/JPYKSTL72.0472.1072.3171.946+90.1314:32FRA
GBP/DEMCRWN3.14503.14723.15403.138822-42-0.1314:31LON
ECU/USDBRGN1.16851.16951.17241.166810+180.1514:26BRU
XAU/USDHOLT478.30478.80481.50477.2050+2100.4414:32LON
XAG/USDVANB6.47506.49506.53206.4610200-21-0.0314:25NYC
+
+
+ + + + + + + + + + + + + + +
+
+ Book · Spot +
+ + + + + + + + + + + + + + +
CcyPositionAverageMarkUnrealized
DEM+12,500,0001.78021.7830-19,650
JPY-850,000,000128.92128.50+21,600
GBP+3,000,0001.76881.7645-12,900
CHF0—1.42900
+
+
+ NET USD + + -10,950 +
+
+ +
+ Session +
+
+
Date
+ +
TUE 15 MAR 88
+
+
+
Turnover
+ +
USD 1.284 BN
+
+
+
Tickets
+ +
218
+
+
+
Contributors
+ +
142 OF 147
+
+
+
Updates
+ +
0
+
+
+ + +
+
+ + + + + + + +
+ LINE 1 OK · 9600 BAUD + PAGE FXSP + RUNNING + + READY +
+
+
+ + + + + + diff --git a/docs/terminal.js b/docs/terminal.js new file mode 100644 index 0000000..3fa2185 --- /dev/null +++ b/docs/terminal.js @@ -0,0 +1,443 @@ +/* TELEMARK 400 market terminal demo behavior. Vanilla, no dependencies. + * + * Demo logic only. The tab keyboard model, the display board and the toggles are + * the framework's (../dist/amber-console.js); the ghosting is the effects + * module's (../dist/amber-console.effects.js). What is left here is the fiction + * of a line that is delivering prices. + * + * THE GHOST BUDGET IS WHAT SHAPES THIS FILE, and it is worth writing down + * because the constraint and the period behavior turn out to be the same thing. + * + * amber-console.effects.js caps concurrent ghosts at GHOST_LIMIT = 24, and + * MAX_GENERATIONS = 4 decides whether a rewrite gets the emitter's full tail or + * the capped fast path. A page that repriced forty cells at once would blow both + * in a single tick and the screen would turn to mush. + * + * It never happened on the real thing either. A contributed page did not update + * wholesale — one bank revised one pair, and that cell was the only thing on the + * screen that moved. So this file reprices ONE INSTRUMENT PER TICK and writes + * three or four cells doing it. On P39 (--ac-persist: 2000ms) the fast-path + * threshold is tail/4 = 500ms, so the 1400ms cadence below runs the FULL tail: + * two legible generations of the same quote, which is exactly the effect the + * constant was written for. Concurrent ghosts settle around six. + * + * Determinism, as on the server and radar pages: THE MARKUP IS FRAME ZERO. Every + * number in terminal.html is what this file would compute before the first tick; + * nothing is randomized on load; drift comes from a seeded Lehmer generator + * rather than Math.random; and the first tick is held to 2.5s so it lands well + * clear of the visual suite's shutter, measured at 800-1300ms. Only the three + * clocks are painted at load, and they read a Date the harness freezes. + */ + +/* ------------------------------------------------------------ P39 first -- * + * FIT THE RIGHT TUBE BEFORE THE FRAMEWORK LOOKS. + * + * Same mechanism, and the same reasoning, as the note at the top of radar.js: + * the chosen display is stored under one key namespace shared by every page in + * this repo, so a visitor arriving from the console demo brings PLASMA · NEON + * with them. Neon is a 105ms panel. On it a reprice is simply gone by the next + * frame, and the argument this page exists to make — that you can read the value + * a quote replaced — has nothing to stand on. + * + * P39 is willemite with arsenic: the same green as P1 with the decay lengthened + * by orders of magnitude. On a first visit this seeds it and records that it has + * done so, at parse time, before the framework's DOMContentLoaded init reads any + * of it — so there is no frame of the wrong palette. On every later visit the + * flag is set and whatever you chose here is what you get. + * ------------------------------------------------------------------------- */ +(function () { + try { + if (localStorage.getItem("ac.term.fitted")) return; + localStorage.setItem("ac.sim.tech", "crt"); + localStorage.setItem("ac.sim.emitter", "p39"); + localStorage.setItem("ac.sim.crt", "1"); + localStorage.setItem("ac.sim.plasma", "0"); + localStorage.setItem("ac.sim.mod", "0"); + localStorage.setItem("ac.term.fitted", "1"); + } catch { + /* Private mode and sandboxed file:// frames throw. The markup has P39 + checked, so a store that cannot be written still opens on the right tube; + only the CRT simulation is lost, and the board can turn it on. */ + } +})(); + +(function () { + var $ = function (s) { return document.querySelector(s); }; + var $$ = function (s) { return [].slice.call(document.querySelectorAll(s)); }; + var pad = function (n, w) { n = String(n); while (n.length < w) n = "0" + n; return n; }; + + function setText(el, s) { + if (el && el.textContent !== s) el.textContent = s; + } + + /* MINSTD, as on the other two demo pages: 16807 * 2147483646 is exact in a + double, so the sequence is reproducible run to run. */ + var seed = 15031988; + function rnd() { + seed = (seed * 16807) % 2147483647; + return seed / 2147483647; + } + var pick = function (arr) { return arr[Math.floor(rnd() * arr.length)]; }; + + /* Wrap a discrete change so the screen it replaces drains per pixel. Declines + safely when persistence is off or the API is missing. */ + function withDecay(fn) { + var vt = window.AmberConsoleEffects && window.AmberConsoleEffects.transition; + if (typeof vt === "function") vt(fn); + else fn(); + } + + /* ------------------------------------------------------------- quotes -- */ + + /* Read the page rather than carry a second copy of it. The markup is the + source of truth for frame zero, so parsing it back is what guarantees the + first tick continues from exactly what is on the glass. */ + var QUOTES = $$("#fxsp tr").map(function (tr) { + var cell = function (q) { return tr.querySelector('[data-q="' + q + '"]'); }; + var dp = (cell("bid").textContent.split(".")[1] || "").length; + return { + tr: tr, + pair: tr.getAttribute("data-pair"), + dp: dp, + pip: Math.pow(10, -dp), + bid: parseFloat(cell("bid").textContent), + ask: parseFloat(cell("ask").textContent), + high: parseFloat(cell("high").textContent), + low: parseFloat(cell("low").textContent), + net: parseInt(cell("net").textContent, 10), + cell: cell + }; + }); + + var BY_PAIR = {}; + QUOTES.forEach(function (q) { BY_PAIR[q.pair] = q; }); + + /* A field that has just changed inverts for a moment. That is how these + screens flagged an update before a color tube was affordable, and it is the + law-1 answer to the same question today. The ghost of the old value is the + effects module's doing and is a separate mechanism — together they read as + one event, which is the point. */ + var TICK_MS = 1500; + function flash(el) { + if (!el) return; + el.classList.add("doc-tick"); + clearTimeout(el._t); + el._t = setTimeout(function () { el.classList.remove("doc-tick"); }, TICK_MS); + } + + function quoteTime() { + var d = new Date(); + return pad(d.getUTCHours(), 2) + ":" + pad(d.getUTCMinutes(), 2); + } + + var updates = 0; + var tickets = 218; + + /* ONE INSTRUMENT, THREE OR FOUR CELLS. See the note at the top of the file: + this budget is the whole reason the page reads as a market rather than as a + screensaver. */ + function reprice() { + var q = pick(QUOTES); + + /* A move of one to six pips, occasionally a jump. Spreads widen when it + moves hard, which is the first thing that happens on a real screen and the + last thing a demo usually bothers with. */ + var jump = rnd() < 0.08; + var pips = Math.ceil(rnd() * (jump ? 14 : 6)); + var dir = rnd() < 0.5 ? -1 : 1; + var spread = Math.round((q.ask - q.bid) / q.pip); + if (jump) spread = Math.min(spread + Math.ceil(rnd() * 4), spread * 3); + + q.bid = +(q.bid + dir * pips * q.pip).toFixed(q.dp); + q.ask = +(q.bid + spread * q.pip).toFixed(q.dp); + q.net += dir * pips; + + setText(q.cell("bid"), q.bid.toFixed(q.dp)); + setText(q.cell("ask"), q.ask.toFixed(q.dp)); + setText(q.cell("net"), (q.net >= 0 ? "+" : "") + q.net); + setText(q.cell("time"), quoteTime()); + flash(q.cell("bid")); + flash(q.cell("ask")); + + /* The extremes only move when they are actually taken out, which is most + ticks writing nothing here at all. */ + if (q.bid > q.high) { + q.high = q.bid; + setText(q.cell("high"), q.high.toFixed(q.dp)); + flash(q.cell("high")); + } else if (q.bid < q.low) { + q.low = q.bid; + setText(q.cell("low"), q.low.toFixed(q.dp)); + flash(q.cell("low")); + } + + updates += 1; + if (rnd() < 0.35) tickets += 1; + return q; + } + + /* --------------------------------------------------------------- book -- */ + + /* The desk is marked every fourth tick rather than every one. A book being + revalued on every quote in the market is not how it worked, and it is three + more cell rewrites per tick against a budget this page is deliberately + spending carefully. */ + var BOOK = { + DEM: { pos: 12500000, avg: 1.7802, pair: "USD/DEM", inverse: true }, + JPY: { pos: -850000000, avg: 128.92, pair: "USD/JPY", inverse: true }, + GBP: { pos: 3000000, avg: 1.7688, pair: "GBP/USD", inverse: false }, + CHF: { pos: 0, avg: null, pair: "USD/CHF", inverse: true } + }; + + var group = function (n) { + return (n < 0 ? "-" : "+") + Math.abs(Math.round(n)).toLocaleString("en-US"); + }; + + function markBook() { + var net = 0; + for (var ccy in BOOK) { + var b = BOOK[ccy]; + var q = BY_PAIR[b.pair]; + if (!q) continue; + var mid = (q.bid + q.ask) / 2; + var row = $('#book tr[data-book="' + ccy + '"]'); + + /* USD/XXX is quoted the other way up from the position it creates, so the + P&L is in dollars either way — which is the column heading. */ + var pnl = b.avg === null ? 0 + : b.inverse ? b.pos * (1 / mid - 1 / b.avg) + : b.pos * (mid - b.avg); + + setText(row.querySelector("[data-mark]"), mid.toFixed(q.dp)); + setText(row.querySelector("[data-pnl]"), b.pos === 0 ? "0" : group(pnl)); + net += pnl; + } + setText($("#pnl-net"), group(net)); + } + + /* --------------------------------------------------------------- page -- */ + + var PAGES = ["FXSP", "XRAT", "DEPO", "GOVT", "INDX"]; + var TITLES = { + FXSP: "SPOT FOREIGN EXCHANGE", + XRAT: "CROSS RATES", + DEPO: "EUROCURRENCY DEPOSITS", + GOVT: "GOVERNMENT BONDS", + INDX: "INDEX SUMMARY" + }; + + var MID_UNIT = { USD: 1, DEM: 1, JPY: 100, GBP: 1, CHF: 1, FRF: 100, NLG: 100, ITL: 1000 }; + var MID_CCY = ["USD", "DEM", "JPY", "GBP", "CHF", "FRF", "NLG", "ITL"]; + + /* THE MATRIX IS RECOMPUTED WHEN THE PAGE IS ASKED FOR, not as the spot page + moves. Two reasons, and they agree: a page terminal computed a page when you + called it up, and repricing 56 cells behind a tab nobody is looking at would + be the one thing on this page capable of emptying the ghost budget in a + single frame. Deriving it from the live quotes is also what stops the two + pages ever contradicting each other. */ + function paintCrossRates() { + var mid = { USD: 1 }; + var legs = { + DEM: "USD/DEM", JPY: "USD/JPY", CHF: "USD/CHF", + FRF: "USD/FRF", NLG: "USD/NLG", ITL: "USD/ITL" + }; + for (var c in legs) { + var q = BY_PAIR[legs[c]]; + mid[c] = (q.bid + q.ask) / 2; + } + var g = BY_PAIR["GBP/USD"]; + mid.GBP = 1 / ((g.bid + g.ask) / 2); + + var sig = function (v) { + if (v >= 10000) return Math.round(v).toLocaleString("en-US"); + if (v >= 1000) return v.toFixed(1); + if (v >= 100) return v.toFixed(2); + if (v >= 10) return v.toFixed(3); + return v.toFixed(4); + }; + + var rows = $$("#xrat tr"); + for (var r = 0; r < MID_CCY.length; r++) { + var row = MID_CCY[r]; + var cells = rows[r].querySelectorAll("td"); + var i = 0; + for (var k = 0; k < MID_CCY.length; k++) { + var col = MID_CCY[k]; + if (col === row) { i++; continue; } + setText(cells[i], sig((mid[col] / mid[row]) * MID_UNIT[row])); + i++; + } + } + /* Stamped, because it is a snapshot and saying so is the difference between + a derived page and a page that is quietly stale. */ + setText($("#xrat-at"), quoteTime()); + } + + var current = "FXSP"; + var TABS = $$("[data-code]"); + + /* Exactly what initTabs' own select() does in amber-console.js, done here + instead. THE POINT IS TO OWN THE MOMENT IT HAPPENS: the panel swap has to + occur INSIDE the view transition's callback or the framebuffer decay has + nothing to compare against, and a listener on the container cannot promise + that. The soft key stops the event before it reaches the framework's + delegated handler and calls this instead, so both doors — the key and the + entry line — go through one place and the screen drains either way. + The framework keeps the roving tabindex and the arrow keys, which is the + half of a tablist worth having and the half that is tedious to get right. */ + function select(code) { + for (var i = 0; i < TABS.length; i++) { + var tab = TABS[i]; + var on = tab.getAttribute("data-code") === code; + tab.setAttribute("aria-selected", String(on)); + tab.tabIndex = on ? 0 : -1; + tab.classList.toggle("ac-tab--active", on); + var panel = document.getElementById(tab.getAttribute("aria-controls")); + if (panel) panel.hidden = !on; + } + current = code; + setText($("#headline"), code + " · " + TITLES[code]); + setText($("#st-page"), "PAGE " + code); + setText($("#st-msg"), "PAGE " + code + " RETRIEVED"); + $("#page-entry").value = code; + $("#page-entry").removeAttribute("aria-invalid"); + } + + function showPage(code) { + code = String(code || "").trim().toUpperCase(); + if (PAGES.indexOf(code) === -1) { + $("#page-entry").setAttribute("aria-invalid", "true"); + setText($("#st-msg"), "PAGE " + (code || "?") + " NOT FOUND"); + return false; + } + if (code === current) { + $("#page-entry").removeAttribute("aria-invalid"); + return true; + } + + /* Changing page on a long phosphor is not a cut. The old screen is still + draining while the new one fills in underneath it — the same call the + radar page uses for a range change. The matrix is recomputed inside the + callback so it is already right in the frame being transitioned to. */ + withDecay(function () { + if (code === "XRAT") paintCrossRates(); + select(code); + }); + return true; + } + + TABS.forEach(function (tab) { + tab.addEventListener("click", function (e) { + /* Keep it away from the framework's delegated handler on the container — + it would swap the panels a second time, outside the transition. */ + e.stopPropagation(); + showPage(tab.getAttribute("data-code")); + }); + }); + + $("#page-entry").addEventListener("keydown", function (e) { + if (e.key !== "Enter") return; + e.preventDefault(); + showPage(this.value); + }); + $("#page-entry").addEventListener("input", function () { + this.removeAttribute("aria-invalid"); + }); + + /* --------------------------------------------------------------- hold -- */ + + var held = false; + $("#hold").addEventListener("click", function () { + held = this.getAttribute("aria-pressed") !== "true"; + this.setAttribute("aria-pressed", String(held)); + this.classList.toggle("ac-toggle--on", held); + setText(this.querySelector(".ac-toggle__state"), held ? "ON" : "OFF"); + setText($("#st-hold"), held ? "HELD" : "RUNNING"); + setText($("#st-msg"), held ? "PAGE HELD" : "READY"); + }); + + /* -------------------------------------------------------------- clocks -- */ + + /* One wall clock, three offsets. March 1988: London is on GMT until the 27th, + New York five hours behind it, Tokyo nine ahead. + + ONLY THE LOCAL CLOCK CARRIES SECONDS, and that is a ghost-budget decision as + much as a period one. Three fields rewriting every second is six concurrent + ghosts on a two-second tail before the market has quoted anything — a fixed + charge against a budget of twenty-four, levied on the least interesting text + on the screen. Seconds on the clock you are working to and hours and minutes + on the two you are working AGAINST is also what a dealing room's wall looked + like. */ + var ZONES = [["#clk-lon", 0, true], ["#clk-nyc", -5, false], ["#clk-tok", 9, false]]; + + function paintClocks() { + var d = new Date(); + var base = d.getUTCHours() * 3600 + d.getUTCMinutes() * 60 + d.getUTCSeconds(); + for (var i = 0; i < ZONES.length; i++) { + var t = ((base + ZONES[i][1] * 3600) % 86400 + 86400) % 86400; + var hhmm = pad(Math.floor(t / 3600), 2) + ":" + pad(Math.floor(t / 60) % 60, 2); + setText($(ZONES[i][0]), ZONES[i][2] ? hhmm + ":" + pad(t % 60, 2) : hhmm); + } + } + + /* ---------------------------------------------------------------- run -- */ + + var ticks = 0; + + function tick() { + if (held) return; + reprice(); + ticks += 1; + + /* The book and the session counters share the slow cycle. Every one of these + is a text rewrite and therefore a ghost, and a running total refreshed on + every quote in the market would spend a third of the budget on two numbers + nobody is watching tick. A desk statistic updating every few seconds is + also what these panels actually did. */ + if (ticks % 4 === 0) { + markBook(); + setText($("#updates"), String(updates)); + setText($("#tickets"), String(tickets)); + + /* THE MATRIX IS NOT REFRESHED HERE, and that is deliberate — it is a + SNAPSHOT, computed when the page is called up and stamped with the time + it was computed. Which is what a cross rate page was: a derived page, + not a feed. + + It is also the only shape that fits the budget. One leg moving changes + that currency's whole row and its whole column, so a live repaint is + fourteen visible cells at once — measured, that alone held twenty of the + twenty-four ghosts the engine allows, and the quote trails this page + exists to show were being evicted to make room for it. Wrapping it in a + framebuffer decay does not help either, which is worth writing down: + transition() snapshots the screen, but the mutations inside the callback + still reach the observer and still ghost. There is no way to spend less + than fourteen except not to spend it. */ + } + } + + /* THE MARKET IS DRIVEN BY AN ANIMATION, NOT A TIMER, and that is a + determinism decision before it is anything else. + + The other two demos hold their first tick back by a fixed delay chosen to + clear the visual suite's shutter. That works until the suite grows: every + page added makes every run slower, and this page made it slower than most — + capture.mjs probes the whole DOM six times here, once per page it opens, and + this is the largest DOM in the repo. A 2.5s delay went red. So did six. + + A delay is the wrong instrument for the job. capture.mjs kills every + animation on the page before it shoots, so an animation-driven tick cannot + fire during a capture AT ALL — not unlikely-to, cannot — and the baseline is + frame zero by construction at any machine speed. docs/radar.js already runs + on this principle, where the sweep's own rotation is the clock; the metronome + below is the same idea for a page that has no rotating part to borrow. + + It follows that a reader who has asked for reduced motion gets a static + page. That is the right answer rather than a side effect: the ghosting, the + inverse-video flash and the tape are the motion, and a market that reprices + under someone who asked things to stop moving is not honouring the request. + Every number stays on the glass and stays legible. */ + paintClocks(); + setInterval(paintClocks, 1000); + $("#metronome").addEventListener("animationiteration", tick); +})(); diff --git a/package.json b/package.json index c88b6fc..24f6d0a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "amber-console", - "version": "1.0.0", + "version": "2.0.0", "description": "A monochrome amber-terminal CSS framework — the look of a late-1980s industrial control panel. Zero runtime dependencies.", "keywords": [ "css", @@ -13,7 +13,7 @@ "monochrome", "no-dependencies" ], - "license": "MIT", + "license": "BSD-3-Clause", "author": "Diederik (https://diederik.blog)", "type": "module", "main": "dist/amber-console.css", @@ -22,7 +22,10 @@ "*.css", "./dist/amber-console.js", "./dist/amber-console.global.js", - "./src/amber-console.js" + "./dist/amber-console.effects.js", + "./dist/amber-console.effects.global.js", + "./src/amber-console.js", + "./src/amber-console.effects.js" ], "exports": { ".": "./dist/amber-console.css", @@ -31,6 +34,8 @@ "./min": "./dist/amber-console.min.css", "./js": "./dist/amber-console.js", "./js/global": "./dist/amber-console.global.js", + "./effects": "./dist/amber-console.effects.js", + "./effects/global": "./dist/amber-console.effects.global.js", "./src/*": "./src/*", "./fonts/*": "./fonts/*", "./package.json": "./package.json" @@ -39,8 +44,11 @@ "dist", "src", "fonts", + "starter.html", "README.md", "CHANGELOG.md", + "DEPRECATIONS.md", + "RATIONALE.md", "LICENSE" ], "scripts": { @@ -52,7 +60,9 @@ "dev": "node scripts/build.mjs --watch --serve", "lint": "stylelint \"src/**/*.css\"", "test:visual": "node test/visual/capture.mjs", - "test": "npm run check && npm run contrast && npm run build" + "test:computed": "node test/computed/capture.mjs", + "test": "npm run lint && npm run check && npm run gas -- --check && npm run contrast && npm run build", + "gas": "node scripts/derive-gas.mjs" }, "devDependencies": { "playwright": "^1.62.0", @@ -64,7 +74,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/DutchDiederik/amber-console.git" + "url": "git+https://github.com/DutchDiederik/AmberConsole.git" }, - "homepage": "https://github.com/DutchDiederik/amber-console#readme" + "homepage": "https://github.com/DutchDiederik/AmberConsole#readme" } diff --git a/scripts/build.mjs b/scripts/build.mjs index 5387b31..de1921d 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -16,7 +16,7 @@ * dist/amber-console.layer.css the bundle wrapped in @layer amber-console * dist/amber-console.js copy of the optional behavior module */ -import { readFile, writeFile, mkdir, copyFile } from "node:fs/promises"; +import { readFile, writeFile, mkdir, readdir } from "node:fs/promises"; import { watch } from "node:fs"; import { fileURLToPath } from "node:url"; import path from "node:path"; @@ -185,7 +185,7 @@ function minify(css) { /** Indenting inside @layer would churn the diff; a bare wrap is enough. */ function wrapLayer(css) { const banner = - `/* Amber Console ${VERSION} — @layer build.\n` + + `/*! Amber Console ${VERSION} | BSD-3-Clause | @layer build.\n` + ` * Identical to amber-console.css, wrapped in @layer amber-console so the\n` + ` * framework loses specificity fights against your own unlayered rules.\n` + ` * Link this INSTEAD OF amber-console.css, never alongside it.\n` + @@ -203,23 +203,334 @@ function wrapLayer(css) { * double-clicking it" is a hard requirement, the pages load this build instead. * The module build stays the canonical one for bundlers and npm consumers. */ -function toGlobal(source) { +/** + * The optional modules, as [source file, global name, exported functions]. + * + * amber-console.js is BEHAVIOR — tablist, dialogs, toggles, DISPLAY presets. + * amber-console.effects.js is PERSISTENCE — ghosting, scroll smear, framebuffer + * decay. Separately optional on purpose: accessible tabs without the eye-candy, + * or the full phosphor simulation over somebody else's tab implementation. + */ +const MODULES = [ + ["amber-console.js", "AmberConsole", ["init", "afterglow"]], + ["amber-console.effects.js", "AmberConsoleEffects", ["init", "afterglow", "transition"]], +]; + +/** + * THE SOURCE BANNER, STAMPED WITH THE VERSION src/ IS NOT ALLOWED TO CARRY. + * + * Same rule as the stylesheet — see the header of src/amber-console.css. The + * two JS modules open with an unversioned `/*! … *\/` line so nothing in src/ + * can drift from package.json, and both dist/ flavors get the number written in + * here on the way out. The ESM builds used to be a straight copyFile, which + * meant they were the only two files in dist/ shipping without a version. + */ +const stampBanner = (source) => + source.replace(/^\/\*! Amber Console \|/, `/*! Amber Console ${VERSION} |`); + +function toGlobal(source, file, globalName, exports) { const body = source + /* The classic-script banner below says everything the source banner says + and more, so the source one is dropped rather than nested inside it. */ + .replace(/^\/\*! Amber Console \|[^\n]*\n/, "") .replace(/^export default [\s\S]*?;\s*$/m, "") .replace(/^export /gm, "") .trim(); + const surface = exports.map((n) => `${n}: ${n}`).join(", "); + return ( - `/*! Amber Console ${VERSION} | MIT | classic-script build\n` + - ` * Generated from src/amber-console.js by scripts/build.mjs.\n` + + `/*! Amber Console ${VERSION} | BSD-3-Clause | classic-script build\n` + + ` * Generated from src/${file} by scripts/build.mjs.\n` + ` * Use this with a plain . * Using React/Vue/Svelte? Skip it — drive the same ARIA attributes yourself and * the CSS follows. @@ -25,14 +41,23 @@ const STORE_PREFIX = "ac.sim."; /** - * Live, so a preference changed mid-session is honoured without a reload — and - * guarded, so importing this module in a Node/SSR pass does not throw before it - * reaches the DOM check at the bottom of the file. + * Wrap a DOM change so the screen it replaces decays per pixel. + * + * The one place this file reaches for amber-console.effects.js, and it reaches + * by runtime lookup rather than by import — deliberately, because the two + * modules are independently optional and an import would make one require the + * other. Without the effects module this is a plain call, and every tab and + * dialog behaves exactly as it did before persistence existed. + * + * Only DISCRETE changes are wrapped. A view transition cancels any transition + * already running, so wrapping frequent updates would mean a long P7 snapshot + * being discarded before it ever finished. See the note in the effects module. */ -const REDUCED_MOTION = - typeof matchMedia === "function" - ? matchMedia("(prefers-reduced-motion: reduce)") - : { matches: false }; +const withDecay = (fn) => { + const vt = globalThis.AmberConsoleEffects?.transition; + if (typeof vt === "function") vt(fn); + else fn(); +}; /** localStorage can throw in private mode and in sandboxed file:// frames. */ function readStored(key) { @@ -49,6 +74,18 @@ function writeStored(key, value) { /* Not persisting is survivable; the toggle still works this session. */ } } +/** + * Forget a stored preference — which is a different act from storing its + * default. An absent key means "the user has never said", and that is the only + * state a derived default is allowed to fill in. See syncDerivedStyles. + */ +function clearStored(key) { + try { + localStorage.removeItem(STORE_PREFIX + key); + } catch { + /* Same as above: the session is still correct, only the next one is not. */ + } +} /* ---------------------------------------------------------------- tablist -- */ @@ -78,7 +115,7 @@ function initTabs(root) { root.addEventListener("click", (e) => { const tab = e.target.closest('[role="tab"]'); - if (tab && tabs.includes(tab)) select(tab); + if (tab && tabs.includes(tab)) withDecay(() => select(tab)); }); root.addEventListener("keydown", (e) => { @@ -96,7 +133,7 @@ function initTabs(root) { e.preventDefault(); const next = tabs[(moves[e.key] + tabs.length) % tabs.length]; next.focus(); - select(next); + withDecay(() => select(next)); }); select(tabs.find((t) => t.getAttribute("aria-selected") === "true") ?? tabs[0]); @@ -122,211 +159,6 @@ function initToggle(btn) { }); } -/* ---------------------------------------------------- plasma afterglow -- */ - -/** - * A cell that stops being driven relaxes rather than switching off, so the - * value a readout held one frame ago is still faintly on the glass. CSS handles - * that for anything that merely *hides* — see the decay-out block in - * tokens/effects.css — but it cannot reach the case that sells the effect: text - * being rewritten in place. Nothing in the cascade remembers the old string. - * - * So: watch the frame, and when text changes, park a copy of the OLD text at - * the rect it occupied and let tokens/effects.css drain it. - */ - -/** Enough of the source's paint to make a detached clone look identical. */ -const GHOST_STYLES = [ - "font", "letterSpacing", "lineHeight", "textAlign", "textTransform", - "whiteSpace", "color", "textShadow", "padding", "borderRadius", -]; - -/** - * More than this many draining ghosts means something is rewriting text far - * faster than the decay, and every extra one is invisible under the pile. - */ -const GHOST_LIMIT = 24; - -/** Ghosts are decoration made of duplicated content — hide them completely. */ -function sanitize(node) { - node.removeAttribute?.("id"); - for (const el of node.querySelectorAll?.("[id]") ?? []) el.removeAttribute("id"); - node.setAttribute("aria-hidden", "true"); - node.inert = true; - node.tabIndex = -1; -} - -/** - * Park a decaying copy of `source` on the persistence layer. - * - * @param {Element} source the element to ghost — must still be in the document, - * because its rect is what the ghost is pinned to - * @param {string} [text] value to show instead of the source's current one; - * this is how a rewritten readout ghosts its old value - * @param {boolean} [fast] use --ac-decay-fast, for continuously updating text - */ -function spawnGhost(source, text, fast) { - /* A background tab does not advance the animation clock, so a ghost spawned - into one never reaches animationend and never cleans itself up. Nothing is - being looked at either way — decline, rather than bank stale nodes for - whenever the tab comes back. - - Same failure, different cause, under prefers-reduced-motion: the CSS hides - .ac-ghost outright, and a display:none element never runs its animation, so - animationend never fires and the self-removal below never happens. GHOST_LIMIT - caps the pile at 24 rather than letting it grow without bound, but the right - answer is not to clone, measure and park a node nobody will ever see — for - exactly the users who asked for less of this. */ - if (document.hidden || REDUCED_MOTION.matches) return; - - const frame = source.closest(".ac-afterglow"); - const layer = frame?.querySelector(":scope > .ac-persist"); - if (!layer) return; - - const rect = source.getBoundingClientRect(); - if (!rect.width || !rect.height) return; - - const box = frame.getBoundingClientRect(); - const ghost = source.cloneNode(true); - sanitize(ghost); - if (text !== undefined) ghost.textContent = text; - - /* The clone leaves its ancestors behind, so every inherited and - descendant-selected style leaves with them. Copy the paint back on. */ - const from = getComputedStyle(source); - for (const prop of GHOST_STYLES) ghost.style[prop] = from[prop]; - - ghost.classList.add("ac-ghost"); - if (fast) ghost.classList.add("ac-ghost--fast"); - ghost.style.left = `${rect.left - box.left}px`; - ghost.style.top = `${rect.top - box.top}px`; - ghost.style.width = `${rect.width}px`; - ghost.style.height = `${rect.height}px`; - - layer.append(ghost); - while (layer.querySelectorAll(".ac-ghost").length > GHOST_LIMIT) { - layer.querySelector(".ac-ghost").remove(); - } - ghost.addEventListener("animationend", () => ghost.remove(), { once: true }); -} - -/** - * Ghost every text rewrite inside the frame. - * - * Both mutation kinds matter and they carry the old string differently: - * `el.textContent = x` REPLACES the text node, which is a childList record with - * the old node in removedNodes; editing a text node in place is a characterData - * record with oldValue. Miss either one and half the updates on a page ghost. - */ -function makeGhostObserver(frame) { - return new MutationObserver((records) => { - /* One ghost per element per batch — a single textContent assignment can - produce a remove and an insert, and two stacked copies read as a smear. */ - const seen = new Map(); - - for (const m of records) { - let host = m.type === "characterData" ? m.target.parentElement : m.target; - if (!(host instanceof Element)) continue; - /* Our own ghosts are DOM changes too. Watching them would feed itself. */ - if (host.closest(".ac-persist")) continue; - - let old; - if (m.type === "characterData") { - old = m.oldValue; - } else { - for (const node of m.removedNodes) { - if (node.nodeType === Node.TEXT_NODE) old = node.nodeValue; - } - } - - /* A rewrite to the same string is not a change the panel ever saw — - the console demo reassigns its date field every second unchanged. */ - if (!old?.trim() || old === host.textContent) continue; - if (!seen.has(host)) seen.set(host, old); - } - - for (const [host, old] of seen) spawnGhost(host, old, true); - }); -} - -/* ---------------------------------------------------- scroll smear -- */ - -/** Per-frame scroll distance, in px, that saturates the smear. */ -const SMEAR_FULL = 55; -/** - * Geometric drain per frame once the scroll stops. At 60fps the loop stops - * itself ~130ms in, when it crosses the floor. The tail wants to be short: a - * smear that outlives the scroll by much stops reading as persistence and starts - * reading as lag. While you are actually scrolling the smear is held up by - * velocity, so this governs the release and nothing else. - */ -const SMEAR_DRAIN = 0.55; - -/** - * Drive `--ac-smear` on the frame from actual scroll speed. - * - * Scrolling hands every cell on the panel a new value at once, which is the - * largest light-off event there is, so it is also where the gas visibly fails - * to keep up. The CSS in tokens/effects.css turns this number into a blurred - * additive copy of the backdrop. - * - * Speed comes from the delta between animation frames rather than from the - * scroll events themselves: scroll fires at wildly different rates depending on - * input device, and a wheel notch and a trackpad flick that move the same - * distance in the same time should smear identically. - */ -function makeScrollSmear(frame) { - let last = 0; - let smear = 0; - let raf = 0; - - const clear = () => { - smear = 0; - frame.removeAttribute("data-ac-scrolling"); - frame.style.removeProperty("--ac-smear"); - }; - - const step = () => { - raf = 0; - const y = window.scrollY; - const target = Math.min(Math.abs(y - last) / SMEAR_FULL, 1); - last = y; - - /* Rise immediately, drain gradually — the same asymmetry as everything else - here. The panel keeps up with getting brighter; it lags going dark. */ - smear = target > smear ? target : smear * SMEAR_DRAIN; - - if (smear < 0.01) { - clear(); - return; - } - frame.setAttribute("data-ac-scrolling", ""); - frame.style.setProperty("--ac-smear", smear.toFixed(3)); - raf = requestAnimationFrame(step); - }; - - const onScroll = () => { - if (!raf) raf = requestAnimationFrame(step); - }; - - return { - connect() { - /* Smearing the viewport in response to scrolling is the most motion-sick- - making thing in the simulation; the CSS hides it too, but there is no - reason to run the loop at all. */ - if (REDUCED_MOTION.matches) return; - last = window.scrollY; - window.addEventListener("scroll", onScroll, { passive: true }); - }, - disconnect() { - window.removeEventListener("scroll", onScroll); - if (raf) cancelAnimationFrame(raf); - raf = 0; - clear(); - }, - }; -} - /* ------------------------------------------------------- screen sims -- */ /** @@ -349,65 +181,118 @@ const SIMS = { }; /** - * PLASMA / CRT / AFTERGLOW toggles. `data-ac-sim="plasma|crt|afterglow"` on an - * .ac-toggle button, `data-ac-screen` on the frame they apply to (defaults to - * the first .ac-screen). + * Simulations that make the same kind of claim and therefore cannot both be on. + * + * PLASMA and CRT are not two layers of glass, they are two display + * technologies, and no panel is both: a frame carrying .ac-bloom and .ac-crt at + * once has gas gaps and a scanning beam in the same enclosure, wearing a cell + * mesh and raster blanking gaps at the same time. Those are the two textures + * section 04 of the guide spends a paragraph telling apart — a screen door is + * not a scanline, and there is no scan in a plasma panel to blank. Switching + * either one ON switches the other OFF, in the same click, and both toggles + * move to prove it. + * + * Both OFF stays allowed. That is a flat lit surface — no particular hardware, + * and an honest thing to want to look at. This is exclusion, not a radio group. + * + * A DISPLAY preset must therefore name at most one of them in `data-ac-sims`; + * listing both leaves whichever is applied last, which is not a useful thing to + * have asked for. */ -function initSims() { - const buttons = [...document.querySelectorAll("[data-ac-sim]")]; - if (!buttons.length) return; +const EXCLUSIVE_SIMS = ["plasma", "crt"]; + +/** The frame every simulation paints on. Resolved once, on first use. */ +function screenFrame() { + return (screenFrame.cached ??= + document.querySelector("[data-ac-screen]") ?? + document.querySelector(".ac-screen") ?? + null); +} - const frame = - document.querySelector("[data-ac-screen]") ?? document.querySelector(".ac-screen"); - if (!frame) return; - - const apply = (name, on) => { - const sim = SIMS[name]; - for (const klass of sim.classes) frame.classList.toggle(klass, on); - - /* Reversed, because each one is PREPENDED: walking the list as written puts - the children into the frame back-to-front. That is not cosmetic — - .ac-retrace and .ac-persist both sit at z-index 45, so DOM order is the - only thing breaking the tie between them, and a frame that mounted them - from script composited fractionally differently from one that shipped them - in markup. The list is declared in paint order; keep it that way. */ - for (const child of [...sim.children].reverse()) { - const existing = frame.querySelector(`:scope > .${child}`); - if (on && !existing) { - const span = document.createElement("span"); - span.className = child; - frame.prepend(span); - } else if (!on && existing) { - existing.remove(); - } +/** + * Mount or unmount one simulation, and repaint every toggle that names it. + * + * Module scope rather than a closure inside initSims, because the DISPLAY + * presets drive the same switches: picking CRT/P3 has to be able to put the + * PLASMA toggle in the OFF position and mean it. Two code paths writing the + * frame independently is how you end up with a lit .ac-bloom and a toggle + * insisting plasma is off. + */ +function applySim(name, on) { + const sim = SIMS[name]; + const frame = screenFrame(); + if (!sim || !frame) return; + + /* Exclusion runs here rather than in the click handler, because the DISPLAY + presets and the restore path both write simulations through this function + and a rule enforced in one of the three is not a rule. Only the ON branch + recurses, and it recurses with `false`, so this is exactly one level deep + and cannot loop. */ + if (on && EXCLUSIVE_SIMS.includes(name)) { + for (const other of EXCLUSIVE_SIMS) { + if (other !== name) applySim(other, false); } + } - if (sim.classes.includes("ac-afterglow")) { - ghostObserver ??= makeGhostObserver(frame); - scrollSmear ??= makeScrollSmear(frame); - if (on) { - ghostObserver.observe(frame, { - subtree: true, - childList: true, - characterData: true, - characterDataOldValue: true, - }); - scrollSmear.connect(); - } else { - ghostObserver.disconnect(); - scrollSmear.disconnect(); - } + for (const klass of sim.classes) frame.classList.toggle(klass, on); + + /* Reversed, because each one is PREPENDED: walking the list as written puts + the children into the frame back-to-front. That is not cosmetic — + .ac-retrace and .ac-persist both sit at z-index 45, so DOM order is the + only thing breaking the tie between them, and a frame that mounted them + from script composited fractionally differently from one that shipped them + in markup. The list is declared in paint order; keep it that way. */ + for (const child of [...sim.children].reverse()) { + const existing = frame.querySelector(`:scope > .${child}`); + if (on && !existing) { + const span = document.createElement("span"); + span.className = child; + frame.prepend(span); + } else if (!on && existing) { + existing.remove(); } + } - for (const btn of buttons.filter((b) => b.dataset.acSim === name)) { - btn.setAttribute("aria-pressed", String(on)); - btn.classList.toggle("ac-toggle--on", on); - const state = btn.querySelector(".ac-toggle__state"); - if (state) state.textContent = on ? "ON" : "OFF"; - } + /* NOTHING HERE STARTS THE PERSISTENCE EFFECTS, and that is the split. + Ghosting, the scroll smear and the framebuffer decay live in + amber-console.effects.js, which may not be loaded — and when it is, it + watches the frame's class list for `.ac-afterglow` itself rather than being + told. Toggling the simulation is a DOM change; a module that can see the DOM + needs no handshake, and a handshake would be one more thing to keep in sync + across two files that are meant to be independently optional. */ - writeStored(name, on ? "1" : "0"); - }; + for (const btn of document.querySelectorAll(`[data-ac-sim="${name}"]`)) { + btn.setAttribute("aria-pressed", String(on)); + btn.classList.toggle("ac-toggle--on", on); + const state = btn.querySelector(".ac-toggle__state"); + if (state) state.textContent = on ? "ON" : "OFF"; + } + + /* Some styles have no default of their own — they take one from whatever the + glass is now doing. The frame's classes are settled by this point, so this + is the moment they can be read. */ + syncDerivedStyles(); + + writeStored(name, on ? "1" : "0"); +} + +/** + * PLASMA / CRT toggles. `data-ac-sim="plasma|crt"` on an .ac-toggle button, + * `data-ac-screen` on the frame they apply to (defaults to the first .ac-screen). + * + * These switch the SIMULATION — what the glass does. They do not touch the + * palette; which gas or which phosphor is lighting up is initDisplay's business + * and lives on different attributes entirely. A user is free to run the CRT + * simulation with a plasma gas in it, and the DISPLAY presets will tell them + * they have (see MOD below), but nothing here stops them. + * + * The two simulations do exclude EACH OTHER — see EXCLUSIVE_SIMS. That is a + * different statement from the one above: a gas behind a tube's glass is a + * mismatch a user can want to look at, two enclosures at once is not a panel. + */ +function initSims() { + const buttons = [...document.querySelectorAll("[data-ac-sim]")]; + if (!buttons.length || !screenFrame()) return; for (const name of Object.keys(SIMS)) { if (!buttons.some((b) => b.dataset.acSim === name)) continue; @@ -419,74 +304,789 @@ function initSims() { display technology, and its scanlines are the one thing a plasma panel conspicuously does not have. Shipping both on by default meant the first impression of the system was a plasma screen wearing a tube's blanking - gaps. It stays one click away. */ + gaps. It stays one click away. + + A session stored before these two became exclusive can have BOTH keys + reading "1". Declaration order settles it without extra bookkeeping: + PLASMA is restored first, switches CRT off through applySim and writes + that through, so CRT's own key already says "0" by the time it is read. + Plasma winning is the right way round — it is the system's own hardware, + and the one a returning visitor is least surprised to find still lit. */ const stored = readStored(name); - apply(name, stored === null ? SIMS[name].defaultOn : stored === "1"); + applySim(name, stored === null ? SIMS[name].defaultOn : stored === "1"); for (const btn of buttons.filter((b) => b.dataset.acSim === name)) { if (wired.has(btn)) continue; wired.add(btn); btn.addEventListener("click", () => { - apply(name, btn.getAttribute("aria-pressed") !== "true"); + applySim(name, btn.getAttribute("aria-pressed") !== "true"); + /* Deviating from the preset is allowed and is the point of the toggles + still being there. It is just no longer the preset. */ + markModified(); }); } } } -/* -------------------------------------------------------------------- gas -- */ +/* ---------------------------------------------------------------- display -- */ + +/** + * DISPLAY — which hardware is in the panel. Two attributes on the ROOT element: + * + * data-ac-tech the technology: "plasma" (gas emitting directly) or "crt" + * (a beam on a phosphor). What is making light at all. + * data-ac-emitter which gas, or which phosphor, inside that technology. + * + * Root, not the frame, because the palette is not a property of the screen the + * way .ac-bloom is. Tokens cascade, and a page can put .ac-badge or a code + * sample outside .ac-screen — scoping the switch to the frame would leave those + * on whichever palette :root happened to declare, which is the kind of split + * nobody notices until a screenshot has two hues in it. + * + * TWO attributes and not one, because "which color" is not answerable on its + * own: a gas and a phosphor can be the same color and are not the same thing. + * Keeping the technology in the selector is what makes it impossible to offer + * P39 as a gas or krypton as a phosphor — see the header of tokens/colors.css. + * + * THE CATALOG IS MARKUP, NOT A TABLE IN HERE. Each preset is a radio: + * + * + * + * so a consumer who ships their own palettes writes their own rows and this file + * needs no edit. `data-ac-sims` is the space-separated list of simulations that + * technology implies; every other known simulation is switched OFF. That is the + * whole preset behavior — pick CRT P3 and the CRT glass comes on and the plasma + * bloom goes off, in one click, and both toggles move to prove it. + * + * A preset is a STARTING POINT, not a lock. Flip a simulation or a style + * afterwards and the readout says MOD; nothing is prevented. + */ +function initDisplay() { + const radios = [...document.querySelectorAll("[data-ac-display]")]; + const root = document.documentElement; + + /** Write the palette. Attributes only — no simulation is touched. */ + const paint = (tech, emitter) => { + root.setAttribute("data-ac-tech", tech); + root.setAttribute("data-ac-emitter", emitter); + /* Deprecated, removed in 3.0. Kept in sync so a page still selecting on + [data-ac-gas] does not silently fall back to :root mid-session. */ + if (tech === "plasma" && emitter === "neon") root.setAttribute("data-ac-gas", "neon"); + else if (tech === "crt" && emitter === "p3") root.setAttribute("data-ac-gas", "amber"); + else root.removeAttribute("data-ac-gas"); + + for (const r of radios) { + r.checked = r.dataset.acTech === tech && r.dataset.acEmitter === emitter; + } + + writeStored("tech", tech); + writeStored("emitter", emitter); + paintReadout(); + }; + + /* Restore. The palette is restored WITHOUT applying the preset's simulations, + because initSims has already restored those from their own keys and they may + legitimately disagree — that disagreement is exactly what MOD records. Only + an actual click applies a whole preset. */ + const storedTech = readStored("tech"); + const storedEmitter = readStored("emitter"); + const known = radios.some( + (r) => r.dataset.acTech === storedTech && r.dataset.acEmitter === storedEmitter + ); + /* An unrecognized stored pair falls back rather than being written through — a + stale key from a palette that has since been removed must not leave the + panel unstyled. */ + if (known) paint(storedTech, storedEmitter); + else if (radios.length) { + const first = radios.find((r) => r.checked) ?? radios[0]; + paint(first.dataset.acTech, first.dataset.acEmitter); + } + modified = readStored("mod") === "1"; + paintReadout(); + + for (const radio of radios) { + if (wired.has(radio)) continue; + wired.add(radio); + radio.addEventListener("change", () => { + if (!radio.checked) return; + paint(radio.dataset.acTech, radio.dataset.acEmitter); + + /* The preset half of a preset: every simulation this technology implies + goes on, every other one goes off. Listed sims that are not installed + are ignored rather than throwing, so markup can name a simulation this + build does not have yet. */ + const wanted = new Set((radio.dataset.acSims ?? "").split(/\s+/).filter(Boolean)); + for (const name of Object.keys(SIMS)) applySim(name, wanted.has(name)); + + modified = false; + writeStored("mod", "0"); + paintReadout(); + }); + } + + /* [data-ac-display-reset] puts the whole board back: the selected preset's + simulations, every STYLE flag, and the ENGINE flag. + + IT USED TO CLEAR ONLY THE DERIVED STYLES, which was the bug. A flag with a + FIXED default — `classic` — kept its stored value through a reset, so a + visitor who had once switched the corners off could not get them back from + this button, on any preset, ever; and the ENGINE key was not touched at all, + so JS Effects was in the same position. "Reset" that resets two of the four + axes is not a reset, it is a partial one nobody can predict the shape of. + Every axis the board can move, this button moves back. */ + for (const btn of document.querySelectorAll("[data-ac-display-reset]")) { + if (wired.has(btn)) continue; + wired.add(btn); + btn.addEventListener("click", () => { + /* FORGET THE STORED PREFERENCES FIRST, and first is the load-bearing word: + the change below runs applySim, which re-derives the derived flags — but + only for flags with nothing stored. Clearing after would leave the user's + old choice in place for one more preset, which is not what a reset is. + + `persist: false` on the way back is the other half. Writing the default + to storage here would CLAIM the preference on the user's behalf — the key + would exist, syncDerivedStyles would stop filling it, and a derived flag + would never follow the simulation again. An absent key means "the user + has never said", which is exactly the state a reset is restoring. */ + for (const name of Object.keys(STYLES)) { + clearStored(`style.${name}`); + applyStyle(name, styleDefault(name), false); + } + clearStored("engine"); + applyEngine(ENGINE_DEFAULT_JS, false); + + const current = radios.find((r) => r.checked); + if (current) { + current.dispatchEvent(new Event("change", { bubbles: true })); + return; + } + + /* NO CATALOG ROW IS SELECTED — a board that ships the reset button without + the radios, or one whose stored palette was dropped from the catalog. The + change handler above is what normally clears MOD and repaints, so + without this the styles and the engine went back while the readout went + on saying MOD for a board that is now exactly on its defaults. Nothing + restores a palette here because there is no preset to restore it from. */ + modified = false; + writeStored("mod", "0"); + paintReadout(); + }); + } +} + +/** + * Fill every [data-ac-display-out] with the current state. + * + * `label` is the one that matters: it rides in the menu bar, it is always + * visible, and it always names the TECHNOLOGY first. Somebody scanning the board + * should never have to remember whether P39 was a gas. + * + * `peak` comes off the catalog row rather than a table in here, for the same + * reason the catalog itself does: a page shipping its own palettes states its own + * wavelengths. The row is found by matching tech and emitter rather than by + * reading `:checked`, so the legacy gas toggle — which sets the attributes + * without touching a radio — still gets a number, and so a value that arrived + * from localStorage cannot be interpolated into a selector. + */ +function paintReadout() { + const root = document.documentElement; + const tech = root.getAttribute("data-ac-tech") ?? ""; + const emitter = root.getAttribute("data-ac-emitter") ?? ""; + const mode = modified ? "MOD" : "PRESET"; + + const row = [...document.querySelectorAll("[data-ac-display]")].find( + (r) => r.dataset.acTech === tech && r.dataset.acEmitter === emitter + ); + + const values = { + tech: tech.toUpperCase(), + emitter: emitter.toUpperCase(), + mode, + /* An em dash, not an empty string: a readout that renders as nothing reads + as a broken panel rather than as a palette that never declared a peak. */ + peak: row?.dataset.acPeak || "—", + label: `${tech.toUpperCase()} · ${emitter.toUpperCase()}${modified ? " *MOD" : ""}`, + /* Not part of the preset — see initEngine — but it belongs on the board, + because "three of these effects are dark right now" is exactly the kind + of thing a State panel exists to stop being a surprise. */ + /* What is actually rendering this panel, not what the flag permits. Under a + plasma simulation or a microsecond phosphor the effects module contributes + nothing, so "CSS + JS" beside a switch that reads OFF would be the readout + disagreeing with the control right next to it. */ + engine: engineOn() && engineUseful() ? "CSS + JS" : "CSS ONLY", + }; + + for (const el of document.querySelectorAll("[data-ac-display-out]")) { + const key = el.dataset.acDisplayOut; + if (key in values) el.textContent = values[key]; + } + + paintInfo(); + + /* AND THE PALETTE IS THE OTHER HALF OF THE ENGINE GATE. Every display change + comes through here — presets, the legacy gas toggle, the restore path — and a + change of emitter can move --ac-persist across the floor without the + simulation moving at all. P39 to P11 is exactly that: still CRT, still + afterglow, and the effects go from a two-second tail to 35 microseconds. */ + syncEngineControls(); +} + +/** + * Show the note that describes the hardware currently in the panel. + * + * The prose is MARKUP, like the catalog is — one `[data-ac-display-info]` node + * per key, all but the matching one `hidden`. Keeping the copy out of here is + * what lets a page describe its own palettes, and what keeps the same string + * from having to be escaped through JavaScript to reach a paragraph. + * + * A key is either a technology ("crt") or an exact palette ("crt/p3"). Exact + * wins where one exists, so a phosphor whose behavior is not typical of its + * technology — P7, whose whole point is a second, much slower layer — can say so + * without every other phosphor needing its own paragraph. + */ +function paintInfo() { + const root = document.documentElement; + const tech = root.getAttribute("data-ac-tech"); + const exact = `${tech}/${root.getAttribute("data-ac-emitter")}`; + + const nodes = [...document.querySelectorAll("[data-ac-display-info]")]; + const specific = nodes.some((el) => el.dataset.acDisplayInfo === exact); + + for (const el of nodes) { + const key = el.dataset.acDisplayInfo; + el.hidden = specific ? key !== exact : key !== tech; + } +} + +/** Any deviation from the selected preset, by simulation or by style. */ +function markModified() { + modified = true; + writeStored("mod", "1"); + paintReadout(); +} -/** Palette names, in toggle order. See the header of tokens/colors.css. */ -const GASES = ["neon", "amber"]; +/* ------------------------------------------------------- gas (deprecated) -- */ /** - * GAS toggle. `data-ac-gas-toggle` on an .ac-toggle button; the attribute this - * writes is `data-ac-gas` on the ROOT element, not on the frame. - * - * Root, because the palette is not a property of the screen the way .ac-bloom - * is. Tokens cascade, and a page can put .ac-badge or a code sample outside - * .ac-screen — scoping the switch to the frame would leave those on whichever - * gas :root happened to declare, which is the kind of split nobody notices until - * a screenshot has two hues in it. - * - * Unlike the sims this is NOT on/off, so aria-pressed would be a lie: neither - * state is "not pressed". The button carries the palette name instead, and - * .ac-toggle--on tracks the non-default gas purely so the track renders as - * thrown. CSS-only consumers can set data-ac-gas in their own markup and never - * load this file. + * DEPRECATED, removed in 3.0. The old two-position GAS toggle, kept working for + * pages that still ship `data-ac-gas-toggle` on a button. + * + * It was never a gas toggle. One of its two positions was a CRT phosphor, and a + * control that calls a phosphor a gas is the confusion this release exists to + * remove — see initDisplay. It now cycles the same two palettes through the new + * attributes, so a page using it stays correct while it migrates, but it cannot + * reach the rest of the catalog and will not grow to. + * + * Migrate to a [data-ac-display] radio per palette. */ +const LEGACY_GASES = [ + { gas: "neon", tech: "plasma", emitter: "neon" }, + { gas: "amber", tech: "crt", emitter: "p3" }, +]; + function initGas() { const buttons = [...document.querySelectorAll("[data-ac-gas-toggle]")]; if (!buttons.length) return; - const apply = (gas) => { - document.documentElement.setAttribute("data-ac-gas", gas); + const root = document.documentElement; + const apply = (entry) => { + root.setAttribute("data-ac-tech", entry.tech); + root.setAttribute("data-ac-emitter", entry.emitter); + root.setAttribute("data-ac-gas", entry.gas); for (const btn of buttons) { - btn.classList.toggle("ac-toggle--on", gas !== GASES[0]); + btn.classList.toggle("ac-toggle--on", entry.gas !== LEGACY_GASES[0].gas); const state = btn.querySelector(".ac-toggle__state"); - if (state) state.textContent = gas.toUpperCase(); + if (state) state.textContent = entry.gas.toUpperCase(); } - writeStored("gas", gas); + writeStored("tech", entry.tech); + writeStored("emitter", entry.emitter); + paintReadout(); }; - /* NEON is the default because it is the one derived from the hardware this - system claims to be; AMBER is the phosphor look kept as an option. An - unrecognised stored value falls back rather than being written through — a - stale key from a future palette must not leave the panel unstyled. */ - const stored = readStored("gas"); - apply(GASES.includes(stored) ? stored : GASES[0]); + /* RESTORE ONLY WHAT THIS CONTROL CAN EXPRESS, and otherwise leave the panel + alone. initGas runs LAST, after initDisplay has already restored the real + catalog — so falling back to LEGACY_GASES[0] here meant a page that still + ships the old button dragged a visitor's saved P39 or krypton back to neon + on every load, silently, using a control that cannot even reach those + palettes. A two-position switch has no opinion about the other nine. + + When the stored emitter is one of its two, paint it so the switch shows the + right position. When it is not, repaint only the button's own label — the + palette on the root stays whatever initDisplay restored. */ + const stored = readStored("emitter"); + const legacy = LEGACY_GASES.find((e) => e.emitter === stored); + if (legacy) apply(legacy); + else { + for (const btn of buttons) { + btn.classList.remove("ac-toggle--on"); + const state = btn.querySelector(".ac-toggle__state"); + if (state) state.textContent = (root.getAttribute("data-ac-emitter") ?? "").toUpperCase(); + } + } for (const btn of buttons) { if (wired.has(btn)) continue; wired.add(btn); btn.addEventListener("click", () => { - const now = document.documentElement.getAttribute("data-ac-gas"); - apply(GASES[(GASES.indexOf(now) + 1) % GASES.length]); + const now = root.getAttribute("data-ac-emitter"); + const i = LEGACY_GASES.findIndex((e) => e.emitter === now); + apply(LEGACY_GASES[(i + 1) % LEGACY_GASES.length]); }); } } +/* ----------------------------------------------------------------- engine -- */ + +/** + * ENGINE — which of the two files is allowed to contribute. + * + * + + + + + + +
+ + +
+ + + + + +
+ Interlocks + + + +
+ + +
+
+
+
+
050100
+
+ + + + + + + + +
+ Core Instrumentation + +
+ + +
+
+
Core Temp
+
618C
+
+
+
Flow
+
12.4M3/S
+
+
+ + +
+ + +
+
+
Rod Position
+ +
48%
+
+
+
Loop Pressure
+ +
7.1 MPA
+
+
+
Uptime
+ +
0412:07
+
+
+ + +
+ Loop A + Armed + Spare +
+
+
+ + + + +
+ Rounded Region +
+ + +
+
+ + + + + + diff --git a/stylelint.config.mjs b/stylelint.config.mjs index d7489a1..39de16a 100644 --- a/stylelint.config.mjs +++ b/stylelint.config.mjs @@ -22,12 +22,20 @@ export default { }, ], "keyframes-name-pattern": "^ac-[a-z0-9-]+$", - "custom-property-pattern": "^(ac-)?[a-z0-9]+(-[a-z0-9]+)*$", + // Law: every token this framework owns is --ac-* prefixed. The prefix used + // to be optional here and 60 of 76 tokens skipped it, which is what made the + // @layer build's promise hollow — cascade layers do not protect custom + // properties, so a host app's unlayered `--radius` beat the framework's. + // Required now, so the next token cannot quietly go bare. + "custom-property-pattern": "^ac-[a-z0-9]+(-[a-z0-9]+)*$", - // Law: state changes are instant redraws. A screen has no in-between frames. - "declaration-property-value-disallowed-list": { "/^transition/": ["/.*/"] }, + // NOTE: the ban on `transition` used to live here too, with its own + // exemption list in an `overrides` block, duplicating the one in + // scripts/check-prohibitions.mjs. Two gates for one law meant two exemption + // lists to keep in agreement; check-prohibitions.mjs is now the sole owner + // and enforces it across all of src/ rather than only src/components/. - // Law: one gas, one hue. Named colours would smuggle in a second one. + // Law: one gas, one hue. Named colors would smuggle in a second one. "color-named": "never", /* --- Deliberate opt-outs --- */ @@ -65,17 +73,4 @@ export default { "declaration-block-single-line-max-declarations": null, }, - overrides: [ - { - /* The instant-redraw law is about UI state: a button does not ease into - being pressed. It is not about the panel's physics. Plasma persistence - IS a timed decay — that is the entire phenomenon — and the only way to - hold an element on screen past `display: none` is a transition with - allow-discrete. scripts/check-prohibitions.mjs already scopes its own - `transition` ban to src/components/ for exactly this reason; this brings - stylelint in line with it. Components stay instant. */ - files: ["src/tokens/effects.css", "src/base/a11y.css", "src/base/print.css"], - rules: { "declaration-property-value-disallowed-list": null }, - }, - ], }; diff --git a/test/computed/baselines/computed.json b/test/computed/baselines/computed.json new file mode 100644 index 0000000..765e589 --- /dev/null +++ b/test/computed/baselines/computed.json @@ -0,0 +1,922 @@ +{ + "blink / screen / default / blink": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / screen / default / cursor": "name=ac-blink ease=steps(1) dur=1s filter=none", + "blink / screen / default / invalid-class": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / screen / default / invalid-aria": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / screen / default / meter-alarm": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / screen / blink-off / blink": "name=none filter=none", + "blink / screen / blink-off / cursor": "name=none filter=none", + "blink / screen / blink-off / invalid-class": "name=none filter=none", + "blink / screen / blink-off / invalid-aria": "name=none filter=none", + "blink / screen / blink-off / meter-alarm": "name=none filter=none", + "blink / screen / afterglow / blink": "name=ac-blink-decay ease=linear dur=1.1s filter=blur(0px)", + "blink / screen / afterglow / cursor": "name=ac-blink-decay ease=linear dur=1s filter=blur(0px)", + "blink / screen / afterglow / invalid-class": "name=ac-blink-decay ease=linear dur=1.1s filter=blur(0px)", + "blink / screen / afterglow / invalid-aria": "name=ac-blink-decay ease=linear dur=1.1s filter=blur(0px)", + "blink / screen / afterglow / meter-alarm": "name=ac-blink-decay ease=linear dur=1.1s filter=blur(0px)", + "blink / screen / afterglow+blink-off / blink": "name=none filter=none", + "blink / screen / afterglow+blink-off / cursor": "name=none filter=none", + "blink / screen / afterglow+blink-off / invalid-class": "name=none filter=none", + "blink / screen / afterglow+blink-off / invalid-aria": "name=none filter=none", + "blink / screen / afterglow+blink-off / meter-alarm": "name=none filter=none", + "blink / screen / afterglow+p39 / blink": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)", + "blink / screen / afterglow+p39 / cursor": "name=ac-blink-decay-long ease=linear dur=1s filter=blur(0px)", + "blink / screen / afterglow+p39 / invalid-class": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)", + "blink / screen / afterglow+p39 / invalid-aria": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)", + "blink / screen / afterglow+p39 / meter-alarm": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)", + "blink / screen / afterglow+p7 / blink": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)", + "blink / screen / afterglow+p7 / cursor": "name=ac-blink-decay-long ease=linear dur=1s filter=blur(0px)", + "blink / screen / afterglow+p7 / invalid-class": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)", + "blink / screen / afterglow+p7 / invalid-aria": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)", + "blink / screen / afterglow+p7 / meter-alarm": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)", + "blink / screen / afterglow+p39+blink-off / blink": "name=none filter=none", + "blink / screen / afterglow+p39+blink-off / cursor": "name=none filter=none", + "blink / screen / afterglow+p39+blink-off / invalid-class": "name=none filter=none", + "blink / screen / afterglow+p39+blink-off / invalid-aria": "name=none filter=none", + "blink / screen / afterglow+p39+blink-off / meter-alarm": "name=none filter=none", + "blink / reduced-motion / default / blink": "name=none filter=none", + "blink / reduced-motion / default / cursor": "name=none filter=none", + "blink / reduced-motion / default / invalid-class": "name=none filter=none", + "blink / reduced-motion / default / invalid-aria": "name=none filter=none", + "blink / reduced-motion / default / meter-alarm": "name=none filter=none", + "blink / reduced-motion / blink-off / blink": "name=none filter=none", + "blink / reduced-motion / blink-off / cursor": "name=none filter=none", + "blink / reduced-motion / blink-off / invalid-class": "name=none filter=none", + "blink / reduced-motion / blink-off / invalid-aria": "name=none filter=none", + "blink / reduced-motion / blink-off / meter-alarm": "name=none filter=none", + "blink / reduced-motion / afterglow / blink": "name=none filter=none", + "blink / reduced-motion / afterglow / cursor": "name=none filter=none", + "blink / reduced-motion / afterglow / invalid-class": "name=none filter=none", + "blink / reduced-motion / afterglow / invalid-aria": "name=none filter=none", + "blink / reduced-motion / afterglow / meter-alarm": "name=none filter=none", + "blink / reduced-motion / afterglow+blink-off / blink": "name=none filter=none", + "blink / reduced-motion / afterglow+blink-off / cursor": "name=none filter=none", + "blink / reduced-motion / afterglow+blink-off / invalid-class": "name=none filter=none", + "blink / reduced-motion / afterglow+blink-off / invalid-aria": "name=none filter=none", + "blink / reduced-motion / afterglow+blink-off / meter-alarm": "name=none filter=none", + "blink / reduced-motion / afterglow+p39 / blink": "name=none filter=none", + "blink / reduced-motion / afterglow+p39 / cursor": "name=none filter=none", + "blink / reduced-motion / afterglow+p39 / invalid-class": "name=none filter=none", + "blink / reduced-motion / afterglow+p39 / invalid-aria": "name=none filter=none", + "blink / reduced-motion / afterglow+p39 / meter-alarm": "name=none filter=none", + "blink / reduced-motion / afterglow+p7 / blink": "name=none filter=none", + "blink / reduced-motion / afterglow+p7 / cursor": "name=none filter=none", + "blink / reduced-motion / afterglow+p7 / invalid-class": "name=none filter=none", + "blink / reduced-motion / afterglow+p7 / invalid-aria": "name=none filter=none", + "blink / reduced-motion / afterglow+p7 / meter-alarm": "name=none filter=none", + "blink / reduced-motion / afterglow+p39+blink-off / blink": "name=none filter=none", + "blink / reduced-motion / afterglow+p39+blink-off / cursor": "name=none filter=none", + "blink / reduced-motion / afterglow+p39+blink-off / invalid-class": "name=none filter=none", + "blink / reduced-motion / afterglow+p39+blink-off / invalid-aria": "name=none filter=none", + "blink / reduced-motion / afterglow+p39+blink-off / meter-alarm": "name=none filter=none", + "blink / forced-colors / default / blink": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / default / cursor": "name=ac-blink ease=steps(1) dur=1s filter=none", + "blink / forced-colors / default / invalid-class": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / default / invalid-aria": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / default / meter-alarm": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / blink-off / blink": "name=none filter=none", + "blink / forced-colors / blink-off / cursor": "name=none filter=none", + "blink / forced-colors / blink-off / invalid-class": "name=none filter=none", + "blink / forced-colors / blink-off / invalid-aria": "name=none filter=none", + "blink / forced-colors / blink-off / meter-alarm": "name=none filter=none", + "blink / forced-colors / afterglow / blink": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / afterglow / cursor": "name=ac-blink ease=steps(1) dur=1s filter=none", + "blink / forced-colors / afterglow / invalid-class": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / afterglow / invalid-aria": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / afterglow / meter-alarm": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / afterglow+blink-off / blink": "name=none filter=none", + "blink / forced-colors / afterglow+blink-off / cursor": "name=none filter=none", + "blink / forced-colors / afterglow+blink-off / invalid-class": "name=none filter=none", + "blink / forced-colors / afterglow+blink-off / invalid-aria": "name=none filter=none", + "blink / forced-colors / afterglow+blink-off / meter-alarm": "name=none filter=none", + "blink / forced-colors / afterglow+p39 / blink": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / afterglow+p39 / cursor": "name=ac-blink ease=steps(1) dur=1s filter=none", + "blink / forced-colors / afterglow+p39 / invalid-class": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / afterglow+p39 / invalid-aria": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / afterglow+p39 / meter-alarm": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / afterglow+p7 / blink": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / afterglow+p7 / cursor": "name=ac-blink ease=steps(1) dur=1s filter=none", + "blink / forced-colors / afterglow+p7 / invalid-class": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / afterglow+p7 / invalid-aria": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / afterglow+p7 / meter-alarm": "name=ac-blink ease=steps(1) dur=1.1s filter=none", + "blink / forced-colors / afterglow+p39+blink-off / blink": "name=none filter=none", + "blink / forced-colors / afterglow+p39+blink-off / cursor": "name=none filter=none", + "blink / forced-colors / afterglow+p39+blink-off / invalid-class": "name=none filter=none", + "blink / forced-colors / afterglow+p39+blink-off / invalid-aria": "name=none filter=none", + "blink / forced-colors / afterglow+p39+blink-off / meter-alarm": "name=none filter=none", + "blink / print / default / blink": "name=none filter=none", + "blink / print / default / cursor": "name=none filter=none", + "blink / print / default / invalid-class": "name=none filter=none", + "blink / print / default / invalid-aria": "name=none filter=none", + "blink / print / default / meter-alarm": "name=none filter=none", + "blink / print / blink-off / blink": "name=none filter=none", + "blink / print / blink-off / cursor": "name=none filter=none", + "blink / print / blink-off / invalid-class": "name=none filter=none", + "blink / print / blink-off / invalid-aria": "name=none filter=none", + "blink / print / blink-off / meter-alarm": "name=none filter=none", + "blink / print / afterglow / blink": "name=none filter=none", + "blink / print / afterglow / cursor": "name=none filter=none", + "blink / print / afterglow / invalid-class": "name=none filter=none", + "blink / print / afterglow / invalid-aria": "name=none filter=none", + "blink / print / afterglow / meter-alarm": "name=none filter=none", + "blink / print / afterglow+blink-off / blink": "name=none filter=none", + "blink / print / afterglow+blink-off / cursor": "name=none filter=none", + "blink / print / afterglow+blink-off / invalid-class": "name=none filter=none", + "blink / print / afterglow+blink-off / invalid-aria": "name=none filter=none", + "blink / print / afterglow+blink-off / meter-alarm": "name=none filter=none", + "blink / print / afterglow+p39 / blink": "name=none filter=none", + "blink / print / afterglow+p39 / cursor": "name=none filter=none", + "blink / print / afterglow+p39 / invalid-class": "name=none filter=none", + "blink / print / afterglow+p39 / invalid-aria": "name=none filter=none", + "blink / print / afterglow+p39 / meter-alarm": "name=none filter=none", + "blink / print / afterglow+p7 / blink": "name=none filter=none", + "blink / print / afterglow+p7 / cursor": "name=none filter=none", + "blink / print / afterglow+p7 / invalid-class": "name=none filter=none", + "blink / print / afterglow+p7 / invalid-aria": "name=none filter=none", + "blink / print / afterglow+p7 / meter-alarm": "name=none filter=none", + "blink / print / afterglow+p39+blink-off / blink": "name=none filter=none", + "blink / print / afterglow+p39+blink-off / cursor": "name=none filter=none", + "blink / print / afterglow+p39+blink-off / invalid-class": "name=none filter=none", + "blink / print / afterglow+p39+blink-off / invalid-aria": "name=none filter=none", + "blink / print / afterglow+p39+blink-off / meter-alarm": "name=none filter=none", + "layers / screen / scroll=false / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / screen / scroll=false / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / screen / scroll=false / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / screen / scroll=false / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / screen / scroll=false / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / screen / scroll=false / afterimage-btn-display": "block", + "layers / screen / scroll=false / afterimage-td-display": "block", + "layers / screen / scroll=false / meterghost-display": "block", + "layers / screen / scroll=false / smear-child": "none", + "layers / screen / scroll=false / smear-persist": "none", + "layers / screen / scroll=false / smear-sticky": "none", + "layers / screen / scroll=false / smearbloom-display": "none", + "layers / screen / scroll=true / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / screen / scroll=true / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / screen / scroll=true / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / screen / scroll=true / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / screen / scroll=true / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / screen / scroll=true / afterimage-btn-display": "block", + "layers / screen / scroll=true / afterimage-td-display": "block", + "layers / screen / scroll=true / meterghost-display": "block", + "layers / screen / scroll=true / smear-child": "blur(1.8px)", + "layers / screen / scroll=true / smear-persist": "none", + "layers / screen / scroll=true / smear-sticky": "none", + "layers / screen / scroll=true / smearbloom-display": "block", + "layers / reduced-motion / scroll=false / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / reduced-motion / scroll=false / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / reduced-motion / scroll=false / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / reduced-motion / scroll=false / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / reduced-motion / scroll=false / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / reduced-motion / scroll=false / afterimage-btn-display": "none", + "layers / reduced-motion / scroll=false / afterimage-td-display": "none", + "layers / reduced-motion / scroll=false / meterghost-display": "none", + "layers / reduced-motion / scroll=false / smear-child": "none", + "layers / reduced-motion / scroll=false / smear-persist": "none", + "layers / reduced-motion / scroll=false / smear-sticky": "none", + "layers / reduced-motion / scroll=false / smearbloom-display": "none", + "layers / reduced-motion / scroll=true / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / reduced-motion / scroll=true / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / reduced-motion / scroll=true / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / reduced-motion / scroll=true / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / reduced-motion / scroll=true / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / reduced-motion / scroll=true / afterimage-btn-display": "none", + "layers / reduced-motion / scroll=true / afterimage-td-display": "none", + "layers / reduced-motion / scroll=true / meterghost-display": "none", + "layers / reduced-motion / scroll=true / smear-child": "none", + "layers / reduced-motion / scroll=true / smear-persist": "none", + "layers / reduced-motion / scroll=true / smear-sticky": "none", + "layers / reduced-motion / scroll=true / smearbloom-display": "none", + "layers / forced-colors / scroll=false / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / forced-colors / scroll=false / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / forced-colors / scroll=false / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / forced-colors / scroll=false / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / forced-colors / scroll=false / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / forced-colors / scroll=false / afterimage-btn-display": "none", + "layers / forced-colors / scroll=false / afterimage-td-display": "none", + "layers / forced-colors / scroll=false / meterghost-display": "none", + "layers / forced-colors / scroll=false / smear-child": "none", + "layers / forced-colors / scroll=false / smear-persist": "none", + "layers / forced-colors / scroll=false / smear-sticky": "none", + "layers / forced-colors / scroll=false / smearbloom-display": "none", + "layers / forced-colors / scroll=true / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / forced-colors / scroll=true / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / forced-colors / scroll=true / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / forced-colors / scroll=true / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / forced-colors / scroll=true / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / forced-colors / scroll=true / afterimage-btn-display": "none", + "layers / forced-colors / scroll=true / afterimage-td-display": "none", + "layers / forced-colors / scroll=true / meterghost-display": "none", + "layers / forced-colors / scroll=true / smear-child": "none", + "layers / forced-colors / scroll=true / smear-persist": "none", + "layers / forced-colors / scroll=true / smear-sticky": "none", + "layers / forced-colors / scroll=true / smearbloom-display": "block", + "layers / print / scroll=false / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / print / scroll=false / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / print / scroll=false / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / print / scroll=false / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / print / scroll=false / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / print / scroll=false / afterimage-btn-display": "none", + "layers / print / scroll=false / afterimage-td-display": "none", + "layers / print / scroll=false / meterghost-display": "none", + "layers / print / scroll=false / smear-child": "none", + "layers / print / scroll=false / smear-persist": "none", + "layers / print / scroll=false / smear-sticky": "none", + "layers / print / scroll=false / smearbloom-display": "none", + "layers / print / scroll=true / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / print / scroll=true / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / print / scroll=true / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / print / scroll=true / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / print / scroll=true / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px", + "layers / print / scroll=true / afterimage-btn-display": "none", + "layers / print / scroll=true / afterimage-td-display": "none", + "layers / print / scroll=true / meterghost-display": "none", + "layers / print / scroll=true / smear-child": "none", + "layers / print / scroll=true / smear-persist": "none", + "layers / print / scroll=true / smear-sticky": "none", + "layers / print / scroll=true / smearbloom-display": "block", + "meters / screen / bare / #m-plain": "ink=rgb(6, 2, 0) shadow=yes ghost=-", + "meters / screen / bare / #m-plain-bar": "ink=rgb(255, 107, 8) shadow=yes ghost=-", + "meters / screen / bare / #m-dim": "ink=rgb(6, 2, 0) shadow=yes ghost=-", + "meters / screen / bare / #m-dim-bar": "ink=rgb(171, 69, 0) shadow=none ghost=-", + "meters / screen / bare / #m-alarm": "ink=rgb(255, 107, 8) shadow=yes ghost=-", + "meters / screen / bare / #m-alarm-bar": "ink=rgb(30, 12, 0) shadow=none ghost=-", + "meters / screen / ac-afterglow / #m-plain": "ink=rgb(6, 2, 0) shadow=yes ghost=rgb(255, 107, 8)", + "meters / screen / ac-afterglow / #m-plain-bar": "ink=rgb(255, 107, 8) shadow=yes ghost=-", + "meters / screen / ac-afterglow / #m-dim": "ink=rgb(6, 2, 0) shadow=yes ghost=rgb(255, 107, 8)", + "meters / screen / ac-afterglow / #m-dim-bar": "ink=rgb(171, 69, 0) shadow=none ghost=-", + "meters / screen / ac-afterglow / #m-alarm": "ink=rgb(255, 107, 8) shadow=yes ghost=rgb(30, 12, 0)", + "meters / screen / ac-afterglow / #m-alarm-bar": "ink=rgb(30, 12, 0) shadow=none ghost=-", + "meters / reduced-motion / bare / #m-plain": "ink=rgb(6, 2, 0) shadow=yes ghost=-", + "meters / reduced-motion / bare / #m-plain-bar": "ink=rgb(255, 107, 8) shadow=yes ghost=-", + "meters / reduced-motion / bare / #m-dim": "ink=rgb(6, 2, 0) shadow=yes ghost=-", + "meters / reduced-motion / bare / #m-dim-bar": "ink=rgb(171, 69, 0) shadow=none ghost=-", + "meters / reduced-motion / bare / #m-alarm": "ink=rgb(255, 107, 8) shadow=yes ghost=-", + "meters / reduced-motion / bare / #m-alarm-bar": "ink=rgb(30, 12, 0) shadow=none ghost=-", + "meters / reduced-motion / ac-afterglow / #m-plain": "ink=rgb(6, 2, 0) shadow=yes ghost=-", + "meters / reduced-motion / ac-afterglow / #m-plain-bar": "ink=rgb(255, 107, 8) shadow=yes ghost=-", + "meters / reduced-motion / ac-afterglow / #m-dim": "ink=rgb(6, 2, 0) shadow=yes ghost=-", + "meters / reduced-motion / ac-afterglow / #m-dim-bar": "ink=rgb(171, 69, 0) shadow=none ghost=-", + "meters / reduced-motion / ac-afterglow / #m-alarm": "ink=rgb(255, 107, 8) shadow=yes ghost=-", + "meters / reduced-motion / ac-afterglow / #m-alarm-bar": "ink=rgb(30, 12, 0) shadow=none ghost=-", + "meters / forced-colors / bare / #m-plain": "ink=Canvas|HighlightText shadow=none ghost=-", + "meters / forced-colors / bare / #m-plain-bar": "ink=Highlight shadow=none ghost=-", + "meters / forced-colors / bare / #m-dim": "ink=Canvas|HighlightText shadow=none ghost=-", + "meters / forced-colors / bare / #m-dim-bar": "ink=GrayText shadow=none ghost=-", + "meters / forced-colors / bare / #m-alarm": "ink=Highlight shadow=none ghost=-", + "meters / forced-colors / bare / #m-alarm-bar": "ink=Canvas|HighlightText shadow=none ghost=-", + "meters / forced-colors / ac-afterglow / #m-plain": "ink=Canvas|HighlightText shadow=none ghost=-", + "meters / forced-colors / ac-afterglow / #m-plain-bar": "ink=Highlight shadow=none ghost=-", + "meters / forced-colors / ac-afterglow / #m-dim": "ink=Canvas|HighlightText shadow=none ghost=-", + "meters / forced-colors / ac-afterglow / #m-dim-bar": "ink=GrayText shadow=none ghost=-", + "meters / forced-colors / ac-afterglow / #m-alarm": "ink=Highlight shadow=none ghost=-", + "meters / forced-colors / ac-afterglow / #m-alarm-bar": "ink=Canvas|HighlightText shadow=none ghost=-", + "meters / print / bare / #m-plain": "ink=rgb(255, 255, 255) shadow=yes ghost=-", + "meters / print / bare / #m-plain-bar": "ink=rgb(0, 0, 0) shadow=yes ghost=-", + "meters / print / bare / #m-dim": "ink=rgb(255, 255, 255) shadow=yes ghost=-", + "meters / print / bare / #m-dim-bar": "ink=rgb(102, 102, 102) shadow=none ghost=-", + "meters / print / bare / #m-alarm": "ink=rgb(0, 0, 0) shadow=yes ghost=-", + "meters / print / bare / #m-alarm-bar": "ink=rgb(255, 255, 255) shadow=none ghost=-", + "meters / print / ac-afterglow / #m-plain": "ink=rgb(255, 255, 255) shadow=yes ghost=-", + "meters / print / ac-afterglow / #m-plain-bar": "ink=rgb(0, 0, 0) shadow=yes ghost=-", + "meters / print / ac-afterglow / #m-dim": "ink=rgb(255, 255, 255) shadow=yes ghost=-", + "meters / print / ac-afterglow / #m-dim-bar": "ink=rgb(102, 102, 102) shadow=none ghost=-", + "meters / print / ac-afterglow / #m-alarm": "ink=rgb(0, 0, 0) shadow=yes ghost=-", + "meters / print / ac-afterglow / #m-alarm-bar": "ink=rgb(255, 255, 255) shadow=none ghost=-", + "corners / bare / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / rest / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / rest / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / bare / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex", + "corners / bare / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / bare / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / bare / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / bare / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / bare / rest / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / rest / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / bare / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / hover / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / hover / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / bare / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex", + "corners / bare / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / bare / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / bare / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / bare / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / bare / hover / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / hover / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / bare / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / active / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / active / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / bare / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex", + "corners / bare / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / bare / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / bare / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / bare / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / bare / active / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / bare / active / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / rest / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / rest / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / flag-on / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex", + "corners / flag-on / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on / rest / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on / rest / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / hover / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / hover / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / flag-on / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex", + "corners / flag-on / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on / hover / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on / hover / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / active / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / active / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / flag-on / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / flag-on / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex", + "corners / flag-on / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on / active / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on / active / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-off / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / rest / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / rest / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / flag-off / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex", + "corners / flag-off / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-off / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-off / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-off / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-off / rest / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / rest / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-off / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / hover / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / hover / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / flag-off / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex", + "corners / flag-off / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-off / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-off / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-off / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-off / hover / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / hover / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-off / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / active / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / active / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / flag-off / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex", + "corners / flag-off / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-off / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-off / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-off / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-off / active / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-off / active / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-classic / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / rest / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / rest / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / frame-classic / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex", + "corners / frame-classic / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-classic / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-classic / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-classic / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-classic / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-classic / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-classic / rest / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-classic / rest / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-classic / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / hover / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / hover / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / frame-classic / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex", + "corners / frame-classic / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-classic / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-classic / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-classic / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-classic / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-classic / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-classic / hover / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-classic / hover / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-classic / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / active / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / active / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / frame-classic / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / frame-classic / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex", + "corners / frame-classic / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-classic / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-classic / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-classic / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-classic / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-classic / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-classic / active / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-classic / active / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / rest / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / rest / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / frame-rounded / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex", + "corners / frame-rounded / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-rounded / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-rounded / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / rest / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-rounded / rest / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / hover / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / hover / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / frame-rounded / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex", + "corners / frame-rounded / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-rounded / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-rounded / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / hover / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-rounded / hover / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / active / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / active / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / frame-rounded / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex", + "corners / frame-rounded / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-rounded / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-rounded / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / frame-rounded / active / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / frame-rounded / active / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / rest / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / rest / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / flag-on+frame-rounded / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex", + "corners / flag-on+frame-rounded / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+frame-rounded / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+frame-rounded / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / rest / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+frame-rounded / rest / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / hover / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / hover / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / flag-on+frame-rounded / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex", + "corners / flag-on+frame-rounded / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+frame-rounded / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+frame-rounded / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / hover / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+frame-rounded / hover / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / active / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / active / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / flag-on+frame-rounded / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex", + "corners / flag-on+frame-rounded / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+frame-rounded / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+frame-rounded / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+frame-rounded / active / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+frame-rounded / active / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / self-classic / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / rest / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / rest / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / self-classic / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex", + "corners / self-classic / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / self-classic / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / self-classic / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / self-classic / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / self-classic / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / self-classic / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / self-classic / rest / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / self-classic / rest / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / self-classic / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / hover / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / hover / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / self-classic / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex", + "corners / self-classic / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / self-classic / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / self-classic / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / self-classic / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / self-classic / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / self-classic / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / self-classic / hover / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / self-classic / hover / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / self-classic / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / active / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / active / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block", + "corners / self-classic / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / self-classic / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex", + "corners / self-classic / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / self-classic / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / self-classic / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / self-classic / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / self-classic / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / self-classic / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / self-classic / active / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / self-classic / active / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / rest / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / rest / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / flag-on+self-rounded / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex", + "corners / flag-on+self-rounded / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+self-rounded / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+self-rounded / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / rest / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+self-rounded / rest / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / hover / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / hover / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / flag-on+self-rounded / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex", + "corners / flag-on+self-rounded / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+self-rounded / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+self-rounded / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / hover / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+self-rounded / hover / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / active / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / active / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex", + "corners / flag-on+self-rounded / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex", + "corners / flag-on+self-rounded / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+self-rounded / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+self-rounded / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "corners / flag-on+self-rounded / active / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block", + "corners / flag-on+self-rounded / active / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block", + "suppression / forced-colors / none / s-btn / rest": "none", + "suppression / forced-colors / none / s-btn / hover": "transparent", + "suppression / forced-colors / none / s-btn-p / rest": "none", + "suppression / forced-colors / none / s-btn-p / hover": "transparent", + "suppression / forced-colors / none / s-tab / rest": "none", + "suppression / forced-colors / none / s-tab / hover": "transparent", + "suppression / forced-colors / none / s-track / rest": "none", + "suppression / forced-colors / none / s-track / hover": "none", + "suppression / forced-colors / ac-classic / s-btn / rest": "none", + "suppression / forced-colors / ac-classic / s-btn / hover": "transparent", + "suppression / forced-colors / ac-classic / s-btn-p / rest": "none", + "suppression / forced-colors / ac-classic / s-btn-p / hover": "transparent", + "suppression / forced-colors / ac-classic / s-tab / rest": "none", + "suppression / forced-colors / ac-classic / s-tab / hover": "transparent", + "suppression / forced-colors / ac-classic / s-track / rest": "none", + "suppression / forced-colors / ac-classic / s-track / hover": "none", + "suppression / forced-colors / ac-rounded / s-btn / rest": "none", + "suppression / forced-colors / ac-rounded / s-btn / hover": "transparent", + "suppression / forced-colors / ac-rounded / s-btn-p / rest": "none", + "suppression / forced-colors / ac-rounded / s-btn-p / hover": "transparent", + "suppression / forced-colors / ac-rounded / s-tab / rest": "none", + "suppression / forced-colors / ac-rounded / s-tab / hover": "transparent", + "suppression / forced-colors / ac-rounded / s-track / rest": "none", + "suppression / forced-colors / ac-rounded / s-track / hover": "none", + "suppression / print / none / s-btn / rest": "transparent", + "suppression / print / none / s-btn / hover": "transparent", + "suppression / print / none / s-btn-p / rest": "transparent", + "suppression / print / none / s-btn-p / hover": "transparent", + "suppression / print / none / s-tab / rest": "transparent", + "suppression / print / none / s-tab / hover": "transparent", + "suppression / print / none / s-track / rest": "transparent", + "suppression / print / none / s-track / hover": "transparent", + "suppression / print / ac-classic / s-btn / rest": "transparent", + "suppression / print / ac-classic / s-btn / hover": "transparent", + "suppression / print / ac-classic / s-btn-p / rest": "transparent", + "suppression / print / ac-classic / s-btn-p / hover": "transparent", + "suppression / print / ac-classic / s-tab / rest": "transparent", + "suppression / print / ac-classic / s-tab / hover": "transparent", + "suppression / print / ac-classic / s-track / rest": "transparent", + "suppression / print / ac-classic / s-track / hover": "transparent", + "suppression / print / ac-rounded / s-btn / rest": "transparent", + "suppression / print / ac-rounded / s-btn / hover": "transparent", + "suppression / print / ac-rounded / s-btn-p / rest": "transparent", + "suppression / print / ac-rounded / s-btn-p / hover": "transparent", + "suppression / print / ac-rounded / s-tab / rest": "transparent", + "suppression / print / ac-rounded / s-tab / hover": "transparent", + "suppression / print / ac-rounded / s-track / rest": "transparent", + "suppression / print / ac-rounded / s-track / hover": "transparent", + "palette / screen / default / --ac-screen": "#100600", + "palette / screen / default / --ac-screen-raised": "#1b0c02", + "palette / screen / default / --ac-screen-well": "#060200", + "palette / screen / default / --ac-ink": "#ff6b08", + "palette / screen / default / --ac-ink-dim": "#dd5800", + "palette / screen / default / --ac-fill": "#ff6b08", + "palette / screen / default / --ac-fill-bright": "#ffa86d", + "palette / screen / default / --ac-on-fill": "#1e0c00", + "palette / screen / default / --ac-stroke": "#ff6b08", + "palette / screen / default / p-status / legible": "AA", + "palette / screen / default / p-title / legible": "AA", + "palette / screen / default / p-filled / legible": "AA", + "palette / screen / plasma-neon / --ac-screen": "#100600", + "palette / screen / plasma-neon / --ac-screen-raised": "#1b0c02", + "palette / screen / plasma-neon / --ac-screen-well": "#060200", + "palette / screen / plasma-neon / --ac-ink": "#ff6b08", + "palette / screen / plasma-neon / --ac-ink-dim": "#dd5800", + "palette / screen / plasma-neon / --ac-fill": "#ff6b08", + "palette / screen / plasma-neon / --ac-fill-bright": "#ffa86d", + "palette / screen / plasma-neon / --ac-on-fill": "#1e0c00", + "palette / screen / plasma-neon / --ac-stroke": "#ff6b08", + "palette / screen / plasma-neon / p-status / legible": "AA", + "palette / screen / plasma-neon / p-title / legible": "AA", + "palette / screen / plasma-neon / p-filled / legible": "AA", + "palette / screen / crt-p3 / --ac-screen": "#0d0700", + "palette / screen / crt-p3 / --ac-screen-raised": "#170e02", + "palette / screen / crt-p3 / --ac-screen-well": "#060200", + "palette / screen / crt-p3 / --ac-ink": "#ffae1e", + "palette / screen / crt-p3 / --ac-ink-dim": "#cd8817", + "palette / screen / crt-p3 / --ac-fill": "#ffae1e", + "palette / screen / crt-p3 / --ac-fill-bright": "#ffd052", + "palette / screen / crt-p3 / --ac-on-fill": "#1a0e00", + "palette / screen / crt-p3 / --ac-stroke": "#ffae1e", + "palette / screen / crt-p3 / p-status / legible": "AA", + "palette / screen / crt-p3 / p-title / legible": "AA", + "palette / screen / crt-p3 / p-filled / legible": "AA", + "palette / screen / crt-p7 / --ac-screen": "#040a11", + "palette / screen / crt-p7 / --ac-screen-raised": "#0b1520", + "palette / screen / crt-p7 / --ac-screen-well": "#020409", + "palette / screen / crt-p7 / --ac-ink": "#00a0fb", + "palette / screen / crt-p7 / --ac-ink-dim": "#0088d7", + "palette / screen / crt-p7 / --ac-fill": "#00a0fb", + "palette / screen / crt-p7 / --ac-fill-bright": "#8bc0ff", + "palette / screen / crt-p7 / --ac-on-fill": "#03182a", + "palette / screen / crt-p7 / --ac-stroke": "#00a0fb", + "palette / screen / crt-p7 / p-status / legible": "AA", + "palette / screen / crt-p7 / p-title / legible": "AA", + "palette / screen / crt-p7 / p-filled / legible": "AA", + "palette / reduced-motion / default / --ac-screen": "#100600", + "palette / reduced-motion / default / --ac-screen-raised": "#1b0c02", + "palette / reduced-motion / default / --ac-screen-well": "#060200", + "palette / reduced-motion / default / --ac-ink": "#ff6b08", + "palette / reduced-motion / default / --ac-ink-dim": "#dd5800", + "palette / reduced-motion / default / --ac-fill": "#ff6b08", + "palette / reduced-motion / default / --ac-fill-bright": "#ffa86d", + "palette / reduced-motion / default / --ac-on-fill": "#1e0c00", + "palette / reduced-motion / default / --ac-stroke": "#ff6b08", + "palette / reduced-motion / default / p-status / legible": "AA", + "palette / reduced-motion / default / p-title / legible": "AA", + "palette / reduced-motion / default / p-filled / legible": "AA", + "palette / reduced-motion / plasma-neon / --ac-screen": "#100600", + "palette / reduced-motion / plasma-neon / --ac-screen-raised": "#1b0c02", + "palette / reduced-motion / plasma-neon / --ac-screen-well": "#060200", + "palette / reduced-motion / plasma-neon / --ac-ink": "#ff6b08", + "palette / reduced-motion / plasma-neon / --ac-ink-dim": "#dd5800", + "palette / reduced-motion / plasma-neon / --ac-fill": "#ff6b08", + "palette / reduced-motion / plasma-neon / --ac-fill-bright": "#ffa86d", + "palette / reduced-motion / plasma-neon / --ac-on-fill": "#1e0c00", + "palette / reduced-motion / plasma-neon / --ac-stroke": "#ff6b08", + "palette / reduced-motion / plasma-neon / p-status / legible": "AA", + "palette / reduced-motion / plasma-neon / p-title / legible": "AA", + "palette / reduced-motion / plasma-neon / p-filled / legible": "AA", + "palette / reduced-motion / crt-p3 / --ac-screen": "#0d0700", + "palette / reduced-motion / crt-p3 / --ac-screen-raised": "#170e02", + "palette / reduced-motion / crt-p3 / --ac-screen-well": "#060200", + "palette / reduced-motion / crt-p3 / --ac-ink": "#ffae1e", + "palette / reduced-motion / crt-p3 / --ac-ink-dim": "#cd8817", + "palette / reduced-motion / crt-p3 / --ac-fill": "#ffae1e", + "palette / reduced-motion / crt-p3 / --ac-fill-bright": "#ffd052", + "palette / reduced-motion / crt-p3 / --ac-on-fill": "#1a0e00", + "palette / reduced-motion / crt-p3 / --ac-stroke": "#ffae1e", + "palette / reduced-motion / crt-p3 / p-status / legible": "AA", + "palette / reduced-motion / crt-p3 / p-title / legible": "AA", + "palette / reduced-motion / crt-p3 / p-filled / legible": "AA", + "palette / reduced-motion / crt-p7 / --ac-screen": "#040a11", + "palette / reduced-motion / crt-p7 / --ac-screen-raised": "#0b1520", + "palette / reduced-motion / crt-p7 / --ac-screen-well": "#020409", + "palette / reduced-motion / crt-p7 / --ac-ink": "#00a0fb", + "palette / reduced-motion / crt-p7 / --ac-ink-dim": "#0088d7", + "palette / reduced-motion / crt-p7 / --ac-fill": "#00a0fb", + "palette / reduced-motion / crt-p7 / --ac-fill-bright": "#8bc0ff", + "palette / reduced-motion / crt-p7 / --ac-on-fill": "#03182a", + "palette / reduced-motion / crt-p7 / --ac-stroke": "#00a0fb", + "palette / reduced-motion / crt-p7 / p-status / legible": "AA", + "palette / reduced-motion / crt-p7 / p-title / legible": "AA", + "palette / reduced-motion / crt-p7 / p-filled / legible": "AA", + "palette / forced-colors / default / --ac-screen": "#100600", + "palette / forced-colors / default / --ac-screen-raised": "#1b0c02", + "palette / forced-colors / default / --ac-screen-well": "#060200", + "palette / forced-colors / default / --ac-ink": "#ff6b08", + "palette / forced-colors / default / --ac-ink-dim": "#dd5800", + "palette / forced-colors / default / --ac-fill": "#ff6b08", + "palette / forced-colors / default / --ac-fill-bright": "#ffa86d", + "palette / forced-colors / default / --ac-on-fill": "#1e0c00", + "palette / forced-colors / default / --ac-stroke": "#ff6b08", + "palette / forced-colors / plasma-neon / --ac-screen": "#100600", + "palette / forced-colors / plasma-neon / --ac-screen-raised": "#1b0c02", + "palette / forced-colors / plasma-neon / --ac-screen-well": "#060200", + "palette / forced-colors / plasma-neon / --ac-ink": "#ff6b08", + "palette / forced-colors / plasma-neon / --ac-ink-dim": "#dd5800", + "palette / forced-colors / plasma-neon / --ac-fill": "#ff6b08", + "palette / forced-colors / plasma-neon / --ac-fill-bright": "#ffa86d", + "palette / forced-colors / plasma-neon / --ac-on-fill": "#1e0c00", + "palette / forced-colors / plasma-neon / --ac-stroke": "#ff6b08", + "palette / forced-colors / crt-p3 / --ac-screen": "#0d0700", + "palette / forced-colors / crt-p3 / --ac-screen-raised": "#170e02", + "palette / forced-colors / crt-p3 / --ac-screen-well": "#060200", + "palette / forced-colors / crt-p3 / --ac-ink": "#ffae1e", + "palette / forced-colors / crt-p3 / --ac-ink-dim": "#cd8817", + "palette / forced-colors / crt-p3 / --ac-fill": "#ffae1e", + "palette / forced-colors / crt-p3 / --ac-fill-bright": "#ffd052", + "palette / forced-colors / crt-p3 / --ac-on-fill": "#1a0e00", + "palette / forced-colors / crt-p3 / --ac-stroke": "#ffae1e", + "palette / forced-colors / crt-p7 / --ac-screen": "#040a11", + "palette / forced-colors / crt-p7 / --ac-screen-raised": "#0b1520", + "palette / forced-colors / crt-p7 / --ac-screen-well": "#020409", + "palette / forced-colors / crt-p7 / --ac-ink": "#00a0fb", + "palette / forced-colors / crt-p7 / --ac-ink-dim": "#0088d7", + "palette / forced-colors / crt-p7 / --ac-fill": "#00a0fb", + "palette / forced-colors / crt-p7 / --ac-fill-bright": "#8bc0ff", + "palette / forced-colors / crt-p7 / --ac-on-fill": "#03182a", + "palette / forced-colors / crt-p7 / --ac-stroke": "#00a0fb", + "palette / print / default / --ac-screen": "#ffffff", + "palette / print / default / --ac-screen-raised": "#f2f2f2", + "palette / print / default / --ac-screen-well": "#ffffff", + "palette / print / default / --ac-ink": "#000000", + "palette / print / default / --ac-ink-dim": "#333333", + "palette / print / default / --ac-fill": "#000000", + "palette / print / default / --ac-fill-bright": "#000000", + "palette / print / default / --ac-on-fill": "#ffffff", + "palette / print / default / --ac-stroke": "#000000", + "palette / print / default / p-status / legible": "AA", + "palette / print / default / p-title / legible": "AA", + "palette / print / default / p-filled / legible": "AA", + "palette / print / plasma-neon / --ac-screen": "#ffffff", + "palette / print / plasma-neon / --ac-screen-raised": "#f2f2f2", + "palette / print / plasma-neon / --ac-screen-well": "#ffffff", + "palette / print / plasma-neon / --ac-ink": "#000000", + "palette / print / plasma-neon / --ac-ink-dim": "#333333", + "palette / print / plasma-neon / --ac-fill": "#000000", + "palette / print / plasma-neon / --ac-fill-bright": "#000000", + "palette / print / plasma-neon / --ac-on-fill": "#ffffff", + "palette / print / plasma-neon / --ac-stroke": "#000000", + "palette / print / plasma-neon / p-status / legible": "AA", + "palette / print / plasma-neon / p-title / legible": "AA", + "palette / print / plasma-neon / p-filled / legible": "AA", + "palette / print / crt-p3 / --ac-screen": "#ffffff", + "palette / print / crt-p3 / --ac-screen-raised": "#f2f2f2", + "palette / print / crt-p3 / --ac-screen-well": "#ffffff", + "palette / print / crt-p3 / --ac-ink": "#000000", + "palette / print / crt-p3 / --ac-ink-dim": "#333333", + "palette / print / crt-p3 / --ac-fill": "#000000", + "palette / print / crt-p3 / --ac-fill-bright": "#000000", + "palette / print / crt-p3 / --ac-on-fill": "#ffffff", + "palette / print / crt-p3 / --ac-stroke": "#000000", + "palette / print / crt-p3 / p-status / legible": "AA", + "palette / print / crt-p3 / p-title / legible": "AA", + "palette / print / crt-p3 / p-filled / legible": "AA", + "palette / print / crt-p7 / --ac-screen": "#ffffff", + "palette / print / crt-p7 / --ac-screen-raised": "#f2f2f2", + "palette / print / crt-p7 / --ac-screen-well": "#ffffff", + "palette / print / crt-p7 / --ac-ink": "#000000", + "palette / print / crt-p7 / --ac-ink-dim": "#333333", + "palette / print / crt-p7 / --ac-fill": "#000000", + "palette / print / crt-p7 / --ac-fill-bright": "#000000", + "palette / print / crt-p7 / --ac-on-fill": "#ffffff", + "palette / print / crt-p7 / --ac-stroke": "#000000", + "palette / print / crt-p7 / p-status / legible": "AA", + "palette / print / crt-p7 / p-title / legible": "AA", + "palette / print / crt-p7 / p-filled / legible": "AA" +} diff --git a/test/computed/capture.mjs b/test/computed/capture.mjs new file mode 100644 index 0000000..bb95756 --- /dev/null +++ b/test/computed/capture.mjs @@ -0,0 +1,582 @@ +#!/usr/bin/env node +/** + * capture.mjs — computed-style regression for the things a SCREENSHOT CANNOT SEE. + * + * npm run test:computed compare against baselines + * npm run test:computed -- --update (re)write the baselines + * + * WHY THIS EXISTS, AND IT IS NOT THEORETICAL. + * + * test/visual/ freezes animation before it captures — it has to, or a blinking + * alarm makes every run non-deterministic. So at the frozen frame a blinking + * element and a stopped one are both fully opaque and look identical. It also + * never hovers and never presses, so the extruded key edge, the pressed edge and + * every :hover state are invisible to it. + * + * During the effects.css split an unterminated comment silently swallowed a live + * rule. stylelint passed. The build passed. All 85 screenshots passed. This + * suite caught it, because the rule it ate was `display: none` on an overlay + * whose computed value it checks. + * + * WHAT IT COVERS + * blink 5 blink sites x 7 page states x 4 media — which keyframe is + * running, at what timing function, and whether the decay filter is + * applied. This is the machinery with the most environment overrides + * and the least screenshot coverage. + * layers the afterimage, the meter ghost and the scroll smear, in every + * media that suppresses them. All are mid-decay-only effects. + * corners 13 controls x 8 corner scopes x 3 interaction states — including + * :hover and :active, which no screenshot in this repo takes. + * + * PLATFORM-INDEPENDENT, unlike the visual suite. Nothing here depends on font + * rasterisation, so unlike test/visual/ this one is safe to run in CI. + */ +import { chromium } from "playwright"; +import { mkdir, readFile, writeFile } from "node:fs/promises"; +import { fileURLToPath } from "node:url"; +import path from "node:path"; + +const HERE = path.dirname(fileURLToPath(import.meta.url)); +const ROOT = path.resolve(HERE, "../.."); +const BASELINES = path.join(HERE, "baselines"); +const update = process.argv.includes("--update"); + +const CSS = await readFile(path.join(ROOT, "dist/amber-console.css"), "utf8"); + +/* Inlined rather than linked: page.setContent gives the page an about:blank + origin, which blocks file:// subresources — a linked stylesheet would + silently never apply and every probe would read the UA default. */ +const page$ = async (browser, media, body) => { + const ctx = await browser.newContext(); + const p = await ctx.newPage(); + await p.emulateMedia(media); + await p.setContent( + `${body}` + ); + await p.waitForLoadState("load"); + return { p, ctx }; +}; + +const MEDIA = [ + ["screen", { media: "screen", reducedMotion: "no-preference", forcedColors: "none" }], + ["reduced-motion", { media: "screen", reducedMotion: "reduce", forcedColors: "none" }], + ["forced-colors", { media: "screen", reducedMotion: "no-preference", forcedColors: "active" }], + ["print", { media: "print", reducedMotion: "no-preference", forcedColors: "none" }], +]; + +/* ---------------------------------------------------------------- blink -- */ + +const BLINK_BODY = ` +
+ ALARM + RDY +
+ +
+
+
`; + +const BLINK_SITES = [ + ["blink", "#s-blink", null], + ["cursor", "#s-cursor", "::after"], + ["invalid-class", "#s-invalid-class", null], + ["invalid-aria", "#s-invalid-aria", null], + ["meter-alarm", "#s-meter", null], +]; + +/* P7 and P39 select the long-decay keyframe, so both are worth a column. */ +const BLINK_STATES = [ + ["default", {}, []], + ["blink-off", { "data-ac-style-blink": "off" }, []], + ["afterglow", {}, ["ac-afterglow"]], + ["afterglow+blink-off", { "data-ac-style-blink": "off" }, ["ac-afterglow"]], + ["afterglow+p39", { "data-ac-tech": "crt", "data-ac-emitter": "p39" }, ["ac-afterglow"]], + ["afterglow+p7", { "data-ac-tech": "crt", "data-ac-emitter": "p7" }, ["ac-afterglow"]], + ["afterglow+p39+blink-off", + { "data-ac-tech": "crt", "data-ac-emitter": "p39", "data-ac-style-blink": "off" }, + ["ac-afterglow"]], +]; + +async function blink(browser, out) { + for (const [mName, media] of MEDIA) { + for (const [sName, attrs, frameCls] of BLINK_STATES) { + const { p, ctx } = await page$(browser, media, BLINK_BODY); + await p.evaluate(({ attrs, frameCls }) => { + for (const [k, v] of Object.entries(attrs)) document.documentElement.setAttribute(k, v); + for (const c of frameCls) document.getElementById("frame").classList.add(c); + }, { attrs, frameCls }); + + for (const [label, sel, pseudo] of BLINK_SITES) { + out[`blink / ${mName} / ${sName} / ${label}`] = await p.evaluate( + ({ sel, pseudo }) => { + const el = document.querySelector(sel); + if (!el) return "MISSING"; + const cs = getComputedStyle(el, pseudo || undefined); + /* Only animation-NAME and filter render. Duration and timing are + inert once the name is `none`, and reporting them would make an + `animation: none` -> `animation-name: none` refactor look like a + regression when nothing about the paint changed. */ + return cs.animationName === "none" + ? `name=none filter=${cs.filter}` + : `name=${cs.animationName} ease=${cs.animationTimingFunction} dur=${cs.animationDuration} filter=${cs.filter}`; + }, + { sel, pseudo } + ); + } + await ctx.close(); + } + } +} + +/* --------------------------------------------------------------- layers -- */ + +const LAYER_BODY = ` +
+ +
+ + + NAV + B + +
C
+
+
+ +
`; + +const LAYER_SITES = [ + ["afterimage-btn", "#a-btn", "::after", "boxShadow"], + ["afterimage-tab", "#a-tab", "::after", "boxShadow"], + ["afterimage-nav", "#a-nav", "::after", "boxShadow"], + ["afterimage-badge", "#a-badge", "::after", "boxShadow"], + ["afterimage-td", "#a-td", "::after", "boxShadow"], + ["afterimage-btn-display", "#a-btn", "::after", "display"], + ["afterimage-td-display", "#a-td", "::after", "display"], + ["meterghost-display", "#a-track", "::before", "display"], + ["smear-child", "#child", null, "filter"], + ["smear-persist", "#persist", null, "filter"], + ["smear-sticky", "#sticky", null, "filter"], + ["smearbloom-display", "#persist", "::after", "display"], +]; + +async function layers(browser, out) { + for (const [mName, media] of MEDIA) { + for (const scrolling of [false, true]) { + const { p, ctx } = await page$(browser, media, LAYER_BODY); + await p.evaluate((s) => { + const f = document.getElementById("frame"); + /* --ac-smear is what the effects module drives, on the frame. */ + if (s) { f.setAttribute("data-ac-scrolling", ""); f.style.setProperty("--ac-smear", "1"); } + document.getElementById("a-track").style.setProperty("--ac-meter-value", "40"); + }, scrolling); + + for (const [label, sel, pseudo, prop] of LAYER_SITES) { + out[`layers / ${mName} / scroll=${scrolling} / ${label}`] = await p.evaluate( + ({ sel, pseudo, prop }) => { + const el = document.querySelector(sel); + return el ? getComputedStyle(el, pseudo || undefined)[prop] : "MISSING"; + }, + { sel, pseudo, prop } + ); + } + await ctx.close(); + } + } +} + +/* -------------------------------------------------------------- corners -- */ + +const CORNER_BODY = ` +
+ + + + + + + + + + + + + + +
P
+ + + + +
`; + +const CORNER_TARGETS = [ + "#b-plain", "#b-filled", "#b-pressed", "#b-dim", "#b-disabled", "#b-ariadis", + "#b-block", "#b-pad", "#b-keypad", "#t-track", "#t-track-dis", + "#t-track-inp", "#t-track-inp-dis", "#p-panel", "#i-input", + "#tb-dis", "#i-input-dis", +]; + +/* `bare` is the CSS-only consumer — no attribute, no class, no JavaScript. It is + the most important column here and the one that was wrong until 2.0. */ +const CORNER_SCOPES = [ + ["bare", {}, [], null], + ["flag-on", { "data-ac-style-classic": "on" }, [], null], + ["flag-off", { "data-ac-style-classic": "off" }, [], null], + ["frame-classic", {}, ["ac-classic"], null], + ["frame-rounded", {}, ["ac-rounded"], null], + ["flag-on+frame-rounded", { "data-ac-style-classic": "on" }, ["ac-rounded"], null], + ["self-classic", {}, [], "ac-classic"], + ["flag-on+self-rounded", { "data-ac-style-classic": "on" }, [], "ac-rounded"], +]; + +const CORNER_PROPS = ["boxShadow", "borderRadius", "alignItems", "justifyContent", "textAlign", "display"]; + +/* THE HALO MUST NOT SURVIVE INTO FORCED COLORS OR PRINT — AT REST *OR* HOVERED. + The per-selector suppression in a11y.css weighs (0,1,0), so any component rule + with more specificity takes the halo back. That has happened twice: once from + a scope-prefixed rule in classic.css, once from `:hover` restatements in + button.css and tabs.css. Both put a full-strength discharge glow around a + latched control in the one mode that must contain no off-palette colour. + Hover is the half a screenshot can never catch. */ +async function suppression(browser, out) { + const BODY = `
+ + + + +
`; + for (const [mName, media] of MEDIA) { + if (mName === "screen" || mName === "reduced-motion") continue; + for (const scope of ["", "ac-classic", "ac-rounded"]) { + const { p, ctx } = await page$(browser, media, BODY); + if (scope) await p.evaluate((c) => document.getElementById("frame").classList.add(c), scope); + for (const id of ["s-btn", "s-btn-p", "s-tab", "s-track"]) { + for (const state of ["rest", "hover"]) { + if (state === "hover") await p.hover("#" + id).catch(() => {}); + /* Anything non-transparent here is an off-palette leak. */ + out[`suppression / ${mName} / ${scope || "none"} / ${id} / ${state}`] = + await p.evaluate((i) => { + const sh = getComputedStyle(document.getElementById(i)).boxShadow; + if (sh === "none") return "none"; + const opaque = sh.split(/,(?![^(]*\))/).filter((s) => !/rgba\([^)]*,\s*0\)/.test(s)); + return opaque.length ? `LEAK ${opaque.join(",")}` : "transparent"; + }, id); + } + } + await ctx.close(); + } + } +} + +/* -------------------------------------------------------------- palette -- */ + +/** + * THE RESOLVED PALETTE, PER MEDIA — the gate that was missing when the print + * stylesheet half-worked for an entire release. + * + * base/print.css re-points the semantic tokens to black-on-white on `:root`. + * `:root` is (0,1,0); the palettes in tokens/colors.css are + * `[data-ac-tech="…"][data-ac-emitter="…"]`, which is (0,2,0), and a media query + * adds no specificity — so print won --ac-ink, --ac-fill and --ac-stroke, which + * colors.css declares at :root, and LOST --ac-screen, --ac-screen-raised, + * --ac-screen-well and --ac-on-fill, which it does not. Filled elements printed + * as solid black boxes with #1e0c00 text on them: 1.05:1, on every status strip, + * panel title and filled key in the library. + * + * NOTHING IN THE REPOSITORY COULD SEE IT. scripts/contrast.mjs reads the token + * values out of colors.css and never resolves a cascade, so it only ever knew + * about screen. The visual suite has five print captures and they all passed — + * they had photographed the bug and called it the baseline, which is the one + * failure mode a screenshot comparison cannot report. + * + * So this probe reads the tokens off a real root, through the real cascade, in + * every media — and asserts the pairs a human actually reads are still legible. + * A palette that stops inverting on paper changes a value here and fails in CI. + */ +const PALETTE_TOKENS = [ + "--ac-screen", "--ac-screen-raised", "--ac-screen-well", + "--ac-ink", "--ac-ink-dim", "--ac-fill", "--ac-fill-bright", + "--ac-on-fill", "--ac-stroke", +]; + +/* One gas and one phosphor: the two palettes with their own selector block that + print has to beat. neon also answers to :root, p3 does not, and it was p3-shaped + pages that printed worst. */ +const PALETTE_SCOPES = [ + ["default", {}], + ["plasma-neon", { "data-ac-tech": "plasma", "data-ac-emitter": "neon" }], + ["crt-p3", { "data-ac-tech": "crt", "data-ac-emitter": "p3" }], + ["crt-p7", { "data-ac-tech": "crt", "data-ac-emitter": "p7" }], +]; + +const srgb = (v) => (v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4)); +const relLum = (rgb) => { + const [r, g, b] = rgb.map((c) => srgb(c / 255)); + return 0.2126 * r + 0.7152 * g + 0.0722 * b; +}; +const contrast = (a, b) => { + const [l1, l2] = [relLum(a), relLum(b)]; + return (Math.max(l1, l2) + 0.05) / (Math.min(l1, l2) + 0.05); +}; +const parse = (c) => (c.match(/\d+(\.\d+)?/g) || []).slice(0, 3).map(Number); +/* Only rgba() with a literal zero alpha. Testing the string for a trailing + ", 0)" reads opaque BLACK — `rgb(0, 0, 0)` — as transparent, which is exactly + the colour every one of these probes is supposed to be looking at. */ +const isTransparent = (c) => { + const m = c.match(/rgba?\(([^)]+)\)/); + if (!m) return true; + const parts = m[1].split(",").map((s) => parseFloat(s)); + return parts.length === 4 && parts[3] === 0; +}; + +async function palette(browser, out) { + const BODY = `
+
S
+
T
+ +
`; + + for (const [mName, media] of MEDIA) { + for (const [sName, attrs] of PALETTE_SCOPES) { + const { p, ctx } = await page$(browser, media, BODY); + await p.evaluate((a) => { + for (const [k, v] of Object.entries(a)) document.documentElement.setAttribute(k, v); + }, attrs); + + for (const t of PALETTE_TOKENS) { + out[`palette / ${mName} / ${sName} / ${t}`] = await p.evaluate( + (tok) => getComputedStyle(document.documentElement).getPropertyValue(tok).trim(), + t + ); + } + + /* The point of the whole suite: inverse video has to stay readable in + every medium. forced-colors is exempt — the UA replaces both sides with + system colors there, so the author values say nothing about what a + reader sees. */ + if (mName !== "forced-colors") { + for (const id of ["p-status", "p-title", "p-filled"]) { + const pair = await p.evaluate((i) => { + const s = getComputedStyle(document.getElementById(i)); + return [s.color, s.backgroundColor]; + }, id); + const [fg, bg] = pair.map(parse); + out[`palette / ${mName} / ${sName} / ${id} / legible`] = isTransparent(pair[1]) + ? "transparent-bg" + : contrast(fg, bg) >= 4.5 + ? "AA" + : `FAIL ${contrast(fg, bg).toFixed(2)}:1 ${pair[0]} on ${pair[1]}`; + } + } + await ctx.close(); + } + } +} + +/* ------------------------------------------------------------- meters -- */ + +/* THE METER'S DRIVE LEVELS, WHICH NOTHING IN EITHER SUITE COULD SEE. + `.ac-meter--alarm` is inverse video plus blink, and the FILL is the half that + has to survive — blink is switched off by reduced motion, the blink flag, + print and forced colors, and without the fill an over-range meter is + indistinguishable from a healthy one in all four. `.ac-meter--dim` is the + opposite claim: a reading below full drive, which forced colors flattened to + Highlight and so reported at full strength. + + NEITHER WAS MEASURABLE. The blink group above already renders an alarm meter, + but it records animation properties only — name, easing, duration, filter — + so the entire inverse-video change was invisible to it. And the only alarmed + meter on a baselined page lives inside server.html's `#view-storage`, which + ships `hidden`; the visual harness clicks `#tab-services`, so it never renders. + Two suites, one fixture between them, and zero coverage of the state. + + Colour rather than shadow, because colour is the whole claim here — and across + all four media, because the three environment stylesheets each restate this + pair by hand and a hand-written selector list is exactly what drifts. */ +const METER_BODY = ` +
+
+
+
+
+
+
+
`; + +const METER_TARGETS = [ + "#m-plain", "#m-plain-bar", "#m-dim", "#m-dim-bar", "#m-alarm", "#m-alarm-bar", +]; + +async function meters(browser, out) { + for (const [mName, media] of MEDIA) { + for (const frameCls of ["", "ac-afterglow"]) { + const { p, ctx } = await page$(browser, media, METER_BODY); + if (frameCls) { + await p.evaluate((c) => document.getElementById("frame").classList.add(c), frameCls); + } + const scope = frameCls || "bare"; + for (const sel of METER_TARGETS) { + out[`meters / ${mName} / ${scope} / ${sel}`] = await p.evaluate((sel) => { + const el = document.querySelector(sel); + if (!el) return "MISSING"; + const cs = getComputedStyle(el); + + /* SYSTEM COLOURS ARE REPORTED BY NAME, NEVER BY VALUE, and this group + is the only one in the file that has to care. Under forced colors + the UA substitutes its own emulated palette — Highlight came back + as rgb(55, 0, 110) here — and those numbers belong to the browser + build, not to this stylesheet. Every other probe in this file + measures something platform-neutral on purpose, because the computed + suite is the half of the testing that DOES run on a Linux CI runner + (see .github/workflows/ci.yml). Baking the emulated RGB into the + baseline would have made the first CI run red for a reason that is + not a regression. Resolving the keywords live and diffing the NAME + keeps the assertion — "the alarm track is Highlight" — and drops the + dependency on what Highlight happens to be today. */ + /* EVERY match is reported, not the first, because several system + colours legitimately resolve to the same RGB — Canvas and + HighlightText are both white in the emulated palette, and + first-match-wins labelled the plain track "HighlightText" when it is + Canvas. Joining them is deterministic, states the ambiguity instead + of picking a side, and still fails loudly if the pair a rule lands + on ever changes. A colour that matches no keyword is a palette + colour and is returned as-is; those come from this stylesheet and + are the same everywhere. */ + const named = (c) => { + if (c === "-" || !matchMedia("(forced-colors: active)").matches) return c; + const probe = document.createElement("span"); + probe.style.display = "none"; + document.body.appendChild(probe); + const hits = []; + for (const k of ["Canvas", "CanvasText", "Highlight", "HighlightText", "GrayText"]) { + probe.style.color = k; + if (getComputedStyle(probe).color === c) hits.push(k); + } + probe.remove(); + return hits.length ? hits.join("|") : c; + }; + /* The bar is a repeating-linear-gradient, so its ink is the first + colour in background-image rather than background-color. Reported as + one field so a track and a bar read the same way in the diff. */ + const ink = (cs.backgroundImage.match(/rgba?\([^)]*\)/) || [cs.backgroundColor])[0]; + /* The lagging ghost only exists under .ac-afterglow, and on an alarmed + track it has to invert with the component or it paints the colour of + the track behind it and the drain goes invisible. */ + const ghost = getComputedStyle(el, "::before"); + /* `display: none` counts as absent, not just missing content. The + forced-colors block in base/a11y.css hides this ghost outright — a + trailing bar is a low-contrast duplicate of the live one, which is + what that mode exists to prevent — and reading only `content` made + the baseline report a colour for a pseudo-element that is never + painted. */ + const ghostInk = ghost.content === "none" || ghost.display === "none" + ? "-" + : (ghost.backgroundImage.match(/rgba?\([^)]*\)/) || ["-"])[0]; + return `ink=${named(ink)} shadow=${cs.boxShadow === "none" ? "none" : "yes"} ghost=${named(ghostInk)}`; + }, sel); + } + await ctx.close(); + } + } +} + +async function corners(browser, out) { + const { p, ctx } = await page$(browser, MEDIA[0][1], CORNER_BODY); + for (const [label, attrs, frameCls, selfCls] of CORNER_SCOPES) { + for (const state of ["rest", "hover", "active"]) { + await p.setContent( + `${CORNER_BODY}` + ); + await p.evaluate(({ attrs, frameCls, selfCls, targets }) => { + for (const [k, v] of Object.entries(attrs)) document.documentElement.setAttribute(k, v); + for (const c of frameCls) document.getElementById("frame").classList.add(c); + if (selfCls) for (const t of targets) document.querySelector(t)?.classList.add(selfCls); + }, { attrs, frameCls, selfCls, targets: CORNER_TARGETS }); + + for (const sel of CORNER_TARGETS) { + if (state !== "rest") { + const box = await p.locator(sel).boundingBox().catch(() => null); + if (!box) { out[`corners / ${label} / ${state} / ${sel}`] = "NOBOX"; continue; } + await p.mouse.move(box.x + box.width / 2, box.y + box.height / 2); + if (state === "active") await p.mouse.down(); + } + out[`corners / ${label} / ${state} / ${sel}`] = await p.evaluate( + ({ sel, props }) => { + const el = document.querySelector(sel); + if (!el) return "MISSING"; + const cs = getComputedStyle(el); + return props.map((k) => `${k}=${cs[k]}`).join(" ; "); + }, + { sel, props: CORNER_PROPS } + ); + if (state === "active") await p.mouse.up(); + } + } + } + await ctx.close(); +} + +/* ----------------------------------------------------------------- main -- */ + +const browser = await chromium.launch(); +const out = {}; +await blink(browser, out); +await layers(browser, out); +await meters(browser, out); +await corners(browser, out); +await suppression(browser, out); +await palette(browser, out); +await browser.close(); + +await mkdir(BASELINES, { recursive: true }); +const file = path.join(BASELINES, "computed.json"); +const next = JSON.stringify(out, null, 2) + "\n"; + +if (update) { + await writeFile(file, next); + console.log(`\n ${Object.keys(out).length} probes, baselines updated\n`); + process.exit(0); +} + +let prev; +try { + prev = JSON.parse(await readFile(file, "utf8")); +} catch { + console.error( + `\n no baseline at ${path.relative(ROOT, file)} — run:\n` + + ` npm run test:computed -- --update\n` + ); + process.exit(1); +} + +const keys = [...new Set([...Object.keys(prev), ...Object.keys(out)])].sort(); +const diffs = keys.filter((k) => prev[k] !== out[k]); + +for (const k of diffs) { + console.error(` CHANGED ${k}\n before ${prev[k] ?? "(absent)"}\n after ${out[k] ?? "(absent)"}`); +} +console.log( + `\n ${Object.keys(out).length} probes, ${diffs.length} change(s)` + + (diffs.length ? " — review, then re-run with --update if intended\n" : "\n") +); +process.exit(diffs.length ? 1 : 0); diff --git a/test/visual/baselines/console-1280-print.png b/test/visual/baselines/console-1280-print.png index b41e21d..f4f3f21 100644 Binary files a/test/visual/baselines/console-1280-print.png and b/test/visual/baselines/console-1280-print.png differ diff --git a/test/visual/baselines/console-1440-forced-colors.png b/test/visual/baselines/console-1440-forced-colors.png index 42c9d27..b074b2a 100644 Binary files a/test/visual/baselines/console-1440-forced-colors.png and b/test/visual/baselines/console-1440-forced-colors.png differ diff --git a/test/visual/baselines/console-1440-reduced-motion.png b/test/visual/baselines/console-1440-reduced-motion.png index de20b97..609f650 100644 Binary files a/test/visual/baselines/console-1440-reduced-motion.png and b/test/visual/baselines/console-1440-reduced-motion.png differ diff --git a/test/visual/baselines/console-1440-sims-off.png b/test/visual/baselines/console-1440-sims-off.png index 33f2108..26dbc90 100644 Binary files a/test/visual/baselines/console-1440-sims-off.png and b/test/visual/baselines/console-1440-sims-off.png differ diff --git a/test/visual/baselines/console-1440-sims-on.png b/test/visual/baselines/console-1440-sims-on.png index 2784266..5c26fea 100644 Binary files a/test/visual/baselines/console-1440-sims-on.png and b/test/visual/baselines/console-1440-sims-on.png differ diff --git a/test/visual/baselines/console-390-sims-off.png b/test/visual/baselines/console-390-sims-off.png index ec7d3f8..d8e2c1d 100644 Binary files a/test/visual/baselines/console-390-sims-off.png and b/test/visual/baselines/console-390-sims-off.png differ diff --git a/test/visual/baselines/console-390-sims-on.png b/test/visual/baselines/console-390-sims-on.png index c93f1e1..2a76c8b 100644 Binary files a/test/visual/baselines/console-390-sims-on.png and b/test/visual/baselines/console-390-sims-on.png differ diff --git a/test/visual/baselines/guide-1280-print.png b/test/visual/baselines/guide-1280-print.png index 356d4a3..e973886 100644 Binary files a/test/visual/baselines/guide-1280-print.png and b/test/visual/baselines/guide-1280-print.png differ diff --git a/test/visual/baselines/guide-1440-forced-colors.png b/test/visual/baselines/guide-1440-forced-colors.png index 23fbd11..4b012c6 100644 Binary files a/test/visual/baselines/guide-1440-forced-colors.png and b/test/visual/baselines/guide-1440-forced-colors.png differ diff --git a/test/visual/baselines/guide-1440-reduced-motion.png b/test/visual/baselines/guide-1440-reduced-motion.png index 2eb5f81..c75d960 100644 Binary files a/test/visual/baselines/guide-1440-reduced-motion.png and b/test/visual/baselines/guide-1440-reduced-motion.png differ diff --git a/test/visual/baselines/guide-1440-sims-off.png b/test/visual/baselines/guide-1440-sims-off.png index 08faa35..7180aa7 100644 Binary files a/test/visual/baselines/guide-1440-sims-off.png and b/test/visual/baselines/guide-1440-sims-off.png differ diff --git a/test/visual/baselines/guide-1440-sims-on.png b/test/visual/baselines/guide-1440-sims-on.png index 3faad96..e3d2752 100644 Binary files a/test/visual/baselines/guide-1440-sims-on.png and b/test/visual/baselines/guide-1440-sims-on.png differ diff --git a/test/visual/baselines/guide-390-sims-off.png b/test/visual/baselines/guide-390-sims-off.png index 8fb6fb1..44c9c3a 100644 Binary files a/test/visual/baselines/guide-390-sims-off.png and b/test/visual/baselines/guide-390-sims-off.png differ diff --git a/test/visual/baselines/guide-390-sims-on.png b/test/visual/baselines/guide-390-sims-on.png index 56cd168..b8c6c70 100644 Binary files a/test/visual/baselines/guide-390-sims-on.png and b/test/visual/baselines/guide-390-sims-on.png differ diff --git a/test/visual/baselines/guide-controls-1280-print.png b/test/visual/baselines/guide-controls-1280-print.png new file mode 100644 index 0000000..320646c Binary files /dev/null and b/test/visual/baselines/guide-controls-1280-print.png differ diff --git a/test/visual/baselines/guide-controls-1440-forced-colors.png b/test/visual/baselines/guide-controls-1440-forced-colors.png new file mode 100644 index 0000000..59d7404 Binary files /dev/null and b/test/visual/baselines/guide-controls-1440-forced-colors.png differ diff --git a/test/visual/baselines/guide-controls-1440-reduced-motion.png b/test/visual/baselines/guide-controls-1440-reduced-motion.png new file mode 100644 index 0000000..f332036 Binary files /dev/null and b/test/visual/baselines/guide-controls-1440-reduced-motion.png differ diff --git a/test/visual/baselines/guide-controls-1440-rounded.png b/test/visual/baselines/guide-controls-1440-rounded.png new file mode 100644 index 0000000..6b90854 Binary files /dev/null and b/test/visual/baselines/guide-controls-1440-rounded.png differ diff --git a/test/visual/baselines/guide-controls-1440-sims-off.png b/test/visual/baselines/guide-controls-1440-sims-off.png new file mode 100644 index 0000000..3dd7d35 Binary files /dev/null and b/test/visual/baselines/guide-controls-1440-sims-off.png differ diff --git a/test/visual/baselines/guide-controls-1440-sims-on.png b/test/visual/baselines/guide-controls-1440-sims-on.png new file mode 100644 index 0000000..2690aae Binary files /dev/null and b/test/visual/baselines/guide-controls-1440-sims-on.png differ diff --git a/test/visual/baselines/guide-controls-390-sims-off.png b/test/visual/baselines/guide-controls-390-sims-off.png new file mode 100644 index 0000000..7e4ae8e Binary files /dev/null and b/test/visual/baselines/guide-controls-390-sims-off.png differ diff --git a/test/visual/baselines/guide-controls-390-sims-on.png b/test/visual/baselines/guide-controls-390-sims-on.png new file mode 100644 index 0000000..556cf80 Binary files /dev/null and b/test/visual/baselines/guide-controls-390-sims-on.png differ diff --git a/test/visual/baselines/radar-1280-print.png b/test/visual/baselines/radar-1280-print.png new file mode 100644 index 0000000..857be35 Binary files /dev/null and b/test/visual/baselines/radar-1280-print.png differ diff --git a/test/visual/baselines/radar-1440-forced-colors.png b/test/visual/baselines/radar-1440-forced-colors.png new file mode 100644 index 0000000..fad028d Binary files /dev/null and b/test/visual/baselines/radar-1440-forced-colors.png differ diff --git a/test/visual/baselines/radar-1440-reduced-motion.png b/test/visual/baselines/radar-1440-reduced-motion.png new file mode 100644 index 0000000..d2c3e94 Binary files /dev/null and b/test/visual/baselines/radar-1440-reduced-motion.png differ diff --git a/test/visual/baselines/radar-1440-sims-off.png b/test/visual/baselines/radar-1440-sims-off.png new file mode 100644 index 0000000..b7b0349 Binary files /dev/null and b/test/visual/baselines/radar-1440-sims-off.png differ diff --git a/test/visual/baselines/radar-1440-sims-on.png b/test/visual/baselines/radar-1440-sims-on.png new file mode 100644 index 0000000..a39eb75 Binary files /dev/null and b/test/visual/baselines/radar-1440-sims-on.png differ diff --git a/test/visual/baselines/radar-390-sims-off.png b/test/visual/baselines/radar-390-sims-off.png new file mode 100644 index 0000000..2b13880 Binary files /dev/null and b/test/visual/baselines/radar-390-sims-off.png differ diff --git a/test/visual/baselines/radar-390-sims-on.png b/test/visual/baselines/radar-390-sims-on.png new file mode 100644 index 0000000..8bacae2 Binary files /dev/null and b/test/visual/baselines/radar-390-sims-on.png differ diff --git a/test/visual/baselines/server-1280-print.png b/test/visual/baselines/server-1280-print.png new file mode 100644 index 0000000..1da36f0 Binary files /dev/null and b/test/visual/baselines/server-1280-print.png differ diff --git a/test/visual/baselines/server-1440-forced-colors.png b/test/visual/baselines/server-1440-forced-colors.png new file mode 100644 index 0000000..40d7f6e Binary files /dev/null and b/test/visual/baselines/server-1440-forced-colors.png differ diff --git a/test/visual/baselines/server-1440-reduced-motion.png b/test/visual/baselines/server-1440-reduced-motion.png new file mode 100644 index 0000000..3fc909e Binary files /dev/null and b/test/visual/baselines/server-1440-reduced-motion.png differ diff --git a/test/visual/baselines/server-1440-sims-off.png b/test/visual/baselines/server-1440-sims-off.png new file mode 100644 index 0000000..1583d4a Binary files /dev/null and b/test/visual/baselines/server-1440-sims-off.png differ diff --git a/test/visual/baselines/server-1440-sims-on.png b/test/visual/baselines/server-1440-sims-on.png new file mode 100644 index 0000000..1583d4a Binary files /dev/null and b/test/visual/baselines/server-1440-sims-on.png differ diff --git a/test/visual/baselines/server-390-sims-off.png b/test/visual/baselines/server-390-sims-off.png new file mode 100644 index 0000000..b1808b8 Binary files /dev/null and b/test/visual/baselines/server-390-sims-off.png differ diff --git a/test/visual/baselines/server-390-sims-on.png b/test/visual/baselines/server-390-sims-on.png new file mode 100644 index 0000000..b1808b8 Binary files /dev/null and b/test/visual/baselines/server-390-sims-on.png differ diff --git a/test/visual/baselines/terminal-1280-print.png b/test/visual/baselines/terminal-1280-print.png new file mode 100644 index 0000000..e5022cb Binary files /dev/null and b/test/visual/baselines/terminal-1280-print.png differ diff --git a/test/visual/baselines/terminal-1440-forced-colors.png b/test/visual/baselines/terminal-1440-forced-colors.png new file mode 100644 index 0000000..ecabdf9 Binary files /dev/null and b/test/visual/baselines/terminal-1440-forced-colors.png differ diff --git a/test/visual/baselines/terminal-1440-reduced-motion.png b/test/visual/baselines/terminal-1440-reduced-motion.png new file mode 100644 index 0000000..4b3f13a Binary files /dev/null and b/test/visual/baselines/terminal-1440-reduced-motion.png differ diff --git a/test/visual/baselines/terminal-1440-sims-off.png b/test/visual/baselines/terminal-1440-sims-off.png new file mode 100644 index 0000000..fd75da6 Binary files /dev/null and b/test/visual/baselines/terminal-1440-sims-off.png differ diff --git a/test/visual/baselines/terminal-1440-sims-on.png b/test/visual/baselines/terminal-1440-sims-on.png new file mode 100644 index 0000000..28fe45a Binary files /dev/null and b/test/visual/baselines/terminal-1440-sims-on.png differ diff --git a/test/visual/baselines/terminal-390-sims-off.png b/test/visual/baselines/terminal-390-sims-off.png new file mode 100644 index 0000000..4a79800 Binary files /dev/null and b/test/visual/baselines/terminal-390-sims-off.png differ diff --git a/test/visual/baselines/terminal-390-sims-on.png b/test/visual/baselines/terminal-390-sims-on.png new file mode 100644 index 0000000..dac4b3b Binary files /dev/null and b/test/visual/baselines/terminal-390-sims-on.png differ diff --git a/test/visual/capture.mjs b/test/visual/capture.mjs index e737d87..56c3711 100644 --- a/test/visual/capture.mjs +++ b/test/visual/capture.mjs @@ -47,24 +47,123 @@ const update = process.argv.includes("--update"); * WHAT IT DOES NOT GIVE UP: the overflow probe below walks the entire DOM * regardless of what is screenshotted, so the responsive-collapse regression * this suite was built for is still gated across the whole guide at every width. + * + * `click` exists for the server page and states the one thing the probe cannot + * reach on its own. A hidden tab panel is display:none, which reports a + * scrollWidth of zero — so a panel nobody opens is not measured, it is merely + * absent. The server demo hides its widest markup by far behind a tab (a + * seven-column table with a switch in every row, which overflowed a 390px frame + * by 214px the first time it was written), and that is exactly the regression + * this suite exists to catch. So the page is probed as it loads, the tab is + * opened, and it is probed again; the worse of the two is what gets reported, + * and the screenshot is taken of the opened state. + * + * `click` TAKES A LIST, because the terminal page carries five pages behind one + * tablist and opening only the first would leave four of the densest tables in + * the repo ungated. Each selector is clicked in turn and the page is probed + * after each; the worst figure across all of them is what gets reported. The + * screenshot is of the LAST one, so put the widest page last — for the terminal + * that is XRAT, an eight-by-eight matrix. + */ +/** + * `probeOnly` IS THE ANSWER TO THE GUIDE BECOMING EIGHT PAGES. + * + * The two jobs this file does are separable, and the split made that matter. The + * screenshot gates appearance and costs a PNG in git forever; the overflow probe + * gates responsive collapse, walks the whole DOM, and costs nothing at all. When + * the guide was one document, listing it once bought both. Eight chapters would + * buy eight times the bytes for a shape that is the same on all of them — and + * NOT listing them would silently drop the overflow probe from six of the seven, + * which is the regression this suite was actually built to catch. + * + * So every chapter is probed and two are photographed: the overview, which is + * the only page carrying the chapter strip and the directory cards, and CONTROLS, + * which is where the anchor already pointed and where the forced-colors and print + * fallbacks have the most to get wrong. */ const PAGES = [ { name: "console", file: "docs/index.html", fullPage: true }, - { name: "guide", file: "docs/guide.html", fullPage: false, anchor: "#controls .doc-grid2" }, + { name: "server", file: "docs/server.html", fullPage: true, click: "#tab-services" }, + { name: "radar", file: "docs/radar.html", fullPage: true }, + { + name: "terminal", + file: "docs/terminal.html", + fullPage: true, + click: ["#tab-depo", "#tab-govt", "#tab-indx", "#tab-fxsp", "#tab-xrat"], + }, + /* The directory rather than the masthead: the cards are the new shape on this + page, and the board above them is already gated on four other captures. */ + { name: "guide", file: "docs/guide.html", fullPage: false, anchor: "#chapters" }, + { name: "guide-controls", file: "docs/guide-controls.html", fullPage: false, anchor: "#controls .doc-grid2" }, + { name: "guide-color", file: "docs/guide-color.html", probeOnly: true }, + { name: "guide-type", file: "docs/guide-type.html", probeOnly: true }, + { name: "guide-effects", file: "docs/guide-effects.html", probeOnly: true }, + { name: "guide-persistence", file: "docs/guide-persistence.html", probeOnly: true }, + { name: "guide-display", file: "docs/guide-display.html", probeOnly: true }, + { name: "guide-screen", file: "docs/guide-screen.html", probeOnly: true }, + /* The two index chapters. Probed rather than photographed on the same + economics as the six above — but they earn the probe more than any of them, + because they are almost entirely WIDE TABLES, which is the one shape that + overflows a 390px frame without anyone noticing on a laptop. */ + { name: "guide-reference", file: "docs/guide-reference.html", probeOnly: true }, + { name: "guide-deprecations", file: "docs/guide-deprecations.html", probeOnly: true }, ]; +/** + * `sims` NAMES ONE SIMULATION, or false for none. It cannot seed both any more: + * PLASMA and CRT are two display technologies and the module now switches either + * one off when the other comes on (see EXCLUSIVE_SIMS in src/amber-console.js), + * so a run that wrote both keys would capture whichever survived restore rather + * than what it asked for — a baseline nobody could read the intent of. + * + * PLASMA carries the "sims-on" cases because it is what the demo ships lit and + * therefore what a first visitor sees. CRT is not left uncovered: it takes the + * reduced-motion case, which is a better home for it than plasma was. Nearly + * every moving part in the system belongs to the tube — the retrace sweep, the + * line drift, the flicker and the afterglow — so a capture that exists to prove + * the motion fallbacks fire is now pointed at the thing that moves most. + */ +/** + * `styles` SEEDS THE STYLE FLAGS, and `only` narrows a case to named pages. + * + * The rounded case is the reason both exist. CLASSIC IS THE DEFAULT, so the seven + * cases above already gate it on all five pages; what nothing covered was the + * page with it switched OFF, which is a whole second set of corner geometry and an + * .ac-btn alignment reset. This case is that, and it is CONTROLS-only on the same + * economics the `fullPage` note above argues: five full-page captures would be + * five of the largest files in the repo, re-written on every --update, to gate a + * shape identical on all of them. The guide's CONTROLS chapter is a viewport + * capture and the paired specimen lives there, so one case costs a screen and + * covers buttons, a pad, a toggle and the panels around them. + * + * WHAT THIS GIVES UP: the rounded path is not gated on the console, server, radar + * or terminal boards. It is the same CSS on all five — a token override and a + * corner shape, no per-page markup — so a regression that spared the guide would + * be a strange one. Every other case still walks every page. + */ const CASES = [ - { id: "1440-sims-on", width: 1440, height: 900, sims: true }, + { id: "1440-sims-on", width: 1440, height: 900, sims: "plasma" }, { id: "1440-sims-off", width: 1440, height: 900, sims: false }, - { id: "390-sims-on", width: 390, height: 844, sims: true }, + { id: "390-sims-on", width: 390, height: 844, sims: "plasma" }, { id: "390-sims-off", width: 390, height: 844, sims: false }, - { id: "1440-reduced-motion", width: 1440, height: 900, sims: true, reducedMotion: "reduce" }, - { id: "1440-forced-colors", width: 1440, height: 900, sims: true, forcedColors: "active" }, - { id: "1280-print", width: 1280, height: 800, sims: true, media: "print" }, + { id: "1440-reduced-motion", width: 1440, height: 900, sims: "crt", reducedMotion: "reduce" }, + { id: "1440-forced-colors", width: 1440, height: 900, sims: "plasma", forcedColors: "active" }, + { id: "1280-print", width: 1280, height: 800, sims: "plasma", media: "print" }, + { + id: "1440-rounded", + width: 1440, + height: 900, + sims: "plasma", + styles: { classic: "0" }, + only: ["guide-controls"], + /* Its own anchor, because the point of the case is the corner and the paired + specimen is the one place both corners are in frame together. */ + anchor: "#controls .doc-demo:has(.ac-classic)", + }, ]; /** - * Rasterisation noise floor — the one thing byte equality cannot promise. + * Rasterization noise floor — the one thing byte equality cannot promise. * * `backdrop-filter` is composited on the GPU and Chrome has two raster paths for * it, picking between them per run. The output is not bit-identical: measured @@ -151,6 +250,10 @@ async function measure(baseline, shot) { for (const page of PAGES) { for (const c of CASES) { + /* A case may name the pages it applies to. No `only` means every page, so + the seven that came before this option are untouched by it. */ + if (c.only && !c.only.includes(page.name)) continue; + const context = await browser.newContext({ viewport: { width: c.width, height: c.height }, reducedMotion: c.reducedMotion ?? "no-preference", @@ -158,16 +261,37 @@ for (const page of PAGES) { deviceScaleFactor: 1, }); - /* Seed the simulation state before the page's script reads it. */ - await context.addInitScript((on) => { + /* Seed the simulation state before the page's script reads it. Both keys are + always written, and at most one of them says "1" — leaving the other key + absent would hand it back to its own default, which for plasma is ON. */ + await context.addInitScript(({ want, styles }) => { try { - localStorage.setItem("ac.sim.plasma", on ? "1" : "0"); + localStorage.setItem("ac.sim.plasma", want === "plasma" ? "1" : "0"); /* CRT carries the afterglow; there is no separate key any more. */ - localStorage.setItem("ac.sim.crt", on ? "1" : "0"); + localStorage.setItem("ac.sim.crt", want === "crt" ? "1" : "0"); + /* The radar page fits its own tube on a first visit — CRT · P7, with the + CRT simulation on — because the display store is shared with the other + demos and a radar in neon has no flash layer to show. Every context + here is a fresh profile, so without this the page would seize both sim + keys on all seven cases and `sims-off` would stop testing anything. + Marking it already fitted leaves the case in charge of the simulation; + the display still lands on P7, because that is the radio the page + ships checked and there is no stored palette to override it. */ + localStorage.setItem("ac.radar.fitted", "1"); + localStorage.setItem("ac.term.fitted", "1"); + + /* STYLE FLAGS ARE SEEDED THE SAME WAY AND FOR THE SAME REASON: initStyle + reads storage on load, so a flag set after the fact would capture the + page repainting rather than the page as configured. Only the flags a + case names are written — an absent key means "the user never said", + which is the state every other case is testing and must keep. */ + for (const [name, on] of Object.entries(styles)) { + localStorage.setItem(`ac.sim.style.${name}`, on); + } } catch { /* ignore */ } - }, c.sims); + }, { want: c.sims, styles: c.styles ?? {} }); /* The console demo renders a live wall clock, so a byte comparison would never match twice. Freeze time before any page script runs. */ @@ -212,10 +336,39 @@ for (const page of PAGES) { concerned. The simulation dutifully blurred whichever tiles happened to be mid-stitch, and a tall capture came back different roughly one run in three. The `anchor` scroll below would trip it the same way. */ + /* `content-visibility` HAS TO GO TOO, and for the same class of reason. + docs.css puts `content-visibility: auto` with `contain-intrinsic-size: + auto 320px` on every specimen tile, which is a real and worthwhile saving + on a 27,000px chapter. But `auto` means "remember the size this box was + the last time it rendered", so an off-screen tile's contribution to page + height depends on whether it has ever been scrolled through — and the + anchored scroll below therefore lands at a slightly different offset + depending on render timing. That surfaces as the whole viewport shifted + one pixel, which a full-frame comparison scores as ~76% changed. + + Forcing every tile to lay out for real makes the capture depend on the CSS + and nothing else. It costs a little time on the tall chapters and buys a + suite that cannot fail for a reason that is not a regression. */ + /* .ac-retrace GOES FOR THE SAME REASON .ac-persist::after DOES: it is an + overlay whose only meaningful state is in motion. The band is the tube's + rolling unsteadiness — it exists at a POSITION, sweeping down the frame + every 13s — so freezing the animation does not photograph it dimmed, it + photographs it parked at top:0 with no transform, lying across the top + quarter of every CRT page in a place no reader will ever see it. + + This was invisible until the band started carrying a --ac-flicker-scaled + trough (sim/crt.css); before that it was a near-transparent screen-blended + wash and the parked copy scored under tolerance by luck. The band still + gets gated: reduced-motion drops it in sim/frame.css, forced-colors and + print in a11y.css and print.css, and all three of those cases are captured + here. What is not gated is the one thing this suite cannot photograph + anyway, which is where it is at a given instant. */ await tab.addStyleTag({ content: "*,*::before,*::after{animation:none !important;transition:none !important}" + + "*{content-visibility:visible !important}" + ".ac-persist::after{display:none !important}" + + ".ac-retrace{display:none !important}" + ".ac-afterglow[data-ac-scrolling]>*{filter:none !important}", }); await tab.waitForTimeout(250); @@ -224,13 +377,32 @@ for (const page of PAGES) { so the simulation overlays can be positioned against it, which silently CLIPS a too-wide row instead of scrolling it. So also look for any element whose content is wider than its box. */ - const overflow = await tab.evaluate(() => { + const probe = () => tab.evaluate(() => { const d = document.documentElement; let worst = d.scrollWidth - d.clientWidth; for (const el of document.body.querySelectorAll("*")) { /* .ac-sr-only is a 1px clip box and .ac-spinner is a 1ch window over a - 4-line block — both are wider than their box on purpose. */ - if (el.closest(".ac-sr-only, .ac-spinner")) continue; + 4-line block — both are wider than their box on purpose. + + .doc-ppi — the radar dial — is the third of that kind and the least + obvious. EVERYTHING ON IT IS POLAR: a bearing mark, a contact and the + bearing line are each a ZERO-WIDTH arm pinned at the center of the + dial and rotated to their bearing, carrying their mark centered on the + far end. Both halves of that defeat this measurement. A zero-width box + reports its mark's full width as overflow, and scroll overflow is + measured on axis-aligned bounds, so a rotated arm reports a box far + wider than the thing at the end of it — while every one of those marks + is inside the circle and clipped by nothing. + + The dial cannot overflow its own parent regardless: it carries + aspect-ratio: 1 and a max-width, and every box above it is still + probed at every width. + + .doc-ticker is the fourth and is the same shape of thing as the + spinner: a marquee is CONTENT WIDER THAN ITS BOX as its entire + definition, translated through a fixed window. Measuring it reports + the length of the tape. */ + if (el.closest(".ac-sr-only, .ac-spinner, .doc-ppi, .doc-ticker")) continue; /* Form controls scroll their own value; that is not a layout bug. */ if (["INPUT", "TEXTAREA", "SELECT"].includes(el.tagName)) continue; @@ -247,17 +419,41 @@ for (const page of PAGES) { return worst; }); + let overflow = await probe(); + + /* Open the tabs the page ships closed, then probe what each one revealed. + See the note on `click` above: a display:none panel measures zero, so this + is the only way their markup is gated at all. */ + for (const selector of [page.click ?? []].flat()) { + await tab.click(selector); + await tab.waitForTimeout(120); + overflow = Math.max(overflow, await probe()); + } + /* Scroll AFTER the overflow probe, so the probe always measures the page in its loaded state. `instant` and a settle frame because a smooth scroll is - still in flight when the shutter opens. */ - if (page.anchor) { + still in flight when the shutter opens. + + A CASE MAY POINT SOMEWHERE ELSE THAN ITS PAGE DOES. The page's anchor is + chosen for what is worth one screen in general; a case that exists to gate + one feature is worth pointing at that feature instead. */ + const anchor = c.anchor ?? page.anchor; + if (anchor) { await tab.evaluate((sel) => { document.querySelector(sel)?.scrollIntoView({ behavior: "instant", block: "start" }); - }, page.anchor); + }, anchor); await tab.waitForTimeout(120); } const name = `${page.name}-${c.id}.png`; + + /* Probed, not photographed — see the note on PAGES. */ + if (page.probeOnly) { + results.push({ name, status: "probed", overflow, errors }); + await context.close(); + continue; + } + const shot = await tab.screenshot({ fullPage: page.fullPage }); const target = path.join(BASELINES, name);