Components / Progress and loaders
File upload rows
One row per file with its name, a thin bar while it sends, and a cancel button. Done, sending, and checking states together.
-
kessler-deck-plans.pdfUploaded
-
site-walk-0412.mov64%
-
timber-receipt-0419.jpgChecking
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-upload-rows">
<ul class="up" aria-label="Uploads">
<li class="f done">
<span class="ic"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span>
<div class="main">
<p class="nm"><span class="n">kessler-deck-plans.pdf</span><span class="pc">Uploaded</span></p>
<p class="meta">3.1 MB · just now</p>
</div>
<button type="button" aria-label="Remove kessler-deck-plans.pdf"><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="M6 6l12 12M18 6L6 18"/></svg></button>
</li>
<li class="f">
<span class="ic"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H6v18h12V7z"/><path d="M14 3v4h4"/></svg></span>
<div class="main">
<p class="nm"><span class="n">site-walk-0412.mov</span><span class="pc">64%</span></p>
<div class="bar" role="progressbar" aria-label="Uploading site-walk-0412.mov" aria-valuenow="64" aria-valuemin="0" aria-valuemax="100"><span style="width: 64%"></span></div>
<p class="meta">41 of 64 MB · about 20 s left</p>
</div>
<button type="button" aria-label="Cancel site-walk-0412.mov"><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="M6 6l12 12M18 6L6 18"/></svg></button>
</li>
<li class="f">
<span class="ic"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H6v18h12V7z"/><path d="M14 3v4h4"/></svg></span>
<div class="main">
<p class="nm"><span class="n">timber-receipt-0419.jpg</span><span class="pc"><span class="spin" aria-hidden="true"></span>Checking</span></p>
<p class="meta">2.2 MB · next in line</p>
</div>
<button type="button" aria-label="Cancel timber-receipt-0419.jpg"><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="M6 6l12 12M18 6L6 18"/></svg></button>
</li>
</ul>
</div>
.ukc-progress-upload-rows { 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-upload-rows *, .ukc-progress-upload-rows *::before, .ukc-progress-upload-rows *::after { box-sizing: border-box; }
.ukc-progress-upload-rows :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-progress-upload-rows :where(ul, ol) { padding: 0; list-style: none; }
.ukc-progress-upload-rows :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-progress-upload-rows :where(a) { color: inherit; }
.ukc-progress-upload-rows svg { flex: none; }
.ukc-progress-upload-rows .up { max-width: 420px; overflow: hidden; border: var(--uk-border-width, 1px) solid var(--uk-line); border-radius: var(--uk-radius-lg); background: var(--uk-surface); }
.ukc-progress-upload-rows .f { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; }
.ukc-progress-upload-rows .f + .f { border-top: 1px solid var(--uk-line); }
.ukc-progress-upload-rows .ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--uk-radius-md); background: var(--ink-soft); color: var(--uk-muted); }
.ukc-progress-upload-rows .done .ic { background: var(--tint); color: var(--uk-accent); }
.ukc-progress-upload-rows .main { display: grid; gap: 5px; min-width: 0; }
.ukc-progress-upload-rows .nm { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ukc-progress-upload-rows .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ukc-progress-upload-rows .pc { display: inline-flex; align-items: center; gap: 6px; flex: none; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; color: var(--uk-muted); font-variant-numeric: tabular-nums; }
.ukc-progress-upload-rows .bar { height: 4px; overflow: hidden; border-radius: var(--uk-radius-sm); background: var(--uk-line); }
.ukc-progress-upload-rows .bar span { display: block; height: 100%; background: var(--uk-accent); }
.ukc-progress-upload-rows .meta { font-size: 12px; color: var(--uk-muted); }
.ukc-progress-upload-rows .spin { width: 12px; height: 12px; border: 2px solid var(--uk-line); border-top-color: var(--uk-accent); border-radius: 999px; animation: ukc-progress-upload-rows-spin 0.8s linear infinite; }
.ukc-progress-upload-rows button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: var(--uk-radius-sm); background: transparent; color: var(--uk-muted); cursor: pointer; }
.ukc-progress-upload-rows button:hover { background: var(--ink-soft); color: var(--uk-ink); }
@keyframes ukc-progress-upload-rows-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ukc-progress-upload-rows .spin { animation: none; } }
More progress and loaders
All 29Photo storage
8.6 of 10 GB
Past the warning line. Photos from jobs closed over a year ago can move to the archive. Review them
Theo Lindqvist
Old joists are out. Two are soft at the ends, sending photos now.
Dana Whitfield is typing
31%margin
Kessler deck rebuildTarget 25% · quoted at 28% Pallet CF-20418
12 crates of roof slate
On the road
- Leeds depotLeft 9:05 am
- Sheffield hubLeft 10:40 am
- DerbyDue 12:50 pm
- NottinghamDue 2:10 pm
- Delivery window
- Today, 2:10 to 3:40 pm
- Distance
- 62 of 107 miles
- Driver
- Anneke, van 14
Aldgrove Lido roof fund
$27,400 raised of $40,000
312 neighbours have chipped in. 19 days to go.
- $10k Scaffold booked, reached
- $20k Timber ordered, reached
- $30k Glazing, $2,600 to go
- $40k Roof on by May