Components / Progress and loaders
Task run with timings
A long job broken into tasks: done ones ticked with how long they took, one flagged with a note, one spinning, the rest waiting with estimates.
Restoring your photo library
From the backup made on 21 Nov at 3:10 am
46%
Checked the backup is complete, done
0:42Downloaded the index, done
1:15Matched albumsDone, with a note: 3 albums had no cover and were given their first photo.
0:09Copying photos18,204 of 41,930 · 212 GB
11:36Rebuilding thumbnails
about 6 minFinal check
about 1 min
The code
Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.
<div class="ukc-progress-restore-tasks">
<section class="job">
<header class="top">
<div><h3 id="ukc-progress-restore-tasks-h">Restoring your photo library</h3><p>From the backup made on 21 Nov at 3:10 am</p></div>
<p class="pc">46%</p>
</header>
<div class="bar" role="progressbar" aria-labelledby="ukc-progress-restore-tasks-h" aria-valuenow="46" aria-valuemin="0" aria-valuemax="100"><span style="width: 46%"></span></div>
<ol class="tasks">
<li class="done"><span class="st"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span><p class="t">Checked the backup is complete<span class="sr">, done</span></p><span class="tm">0:42</span></li>
<li class="done"><span class="st"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span><p class="t">Downloaded the index<span class="sr">, done</span></p><span class="tm">1:15</span></li>
<li class="flag"><span class="st"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3l9.5 17h-19z"/><path d="M12 10v4M12 17h.01"/></svg></span><p class="t">Matched albums<small>Done, with a note: 3 albums had no cover and were given their first photo.</small></p><span class="tm">0:09</span></li>
<li class="run" aria-current="step"><span class="st"><i class="spin"></i></span><p class="t">Copying photos<small>18,204 of 41,930 · 212 GB</small></p><span class="tm">11:36</span></li>
<li class="wait"><span class="st"></span><p class="t">Rebuilding thumbnails</p><span class="tm">about 6 min</span></li>
<li class="wait"><span class="st"></span><p class="t">Final check</p><span class="tm">about 1 min</span></li>
</ol>
<footer class="foot"><p>About 14 minutes left. You can close the lid, the Shelfbox keeps going.</p><button type="button">Cancel restore</button></footer>
</section>
</div>
.ukc-progress-restore-tasks { position: relative; font-family: var(--uk-font-body, system-ui, sans-serif); color: var(--uk-ink); font-size: 15px; line-height: 1.5;
--tint: color-mix(in srgb, var(--uk-accent) 12%, var(--uk-paper));
--tint-strong: color-mix(in srgb, var(--uk-accent) 22%, var(--uk-paper));
--accent-deep: color-mix(in srgb, var(--uk-accent) 72%, black);
--ink-soft: color-mix(in srgb, var(--uk-ink) 8%, var(--uk-paper));
--line-strong: color-mix(in srgb, var(--uk-ink) 32%, var(--uk-paper));
--danger-tint: color-mix(in srgb, var(--uk-danger) 12%, var(--uk-paper));
--high-tint: color-mix(in srgb, var(--uk-highlight) 28%, var(--uk-paper)); }
.ukc-progress-restore-tasks *, .ukc-progress-restore-tasks *::before, .ukc-progress-restore-tasks *::after { box-sizing: border-box; }
.ukc-progress-restore-tasks :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-progress-restore-tasks :where(ul, ol) { padding: 0; list-style: none; }
.ukc-progress-restore-tasks :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-progress-restore-tasks :where(a) { color: inherit; }
.ukc-progress-restore-tasks svg { flex: none; }
.ukc-progress-restore-tasks .job { max-width: 480px; overflow: hidden; border: var(--uk-border-width, 1px) solid var(--uk-line); border-radius: var(--uk-radius-lg); background: var(--uk-paper); }
.ukc-progress-restore-tasks .top { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 16px 18px 12px; }
.ukc-progress-restore-tasks .top h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.ukc-progress-restore-tasks .top p { font-size: 13px; color: var(--uk-muted); }
.ukc-progress-restore-tasks .top .pc { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 22px; line-height: 1.2; color: var(--uk-ink); font-variant-numeric: tabular-nums; }
.ukc-progress-restore-tasks .bar { height: 4px; background: var(--uk-line); }
.ukc-progress-restore-tasks .bar span { display: block; height: 100%; background: var(--uk-accent); }
.ukc-progress-restore-tasks .tasks { padding: 6px 18px; }
.ukc-progress-restore-tasks .tasks li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; font-size: 14px; }
.ukc-progress-restore-tasks .tasks li + li { border-top: 1px solid var(--uk-line); }
.ukc-progress-restore-tasks .st { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; }
.ukc-progress-restore-tasks .done .st { background: var(--uk-ink); color: var(--uk-paper); }
.ukc-progress-restore-tasks .flag .st { background: var(--uk-highlight); color: color-mix(in srgb, var(--uk-ink) 15%, black); }
.ukc-progress-restore-tasks .wait .st { border: 1.5px dashed var(--line-strong); }
.ukc-progress-restore-tasks .t { display: grid; }
.ukc-progress-restore-tasks .t small { font-size: 13px; color: var(--uk-muted); }
.ukc-progress-restore-tasks .run .t { font-weight: 700; }
.ukc-progress-restore-tasks .run .t small { font-weight: 400; }
.ukc-progress-restore-tasks .wait .t { color: var(--uk-muted); }
.ukc-progress-restore-tasks .tm { padding-top: 2px; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; color: var(--uk-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ukc-progress-restore-tasks .run .tm { color: var(--uk-ink); }
.ukc-progress-restore-tasks .spin { width: 18px; height: 18px; border: 2.5px solid var(--uk-line); border-top-color: var(--uk-accent); border-radius: 999px; animation: ukc-progress-restore-tasks-spin 0.9s linear infinite; }
.ukc-progress-restore-tasks .foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 12px 18px 14px; border-top: 1px solid var(--uk-line); background: var(--uk-surface); font-size: 13px; color: var(--uk-muted); }
.ukc-progress-restore-tasks .foot p { flex: 1 1 220px; }
.ukc-progress-restore-tasks .foot button { padding: 6px 14px; border: var(--uk-border-width, 1px) solid var(--line-strong); border-radius: var(--uk-radius-md); background: var(--uk-paper); color: var(--uk-ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.ukc-progress-restore-tasks .foot button:hover { border-color: var(--uk-danger); color: var(--uk-danger); }
.ukc-progress-restore-tasks .foot button:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-progress-restore-tasks .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes ukc-progress-restore-tasks-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ukc-progress-restore-tasks .spin { animation: none; } }
More progress and loaders
All 29-
Slow flowTue 6:30 pm · Imre
4 places left -
Mat pilatesWed 7:00 am · Odile
Full, 2 waiting -
Yin and restThu 8:15 pm · Imre
13 places left
-
Bay 4 · Kestrel Charge, Ashby Road
Charging
74%
- To 90%
- 22 min
- Rate
- 48 kW
- Added
- 31.4 kWh
- Cost so far
- $13.19
The last cell is held back by your 90% limit. Change limit
Hollis Street Pharmacy · prescriptions
You are 5th in the queue
Counter 2- You
About 9 minutes. The counter is serving ticket B41 and yours is B46.
Fennel and Rye · Saturday open
Before the doors at 7:30
of 6 done
to go before the doors open.
All six done. Flip the sign and open up.
The Marram Press · subscription edition
Salt Roads, set by hand in an edition of 700
We ink the press once 500 copies are spoken for. 94 more and the type goes in the chase.
- Reserved
- 406
- Press at
- 500
- List closes
- 14 March
Garsdale Walling · Low Ings boundary
34 of 50 metres of wall laid
16 metres to the gatepost. At this week's pace that is eight more dry days.
- Laid this week
- 9 m
- Stone used
- 41 tonnes
- Due
- 19 December