Search with a shortcut
A search field with the icon inside and the key that focuses it shown at the end.
/
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-input-search-shortcut">
<div class="s"><span class="i"><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"><circle cx="11" cy="11" r="6.5"/><path d="M16 16l4.5 4.5"/></svg></span><input type="search" placeholder="Search jobs, clients, invoices" aria-label="Search"><kbd>/</kbd></div>
</div>
.ukc-input-search-shortcut { 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-input-search-shortcut *, .ukc-input-search-shortcut *::before, .ukc-input-search-shortcut *::after { box-sizing: border-box; }
.ukc-input-search-shortcut :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-input-search-shortcut :where(ul, ol) { padding: 0; list-style: none; }
.ukc-input-search-shortcut :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-input-search-shortcut :where(a) { color: inherit; }
.ukc-input-search-shortcut svg { flex: none; }
.ukc-input-search-shortcut .s { position: relative; max-width: 420px; }
.ukc-input-search-shortcut .i { position: absolute; left: 12px; top: 12px; color: var(--uk-muted); }
.ukc-input-search-shortcut input { width: 100%; height: 40px; padding: 0 40px 0 38px; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-md); background: var(--uk-surface); font-size: 15px; }
.ukc-input-search-shortcut input:focus { outline: none; border-color: var(--uk-ink); background: var(--uk-paper); }
.ukc-input-search-shortcut kbd { position: absolute; right: 10px; top: 9px; padding: 1px 7px; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-sm); font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; color: var(--uk-muted); background: var(--uk-paper); }
More inputs
All 27- $USDhttps://.apphours
You have 186 characters left94 / 280
Good. Add a symbol to make it strong.
Drop photos here or browse
JPG or PNG, up to 10 MB each
- site-north-wall.jpg2.4 MB
- joist-detail.png812 KB