actual-css 0.15.1 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -0
- package/README.md +10 -7
- package/components.json +46 -2
- package/dist/actual.full.css +129 -13
- package/dist/actual.full.js +1 -1
- package/dist/actual.full.min.css +1 -1
- package/docs/design-notes/enhancement-contract.md +11 -3
- package/docs/design-notes/tokens.md +2 -0
- package/docs/pages/components/accordion.md +5 -0
- package/docs/pages/components/avatar.md +10 -0
- package/docs/pages/components/bleed.md +4 -0
- package/docs/pages/components/card.md +6 -0
- package/docs/pages/components/chat.md +20 -0
- package/docs/pages/components/dialog.md +26 -0
- package/docs/pages/components/rating.md +29 -5
- package/docs/pages/components/steps.md +5 -3
- package/docs/pages/enhancements/status-bar.md +1 -0
- package/docs/pages/examples/overview.md +2 -0
- package/docs/pages/forms/choice-cards.md +2 -1
- package/docs/pages/forms/date-picker.md +6 -0
- package/docs/pages/forms/overview.md +1 -0
- package/docs/pages/forms/sticky-actions.md +2 -0
- package/docs/pages/foundations/theming.md +19 -3
- package/docs/pages/guides/introduction.md +1 -1
- package/docs/pages/guides/progressive-enhancement.md +22 -0
- package/docs/pages/guides/upgrading.md +2 -2
- package/docs/pages/layout/choosing.md +18 -4
- package/docs/pages/layout/scroll-snap.md +69 -2
- package/llms.txt +2 -1
- package/package.json +5 -3
- package/skills/actual-css/SKILL.md +5 -4
- package/skills/actual-css/references/api-and-vocabulary.md +2 -1
- package/src/css/components/avatar.css +4 -2
- package/src/css/components/card.css +1 -1
- package/src/css/components/chat.css +5 -1
- package/src/css/components/menu.css +2 -0
- package/src/css/components/rating.css +66 -0
- package/src/css/components/status-bar.css +4 -2
- package/src/css/core/theme.css +4 -1
- package/src/css/core/tokens.css +8 -2
- package/src/css/forms/choice-card.css +5 -2
- package/src/css/forms/form.css +17 -1
- package/src/css/forms/range.css +11 -1
- package/src/css/layout/measure.css +2 -0
- package/src/js/dialog.js +40 -9
- package/src/js/enhance.js +16 -3
- package/src/js/selectors.js +10 -2
- package/src/js/status.js +71 -10
- package/tokens.json +117 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,51 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.16.1] - 2026-11-04
|
|
6
|
+
### Fixed
|
|
7
|
+
- `.field-group.flush`: the legend takes the `.field-label` size (`--control-font-size`) instead of the framed legend's `--font-size-xs`.
|
|
8
|
+
- `status.js`: the status bar rises above a `.form-actions.sticky` bar docked to the bottom edge instead of covering its submit button.
|
|
9
|
+
- `.choice-card` and `.choice-card.chip`: hover preserves the selected border and only applies on devices that support hover.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- `.chat`: `--chat-avatar-align` places the avatar beside the header (`start`) instead of the last line (`end`, default).
|
|
13
|
+
- `demo/templates/playful-faq.html`: a separated accordion with a pill marker and a CSS-only open/close animation, linked from the accordion docs.
|
|
14
|
+
- `demo/templates/card-rail.html`: one list as a grid on wide and a `.scroll-snap` rail with CSS scroll markers on narrow, documented in the scroll-snap docs.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- `date-fields.html`, `contrast-contexts.html`, `neo-brutalist.html`: `@lekoala/date-picker` 0.6.1; `date-fields.html` shows its locale entry mask.
|
|
18
|
+
|
|
19
|
+
## [0.16.0] - 2026-10-29
|
|
20
|
+
### Fixed
|
|
21
|
+
- `dialog.js`: dialogs inside custom elements or shadow roots keep their native lifecycle and commands unless delegated with `data-enhance="dialog"` or the dialog API.
|
|
22
|
+
- `.range`: the `[dir="rtl"]` fill fallback is its own rule, so browsers without `:dir()` keep it.
|
|
23
|
+
- `.range`: an LTR island inside an RTL region fills from the left.
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
- `enhance()` accepts a third `{ accept }` argument to filter lifecycle membership across subtree moves.
|
|
27
|
+
- `components.json`: a `docs` URL per component, read from the CSS `Docs:` header (tab → `enhancements/tabs.html`, join → `forms/joined-controls.html`).
|
|
28
|
+
- `actual-css/tokens.json`: the public global tokens, generated with `components.json` and verified by `check:catalog`.
|
|
29
|
+
- `menu.css`: `Docs:` header pointing at the flyout page.
|
|
30
|
+
- `.field-group.flush`: a fieldset without its frame, the legend as a plain label above the options.
|
|
31
|
+
- `.rating[role="img"]`: read-only rating display on one element, with `--rating-value` (fractions draw partial stars) and `--rating-max`.
|
|
32
|
+
- Avatar docs: an initials trigger keeps its initials in the accessible name (WCAG 2.5.3).
|
|
33
|
+
- Card docs: group a title and its subtitle in an `<hgroup>` inside the header slot, which splits direct children.
|
|
34
|
+
- Progressive enhancement guide: which runtime entry to load with a bundler, per enhancer, or without a build step.
|
|
35
|
+
- Steps docs: a word wider than its share breaks inside the word; `--step-min` keeps whole words.
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
- `.avatar-stack`: default `--avatar-stack-overlap` is an eighth of the size instead of a quarter, so two-letter initials stay readable.
|
|
39
|
+
- Choice cards docs: the first demo groups cards in `.field-group.flush`.
|
|
40
|
+
- `package.json#homepage` points at the docs site (`/actual-css/site/`) instead of the redirect page.
|
|
41
|
+
- `tokens.css` and `theme.css` headers list their internal tokens in an `Internal:` section; `--surface-link` is internal.
|
|
42
|
+
- `generate:catalog` fails when a file outside core lists a public global token under `Internal:` without a `(local value …)` note.
|
|
43
|
+
- Bun 1.4.4 (`packageManager`); CI reads the version from there.
|
|
44
|
+
- `data-grid.html`: `data-grid-component` 3.8.0, with row details in the component's own modal dialog.
|
|
45
|
+
- `data-grid.html`: sets the `--modal-size` and `--modal-pad` hooks the data-grid theme reads for that dialog.
|
|
46
|
+
- `data-grid.html`: grid buttons use `.btn.surface` instead of `.btn.outline`, so pagination and row actions keep the theme's light border.
|
|
47
|
+
- `date-fields.html`, `contrast-contexts.html`, `neo-brutalist.html`: `@lekoala/date-picker` 0.6.0.
|
|
48
|
+
- `combobox.html`, `contrast-contexts.html`, `neo-brutalist.html`: `@lekoala/combobox` 0.8.0.
|
|
49
|
+
|
|
5
50
|
## [0.15.1] - 2026-10-26
|
|
6
51
|
### Changed
|
|
7
52
|
- Reset: `-webkit-tap-highlight-color: transparent` on `html`, so the rectangular native tap flash no longer covers rounded controls.
|
package/README.md
CHANGED
|
@@ -7,10 +7,13 @@
|
|
|
7
7
|
|
|
8
8
|
Plain CSS component framework for new projects. Semantic classes, shared variants, small tokens, theme hooks, and progressive enhancement.
|
|
9
9
|
|
|
10
|
-
Documentation: <https://lekoala.github.io/actual-css/>
|
|
10
|
+
Documentation: <https://lekoala.github.io/actual-css/site/>
|
|
11
11
|
|
|
12
12
|
Actual CSS claims a documented set of global class names; the package publishes
|
|
13
|
-
it as [`actual-css/reserved-classes.json`](reserved-classes.json).
|
|
13
|
+
it as [`actual-css/reserved-classes.json`](reserved-classes.json). Tools can
|
|
14
|
+
also read [`actual-css/components.json`](components.json) (components, imports,
|
|
15
|
+
hooks, docs URLs) and [`actual-css/tokens.json`](tokens.json) (public global
|
|
16
|
+
tokens).
|
|
14
17
|
|
|
15
18
|
For existing projects: use cascade layers, import order, or your own build-time
|
|
16
19
|
prefix transform.
|
|
@@ -64,7 +67,7 @@ size is not worth optimizing:
|
|
|
64
67
|
```
|
|
65
68
|
|
|
66
69
|
```html
|
|
67
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/actual-css@0.
|
|
70
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/actual-css@0.16/dist/actual.full.min.css">
|
|
68
71
|
```
|
|
69
72
|
|
|
70
73
|
## Usage
|
|
@@ -137,7 +140,7 @@ registries:
|
|
|
137
140
|
* **Full runtime, zero-config** — every built-in enhancer, compiled:
|
|
138
141
|
|
|
139
142
|
```html
|
|
140
|
-
<script src="https://cdn.jsdelivr.net/npm/actual-css@0.
|
|
143
|
+
<script src="https://cdn.jsdelivr.net/npm/actual-css@0.16/dist/actual.full.js" type="module"></script>
|
|
141
144
|
```
|
|
142
145
|
|
|
143
146
|
* **Your own build** — copy the package's `src/js/full.js` as your entry,
|
|
@@ -179,8 +182,8 @@ Actual CSS is before 1.0:
|
|
|
179
182
|
* A patch release (`0.12.0` → `0.12.1`) keeps every class and hook. It fixes
|
|
180
183
|
bugs and may add hooks, so a fix can still move a rendering by a few pixels.
|
|
181
184
|
|
|
182
|
-
The floating `actual-css@0.
|
|
183
|
-
version (`actual-css@0.
|
|
185
|
+
The floating `actual-css@0.16` CDN path takes patches automatically. Pin the exact
|
|
186
|
+
version (`actual-css@0.16.0`) when the rendering must not change without a
|
|
184
187
|
review.
|
|
185
188
|
|
|
186
189
|
## Browser support
|
|
@@ -229,7 +232,7 @@ MIT
|
|
|
229
232
|
|
|
230
233
|
## Docs
|
|
231
234
|
|
|
232
|
-
The documentation site is published at <https://lekoala.github.io/actual-css/>.
|
|
235
|
+
The documentation site is published at <https://lekoala.github.io/actual-css/site/>.
|
|
233
236
|
It is generated from the source pages under [`docs/pages/`](docs/pages/);
|
|
234
237
|
in a clone, run `bun run build:all` (or `build:dist`, `build:js` and
|
|
235
238
|
`build:docs`) and open `site/index.html`.
|
package/components.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"name": "accordion",
|
|
4
4
|
"source": "src/css/components/accordion.css",
|
|
5
5
|
"cssImport": "actual-css/css/components/accordion",
|
|
6
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/accordion.html",
|
|
6
7
|
"classes": [
|
|
7
8
|
"accordion",
|
|
8
9
|
"flush",
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
"name": "alert",
|
|
30
31
|
"source": "src/css/components/alert.css",
|
|
31
32
|
"cssImport": "actual-css/css/components/alert",
|
|
33
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/alert.html",
|
|
32
34
|
"classes": [
|
|
33
35
|
"admonition",
|
|
34
36
|
"alert",
|
|
@@ -56,6 +58,7 @@
|
|
|
56
58
|
"name": "app-nav",
|
|
57
59
|
"source": "src/css/components/app-nav.css",
|
|
58
60
|
"cssImport": "actual-css/css/components/app-nav",
|
|
61
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/app-navigation.html",
|
|
59
62
|
"classes": [
|
|
60
63
|
"app-nav"
|
|
61
64
|
],
|
|
@@ -78,6 +81,7 @@
|
|
|
78
81
|
"name": "avatar",
|
|
79
82
|
"source": "src/css/components/avatar.css",
|
|
80
83
|
"cssImport": "actual-css/css/components/avatar",
|
|
84
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/avatar.html",
|
|
81
85
|
"classes": [
|
|
82
86
|
"avatar",
|
|
83
87
|
"avatar-stack"
|
|
@@ -110,6 +114,7 @@
|
|
|
110
114
|
"name": "badge",
|
|
111
115
|
"source": "src/css/components/badge.css",
|
|
112
116
|
"cssImport": "actual-css/css/components/badge",
|
|
117
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/badge.html",
|
|
113
118
|
"classes": [
|
|
114
119
|
"badge"
|
|
115
120
|
],
|
|
@@ -147,6 +152,7 @@
|
|
|
147
152
|
"name": "bleed",
|
|
148
153
|
"source": "src/css/components/bleed.css",
|
|
149
154
|
"cssImport": "actual-css/css/components/bleed",
|
|
155
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/bleed.html",
|
|
150
156
|
"classes": [
|
|
151
157
|
"bleed",
|
|
152
158
|
"stack"
|
|
@@ -162,6 +168,7 @@
|
|
|
162
168
|
"name": "breadcrumb",
|
|
163
169
|
"source": "src/css/components/breadcrumb.css",
|
|
164
170
|
"cssImport": "actual-css/css/components/breadcrumb",
|
|
171
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/breadcrumb.html",
|
|
165
172
|
"classes": [
|
|
166
173
|
"breadcrumb"
|
|
167
174
|
],
|
|
@@ -178,6 +185,7 @@
|
|
|
178
185
|
"name": "busy",
|
|
179
186
|
"source": "src/css/components/busy.css",
|
|
180
187
|
"cssImport": "actual-css/css/components/busy",
|
|
188
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/spinner.html",
|
|
181
189
|
"publicHooks": [
|
|
182
190
|
"--busy-overlay-bg"
|
|
183
191
|
],
|
|
@@ -197,6 +205,7 @@
|
|
|
197
205
|
"name": "button",
|
|
198
206
|
"source": "src/css/components/button.css",
|
|
199
207
|
"cssImport": "actual-css/css/components/button",
|
|
208
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/button.html",
|
|
200
209
|
"classes": [
|
|
201
210
|
"btn",
|
|
202
211
|
"ghost",
|
|
@@ -237,6 +246,7 @@
|
|
|
237
246
|
"name": "card",
|
|
238
247
|
"source": "src/css/components/card.css",
|
|
239
248
|
"cssImport": "actual-css/css/components/card",
|
|
249
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/card.html",
|
|
240
250
|
"classes": [
|
|
241
251
|
"card",
|
|
242
252
|
"raised",
|
|
@@ -260,6 +270,7 @@
|
|
|
260
270
|
"name": "chat",
|
|
261
271
|
"source": "src/css/components/chat.css",
|
|
262
272
|
"cssImport": "actual-css/css/components/chat",
|
|
273
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/chat.html",
|
|
263
274
|
"classes": [
|
|
264
275
|
"chat",
|
|
265
276
|
"chat-avatar",
|
|
@@ -271,7 +282,8 @@
|
|
|
271
282
|
],
|
|
272
283
|
"publicHooks": [
|
|
273
284
|
"--chat-gap",
|
|
274
|
-
"--chat-max-size"
|
|
285
|
+
"--chat-max-size",
|
|
286
|
+
"--chat-avatar-align"
|
|
275
287
|
],
|
|
276
288
|
"internalHooks": [
|
|
277
289
|
"--chat-bubble-bg",
|
|
@@ -283,6 +295,7 @@
|
|
|
283
295
|
"name": "close",
|
|
284
296
|
"source": "src/css/components/close.css",
|
|
285
297
|
"cssImport": "actual-css/css/components/close",
|
|
298
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/close.html",
|
|
286
299
|
"classes": [
|
|
287
300
|
"close"
|
|
288
301
|
],
|
|
@@ -304,6 +317,7 @@
|
|
|
304
317
|
"name": "data-list",
|
|
305
318
|
"source": "src/css/components/data-list.css",
|
|
306
319
|
"cssImport": "actual-css/css/components/data-list",
|
|
320
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/data-list.html",
|
|
307
321
|
"classes": [
|
|
308
322
|
"data-list",
|
|
309
323
|
"stacked"
|
|
@@ -313,6 +327,7 @@
|
|
|
313
327
|
"name": "drawer",
|
|
314
328
|
"source": "src/css/components/drawer.css",
|
|
315
329
|
"cssImport": "actual-css/css/components/drawer",
|
|
330
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/drawer.html",
|
|
316
331
|
"classes": [
|
|
317
332
|
"drawer",
|
|
318
333
|
"is-static"
|
|
@@ -336,6 +351,7 @@
|
|
|
336
351
|
"name": "fab",
|
|
337
352
|
"source": "src/css/components/fab.css",
|
|
338
353
|
"cssImport": "actual-css/css/components/fab",
|
|
354
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/fab.html",
|
|
339
355
|
"classes": [
|
|
340
356
|
"fab",
|
|
341
357
|
"fab-action",
|
|
@@ -361,6 +377,7 @@
|
|
|
361
377
|
"name": "flyout",
|
|
362
378
|
"source": "src/css/components/flyout.css",
|
|
363
379
|
"cssImport": "actual-css/css/components/flyout",
|
|
380
|
+
"docs": "https://lekoala.github.io/actual-css/site/enhancements/flyout.html",
|
|
364
381
|
"classes": [
|
|
365
382
|
"flyout",
|
|
366
383
|
"flyout-trigger",
|
|
@@ -391,6 +408,7 @@
|
|
|
391
408
|
"name": "indicator",
|
|
392
409
|
"source": "src/css/components/indicator.css",
|
|
393
410
|
"cssImport": "actual-css/css/components/indicator",
|
|
411
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/indicator.html",
|
|
394
412
|
"classes": [
|
|
395
413
|
"bottom",
|
|
396
414
|
"indicator",
|
|
@@ -406,6 +424,7 @@
|
|
|
406
424
|
"name": "join",
|
|
407
425
|
"source": "src/css/components/join.css",
|
|
408
426
|
"cssImport": "actual-css/css/components/join",
|
|
427
|
+
"docs": "https://lekoala.github.io/actual-css/site/forms/joined-controls.html",
|
|
409
428
|
"classes": [
|
|
410
429
|
"circle",
|
|
411
430
|
"join",
|
|
@@ -428,6 +447,7 @@
|
|
|
428
447
|
"name": "key",
|
|
429
448
|
"source": "src/css/components/key.css",
|
|
430
449
|
"cssImport": "actual-css/css/components/key",
|
|
450
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/key.html",
|
|
431
451
|
"classes": [
|
|
432
452
|
"key"
|
|
433
453
|
]
|
|
@@ -436,6 +456,7 @@
|
|
|
436
456
|
"name": "list",
|
|
437
457
|
"source": "src/css/components/list.css",
|
|
438
458
|
"cssImport": "actual-css/css/components/list",
|
|
459
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/list.html",
|
|
439
460
|
"classes": [
|
|
440
461
|
"list",
|
|
441
462
|
"list-item",
|
|
@@ -464,6 +485,7 @@
|
|
|
464
485
|
"name": "menu",
|
|
465
486
|
"source": "src/css/components/menu.css",
|
|
466
487
|
"cssImport": "actual-css/css/components/menu",
|
|
488
|
+
"docs": "https://lekoala.github.io/actual-css/site/enhancements/flyout.html",
|
|
467
489
|
"classes": [
|
|
468
490
|
"menu",
|
|
469
491
|
"menu-item",
|
|
@@ -493,6 +515,7 @@
|
|
|
493
515
|
"name": "meter",
|
|
494
516
|
"source": "src/css/components/meter.css",
|
|
495
517
|
"cssImport": "actual-css/css/components/meter",
|
|
518
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/meter.html",
|
|
496
519
|
"classes": [
|
|
497
520
|
"meter"
|
|
498
521
|
],
|
|
@@ -506,6 +529,7 @@
|
|
|
506
529
|
"name": "modal",
|
|
507
530
|
"source": "src/css/components/modal.css",
|
|
508
531
|
"cssImport": "actual-css/css/components/modal",
|
|
532
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/dialog.html",
|
|
509
533
|
"classes": [
|
|
510
534
|
"dialog-icon",
|
|
511
535
|
"had-scrollbar",
|
|
@@ -538,6 +562,7 @@
|
|
|
538
562
|
"name": "navbar",
|
|
539
563
|
"source": "src/css/components/navbar.css",
|
|
540
564
|
"cssImport": "actual-css/css/components/navbar",
|
|
565
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/navbar.html",
|
|
541
566
|
"classes": [
|
|
542
567
|
"nav-link",
|
|
543
568
|
"nav-list",
|
|
@@ -563,6 +588,7 @@
|
|
|
563
588
|
"name": "pagination",
|
|
564
589
|
"source": "src/css/components/pagination.css",
|
|
565
590
|
"cssImport": "actual-css/css/components/pagination",
|
|
591
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/pagination.html",
|
|
566
592
|
"classes": [
|
|
567
593
|
"pagination"
|
|
568
594
|
],
|
|
@@ -574,6 +600,7 @@
|
|
|
574
600
|
"name": "progress",
|
|
575
601
|
"source": "src/css/components/progress.css",
|
|
576
602
|
"cssImport": "actual-css/css/components/progress",
|
|
603
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/progress.html",
|
|
577
604
|
"classes": [
|
|
578
605
|
"progress"
|
|
579
606
|
],
|
|
@@ -590,6 +617,7 @@
|
|
|
590
617
|
"name": "rating",
|
|
591
618
|
"source": "src/css/components/rating.css",
|
|
592
619
|
"cssImport": "actual-css/css/components/rating",
|
|
620
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/rating.html",
|
|
593
621
|
"classes": [
|
|
594
622
|
"rating"
|
|
595
623
|
],
|
|
@@ -598,7 +626,13 @@
|
|
|
598
626
|
"--rating-gap",
|
|
599
627
|
"--rating-color",
|
|
600
628
|
"--rating-empty",
|
|
601
|
-
"--rating-star"
|
|
629
|
+
"--rating-star",
|
|
630
|
+
"--rating-value",
|
|
631
|
+
"--rating-max"
|
|
632
|
+
],
|
|
633
|
+
"internalHooks": [
|
|
634
|
+
"--rating-fill",
|
|
635
|
+
"--rating-direction"
|
|
602
636
|
],
|
|
603
637
|
"states": [
|
|
604
638
|
"checked",
|
|
@@ -609,6 +643,7 @@
|
|
|
609
643
|
"name": "scrollspy",
|
|
610
644
|
"source": "src/css/components/scrollspy.css",
|
|
611
645
|
"cssImport": "actual-css/css/components/scrollspy",
|
|
646
|
+
"docs": "https://lekoala.github.io/actual-css/site/enhancements/scrollspy.html",
|
|
612
647
|
"classes": [
|
|
613
648
|
"scrollspy"
|
|
614
649
|
],
|
|
@@ -624,6 +659,7 @@
|
|
|
624
659
|
"name": "segmented",
|
|
625
660
|
"source": "src/css/components/segmented.css",
|
|
626
661
|
"cssImport": "actual-css/css/components/segmented",
|
|
662
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/segmented.html",
|
|
627
663
|
"classes": [
|
|
628
664
|
"segment",
|
|
629
665
|
"segmented"
|
|
@@ -648,6 +684,7 @@
|
|
|
648
684
|
"name": "skeleton",
|
|
649
685
|
"source": "src/css/components/skeleton.css",
|
|
650
686
|
"cssImport": "actual-css/css/components/skeleton",
|
|
687
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/skeleton.html",
|
|
651
688
|
"classes": [
|
|
652
689
|
"skeleton"
|
|
653
690
|
],
|
|
@@ -663,6 +700,7 @@
|
|
|
663
700
|
"name": "spinner",
|
|
664
701
|
"source": "src/css/components/spinner.css",
|
|
665
702
|
"cssImport": "actual-css/css/components/spinner",
|
|
703
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/spinner.html",
|
|
666
704
|
"classes": [
|
|
667
705
|
"spinner"
|
|
668
706
|
],
|
|
@@ -677,6 +715,7 @@
|
|
|
677
715
|
"name": "status-bar",
|
|
678
716
|
"source": "src/css/components/status-bar.css",
|
|
679
717
|
"cssImport": "actual-css/css/components/status-bar",
|
|
718
|
+
"docs": "https://lekoala.github.io/actual-css/site/enhancements/status-bar.html",
|
|
680
719
|
"classes": [
|
|
681
720
|
"is-open",
|
|
682
721
|
"status-bar"
|
|
@@ -691,6 +730,7 @@
|
|
|
691
730
|
"name": "steps",
|
|
692
731
|
"source": "src/css/components/steps.css",
|
|
693
732
|
"cssImport": "actual-css/css/components/steps",
|
|
733
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/steps.html",
|
|
694
734
|
"classes": [
|
|
695
735
|
"steps",
|
|
696
736
|
"steps-horizontal",
|
|
@@ -740,6 +780,7 @@
|
|
|
740
780
|
"name": "tab",
|
|
741
781
|
"source": "src/css/components/tab.css",
|
|
742
782
|
"cssImport": "actual-css/css/components/tab",
|
|
783
|
+
"docs": "https://lekoala.github.io/actual-css/site/enhancements/tabs.html",
|
|
743
784
|
"classes": [
|
|
744
785
|
"tab",
|
|
745
786
|
"tabs",
|
|
@@ -777,6 +818,7 @@
|
|
|
777
818
|
"name": "table",
|
|
778
819
|
"source": "src/css/components/table.css",
|
|
779
820
|
"cssImport": "actual-css/css/components/table",
|
|
821
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/table.html",
|
|
780
822
|
"classes": [
|
|
781
823
|
"table",
|
|
782
824
|
"table-wrap"
|
|
@@ -792,6 +834,7 @@
|
|
|
792
834
|
"name": "timeline",
|
|
793
835
|
"source": "src/css/components/timeline.css",
|
|
794
836
|
"cssImport": "actual-css/css/components/timeline",
|
|
837
|
+
"docs": "https://lekoala.github.io/actual-css/site/components/timeline.html",
|
|
795
838
|
"classes": [
|
|
796
839
|
"timeline"
|
|
797
840
|
],
|
|
@@ -820,6 +863,7 @@
|
|
|
820
863
|
"name": "tooltip",
|
|
821
864
|
"source": "src/css/components/tooltip.css",
|
|
822
865
|
"cssImport": "actual-css/css/components/tooltip",
|
|
866
|
+
"docs": "https://lekoala.github.io/actual-css/site/enhancements/tooltip.html",
|
|
823
867
|
"classes": [
|
|
824
868
|
"tooltip"
|
|
825
869
|
],
|
package/dist/actual.full.css
CHANGED
|
@@ -66,8 +66,14 @@ select {
|
|
|
66
66
|
*
|
|
67
67
|
* Derived: "Theme-derived aliases" and "State tokens" reference intent and
|
|
68
68
|
* surface tokens and follow the theme; do not hard-code values into them.
|
|
69
|
-
*
|
|
70
|
-
*
|
|
69
|
+
*
|
|
70
|
+
* Every token declared here is listed in tokens.json except these, which
|
|
71
|
+
* components consume but authors do not set:
|
|
72
|
+
*
|
|
73
|
+
* Internal:
|
|
74
|
+
* --indicator-offset
|
|
75
|
+
* --indicator-ring
|
|
76
|
+
* --disabled-opacity
|
|
71
77
|
*
|
|
72
78
|
* Component-local hooks and internal state relays live with their
|
|
73
79
|
* components. See docs/pages/foundations/tokens.md for the public/internal
|
|
@@ -341,7 +347,10 @@ select {
|
|
|
341
347
|
* translucent surfaces overrides them with opaque values. --border-control is
|
|
342
348
|
* public too: the resting edge of a neutral control, apart from structural
|
|
343
349
|
* separators. --control-default-bg is the inherited resting field fill.
|
|
344
|
-
*
|
|
350
|
+
*
|
|
351
|
+
* Internal:
|
|
352
|
+
* --hgroup-gap
|
|
353
|
+
* --surface-link (link ink relay a painted surface sets; reset at boundaries)
|
|
345
354
|
*/
|
|
346
355
|
:root {
|
|
347
356
|
color-scheme: light dark;
|
|
@@ -2139,6 +2148,8 @@ small {
|
|
|
2139
2148
|
/* Readable content measure. Composes with .center for centering or with
|
|
2140
2149
|
margin-inline: auto for a one-off centered block.
|
|
2141
2150
|
*
|
|
2151
|
+
* Docs: docs/pages/utilities/list.md
|
|
2152
|
+
*
|
|
2142
2153
|
* Public hooks:
|
|
2143
2154
|
* --measure
|
|
2144
2155
|
*/
|
|
@@ -2165,7 +2176,7 @@ small {
|
|
|
2165
2176
|
* component cannot know whether its siblings are stacked or gridded.
|
|
2166
2177
|
*
|
|
2167
2178
|
* Public API: .field, .field-label, .field-help, .field-error, .field-group,
|
|
2168
|
-
* .required-mark.
|
|
2179
|
+
* .field-group.flush, .required-mark.
|
|
2169
2180
|
*
|
|
2170
2181
|
* Public hooks:
|
|
2171
2182
|
* --fieldset-legend-padding-inline
|
|
@@ -2203,6 +2214,22 @@ small {
|
|
|
2203
2214
|
font-size: var(--font-size-xs);
|
|
2204
2215
|
}
|
|
2205
2216
|
|
|
2217
|
+
/* Flush — the frame removed, for a group that already sits in a card or a
|
|
2218
|
+
form section. With no border to notch, the legend is a plain label above
|
|
2219
|
+
the options: no gutter, the .field label-to-control gap below it, and the
|
|
2220
|
+
.field label size — the small size only suits a legend set in a frame. */
|
|
2221
|
+
.field-group.flush {
|
|
2222
|
+
padding: 0;
|
|
2223
|
+
border: 0;
|
|
2224
|
+
border-radius: 0;
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
.field-group.flush > legend {
|
|
2228
|
+
margin-block-end: var(--space-10);
|
|
2229
|
+
padding-inline: 0;
|
|
2230
|
+
font-size: var(--control-font-size);
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2206
2233
|
.field-help {
|
|
2207
2234
|
color: var(--text-muted);
|
|
2208
2235
|
font-size: 0.875em;
|
|
@@ -3209,7 +3236,17 @@ small {
|
|
|
3209
3236
|
cursor: pointer;
|
|
3210
3237
|
}
|
|
3211
3238
|
|
|
3212
|
-
:
|
|
3239
|
+
/* Separate rules: a browser without :dir() drops a whole rule that names it,
|
|
3240
|
+
which took the [dir="rtl"] fallback with it. The :dir() pair outranks the
|
|
3241
|
+
fallback, so an LTR island inside an RTL region keeps filling from the left. */
|
|
3242
|
+
:where([dir="rtl"]) .range {
|
|
3243
|
+
--range-fill-from: to left;
|
|
3244
|
+
}
|
|
3245
|
+
|
|
3246
|
+
.range:dir(ltr) {
|
|
3247
|
+
--range-fill-from: to right;
|
|
3248
|
+
}
|
|
3249
|
+
|
|
3213
3250
|
.range:dir(rtl) {
|
|
3214
3251
|
--range-fill-from: to left;
|
|
3215
3252
|
}
|
|
@@ -3443,8 +3480,11 @@ small {
|
|
|
3443
3480
|
cursor: not-allowed;
|
|
3444
3481
|
}
|
|
3445
3482
|
|
|
3446
|
-
|
|
3447
|
-
|
|
3483
|
+
/* Touch can retain :hover after a tap; hover must never mask selection. */
|
|
3484
|
+
@media (hover: hover) {
|
|
3485
|
+
.choice-card:hover:not(:has(:disabled, :checked)) {
|
|
3486
|
+
--choice-card-border: var(--text-subtle);
|
|
3487
|
+
}
|
|
3448
3488
|
}
|
|
3449
3489
|
|
|
3450
3490
|
/* Checked border — shared by radio and checkbox */
|
|
@@ -5134,7 +5174,7 @@ a.badge[aria-disabled="true"] {
|
|
|
5134
5174
|
* Internal:
|
|
5135
5175
|
* --card-bg
|
|
5136
5176
|
* --card-fg
|
|
5137
|
-
* --heading
|
|
5177
|
+
* --heading (local value: the card's own ink for the global token)
|
|
5138
5178
|
* --busy-overlay-bg
|
|
5139
5179
|
* --surface-link
|
|
5140
5180
|
*/
|
|
@@ -6121,6 +6161,8 @@ picture.bleed > img {
|
|
|
6121
6161
|
/*
|
|
6122
6162
|
* Menu — action list primitive consumed by flyout and context-menu.
|
|
6123
6163
|
*
|
|
6164
|
+
* Docs: docs/pages/enhancements/flyout.md
|
|
6165
|
+
*
|
|
6124
6166
|
* Strict anatomy: .menu > li > .menu-item. Separators and section labels
|
|
6125
6167
|
* sit directly under .menu as siblings of <li>.
|
|
6126
6168
|
*
|
|
@@ -6940,7 +6982,8 @@ picture.bleed > img {
|
|
|
6940
6982
|
* Internal:
|
|
6941
6983
|
* --status-bg
|
|
6942
6984
|
* --status-fg
|
|
6943
|
-
* --status-viewport-offset (written by status.js while the bar is open
|
|
6985
|
+
* --status-viewport-offset (written by status.js while the bar is open: the
|
|
6986
|
+
* keyboard band plus any docked .form-actions.sticky bar)
|
|
6944
6987
|
*/
|
|
6945
6988
|
|
|
6946
6989
|
/* Intent boundary — inherited intents do not tint this component.
|
|
@@ -6956,7 +6999,8 @@ picture.bleed > img {
|
|
|
6956
6999
|
|
|
6957
7000
|
position: fixed;
|
|
6958
7001
|
/* Fixed positioning tracks the layout viewport, which the mobile software
|
|
6959
|
-
keyboard covers
|
|
7002
|
+
keyboard covers, and a docked .form-actions.sticky bar shares its bottom
|
|
7003
|
+
edge. status.js writes both occluded bands into the offset. */
|
|
6960
7004
|
inset-block-end: calc(var(--space-40) + var(--status-viewport-offset, 0px));
|
|
6961
7005
|
inset-inline: var(--space-40);
|
|
6962
7006
|
z-index: var(--z-status);
|
|
@@ -7187,9 +7231,11 @@ a.avatar[aria-disabled="true"] {
|
|
|
7187
7231
|
}
|
|
7188
7232
|
|
|
7189
7233
|
/* Avatar stack — explicit class for overlapping avatar groups.
|
|
7190
|
-
Does not rely on role="group" auto-detection.
|
|
7234
|
+
Does not rely on role="group" auto-detection.
|
|
7235
|
+
why an eighth: two-letter initials span most of the disc, so a quarter
|
|
7236
|
+
overlap (plus the ring) cut the second letter at every size. */
|
|
7191
7237
|
.avatar-stack {
|
|
7192
|
-
--avatar-stack-overlap: calc(var(--avatar-stack-size, 2.25rem) / -
|
|
7238
|
+
--avatar-stack-overlap: calc(var(--avatar-stack-size, 2.25rem) / -8);
|
|
7193
7239
|
--avatar-stack-ring: 2px;
|
|
7194
7240
|
|
|
7195
7241
|
display: inline-flex;
|
|
@@ -7345,6 +7391,7 @@ a.avatar[aria-disabled="true"] {
|
|
|
7345
7391
|
* Public hooks:
|
|
7346
7392
|
* --chat-gap
|
|
7347
7393
|
* --chat-max-size
|
|
7394
|
+
* --chat-avatar-align
|
|
7348
7395
|
*
|
|
7349
7396
|
* Internal:
|
|
7350
7397
|
* --chat-bubble-bg
|
|
@@ -7354,6 +7401,9 @@ a.avatar[aria-disabled="true"] {
|
|
|
7354
7401
|
.chat {
|
|
7355
7402
|
--chat-gap: var(--space-30);
|
|
7356
7403
|
--chat-max-size: min(85%, 40rem);
|
|
7404
|
+
/* end: the avatar sits beside the last line, as in messaging. start sets it
|
|
7405
|
+
beside the header, for long answers or comment threads with a footer. */
|
|
7406
|
+
--chat-avatar-align: end;
|
|
7357
7407
|
|
|
7358
7408
|
display: grid;
|
|
7359
7409
|
grid-auto-rows: min-content;
|
|
@@ -7372,7 +7422,7 @@ a.avatar[aria-disabled="true"] {
|
|
|
7372
7422
|
|
|
7373
7423
|
.chat-avatar {
|
|
7374
7424
|
grid-row: 1 / span 3;
|
|
7375
|
-
align-self:
|
|
7425
|
+
align-self: var(--chat-avatar-align);
|
|
7376
7426
|
}
|
|
7377
7427
|
|
|
7378
7428
|
.chat-start > .chat-avatar {
|
|
@@ -7589,12 +7639,22 @@ a.avatar[aria-disabled="true"] {
|
|
|
7589
7639
|
* fills preceding stars without reversing DOM or keyboard order. Forced
|
|
7590
7640
|
* colors restores the platform radio presentation.
|
|
7591
7641
|
*
|
|
7642
|
+
* Read-only display: .rating[role="img"] is one element with no inputs, named
|
|
7643
|
+
* by its aria-label. role="img" is the switch on purpose: an unnamed display
|
|
7644
|
+
* draws nothing rather than stars no assistive technology can read.
|
|
7645
|
+
*
|
|
7592
7646
|
* Public hooks:
|
|
7593
7647
|
* --rating-size
|
|
7594
7648
|
* --rating-gap
|
|
7595
7649
|
* --rating-color
|
|
7596
7650
|
* --rating-empty
|
|
7597
7651
|
* --rating-star
|
|
7652
|
+
* --rating-value (display: the shown value, fractions allowed)
|
|
7653
|
+
* --rating-max (display: the number of stars)
|
|
7654
|
+
*
|
|
7655
|
+
* Internal:
|
|
7656
|
+
* --rating-fill
|
|
7657
|
+
* --rating-direction
|
|
7598
7658
|
*/
|
|
7599
7659
|
:where(.rating) {
|
|
7600
7660
|
--intent: initial;
|
|
@@ -7664,6 +7724,49 @@ a.avatar[aria-disabled="true"] {
|
|
|
7664
7724
|
}
|
|
7665
7725
|
}
|
|
7666
7726
|
|
|
7727
|
+
/* Each star takes the same size + gap cell as a radio, so a display and an
|
|
7728
|
+
input of the same size line up. The fill is a share of the whole row, which
|
|
7729
|
+
makes a fractional value a partial star. */
|
|
7730
|
+
.rating[role="img"] {
|
|
7731
|
+
--rating-value: 0;
|
|
7732
|
+
--rating-max: 5;
|
|
7733
|
+
--rating-fill: calc(var(--rating-value) / var(--rating-max) * 100%);
|
|
7734
|
+
--rating-direction: to right;
|
|
7735
|
+
|
|
7736
|
+
inline-size: calc(var(--rating-max) * (var(--rating-size) + var(--rating-gap)));
|
|
7737
|
+
block-size: var(--rating-size);
|
|
7738
|
+
vertical-align: middle;
|
|
7739
|
+
background: linear-gradient(
|
|
7740
|
+
var(--rating-direction),
|
|
7741
|
+
var(--rating-color) var(--rating-fill),
|
|
7742
|
+
var(--rating-empty) var(--rating-fill)
|
|
7743
|
+
);
|
|
7744
|
+
-webkit-mask:
|
|
7745
|
+
var(--rating-star) left center / calc(var(--rating-size) + var(--rating-gap)) var(--rating-size)
|
|
7746
|
+
repeat-x;
|
|
7747
|
+
mask:
|
|
7748
|
+
var(--rating-star) left center / calc(var(--rating-size) + var(--rating-gap)) var(--rating-size)
|
|
7749
|
+
repeat-x;
|
|
7750
|
+
}
|
|
7751
|
+
|
|
7752
|
+
/* The fill starts at the inline start; only the direction changes, so the
|
|
7753
|
+
forced-colors gradient below follows it too. Safari before 16.4 has no
|
|
7754
|
+
:dir(); the attribute path is its fallback, as in avatar.css. Each selector
|
|
7755
|
+
is its own rule: a browser that rejects :dir() drops the whole rule, and the
|
|
7756
|
+
:dir() rules come after the fallback so a nested LTR island beats an outer
|
|
7757
|
+
[dir="rtl"] at equal specificity. */
|
|
7758
|
+
[dir="rtl"] .rating[role="img"] {
|
|
7759
|
+
--rating-direction: to left;
|
|
7760
|
+
}
|
|
7761
|
+
|
|
7762
|
+
.rating[role="img"]:dir(ltr) {
|
|
7763
|
+
--rating-direction: to right;
|
|
7764
|
+
}
|
|
7765
|
+
|
|
7766
|
+
.rating[role="img"]:dir(rtl) {
|
|
7767
|
+
--rating-direction: to left;
|
|
7768
|
+
}
|
|
7769
|
+
|
|
7667
7770
|
.rating.sm {
|
|
7668
7771
|
--rating-size: 1rem;
|
|
7669
7772
|
}
|
|
@@ -7682,6 +7785,19 @@ a.avatar[aria-disabled="true"] {
|
|
|
7682
7785
|
mask: none;
|
|
7683
7786
|
opacity: 1;
|
|
7684
7787
|
}
|
|
7788
|
+
|
|
7789
|
+
/* why: forced colors drops the gradient, and the filled share is the value
|
|
7790
|
+
itself, so the display would vanish. It keeps the gradient, painted in the
|
|
7791
|
+
user's own system colors only: Highlight for the value, as progress and
|
|
7792
|
+
range do, GrayText for the empty stars. */
|
|
7793
|
+
.rating[role="img"] {
|
|
7794
|
+
forced-color-adjust: none;
|
|
7795
|
+
background: linear-gradient(
|
|
7796
|
+
var(--rating-direction),
|
|
7797
|
+
Highlight var(--rating-fill),
|
|
7798
|
+
GrayText var(--rating-fill)
|
|
7799
|
+
);
|
|
7800
|
+
}
|
|
7685
7801
|
}
|
|
7686
7802
|
|
|
7687
7803
|
/*
|