/* Find bar (⌘F) of the Run and Debug consoles. */ .container { container: console-find / inline-size; flex: none; min-width: 0; } .find { flex: none; display: flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-2); background: var(--bg-elev); border-bottom: 1px solid var(--border); } .findField { flex: 0 1 420px; min-width: 0; } .findActions { display: flex; align-items: center; gap: var(--space-0-5); min-width: 0; } .findCount { min-inline-size: 5ch; padding-inline: var(--space-1); font-size: var(--fs-small); font-variant-numeric: tabular-nums; color: var(--fg-subtle); text-align: center; white-space: nowrap; } .findCountNone { color: var(--danger); } .findClose { margin-inline-start: auto; } @container console-find (max-width: 360px) { .find { display: grid; grid-template-columns: minmax(0, 1fr) auto; } .findField { grid-column: 1 / -1; } .findCount { white-space: normal; overflow-wrap: anywhere; } } @container console-find (width < 224px) { .findField { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--h-control-small), 1fr)); height: auto; padding-block: var(--space-1); } .findField > :is(input, textarea) { grid-column: 2 / -1; } .findField > input { height: var(--h-control-small); } .findField > textarea { height: auto; } }