Components / Modals and sheets
Lightbox
A dark overlay with the picture large, a caption and count beneath, and arrows on the sides.
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-modal-lightbox">
<div class="lb" role="dialog" aria-modal="true" aria-label="Photo viewer">
<button class="x" type="button" aria-label="Close"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button>
<button class="nav prev" type="button" aria-label="Previous photo"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 12H5M11 6l-6 6 6 6"/></svg></button>
<figure><div class="img" aria-hidden="true"></div><figcaption><span>North wall, before drywall</span><span class="n">3 / 48</span></figcaption></figure>
<button class="nav next" type="button" aria-label="Next photo"><svg width="22" height="22" 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></button>
</div>
</div>
.ukc-modal-lightbox { 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-modal-lightbox *, .ukc-modal-lightbox *::before, .ukc-modal-lightbox *::after { box-sizing: border-box; }
.ukc-modal-lightbox :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-modal-lightbox :where(ul, ol) { padding: 0; list-style: none; }
.ukc-modal-lightbox :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-modal-lightbox :where(a) { color: inherit; }
.ukc-modal-lightbox svg { flex: none; }
.ukc-modal-lightbox .lb { position: relative; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; padding: 36px 8px 16px; border-radius: var(--uk-radius-lg); background: color-mix(in srgb, var(--uk-ink) 92%, black); color: var(--uk-paper); }
.ukc-modal-lightbox .x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; }
.ukc-modal-lightbox .nav { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--uk-paper) 14%, transparent); color: inherit; cursor: pointer; }
.ukc-modal-lightbox .img { aspect-ratio: 4 / 3; border-radius: var(--uk-radius-md); background: linear-gradient(160deg, var(--uk-highlight), var(--uk-accent)); }
.ukc-modal-lightbox figcaption { display: flex; justify-content: space-between; padding-top: 10px; font-size: 14px; }
.ukc-modal-lightbox .n { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; opacity: 0.7; }
More modals and sheets
All 25Choose your location
$2,140 received
Alder Street Homes paid invoice 1042 by bank transfer. It reaches your account within two working days.
- 1:42left
Still there?
The patient portal signs you out after 15 quiet minutes, so nobody else at this screen can read your records. Your refill request for Dr. Okafor is saved as a draft.
Signing out at 2:47 pm
Caption Desk
Keyboard shortcuts
Playback
- Play or pauseSpace
- Back one secondJ
- Forward one secondL
- Half speedShiftS
Captions
- Split at the playhead⌘K
- Merge with next line⌘M
- Start a little earlier[
- End a little later]
Review
- Next flagged lineF
- Leave a noteN
- Approve the line⌘Enter
Press ? anywhere to open this sheet again.