Buckets:
| /* Search as navigation. | |
| Tokens only. Every colour here comes from app.css, and the accent switch | |
| rewrites --green and the --c-* ground at runtime, so nothing is restated as a | |
| literal. Semantic colour -- amber for waiting, red for failed -- stays fixed | |
| whatever the accent is doing, because those say what a row IS. | |
| The root supplies no horizontal gutter: every top-level strip on this page | |
| sets its own clamp() gutter, and the container this mounts into is one. */ | |
| .coordsearch { position: relative; width: 100%; max-width: 62rem; } | |
| .coordsearch-label { display: block; color: var(--muted); font-size: .7rem; | |
| letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .3rem; } | |
| .coordsearch-input { width: 100%; padding: .7rem .85rem; font: inherit; font-size: .88rem; | |
| color: var(--ink); background: var(--c-card-b); border: 1px solid var(--line); | |
| border-radius: 10px; } | |
| .coordsearch-input::placeholder { color: var(--muted); } | |
| .coordsearch-input:hover { border-color: var(--c-hairline); } | |
| .coordsearch-input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; } | |
| /* The count is read out, not drawn: the list below already shows what matched, | |
| and a second visible tally is noise for everyone who can see it. */ | |
| .coordsearch-live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; | |
| overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; } | |
| .coordsearch-results { position: absolute; left: 0; right: 0; z-index: 6; | |
| margin-top: .3rem; padding: .35rem; border: 1px solid var(--line); border-radius: 10px; | |
| background: var(--panel); max-height: 24rem; overflow-y: auto; | |
| box-shadow: 0 1rem 2.5rem color-mix(in srgb, var(--c-bg) 78%, transparent); } | |
| .coordsearch-results[hidden] { display: none; } | |
| .coordsearch-hit { display: grid; width: 100%; text-align: left; align-items: baseline; | |
| gap: .25rem .7rem; padding: .5rem .65rem; border-radius: 7px; | |
| grid-template-columns: minmax(7rem, auto) minmax(0, 1fr) auto; | |
| grid-template-areas: "id title field" "id meta field"; } | |
| .coordsearch-hit:hover { color: var(--ink); background: var(--c-hover); } | |
| .coordsearch-hit[aria-selected="true"] { color: var(--ink); background: var(--c-hover); | |
| border-color: var(--green); } | |
| .coordsearch-hit:focus-visible { outline: 2px solid var(--green); outline-offset: -1px; } | |
| .coordsearch-hit-id { grid-area: id; font-size: .83rem; font-family: ui-monospace, monospace; } | |
| .coordsearch-hit-title { grid-area: title; color: var(--muted); font-size: .8rem; | |
| overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } | |
| .coordsearch-hit[aria-selected="true"] .coordsearch-hit-title { color: var(--ink); } | |
| /* Which field the query hit. It is the one thing on the row that explains why | |
| the row is in the list at all, so it is labelled rather than implied. */ | |
| .coordsearch-hit-field { grid-area: field; color: var(--muted); font-size: 0.782rem; | |
| text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; } | |
| .coordsearch-hit-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: .5rem; | |
| color: var(--muted); font-size: .72rem; min-width: 0; } | |
| /* Semantic state. Anything not named here stays muted rather than being given a | |
| colour that would claim more than the status word does. */ | |
| .coordsearch-state { text-transform: uppercase; letter-spacing: .06em; } | |
| .coordsearch-state.s-running { color: var(--green); } | |
| .coordsearch-state.s-blocked, | |
| .coordsearch-state.s-failed { color: var(--red); } | |
| .coordsearch-state.s-waiting, | |
| .coordsearch-state.s-queued, | |
| .coordsearch-state.s-attention { color: var(--amber); } | |
| .coordsearch-empty { color: var(--muted); font-size: .82rem; margin: .5rem .65rem; } | |
| @media (prefers-reduced-motion: no-preference) { | |
| .coordsearch-hit { transition: background-color .12s ease, color .12s ease; } | |
| } | |
| @media (max-width: 720px) { | |
| .coordsearch-hit { grid-template-columns: minmax(0, 1fr) auto; | |
| grid-template-areas: "id field" "title title" "meta meta"; } | |
| .coordsearch-hit-title { white-space: normal; } | |
| } | |
Xet Storage Details
- Size:
- 4.04 kB
- Xet hash:
- fb6b55e7db9c806e494c8433e5dac09635880cd81ae1a06ec2b5f2496312a442
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.