Components / Modals and sheets
Type to confirm
For the destructive ones: say what will be lost and make people type the name before the red button wakes.
Delete "Kitchen reframe"?
This deletes 14 job sheets, 48 photos, and 3 draft invoices. Sent invoices stay with your clients.
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-confirm-delete">
<div class="bd"><div class="dlg" role="alertdialog" aria-modal="true" aria-labelledby="ukc-cd">
<h3 id="ukc-cd">Delete "Kitchen reframe"?</h3>
<p>This deletes 14 job sheets, 48 photos, and 3 draft invoices. Sent invoices stay with your clients.</p>
<label for="ukc-cd-in">Type <code>kitchen reframe</code> to confirm</label>
<input id="ukc-cd-in" type="text" value="kitchen ref">
<div class="row"><button class="btn" type="button">Keep it</button><button class="btn danger" type="button" disabled>Delete job</button></div>
</div></div>
</div>
.ukc-modal-confirm-delete { 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-confirm-delete *, .ukc-modal-confirm-delete *::before, .ukc-modal-confirm-delete *::after { box-sizing: border-box; }
.ukc-modal-confirm-delete :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-modal-confirm-delete :where(ul, ol) { padding: 0; list-style: none; }
.ukc-modal-confirm-delete :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-modal-confirm-delete :where(a) { color: inherit; }
.ukc-modal-confirm-delete svg { flex: none; }
.ukc-modal-confirm-delete .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-confirm-delete .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-confirm-delete .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-confirm-delete .btn.pri { background: var(--uk-accent); border-color: transparent; color: var(--uk-accent-ink); }
.ukc-modal-confirm-delete .btn.danger { background: var(--uk-danger); border-color: transparent; color: var(--uk-paper); }
.ukc-modal-confirm-delete .dlg { padding: 24px; display: grid; gap: 12px; }
.ukc-modal-confirm-delete h3 { font-size: 20px; }
.ukc-modal-confirm-delete p { color: var(--uk-muted); font-size: 14px; }
.ukc-modal-confirm-delete label { font-size: 14px; }
.ukc-modal-confirm-delete code { font-family: var(--uk-font-mono, ui-monospace, monospace); padding: 1px 5px; border-radius: var(--uk-radius-sm); background: var(--ink-soft); }
.ukc-modal-confirm-delete input { height: 40px; padding: 0 12px; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-md); background: var(--uk-paper); }
.ukc-modal-confirm-delete .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.ukc-modal-confirm-delete .btn.danger:disabled { opacity: 0.4; cursor: not-allowed; }
More modals and sheets
All 25INV-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
Step 2 of 3
How do clients pay you?