forge
Clone
https://git.tahinli.com/Tahinli/forge.git
0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits
| 1 | // Live motion: a running job's bar grows and a new log chunk fades in, calmly, when the server sends |
| 2 | // a change. Both run only on a live swap or a log chunk, never on first render. Reduced motion holds |
| 3 | // everything still; the scripts also skip setting these up under reduced motion. |
| 4 | |
| 5 | // A list bar's segment that the live swap carries from its old width to the server's width. nav.js |
| 6 | // adds the class, sets the old width inline, then the new one, and removes both once it has run. |
| 7 | .ci-seg.live-grow { |
| 8 | transition: width 600ms ease-out; |
| 9 | } |
| 10 | |
| 11 | // A chunk of streamed log lines: the lines it added fade in and rise a little. nav.js wraps them in |
| 12 | // `.ll-chunk` and unwraps the wrapper after the animation, so the log keeps its flat line structure. |
| 13 | .ll-chunk { |
| 14 | animation: ll-chunk-in 180ms ease-out; |
| 15 | } |
| 16 | |
| 17 | @keyframes ll-chunk-in { |
| 18 | from { |
| 19 | opacity: 0; |
| 20 | transform: translateY(4px); |
| 21 | } |
| 22 | |
| 23 | to { |
| 24 | opacity: 1; |
| 25 | transform: none; |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | @media (prefers-reduced-motion: reduce) { |
| 30 | .ci-seg.live-grow, |
| 31 | .ll-chunk { |
| 32 | transition: none; |
| 33 | animation: none; |
| 34 | } |
| 35 | } |