Components / Modals and sheets
Dialog with header and footer
Title and close in a header, a body, and right-aligned buttons in a footer, all split by rules.
Rename branch
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-primer-dialog">
<div class="bd"><div class="dlg" role="dialog" aria-modal="true" aria-labelledby="ukc-pd">
<div class="hd"><h3 id="ukc-pd">Rename branch</h3><button type="button" aria-label="Close"><svg width="16" height="16" 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></div>
<div class="body"><label for="ukc-pd-in">New name</label><input id="ukc-pd-in" type="text" value="phase-two-invoices"></div>
<div class="ft"><button class="btn" type="button">Cancel</button><button class="btn pri" type="button">Rename</button></div>
</div></div>
</div>
.ukc-modal-primer-dialog { 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-primer-dialog *, .ukc-modal-primer-dialog *::before, .ukc-modal-primer-dialog *::after { box-sizing: border-box; }
.ukc-modal-primer-dialog :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-modal-primer-dialog :where(ul, ol) { padding: 0; list-style: none; }
.ukc-modal-primer-dialog :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-modal-primer-dialog :where(a) { color: inherit; }
.ukc-modal-primer-dialog svg { flex: none; }
.ukc-modal-primer-dialog .bd { display: grid; place-items: center; padding: 28px 16px; border-radius: var(--uk-radius-lg); background: color-mix(in srgb, color-mix(in srgb, var(--uk-ink) 20%, black) 50%, transparent); }
.ukc-modal-primer-dialog .dlg { width: 100%; max-width: 440px; background: var(--uk-paper); border-radius: var(--uk-radius-lg); box-shadow: 0 20px 50px color-mix(in srgb, color-mix(in srgb, var(--uk-ink) 20%, black) 35%, transparent); }
.ukc-modal-primer-dialog .btn { padding: 9px 16px; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-md); background: var(--uk-paper); font-weight: 600; cursor: pointer; }
.ukc-modal-primer-dialog .btn.pri { background: var(--uk-accent); border-color: transparent; color: var(--uk-accent-ink); }
.ukc-modal-primer-dialog .btn.danger { background: var(--uk-danger); border-color: transparent; color: var(--uk-paper); }
.ukc-modal-primer-dialog .dlg { border-radius: var(--uk-radius-md); overflow: hidden; }
.ukc-modal-primer-dialog .hd { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--uk-line); }
.ukc-modal-primer-dialog h3 { font-size: 15px; }
.ukc-modal-primer-dialog .hd button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: var(--uk-radius-sm); background: transparent; cursor: pointer; }
.ukc-modal-primer-dialog .body { display: grid; gap: 6px; padding: 16px; }
.ukc-modal-primer-dialog label { font-weight: 600; font-size: 14px; }
.ukc-modal-primer-dialog input { height: 32px; padding: 0 10px; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-md); font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 13px; background: var(--uk-paper); }
.ukc-modal-primer-dialog .ft { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--uk-line); background: var(--uk-surface); }
.ukc-modal-primer-dialog .btn { padding: 5px 12px; font-size: 14px; }
More modals and sheets
All 25Delete "Kitchen reframe"?
This deletes 14 job sheets, 48 photos, and 3 draft invoices. Sent invoices stay with your clients.
INV-0412
- Esc
Invoices
- New invoiceN
- INV-0412 · Reyes Framing
- INV-0411 · Whitfield Homes
Actions
- Invite to crewI
Share "Kitchen reframe"
- MRMara ReyesOwner
- DWDana WhitfieldCan edit