loopable / web /src /styles /wave66 /sheet-search.css
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
9a6cb9a verified
Raw History Blame Contribute Delete
2.54 kB
.sheet-search {
position: relative;
display: flex;
align-self: stretch;
align-items: center;
flex: 1 1 224px;
min-width: 128px;
max-width: 320px;
margin-left: 8px;
color: var(--lp-muted);
}
/* S66-T09: the strip's actions keep their one-line labels ("Full Screen" wrapped onto two lines
at 1440 with the rail open); the search box is what yields width, down to its own minimum. */
.sheet-ribbon-tabs:has(.sheet-search) .sheet-ribbon-tabs-actions {
flex-shrink: 0;
white-space: nowrap;
}
.sheet-search-icon {
position: absolute;
left: 8px;
width: 16px;
height: 16px;
fill: none;
stroke: currentColor;
stroke-width: 1.5;
stroke-linecap: round;
pointer-events: none;
}
.sheet-search-input {
box-sizing: border-box;
width: 100%;
height: 100%;
min-width: 0;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-sm);
background: var(--lp-surface);
color: var(--lp-ink);
font: inherit;
font-size: var(--lp-fs-xs);
padding: 4px 8px 4px 32px;
}
.sheet-search-input::placeholder { color: var(--lp-muted); }
.sheet-search-input:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: -2px;
}
.sheet-search-pop {
width: min(480px, calc(100vw - 32px));
max-height: min(480px, calc(100vh - 64px));
overflow-y: auto;
overscroll-behavior: contain;
padding: 4px;
color: var(--lp-ink);
font-size: var(--lp-fs-xs);
}
.sheet-search-caption {
padding: 8px;
color: var(--lp-muted);
font-size: var(--lp-fs-2xs);
font-weight: 600;
}
.sheet-search-result {
border: 0;
background: transparent;
font: inherit;
color: inherit;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
width: 100%;
padding: 8px;
text-align: left;
border-radius: var(--lp-r-sm);
cursor: pointer;
}
.sheet-search-result.is-active { background: var(--lp-blue-tint); }
.sheet-search-result:disabled { opacity: 0.55; cursor: not-allowed; }
.sheet-search-result-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sheet-search-result-text > span { overflow-wrap: anywhere; }
.sheet-search-detail { color: var(--lp-muted); font-size: var(--lp-fs-2xs); }
.sheet-search-shortcut { flex: 0 0 auto; color: var(--lp-muted); font: inherit; font-size: var(--lp-fs-2xs); }
.sheet-search-status { margin: 0; padding: 8px; color: var(--lp-muted); font-size: var(--lp-fs-2xs); }
@media (max-width: 800px) {
.sheet-ribbon-tabs:has(.sheet-search) { flex-wrap: wrap; }
.sheet-search { min-height: 32px; }
}