@whzxc/agent-design-gallery 0.14.1 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -16
- package/package.json +2 -1
- package/public/access.css +15 -2
- package/public/app.js +1284 -521
- package/public/arrangement-worker.js +7 -7
- package/public/arrangement.js +35 -30
- package/public/assets.js +85 -48
- package/public/auth.js +59 -4
- package/public/boards.js +129 -0
- package/public/comment-anchors.js +50 -0
- package/public/comments.css +400 -0
- package/public/comments.js +1106 -0
- package/public/context-menu.js +97 -0
- package/public/frame-identity.js +51 -14
- package/public/hub.css +25 -3
- package/public/hub.html +10 -2
- package/public/hub.js +127 -23
- package/public/icons.js +9 -0
- package/public/index.html +26 -10
- package/public/instance-actions.js +9 -2
- package/public/layout.js +156 -86
- package/public/motion-flow.js +28 -0
- package/public/motion-identity.js +100 -0
- package/public/motion-paint.js +332 -0
- package/public/motion-scene.js +165 -0
- package/public/motion-specimens.js +335 -0
- package/public/player.css +270 -0
- package/public/player.js +753 -0
- package/public/recent-updates.js +535 -0
- package/public/selection.js +1 -1
- package/public/style.css +91 -154
- package/public/switcher.css +5 -4
- package/public/switcher.js +109 -34
- package/public/token-catalog.js +8 -3
- package/public/tokens.css +20 -1
- package/public/view-boards.css +131 -0
- package/public/view-boards.js +350 -0
- package/public/view-route.js +1 -2
- package/src/boards/board.mjs +30 -0
- package/src/boards/motion-board.mjs +202 -0
- package/src/boards/token-board.mjs +200 -0
- package/src/cli-output.mjs +10 -5
- package/src/cli.mjs +89 -35
- package/src/comments.mjs +293 -0
- package/src/http.mjs +7 -5
- package/src/hub/project-link.mjs +41 -0
- package/src/hub/registry.mjs +5 -0
- package/src/hub.mjs +14 -10
- package/src/link.mjs +13 -1
- package/src/recent-frames.mjs +295 -0
- package/src/recent-history.mjs +100 -0
- package/src/recent-job.mjs +63 -0
- package/src/recent-worker.mjs +171 -0
- package/src/server.mjs +285 -110
- package/src/service.mjs +46 -12
- package/src/toolkit/arch-git.mjs +8 -14
- package/src/toolkit/arch.mjs +3 -2
- package/src/toolkit/asset-rules.mjs +24 -1
- package/src/toolkit/browser.mjs +1 -13
- package/src/toolkit/build-store.mjs +9 -1
- package/src/toolkit/build-worker.mjs +6 -0
- package/src/toolkit/build.mjs +22 -16
- package/src/toolkit/commands.mjs +105 -9
- package/src/toolkit/compare.mjs +13 -11
- package/src/toolkit/config.mjs +2 -2
- package/{public/review.js → src/toolkit/diff-document.mjs} +137 -43
- package/src/toolkit/diff-inputs.mjs +97 -52
- package/src/toolkit/diff.mjs +198 -43
- package/src/toolkit/frame-declarations.mjs +36 -0
- package/src/toolkit/git-blobs.mjs +50 -0
- package/src/toolkit/impact-inputs.mjs +11 -19
- package/src/toolkit/impact-selection.mjs +27 -12
- package/src/toolkit/impact.mjs +49 -15
- package/src/toolkit/implementation-map.mjs +17 -6
- package/src/toolkit/input-generation.mjs +15 -0
- package/src/toolkit/inspect-output.mjs +1 -1
- package/src/toolkit/inspect.d.ts +9 -1
- package/src/toolkit/inspect.mjs +25 -1
- package/src/toolkit/motion-check.mjs +382 -0
- package/src/toolkit/motion-css.mjs +105 -0
- package/src/toolkit/motion-flows.mjs +95 -0
- package/src/toolkit/motion-impact.mjs +87 -0
- package/src/toolkit/motion-inventory.mjs +202 -0
- package/src/toolkit/motion-label.mjs +111 -0
- package/src/toolkit/motion-patterns.mjs +216 -0
- package/src/toolkit/motion-primitives.mjs +94 -0
- package/src/toolkit/motion-queries.mjs +169 -0
- package/src/toolkit/motion.mjs +300 -0
- package/src/toolkit/move-pairing.mjs +140 -0
- package/src/toolkit/owner.mjs +19 -6
- package/src/toolkit/play-endpoint.mjs +66 -0
- package/src/toolkit/project-index.mjs +4 -4
- package/src/toolkit/recent-structure.mjs +201 -0
- package/src/toolkit/results.mjs +3 -3
- package/src/toolkit/review-document.mjs +440 -0
- package/src/toolkit/review-embed-document.mjs +671 -0
- package/src/toolkit/review-filmstrip.mjs +76 -0
- package/src/toolkit/review-groups.mjs +29 -0
- package/src/toolkit/review-motion-card.mjs +51 -0
- package/src/toolkit/review-motion.mjs +159 -0
- package/src/toolkit/review-observation.mjs +131 -0
- package/src/toolkit/review-playback.js +123 -0
- package/src/toolkit/review-sheet.mjs +125 -0
- package/src/toolkit/review-specimens.mjs +60 -0
- package/src/toolkit/review.mjs +240 -0
- package/src/toolkit/runtime.mjs +8 -2
- package/src/toolkit/theme.mjs +16 -0
- package/src/viewer-cache.mjs +48 -12
- package/public/annotations.js +0 -816
- package/public/labels.js +0 -122
- package/src/annotations.mjs +0 -238
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Agent Design Gallery
|
|
2
2
|
|
|
3
|
-
Build and browse a repository's TSX design
|
|
3
|
+
Build, check and browse a repository's TSX design library as boards in a local viewer or resident multi-project hub. Review changes against Git and discuss them in comment threads pinned to frames.
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
6
|
npm install -g @whzxc/agent-design-gallery
|
|
@@ -40,19 +40,18 @@ The stored key prefix changes to `adg_`; update browser access with the new key
|
|
|
40
40
|
|
|
41
41
|
Drag or scroll to pan. Pinch, or hold Control/Command while scrolling, to zoom around the pointer. Click a frame to select its variant; double-click or press Enter to focus it. Hover an exported component inside a frame to outline its root, then click to inspect its source and export. Arrow keys pan; +/− zoom; 0 fits all; 1 sets the canvas to 100% around the usable canvas center. Escape clears the selection (or closes the current search, dialog or menu). Back returns to the previous selection and camera.
|
|
42
42
|
|
|
43
|
-
The left toolbar holds Contents, the project picker, scope tabs, and search. **Tokens** appears first when the project provides a token file. A clean project URL opens the first nonempty design layer, normally **Components**. Use the tabs to switch layers or choose **All designs**. Contents starts closed and opens over the canvas. Asset search opens Contents with matches from the current scope. Click a group or asset name to focus it, or use its trailing **Render only** action to open it independently. An isolated asset lists its frames in Contents. Search and Fit all work within the current scope. Back restores the previous scope, selection and camera.
|
|
43
|
+
The left toolbar holds Contents, the project picker, scope tabs, and search. **Tokens** appears first when the project provides a token file. A clean project URL opens the first nonempty design layer, normally **Components**. Use the tabs to switch layers or choose **All designs**. Contents starts closed and opens over the canvas. Asset search opens Contents with matches from the current scope and offers **Search All designs** when a scoped search has no matches. Click a group or asset name to focus it, or use its trailing **Render only** action to open it independently; an isolated-scope pill in the top bar exits back to the layer in one click. An isolated asset lists its frames in Contents. Search and Fit all work within the current scope. Back restores the previous scope, selection and camera.
|
|
44
44
|
|
|
45
45
|
Path links locate a selection within its design hierarchy. Query links open an independent layer, group, source, or frame. Copy the viewer URL to share its current view, or use `adg link` to generate either form for a specific target.
|
|
46
46
|
|
|
47
47
|
## Share a design update
|
|
48
48
|
|
|
49
49
|
```sh
|
|
50
|
-
adg
|
|
51
|
-
adg
|
|
52
|
-
adg open ./design --base=<rev> --no-open
|
|
50
|
+
adg review --base=<rev> --json
|
|
51
|
+
adg review --base=<rev> --format=png --json
|
|
53
52
|
```
|
|
54
53
|
|
|
55
|
-
|
|
54
|
+
Choose the task's starting commit and share the artifact at `data.path`. The default HTML opens offline and supports enlargement and board links. Use PNG for a static summary in clients such as Antigravity. The current system theme is the default. Use `--viewer-url` to point HTML links at a different hub, or `--exact` to compare every frame scheduled by impact analysis. See the [review handoff workflow](docs/design-toolkit.md#review-handoff).
|
|
56
55
|
|
|
57
56
|
Every command accepts `--json`: finite commands return one versioned envelope, while foreground `open`/`serve` stream NDJSON events. `render` PNGs are in `data.captures`, with CSS and PNG pixel dimensions. See the [agent CLI interface](docs/agent-interface.md) for schemas, exits and recovery actions.
|
|
58
57
|
|
|
@@ -70,17 +69,19 @@ The bottom zoom bar holds Back, zoom out, the zoom menu, zoom in, Fit, and Minim
|
|
|
70
69
|
|
|
71
70
|
Design sources are TSX files directly in `design/components/`, `design/modules/` and `design/surfaces/`. Default discovery also includes `design/studies/` once it contains a direct TSX study; explicit `sources` lists remain unchanged. Fixtures and artwork stay in their supporting directories. Import `Frame` and `Icon` from `adg`, export reusable component functions, and default-export a function returning the declared frames. JSX builds static HTML and inline SVG without React or browser scripts. Tailwind v4 utilities resolve through the project's `design/tokens.css`; light and dark are selected by the document's `data-theme`.
|
|
72
71
|
|
|
73
|
-
|
|
72
|
+
ADG 0.16 reads version 1 `*.motion.json` sidecars beside TSX frame sources. Use `adg check --read-only --transitions --json` to validate the graph and `adg inspect --transition=<id> --explain --json` to inspect timing and identity pairs. CSS motion in existing frames warns by default; `check.strictMotion` opts into enforcement. See [frame transitions](docs/design-toolkit.md#frame-transitions).
|
|
73
|
+
|
|
74
|
+
Choose the **Tokens** tab to inspect the current project's `design/tokens.css`. The Tokens board presents paired light/dark colour swatches, typography, shape, elevation, sizing and motion samples, with click-to-copy token names and a top-bar toggle to switch to the list view. Typing in search filters the list view directly and returns to the board when cleared. Share `?scope=tokens` to open the board directly.
|
|
74
75
|
|
|
75
76
|
Follow the [design asset rules](docs/asset-rules.md) for placement, ownership, states, frame names, fidelity, lifecycle and studies. The [adoption guide](docs/asset-rules.md#adopting-an-existing-project) covers inventory, a read-only audit with `file / problem / suggested fix` findings, check-decided governance steps, the implementation checks a consumer adds, and the mappings/governance each consumer keeps locally. `sources` orders production layers from lower to higher; `check` reports upward imports. Set `check: { importDirection: false }` to opt out of that lint while keeping frame checks.
|
|
76
77
|
|
|
77
|
-
|
|
78
|
+
Each chapter is one board at any height, including in the Surfaces layer. Each source is a section with its declared frames in order, shown at their rendered sizes on captioned wells in a 12-column grid. Boards start at 1680px wide and grow for wider specimens. Headers, source labels, frame names, notes and proposal markers scale with the camera. See the [board contract](docs/boards.md) for dimensions and presentation.
|
|
78
79
|
|
|
79
80
|
Legacy SVGs remain browsable with their existing geometric crops and relative embedded artwork. Files without declarations keep a whole-file preview. New toolkit commands accept TSX only; an SVG directly in `design/components/` or `design/surfaces/` must be converted. Imported SVG artwork belongs in `design/art/`; PNG, JPEG and WebP imports become data URLs. Add `?url` to an import under `design/art/` to embed any file as a data URL, including self-contained SVG previews.
|
|
80
81
|
|
|
81
|
-
|
|
82
|
+
Boards flow in chapter order into the shortest column, using the leftmost column on ties. Column count targets a 16:10 layer band, with 240px between columns and boards and 480px between layers. Saving a source refreshes its board and moves boards below it in the same column by its height change while keeping the camera. **Arrange current group** recomputes column assignment.
|
|
82
83
|
|
|
83
|
-
Files group by directory unless `gallery.json` supplies
|
|
84
|
+
Files group by directory unless `gallery.json` supplies chapters, with each title naming a board and each listed source becoming a section in order. Entries must identify configured source entries, including a module folder's `index.tsx`:
|
|
84
85
|
|
|
85
86
|
```json
|
|
86
87
|
{
|
|
@@ -91,7 +92,9 @@ Files group by directory unless `gallery.json` supplies project groups. Entries
|
|
|
91
92
|
}
|
|
92
93
|
```
|
|
93
94
|
|
|
94
|
-
Unlisted
|
|
95
|
+
Unlisted sources form directory chapters. A mixed-layer group splits into a same-titled chapter in each layer view; keep project groups within one layer. A module folder shows its `index.tsx` under the feature directory name. Projects own their TSX sources, artwork, tokens, configuration and Git history. Preferences stay in `~/.agent-design-gallery/state.json`; `--state-dir` isolates them. Refreshing or reopening a directory restores its camera and selection. Source labels show modification times.
|
|
96
|
+
|
|
97
|
+
[Comments](docs/comments.md) are threads pinned to the library. Open a frame from the standalone review to discuss it on the board.
|
|
95
98
|
|
|
96
99
|
## Design toolkit
|
|
97
100
|
|
|
@@ -120,7 +123,7 @@ Builds produce standalone HTML and renders produce `<frame>-light.png` and `<fra
|
|
|
120
123
|
`adg diff --base=<rev>` overwrites `<configured output>/diff` and writes a self-contained
|
|
121
124
|
`index.html` review page, per-frame/theme before, after and difference PNGs, plus
|
|
122
125
|
`report.json` for Git and working-tree sources, including added/removed frames. `index.html`
|
|
123
|
-
shows the `added`, `removed` and `changed` frame counts (`data.review`) at the top, followed
|
|
126
|
+
shows the `added`, `removed`, `moved` and `changed` frame counts (`data.review`) at the top, followed
|
|
124
127
|
by each affected frame in both themes with before, after and difference side by side. Existing
|
|
125
128
|
frames require exact pixels and size. New part Frames can declare `parent` and use
|
|
126
129
|
consumer `diff.thresholds`; a `structural` batch requires full existing-frame coverage
|
|
@@ -197,7 +200,7 @@ adg serve --port 4310
|
|
|
197
200
|
|
|
198
201
|
Root commands output JSON. `--state-dir <path>` isolates registry and preferences. Scans run on add and explicit CLI/web rescan only. Depth defaults to 2 and accepts 0–3; hidden directories, node_modules, symlinks and Git worktrees (`.git` is a file) are skipped. Only directories containing `adg.config.mjs`, `.js` or `.ts` are projects. TypeScript configs load through esbuild.
|
|
199
202
|
|
|
200
|
-
The hub binds 127.0.0.1. `GET /api/projects` returns name, path, design directory, stable slug and `/p/<slug>/` route, branch, short HEAD, last design commit time and dirty flag, source count and version compatibility. `frameCount` is null until an active viewer has built every source, then reports the exact count. Config errors are returned per project. `GET /api/roots` lists roots; `POST /api/rescan` rescans registered roots with no path input. Project viewers start on demand and stop after five idle minutes; an open SSE stream keeps a viewer active. The
|
|
203
|
+
The hub binds 127.0.0.1. `GET /api/projects` returns name, path, design directory, stable slug and `/p/<slug>/` route, branch, short HEAD, last design commit time and dirty flag, source count and version compatibility. `frameCount` is null until an active viewer has built every source, then reports the exact count. Config errors are returned per project. `GET /api/roots` lists roots; `POST /api/rescan` rescans registered roots with no path input. Project viewers start on demand and stop after five idle minutes; an open SSE stream keeps a viewer active. The hub home lists registered projects and live instances, adding instant search once five or more destinations exist.
|
|
201
204
|
|
|
202
205
|
### Access keys and instances
|
|
203
206
|
|
|
@@ -209,7 +212,7 @@ adg serve --rotate-key # Replace the key and exit
|
|
|
209
212
|
adg serve --rotate-key --print-key # Replace and print it
|
|
210
213
|
```
|
|
211
214
|
|
|
212
|
-
Rotation applies to new requests in a running hub immediately. Existing streams end when disconnected. Open the hub or a canonical viewer URL with `?key=adg_...` once: the public HTML/JS shell stores the key in localStorage (`adg-key`) and removes
|
|
215
|
+
Rotation applies to new requests in a running hub immediately. Existing streams end when disconnected. Open the hub or a canonical viewer URL with `?key=adg_...` once, or paste the key (or `?key=` URL) directly into the 401 access card: the public HTML/JS shell stores the key in localStorage (`adg-key`) and removes any URL parameter using history.replaceState. There is no cookie or authentication redirect. Shells contain no project data. Data requests use `Authorization: Bearer <key>`; the server also accepts `X-ADG-Key` and `?key=`. SSE uses a query key. Frames, SVGs and artwork are fetched with headers and become self-contained blob/data previews. Missing or invalid credentials return JSON 401 and the shell shows the 401 key-entry card.
|
|
213
216
|
|
|
214
217
|
`adg open` registers itself in `<state>/instances/<id>.json` and removes its record on exit, independently of whether a hub is running. `GET /api/health` returns `{ id, capabilities: { keyAuth: 1 } }`. `GET /api/instances` checks PID liveness and the health ID, pruning dead or mismatched records. An alive PID with missing health or a viewer without the key-auth capability remains listed as not proxyable. Records include pid, port, directory, project name, branch, worktree flag, start time and ADG version.
|
|
215
218
|
|
|
@@ -245,12 +248,22 @@ The proxy_pass has no URI suffix; do not strip `/p/<slug>/` or `/i/<id>/`. Disab
|
|
|
245
248
|
### macOS resident service
|
|
246
249
|
|
|
247
250
|
```sh
|
|
248
|
-
adg service install [--port 4310] [--state-dir /absolute/state/path]
|
|
251
|
+
adg service install [--port 4310] [--state-dir /absolute/state/path] [--public-origin https://design.example.com]
|
|
249
252
|
adg service status
|
|
250
253
|
adg service logs
|
|
251
254
|
adg service uninstall
|
|
252
255
|
```
|
|
253
256
|
|
|
254
|
-
The LaunchAgent `org.agent-design-gallery.hub` starts the resident hub at login with RunAtLoad and keeps it running with KeepAlive. It binds loopback and uses the same registry/key and auth contract as `adg serve`. Installation records absolute Node and CLI paths in `~/Library/LaunchAgents/org.agent-design-gallery.hub.plist`, so launchd needs no shell PATH. Reinstall after moving the CLI or replacing the recorded Node installation.
|
|
257
|
+
The LaunchAgent `org.agent-design-gallery.hub` starts the resident hub at login with RunAtLoad and keeps it running with KeepAlive. It binds loopback and uses the same registry/key and auth contract as `adg serve`. Installation records absolute Node and CLI paths in `~/Library/LaunchAgents/org.agent-design-gallery.hub.plist`, so launchd needs no shell PATH. Reinstall after moving the CLI or replacing the recorded Node installation. The public origin sets the base for comment links and is retained on subsequent installs.
|
|
255
258
|
|
|
256
259
|
`status` prints JSON with installed/loaded state, PID, plist and log paths. `logs` prints the last 200 lines of each log. stdout and stderr go to `service.stdout.log` and `service.stderr.log` in the state directory. After an install with a custom state directory, status/logs/uninstall recover that directory from the plist when no override is given. Uninstall unloads the job and removes its plist, retaining registry, key, preferences and logs. Service commands on other platforms return an explicit unsupported error; `adg serve` remains available there.
|
|
260
|
+
|
|
261
|
+
### Review handoff
|
|
262
|
+
|
|
263
|
+
`adg review` compares the resolved Git base against the current working tree and writes one artifact. In HTML, frames are grouped by direct and inherited change. Each inherited group starts with the median-area representative and its outliers, and expands to show every member. Before and After are rendered as native document content; the Difference pane shows the pixel diff. Click a preview to enlarge it or a frame title to open its source on a registered ADG board. With `--format=png`, the artifact is a static summary with up to 12 image cards and an omitted-frame count when applicable.
|
|
264
|
+
|
|
265
|
+
The default hybrid pass uses equal rendered structure to skip screenshots for supported frames, and runs the pixel comparison for the rest. Use `adg review --exact` when pixel-equivalent review coverage is required. `adg diff` exposes exact comparison artifacts and verdicts for automation.
|
|
266
|
+
|
|
267
|
+
`adg check` emits non-failing chapter warnings for component/module sources outside
|
|
268
|
+
`gallery.json` chapters (`CHAPTER_SOURCES_UNASSIGNED`) and chapters above 12 sources
|
|
269
|
+
(`CHAPTER_TOO_LARGE`). Organize chapters by feature, usually 3 to 12 sources each.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whzxc/agent-design-gallery",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Local TSX design toolkit and SVG viewer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"prepack": "node tooling/package.mjs"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
+
"@babel/parser": "7.29.11",
|
|
35
36
|
"css-tree": "3.1.0",
|
|
36
37
|
"entities": "9.0.0",
|
|
37
38
|
"esbuild": "0.28.2",
|
package/public/access.css
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
.access-shell { position:fixed; inset:0; display:flex; flex-direction:column; padding:12px; background:var(--canvas); color:var(--text); font:
|
|
1
|
+
.access-shell { position:fixed; inset:0; display:flex; flex-direction:column; padding:12px; background:var(--canvas); color:var(--text); font:var(--text-body)/1.5 var(--font-ui); overflow:auto; }
|
|
2
2
|
.access-shell * { box-sizing:border-box; }
|
|
3
|
+
.access-shell [hidden] { display:none!important; }
|
|
3
4
|
.access-brand { align-self:flex-start; display:flex; align-items:center; height:44px; padding:6px 14px; border-radius:var(--radius-panel); background:var(--surface); box-shadow:var(--shadow-float); font-size:var(--text-section); font-weight:650; }
|
|
4
5
|
.access-center { display:flex; flex:1; align-items:center; justify-content:center; }
|
|
5
6
|
.access-card { width:360px; max-width:100%; padding:24px; display:flex; flex-direction:column; gap:20px; background:var(--surface); border-radius:var(--radius-panel); box-shadow:var(--shadow-float); }
|
|
6
7
|
.access-code { display:flex; align-items:center; justify-content:space-between; color:var(--text-tertiary); }
|
|
7
|
-
.access-code span { font:
|
|
8
|
+
.access-code span { font:var(--text-meta)/1.5 var(--font-mono); }
|
|
8
9
|
.access-copy { display:flex; flex-direction:column; gap:8px; }
|
|
9
10
|
.access-copy h1 { margin:0; font-size:var(--text-title); font-weight:650; line-height:1.5; }
|
|
10
11
|
.access-copy p { margin:0; color:var(--text-secondary); }
|
|
12
|
+
.access-form { display:flex; flex-direction:column; gap:10px; }
|
|
13
|
+
.access-field-row { display:flex; gap:8px; }
|
|
14
|
+
.access-input { flex:1; min-width:0; height:var(--field-height); padding:0 10px; border:1px solid var(--border); border-radius:var(--radius-field); background:var(--surface-sunken); color:var(--text); font:var(--text-meta)/1.2 var(--font-mono); }
|
|
15
|
+
.access-input::placeholder { color:var(--text-tertiary); opacity:1; }
|
|
16
|
+
.access-input:focus-visible { background:var(--surface); outline:1px solid var(--accent); outline-offset:-1px; }
|
|
17
|
+
.access-input[aria-invalid="true"] { border-color:var(--danger); }
|
|
18
|
+
.access-submit { flex:none; height:var(--field-height); padding:0 14px; border:0; border-radius:var(--radius-field); background:var(--accent); color:var(--on-accent); font:550 var(--text-body)/1 var(--font-ui); cursor:pointer; }
|
|
19
|
+
.access-submit:hover:not(:disabled) { filter:brightness(.94); }
|
|
20
|
+
.access-submit:focus-visible { outline:1px solid var(--accent); outline-offset:2px; }
|
|
21
|
+
.access-submit:disabled { opacity:.55; cursor:default; }
|
|
22
|
+
.access-error { margin:0; color:var(--danger); font-size:var(--text-meta); }
|
|
23
|
+
.access-hint { align-self:flex-start; padding:3px 8px; border-radius:var(--radius-keycap, 6px); background:var(--surface-sunken); color:var(--text-secondary); font:var(--text-caption)/1.4 var(--font-mono); user-select:all; }
|