@glasshome/ui 1.11.0 → 1.12.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/SPEC.md +4 -2
- package/package.json +1 -1
- package/src/styles/theme.css +4 -1
package/SPEC.md
CHANGED
|
@@ -149,8 +149,10 @@ Motion is one system, not per-component flair. Four rules, all held by
|
|
|
149
149
|
window after mount or a touch, then freezes mid-phase; an idle screen
|
|
150
150
|
animates nothing. The host holds `html[data-motion="live"]` for the window
|
|
151
151
|
(dash: `createMotionWindow`, 30 s); light-DOM loops gate on that attribute,
|
|
152
|
-
widget shadow roots on the inherited `--motion-ambient` (1 live, else 0)
|
|
153
|
-
|
|
152
|
+
widget shadow roots on the inherited `--motion-ambient` (1 live, else 0)
|
|
153
|
+
or, for a loop that can only pause, `--motion-play` (`running` live, else
|
|
154
|
+
`paused`). A wrapper with `data-motion="still"` opts out: thumbnails are
|
|
155
|
+
stills.
|
|
154
156
|
|
|
155
157
|
A new component with an open, pick or reveal state uses these doors before it
|
|
156
158
|
gets any motion of its own; a motion need none of them covers is added to
|
package/package.json
CHANGED
package/src/styles/theme.css
CHANGED
|
@@ -261,12 +261,15 @@
|
|
|
261
261
|
--duration-expand: 200ms;
|
|
262
262
|
/* Ambient motion is an event (SPEC motion rule 5): 1 while the host holds
|
|
263
263
|
* html[data-motion="live"], else 0. Inherits into widget shadow roots, so a
|
|
264
|
-
* loop multiplies its duration by it: calc(var(--motion-ambient, 0) * 1s).
|
|
264
|
+
* loop multiplies its duration by it: calc(var(--motion-ambient, 0) * 1s).
|
|
265
|
+
* --motion-play is its keyword twin for a loop that can only pause. */
|
|
265
266
|
--motion-ambient: 0;
|
|
267
|
+
--motion-play: paused;
|
|
266
268
|
}
|
|
267
269
|
|
|
268
270
|
html[data-motion="live"] {
|
|
269
271
|
--motion-ambient: 1;
|
|
272
|
+
--motion-play: running;
|
|
270
273
|
}
|
|
271
274
|
|
|
272
275
|
.dark {
|