Components / Progress and loaders
Stacked bar with legend
One bar split into parts of a whole, a hairline gap between parts, and a legend with the amounts. For where the money or time went.
October costs
$31,640
- Labour$16,45052%
- Materials$9,81031%
- Subcontractors$3,80012%
- Other$1,5805%
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-stacked-legend">
<div class="sb">
<div class="hd"><p class="k">October costs</p><p class="v">$31,640</p></div>
<div class="bar" role="img" aria-label="October costs: labour 52%, materials 31%, subcontractors 12%, other 5%">
<span class="s1" style="width: 52%"></span><span class="s2" style="width: 31%"></span><span class="s3" style="width: 12%"></span><span class="s4" style="width: 5%"></span>
</div>
<ul class="lg">
<li><i class="s1"></i>Labour<span>$16,450</span><em>52%</em></li>
<li><i class="s2"></i>Materials<span>$9,810</span><em>31%</em></li>
<li><i class="s3"></i>Subcontractors<span>$3,800</span><em>12%</em></li>
<li><i class="s4"></i>Other<span>$1,580</span><em>5%</em></li>
</ul>
</div>
</div>
.ukc-progress-stacked-legend { 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-stacked-legend *, .ukc-progress-stacked-legend *::before, .ukc-progress-stacked-legend *::after { box-sizing: border-box; }
.ukc-progress-stacked-legend :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-progress-stacked-legend :where(ul, ol) { padding: 0; list-style: none; }
.ukc-progress-stacked-legend :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-progress-stacked-legend :where(a) { color: inherit; }
.ukc-progress-stacked-legend svg { flex: none; }
.ukc-progress-stacked-legend .sb { max-width: 420px; }
.ukc-progress-stacked-legend .hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.ukc-progress-stacked-legend .k { font-size: 14px; font-weight: 600; }
.ukc-progress-stacked-legend .v { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 20px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ukc-progress-stacked-legend .bar { display: flex; gap: 2px; height: 14px; overflow: hidden; border-radius: var(--uk-radius-sm); }
.ukc-progress-stacked-legend .bar span { height: 100%; }
.ukc-progress-stacked-legend .s1 { background: var(--uk-ink); }
.ukc-progress-stacked-legend .s2 { background: var(--uk-accent); }
.ukc-progress-stacked-legend .s3 { background: color-mix(in srgb, var(--uk-accent) 40%, var(--uk-paper)); }
.ukc-progress-stacked-legend .s4 { background: var(--line-strong); }
.ukc-progress-stacked-legend .lg { display: grid; margin-top: 14px; }
.ukc-progress-stacked-legend .lg li { display: grid; grid-template-columns: 10px 1fr auto 3.2em; align-items: center; column-gap: 10px; padding: 7px 0; border-top: 1px solid var(--uk-line); font-size: 14px; }
.ukc-progress-stacked-legend .lg i { width: 10px; height: 10px; border-radius: min(var(--uk-radius-sm), 2px); }
.ukc-progress-stacked-legend .lg span, .ukc-progress-stacked-legend .lg em { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 13px; font-style: normal; font-variant-numeric: tabular-nums; }
.ukc-progress-stacked-legend .lg em { text-align: right; color: var(--uk-muted); }
More progress and loaders
All 29-
kessler-deck-plans.pdfUploaded
-
site-walk-0412.mov64%
-
timber-receipt-0419.jpgChecking
-
Photo 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