Components / Progress and loaders
Reading progress by chapter
A bar cut into chapters, each as wide as it is long to read, with the current one part filled and the contents listed under it.
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-chapter-bar">
<section class="book">
<p class="work"><em>A Winter on Foula</em> · Mairi Isbister</p>
<div class="bar" role="progressbar" aria-label="Reading progress" aria-valuenow="44" aria-valuemin="0" aria-valuemax="100" aria-valuetext="44 percent, chapter 4 of 7">
<span class="read" style="flex-grow: 18"></span><span class="read" style="flex-grow: 31"></span><span class="read" style="flex-grow: 24"></span><span style="flex-grow: 40"><i style="width: 35%"></i></span><span style="flex-grow: 27"></span><span style="flex-grow: 36"></span><span style="flex-grow: 22"></span>
</div>
<div class="now">
<p class="ch"><span>Chapter 4 of 7</span><strong>The lighthouse keepers</strong></p>
<p class="left"><strong>1 h 51 min</strong><span>left in the book</span></p>
</div>
<ol class="toc">
<li class="read"><span class="t">The mail boat</span><span class="m"><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 class="sr">Read, </span>18 min</span></li>
<li class="read"><span class="t">Peat and paraffin</span><span class="m"><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 class="sr">Read, </span>31 min</span></li>
<li class="read"><span class="t">The school of nine</span><span class="m"><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 class="sr">Read, </span>24 min</span></li>
<li class="here" aria-current="true"><span class="t">The lighthouse keepers</span><span class="m">26 min left</span></li>
<li><span class="t">Old Yule</span><span class="m">27 min</span></li>
<li><span class="t">Storm of the ninth</span><span class="m">36 min</span></li>
<li><span class="t">The first puffin</span><span class="m">22 min</span></li>
</ol>
</section>
</div>
.ukc-progress-chapter-bar { 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-chapter-bar *, .ukc-progress-chapter-bar *::before, .ukc-progress-chapter-bar *::after { box-sizing: border-box; }
.ukc-progress-chapter-bar :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-progress-chapter-bar :where(ul, ol) { padding: 0; list-style: none; }
.ukc-progress-chapter-bar :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-progress-chapter-bar :where(a) { color: inherit; }
.ukc-progress-chapter-bar svg { flex: none; }
.ukc-progress-chapter-bar .book { max-width: 440px; }
.ukc-progress-chapter-bar .work { margin-bottom: 12px; font-size: 14px; color: var(--uk-muted); }
.ukc-progress-chapter-bar .work em { font-family: var(--uk-font-display, inherit); font-size: 16px; color: var(--uk-ink); }
.ukc-progress-chapter-bar .bar { display: flex; gap: 3px; height: 6px; }
.ukc-progress-chapter-bar .bar > span { flex: 1 1 0; min-width: 0; background: var(--uk-line); }
.ukc-progress-chapter-bar .bar > .read { background: var(--uk-ink); }
.ukc-progress-chapter-bar .bar i { display: block; height: 100%; background: var(--uk-accent); }
.ukc-progress-chapter-bar .now { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 20px; margin-top: 14px; }
.ukc-progress-chapter-bar .ch, .ukc-progress-chapter-bar .left { display: grid; }
.ukc-progress-chapter-bar .ch span, .ukc-progress-chapter-bar .left span { font-size: 12px; color: var(--uk-muted); }
.ukc-progress-chapter-bar .ch strong { font-family: var(--uk-font-display, inherit); font-size: 24px; font-weight: 400; line-height: 1.2; }
.ukc-progress-chapter-bar .left { justify-items: end; text-align: right; }
.ukc-progress-chapter-bar .left strong { order: -1; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ukc-progress-chapter-bar .toc { margin-top: 16px; border-top: 1px solid var(--uk-line); counter-reset: ukc-chapter; }
.ukc-progress-chapter-bar .toc li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--uk-line); font-size: 14px; counter-increment: ukc-chapter; }
.ukc-progress-chapter-bar .toc li::before { content: counter(ukc-chapter); width: 14px; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; color: var(--uk-muted); }
.ukc-progress-chapter-bar .t { flex: 1; min-width: 0; }
.ukc-progress-chapter-bar .m { display: inline-flex; align-items: center; gap: 5px; 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-chapter-bar .toc .read .t { color: var(--uk-muted); }
.ukc-progress-chapter-bar .toc .here { font-weight: 700; }
.ukc-progress-chapter-bar .toc .here::before { content: ""; align-self: center; width: 8px; height: 8px; margin: 0 3px; border-radius: 999px; background: var(--uk-accent); }
.ukc-progress-chapter-bar .toc .here .m { color: var(--uk-ink); }
.ukc-progress-chapter-bar .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
More progress and loaders
All 2918:24left of 45 min
Second proof
Batch 3, country loaves
Oven 2 is heating and will be at 220 °C by 6:10 am.
Evening Portuguese · Level A2
Unit 3 of 6, at the market
46%
22 of 48 lessons done · next class Thursday, 7 pm
Saying hello8 of 8 lessons, finished
Quiz 9/10Getting around8 of 8 lessons, finished
Quiz 7/10At the market6 of 8 lessons
ContinueFood and familyOpens when unit 3 is done
Making plansLocked
Telling a storyLocked
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
-
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.