Components / Tooltips and popovers
Share popover
A share button that opens a panel with the link to copy, who can open it, one extra permission, and when the link runs out.
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-share-popover">
<div class="bar">
<div class="trk"><p class="nm">Low Tide, mix v3</p><p class="meta">4:12 · 24 bit WAV</p></div>
<details open>
<summary><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"><path d="M12 15V3M8 7l4-4 4 4"/><path d="M5 12v8h14v-8"/></svg> Share</summary>
<div class="pop" role="group" aria-labelledby="ukc-tooltip-share-popover-title">
<h4 id="ukc-tooltip-share-popover-title">Share this mix</h4>
<div class="link"><input readonly value="tallowroom.fm/m/low-tide-v3" aria-label="Link to this mix"><button type="button"><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"><rect x="8" y="8" width="12" height="12" rx="1"/><path d="M16 8V4H4v12h4"/></svg> Copy</button></div>
<fieldset>
<legend>Who can listen</legend>
<label class="o"><input type="radio" name="ukc-tooltip-share-popover-who" checked><span class="dot"></span><span class="tx"><b>The band only</b><small>Four people on this session</small></span></label>
<label class="o"><input type="radio" name="ukc-tooltip-share-popover-who"><span class="dot"></span><span class="tx"><b>Anyone with the link</b><small>No sign in needed</small></span></label>
</fieldset>
<label class="chk"><input type="checkbox" checked><span class="box"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span>Let listeners download the WAV</label>
<p class="exp"><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"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg> Link stops working on 12 December</p>
</div>
</details>
</div>
</div>
.ukc-tooltip-share-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-share-popover *, .ukc-tooltip-share-popover *::before, .ukc-tooltip-share-popover *::after { box-sizing: border-box; }
.ukc-tooltip-share-popover :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-tooltip-share-popover :where(ul, ol) { padding: 0; list-style: none; }
.ukc-tooltip-share-popover :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-tooltip-share-popover :where(a) { color: inherit; }
.ukc-tooltip-share-popover svg { flex: none; }
.ukc-tooltip-share-popover { padding-bottom: 318px; }
.ukc-tooltip-share-popover .bar { position: relative; max-width: 360px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-lg), 12px); background: var(--uk-surface); }
.ukc-tooltip-share-popover .nm { font-weight: 600; }
.ukc-tooltip-share-popover .meta { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; color: var(--uk-muted); }
.ukc-tooltip-share-popover summary { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: var(--uk-border-width) solid var(--line-strong); border-radius: var(--uk-radius-sm); background: var(--uk-paper); font-size: 14px; font-weight: 600; list-style: none; cursor: pointer; }
.ukc-tooltip-share-popover summary::-webkit-details-marker { display: none; }
.ukc-tooltip-share-popover details[open] summary { border-color: var(--uk-ink); background: var(--uk-ink); color: var(--uk-paper); }
.ukc-tooltip-share-popover summary:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-tooltip-share-popover .pop { position: absolute; z-index: 3; top: calc(100% + 8px); right: 0; width: min(292px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; 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-share-popover h4 { font-family: var(--uk-font-display, inherit); font-size: 18px; font-weight: 600; line-height: 1.2; }
.ukc-tooltip-share-popover .link { display: flex; gap: 6px; }
.ukc-tooltip-share-popover .link input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-sm), 8px); background: var(--uk-surface); font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; text-overflow: ellipsis; }
.ukc-tooltip-share-popover .link input:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 1px; }
.ukc-tooltip-share-popover .link button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: var(--uk-radius-sm); background: var(--uk-accent); color: var(--uk-accent-ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.ukc-tooltip-share-popover .link button:focus-visible { outline: 2px solid var(--uk-ink); outline-offset: 2px; }
.ukc-tooltip-share-popover fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ukc-tooltip-share-popover legend { padding: 0; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--uk-muted); }
.ukc-tooltip-share-popover .o { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 10px; margin: 0 -8px; padding: 6px 8px; border-radius: min(var(--uk-radius-sm), 8px); cursor: pointer; }
.ukc-tooltip-share-popover .o:hover { background: var(--ink-soft); }
.ukc-tooltip-share-popover .o input, .ukc-tooltip-share-popover .chk input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.ukc-tooltip-share-popover .dot { width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--uk-paper); }
.ukc-tooltip-share-popover .o input:checked + .dot { border: 5.5px solid var(--uk-ink); }
.ukc-tooltip-share-popover .o b { display: block; font-size: 14px; font-weight: 500; }
.ukc-tooltip-share-popover .o input:checked ~ .tx b { font-weight: 700; }
.ukc-tooltip-share-popover .o small { display: block; font-size: 12.5px; color: var(--uk-muted); }
.ukc-tooltip-share-popover .o:has(input:focus-visible), .ukc-tooltip-share-popover .chk:has(input:focus-visible) { outline: 2px solid var(--uk-accent); outline-offset: 1px; }
.ukc-tooltip-share-popover .chk { position: relative; display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--uk-line); font-size: 14px; cursor: pointer; }
.ukc-tooltip-share-popover .box { width: 18px; height: 18px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: min(var(--uk-radius-sm), 4px); background: var(--uk-paper); color: transparent; }
.ukc-tooltip-share-popover .chk input:checked + .box { border-color: var(--uk-ink); background: var(--uk-ink); color: var(--uk-paper); }
.ukc-tooltip-share-popover .exp { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--uk-muted); }
More tooltips and popovers
All 26Marsh 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 - 0:00 to 2:14WrenClose by, in the bramble at the gate
- 2:14 to 3:50BlackbirdLoud on the left, top of the alder
- 3:50 to 5:30Reed warblerChattering low in the reeds
- 5:30 to 6:40CuckooFar off, across the water
Dawn chorus, Holme Marsh
Payment terms
The share of each payment the client holds back until the final walkthrough. of 10% is kept from every progress claim on this job and paid out once the client signs off the last inspection.
Halden adds this rate to a job sheet each time someone logs an hour. Any job can set its own.
$per hour