the migration meter earns its motion: the fill was in's flat quota level wearing a border, which is a meter for a thing that stands still — a drain moves, so the fill is now full accent on a 9% tinted pill with a light band travelling its length, the sweep stopped for prefers-reduced-motion. Same markup, same width contract; the meter simply looks like what it is.
Browse files at this commita1e2e02774a1afe1f7d77c44a9effa32aad28267Parent: 3303c3f1 changed file +36 -9
- style/main.scss +36 -9
style/main.scssmodified+36 -9
| @@ -4398,20 +4398,47 @@ input[type="radio"] { | |||
| 4398 | } | 4398 | } |
| 4399 | } | 4399 | } |
| 4400 | 4400 | ||
| 4401 | -// The migration meter on the Storage card's Migration fact: a sunken track | 4401 | +// The migration meter on the Storage card's Migration fact: a tinted pill |
| 4402 | -// with an accent fill, the same meter in's settings panel draws for quota — | 4402 | +// of track under an accent fill that carries a travelling highlight — a |
| 4403 | -// the family renders a level one way. Read-only: the level rides the fill's | 4403 | +// quota is a level, but a migration is activity, so the light moves the |
| 4404 | -// inline width. | 4404 | +// way the rows do, and the fill holds full accent against the 9% track so |
| 4405 | +// the meter reads at a glance from across the room. The level rides the | ||
| 4406 | +// fill's inline width; the highlight rides a background sweep that stands | ||
| 4407 | +// still for anyone who asked motion to stop. | ||
| 4405 | .quota-bar { | 4408 | .quota-bar { |
| 4406 | - height: 8px; | 4409 | + height: 6px; |
| 4407 | margin-top: 0.45rem; | 4410 | margin-top: 0.45rem; |
| 4408 | - background: var(--panel-sunken); | 4411 | + background: color-mix(in srgb, var(--accent) 9%, transparent); |
| 4409 | - border: 1px solid var(--border-soft); | 4412 | + border-radius: 999px; |
| 4410 | - border-radius: var(--radius); | ||
| 4411 | overflow: hidden; | 4413 | overflow: hidden; |
| 4412 | } | 4414 | } |
| 4413 | 4415 | ||
| 4414 | .quota-fill { | 4416 | .quota-fill { |
| 4415 | height: 100%; | 4417 | height: 100%; |
| 4416 | - background: var(--accent); | 4418 | + border-radius: 999px; |
| 4419 | + background: linear-gradient( | ||
| 4420 | + 100deg, | ||
| 4421 | + var(--accent) 0%, | ||
| 4422 | + var(--accent) 38%, | ||
| 4423 | + color-mix(in srgb, var(--accent) 35%, white) 50%, | ||
| 4424 | + var(--accent) 62%, | ||
| 4425 | + var(--accent) 100% | ||
| 4426 | + ); | ||
| 4427 | + background-size: 200% 100%; | ||
| 4428 | + animation: quota-sweep 1.4s linear infinite; | ||
| 4429 | + | ||
| 4430 | + @media (prefers-reduced-motion: reduce) { | ||
| 4431 | + animation: none; | ||
| 4432 | + background: var(--accent); | ||
| 4433 | + } | ||
| 4434 | +} | ||
| 4435 | + | ||
| 4436 | +@keyframes quota-sweep { | ||
| 4437 | + from { | ||
| 4438 | + background-position: 100% 0; | ||
| 4439 | + } | ||
| 4440 | + | ||
| 4441 | + to { | ||
| 4442 | + background-position: 0 0; | ||
| 4443 | + } | ||
| 4417 | } | 4444 | } |