Skip to content

feat(home): Google-style search pill in the header (icon-only filters)#77

Merged
p4gs merged 1 commit into
mainfrom
fix/google-style-search
Jun 2, 2026
Merged

feat(home): Google-style search pill in the header (icon-only filters)#77
p4gs merged 1 commit into
mainfrom
fix/google-style-search

Conversation

@p4gs

@p4gs p4gs commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Reworks the desktop header search to look like Google's: logo on the left, a single-row search pill to its right at the logo's height, and the filter controls as icon-only buttons inside the pill's right edge, separated from the input by a vertical divider.

How

  • .floating-bar aligned to the header .container (same max-width + padding); the pill (.floating-bar-inner) reserves the logo (185px) and nav (284px) widths via margins so it lands cleanly between them. Header stays 64px (band overlay, no growth).
  • @media (min-width: 641px): pill = 40px rounded/bordered with a focus ring; search input transparent + flex:1; .floating-filters is the icon cluster with a ::before | divider; .filter-btn icon-only (labels + chevrons hidden, round hover); view toggle = plain round icons.
  • index.html: filter labels wrapped in <span class="filter-label"> (hidden on desktop, shown on mobile) + title tooltips on the now-iconic buttons.
  • Mobile bottom island untouched (base + max-width:640 rules), plus a padding:0 reset so the desktop container padding doesn't inset it.

Verification (Interceptor, real built site, both themes)

  • Header height 64px (unchanged).
  • Pill sits between logo (ends 457) and nav (starts 1172), 40px tall, vertically centered.
  • Filter labels hidden (icon-only); | divider present; input transparent.
  • System Type dropdown opens from its icon, 308px, overflow:visible, not clipped.
  • Mobile island geometry resets cleanly (bottom 12 / left 8 / right 8 / transform none).

Build verified (exit 0).

Desktop: logo on the left, then a single-row search pill at the logo's
height, with the filter controls as ICON-ONLY buttons inside the pill's
right edge, split from the input by a vertical divider — like Google.

- .floating-bar aligned to the header .container (same max-width + padding)
  so the pill lands between logo and nav; margins reserve the logo (185px)
  and nav (284px). Header stays 64px (band overlay, no growth).
- @media (min-width:641px): .floating-bar-inner is the pill (40px, rounded,
  bordered, focus ring); search input transparent + flex; .floating-filters
  is the icon cluster with a ::before | divider; .filter-btn icon-only
  (labels + chevrons hidden, round hover); view toggle = plain round icons.
- index.html: filter labels wrapped in <span class=filter-label> (hidden on
  desktop, shown on mobile) + title tooltips on the icon buttons.
- Mobile bottom island untouched (base + max-width:640); added padding:0
  reset so the container padding doesn't inset the island.

Verified via Interceptor (real built site, both themes): header height 64px;
pill sits between logo (ends 457) and nav (starts 1172), 40px centered;
labels hidden; divider present; input transparent; dropdowns open un-clipped;
mobile island geometry resets cleanly.
@p4gs p4gs merged commit 5ed5ce7 into main Jun 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant