Home hero: replace filter dropdowns with a search-engine box (+ live typeahead)
The hero is now a single big search box → /Search (the rich, ranked, highlighted search across shifts/jobs/applicants), with popular-search chips. Typeahead is generalized to any form[data-suggest], so the hero box shows the same instant highlighted dropdown as the header pill. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -302,6 +302,27 @@ mark { background: #fff3bf; color: inherit; padding: 0 2px; border-radius: 3px;
|
||||
.search-snippet { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 4px 0 2px;
|
||||
background: var(--bg); border-inline-start: 3px solid var(--primary-soft); padding: 5px 9px; border-radius: 6px; }
|
||||
.nav-search-results .ns-all { font-weight: 700; color: var(--primary-dark); justify-content: center; }
|
||||
|
||||
/* Homepage hero — search-engine box (replaces the old filter form) */
|
||||
.hero-search { position: relative; max-width: 720px; margin: 10px auto 0; }
|
||||
.hero-search-pill { display: flex; align-items: center; gap: 8px; background: var(--surface);
|
||||
border-radius: 16px; padding: 8px; box-shadow: 0 18px 44px rgba(0,0,0,.20); }
|
||||
.hero-search-pill .hs-ico { font-size: 18px; opacity: .55; flex: 0 0 auto; padding-inline-start: 10px; }
|
||||
.hero-search-pill input { flex: 1; min-width: 0; border: none; background: transparent; font-family: inherit;
|
||||
font-size: 16px; padding: 10px 4px; color: var(--ink); }
|
||||
.hero-search-pill input:focus { outline: none; }
|
||||
.hero-search-pill .btn { flex: 0 0 auto; }
|
||||
.hero-search .nav-search-results { inset-inline: 0; min-width: 0; top: calc(100% + 8px); text-align: start; }
|
||||
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; font-size: 13px; }
|
||||
.hero-chips .hc-label { color: rgba(255,255,255,.85); }
|
||||
.hero-chips a { background: rgba(255,255,255,.16); color: #fff; padding: 5px 13px; border-radius: 999px; font-weight: 600; transition: background .15s; }
|
||||
.hero-chips a:hover { background: rgba(255,255,255,.3); }
|
||||
@media (max-width: 520px) {
|
||||
.hero-search-pill { flex-wrap: wrap; }
|
||||
.hero-search-pill input { flex: 1 1 100%; order: 1; }
|
||||
.hero-search-pill .btn { flex: 1 1 100%; order: 2; }
|
||||
.hero-search-pill .hs-ico { display: none; }
|
||||
}
|
||||
/* Big search box on the /Search page head */
|
||||
.search-hero { display: flex; gap: 8px; max-width: 640px; margin: 6px 0 4px; }
|
||||
.search-hero input { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
|
||||
|
||||
Reference in New Issue
Block a user