Components / Tooltips and popovers
Settings popover
A popover under its button with a title, a line of help, and label and field pairs side by side, for a quick setting without a dialog.
Printed invoices
Paper size and margins for the PDF.
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-basecoat-settings-popover">
<div class="anchor">
<button class="trig" type="button" aria-expanded="true" aria-controls="ukc-bc-pop"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1"/></svg> Print size</button>
<div class="pop" id="ukc-bc-pop" role="dialog" aria-labelledby="ukc-bc-pop-title">
<p class="ttl" id="ukc-bc-pop-title">Printed invoices</p>
<p class="sub">Paper size and margins for the PDF.</p>
<div class="rows">
<label for="ukc-bc-pop-w">Width</label><input id="ukc-bc-pop-w" type="text" value="210 mm">
<label for="ukc-bc-pop-h">Height</label><input id="ukc-bc-pop-h" type="text" value="297 mm">
<label for="ukc-bc-pop-m">Margin</label><input id="ukc-bc-pop-m" type="text" value="18 mm">
</div>
</div>
</div>
</div>
.ukc-tooltip-basecoat-settings-popover { 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-basecoat-settings-popover *, .ukc-tooltip-basecoat-settings-popover *::before, .ukc-tooltip-basecoat-settings-popover *::after { box-sizing: border-box; }
.ukc-tooltip-basecoat-settings-popover :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-tooltip-basecoat-settings-popover :where(ul, ol) { padding: 0; list-style: none; }
.ukc-tooltip-basecoat-settings-popover :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-tooltip-basecoat-settings-popover :where(a) { color: inherit; }
.ukc-tooltip-basecoat-settings-popover svg { flex: none; }
.ukc-tooltip-basecoat-settings-popover .anchor { position: relative; width: 300px; height: 262px; }
.ukc-tooltip-basecoat-settings-popover .trig { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: var(--uk-border-width) solid var(--uk-line); border-radius: var(--uk-radius-md); background: var(--uk-paper); font-size: 14px; font-weight: 600; cursor: pointer; }
.ukc-tooltip-basecoat-settings-popover .pop { position: absolute; top: 42px; left: 0; width: 290px; padding: 16px; border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-lg), 14px); background: var(--uk-paper); box-shadow: var(--uk-shadow-float); }
.ukc-tooltip-basecoat-settings-popover .ttl { font-family: var(--uk-font-display); font-size: 15px; font-weight: 700; }
.ukc-tooltip-basecoat-settings-popover .sub { margin-top: 2px; font-size: 13px; color: var(--uk-muted); }
.ukc-tooltip-basecoat-settings-popover .rows { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px 12px; margin-top: 14px; }
.ukc-tooltip-basecoat-settings-popover label { font-size: 13px; font-weight: 600; }
.ukc-tooltip-basecoat-settings-popover input { width: 100%; height: 32px; padding: 0 10px; border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-sm), 8px); background: var(--uk-paper); font-size: 14px; }
.ukc-tooltip-basecoat-settings-popover input:focus { outline: 2px solid var(--uk-accent); outline-offset: 1px; border-color: transparent; }
.ukc-tooltip-basecoat-settings-popover .trig:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
More tooltips and popovers
All 26Saturday · Port Arlen to Skerry
- 06:55MV Kittiwake
Remove the 06:55 sailing?
Nobody is booked on it yet.
- 07:40MV Sandpiper
Remove the 07:40 sailing?
14 booked passengers move to the 08:25 and get a text.
- 08:25MV Kittiwake
Remove the 08:25 sailing?
9 booked passengers move to the 09:10 and get a text.
- 06:55MV Kittiwake
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.
- 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