Components / Tooltips and popovers
Quiet footnote
A numbered reference in running text that opens its note under the paragraph, set off by one rule and nothing else. For essays, reports, and long reads.
Chapter 4 · The oil years
The lamp at Ness Point burned colza oil until 1871,Pressed from rapeseed. It smoked less than whale oil and cost about a third as much.Keeper's log, Ness Point, March 1869 when the keepers changed to paraffin and the weekly ration fell from nine gallons to five.
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-tooltip-footnote">
<div class="page">
<p class="k">Chapter 4 · The oil years</p>
<p class="copy">The lamp at Ness Point burned colza oil until <span class="nb">1871,<span class="fn show"><button type="button" class="ref" aria-label="Footnote 2" aria-describedby="ukc-tooltip-footnote-2">2</button><span class="note" role="tooltip" id="ukc-tooltip-footnote-2"><span class="num" aria-hidden="true">2</span><span class="tx">Pressed from rapeseed. It smoked less than whale oil and cost about a third as much.</span><cite>Keeper's log, Ness Point, March 1869</cite></span></span></span> when the keepers changed to paraffin and the weekly ration fell from nine gallons to five.</p>
</div>
</div>
.ukc-tooltip-footnote { 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-tooltip-footnote *, .ukc-tooltip-footnote *::before, .ukc-tooltip-footnote *::after { box-sizing: border-box; }
.ukc-tooltip-footnote :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-tooltip-footnote :where(ul, ol) { padding: 0; list-style: none; }
.ukc-tooltip-footnote :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-tooltip-footnote :where(a) { color: inherit; }
.ukc-tooltip-footnote svg { flex: none; }
.ukc-tooltip-footnote { padding-bottom: 108px; }
.ukc-tooltip-footnote .page { max-width: 360px; display: grid; gap: 8px; }
.ukc-tooltip-footnote .k { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--uk-muted); }
.ukc-tooltip-footnote .copy { position: relative; font-family: var(--uk-font-display, inherit); font-size: 17px; line-height: 1.6; }
.ukc-tooltip-footnote .ref { position: relative; top: -0.5em; min-width: 18px; height: 18px; margin: 0 1px; padding: 0 4px; border: 0; border-radius: 999px; background: none; color: var(--uk-accent); font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 11px; font-weight: 700; line-height: 18px; cursor: pointer; }
.ukc-tooltip-footnote .ref:hover, .ukc-tooltip-footnote .fn:focus-within .ref, .ukc-tooltip-footnote .fn.show .ref { background: var(--uk-ink); color: var(--uk-paper); }
.ukc-tooltip-footnote .ref:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-tooltip-footnote .nb { white-space: nowrap; }
.ukc-tooltip-footnote .note { white-space: normal; position: absolute; z-index: 2; top: calc(100% + 12px); left: 0; right: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 0 0; border-top: 2px solid var(--uk-ink); background: var(--uk-paper); font-family: var(--uk-font-body, system-ui, sans-serif); font-size: 13.5px; line-height: 1.5; }
.ukc-tooltip-footnote .num { grid-row: span 2; padding-top: 2px; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 11px; font-weight: 700; }
.ukc-tooltip-footnote cite { font-size: 12px; color: var(--uk-muted); }
.ukc-tooltip-footnote .fn .note { visibility: hidden; opacity: 0; transition: opacity var(--uk-motion-duration) var(--uk-motion-ease), visibility 0s linear var(--uk-motion-duration); }
.ukc-tooltip-footnote .fn:hover .note, .ukc-tooltip-footnote .fn:focus-within .note, .ukc-tooltip-footnote .fn.show .note { visibility: visible; opacity: 1; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .ukc-tooltip-footnote .fn .note { transition: none; } }
More tooltips and popovers
All 26- Spike saysFerns sulk in direct sun. Park this one a metre back from the window and mist it on Sundays.
Boston fern
- Tall mug$28 · 6 left Bud vase$34 · 3 left Noodle bowl$42 · 2 left
Autumn firing, ash glaze. Point at a dot for the price. Loaves sold per hour - Today
- Last Saturday
- 7:00 to 8:00Today12Last Sat102 more than last week
- 8:00 to 9:00Today31Last Sat265 more than last week
- 9:00 to 10:00Today44Last Sat359 more than last week
- 10:00 to 11:00Today38Last Sat413 fewer than last week
- 11:00 to 12:00Today52Last Sat4012 more than last week
- 12:00 to 13:00Today47Last Sat3611 more than last week
- 13:00 to 14:00Today29Last Sat301 fewer than last week
- 14:00 to 15:00Today18Last Sat224 fewer than last week
Marsh Road Velo · Thursday note
Clocks went back, so we roll out at 8:30 sharp. This Sunday is the Old Quarry LoopMmarshroadvelo.ccOld Quarry Loop62 km840 m upCafe at km 38, ridden anticlockwise, with the stop at Hollin Bridge.
Lane rates per mile, week 48 Lane Fuel Rate Reno to Boise $0.42 $2.10 Reno to Fresno $0.42 Ines Cabral Tue 24 NovUp 30 cents. Chain controls on Donner Pass add about two hours each way. Reno to Salt Lake $0.47 Marek Dvorak Mon 23 NovHeld flat. Two carriers still want backhauls out of Utah. Reno to Portland $0.44 $2.30