Components / Progress and loaders
Course with units
An overall bar on top and the units under it: finished ones ticked with a score, the current one with its own small bar, the rest locked.
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
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-course-units">
<section class="course">
<header class="top">
<div><p class="kicker">Evening Portuguese · Level A2</p><h3>Unit 3 of 6, at the market</h3></div>
<p class="pc">46%</p>
</header>
<div class="bar" role="progressbar" aria-label="Course progress" aria-valuenow="22" aria-valuemin="0" aria-valuemax="48" aria-valuetext="22 of 48 lessons"><span style="width: 46%"></span></div>
<p class="sub">22 of 48 lessons done · next class Thursday, 7 pm</p>
<ol class="units">
<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="m"><strong>Saying hello</strong><span>8 of 8 lessons<span class="sr">, finished</span></span></p><span class="score">Quiz 9/10</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="m"><strong>Getting around</strong><span>8 of 8 lessons<span class="sr">, finished</span></span></p><span class="score">Quiz 7/10</span></li>
<li class="cur" aria-current="step"><span class="st"><i></i></span><p class="m"><strong>At the market</strong><span>6 of 8 lessons</span><span class="mini" aria-hidden="true"><i style="width: 75%"></i></span></p><a href="#" class="go">Continue<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="M5 12h14M13 6l6 6-6 6"/></svg></a></li>
<li class="shut"><span class="st"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="11" width="14" height="10" rx="1"/><path d="M8 11V8a4 4 0 0 1 8 0v3"/></svg></span><p class="m"><strong>Food and family</strong><span>Opens when unit 3 is done</span></p></li>
<li class="shut"><span class="st"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="11" width="14" height="10" rx="1"/><path d="M8 11V8a4 4 0 0 1 8 0v3"/></svg></span><p class="m"><strong>Making plans</strong><span>Locked</span></p></li>
<li class="shut"><span class="st"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="11" width="14" height="10" rx="1"/><path d="M8 11V8a4 4 0 0 1 8 0v3"/></svg></span><p class="m"><strong>Telling a story</strong><span>Locked</span></p></li>
</ol>
</section>
</div>
.ukc-progress-course-units { 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-course-units *, .ukc-progress-course-units *::before, .ukc-progress-course-units *::after { box-sizing: border-box; }
.ukc-progress-course-units :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-progress-course-units :where(ul, ol) { padding: 0; list-style: none; }
.ukc-progress-course-units :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-progress-course-units :where(a) { color: inherit; }
.ukc-progress-course-units svg { flex: none; }
.ukc-progress-course-units .course { max-width: 460px; padding: 18px; border: var(--uk-border-width, 1px) solid var(--uk-line); border-radius: var(--uk-radius-lg); background: var(--uk-paper); box-shadow: var(--uk-card-shadow, none); }
.ukc-progress-course-units .top { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.ukc-progress-course-units .kicker { font-size: 13px; color: var(--uk-muted); }
.ukc-progress-course-units .top h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.ukc-progress-course-units .pc { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 26px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ukc-progress-course-units .bar { height: 10px; margin-top: 12px; overflow: hidden; border-radius: var(--uk-radius-sm); background: var(--ink-soft); }
.ukc-progress-course-units .bar span { display: block; height: 100%; border-radius: var(--uk-radius-sm); background: var(--uk-accent); }
.ukc-progress-course-units .sub { margin-top: 8px; font-size: 13px; color: var(--uk-muted); }
.ukc-progress-course-units .units { display: grid; gap: 6px; margin-top: 16px; }
.ukc-progress-course-units .units li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; border: var(--uk-border-width, 1px) solid var(--uk-line); border-radius: min(var(--uk-radius-md), 10px); }
.ukc-progress-course-units .st { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; }
.ukc-progress-course-units .done .st { background: var(--uk-ink); color: var(--uk-paper); }
.ukc-progress-course-units .cur .st { border: 2px solid var(--uk-accent); }
.ukc-progress-course-units .cur .st i { width: 10px; height: 10px; border-radius: 999px; background: var(--uk-accent); }
.ukc-progress-course-units .shut .st { color: var(--uk-muted); }
.ukc-progress-course-units .m { display: grid; min-width: 0; font-size: 13px; color: var(--uk-muted); }
.ukc-progress-course-units .m strong { font-size: 15px; font-weight: 600; color: var(--uk-ink); }
.ukc-progress-course-units .cur { border-color: var(--uk-accent); background: var(--tint); }
.ukc-progress-course-units .mini { display: block; height: 4px; max-width: 160px; margin-top: 6px; overflow: hidden; border-radius: var(--uk-radius-sm); background: var(--tint-strong); }
.ukc-progress-course-units .mini i { display: block; height: 100%; background: var(--uk-accent); }
.ukc-progress-course-units .shut { border-style: dashed; }
.ukc-progress-course-units .shut .m strong { font-weight: 500; color: var(--uk-muted); }
.ukc-progress-course-units .score { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; color: var(--uk-muted); font-variant-numeric: tabular-nums; }
.ukc-progress-course-units .go { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--uk-radius-md); background: var(--uk-accent); color: var(--uk-accent-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.ukc-progress-course-units .go:hover { background: var(--accent-deep); }
.ukc-progress-course-units .go:focus-visible { outline: 2px solid var(--uk-ink); outline-offset: 2px; }
.ukc-progress-course-units .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
More progress and loaders
All 29Restoring 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.
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