Файли
openidea/src/ui/ConsoleFindBar.module.css
T
Mr0Bread 9a518e734b refactor(styles): put gap on the spacing scale (#3562)
Extends the 4px-grid spacing scale with --space-0-5 (2px), --space-1 (4px) and --space-1-5 (6px) and replaces the literal 2/4/6/8/12/16px gap, row-gap and column-gap values with the tokens; computed values are unchanged. src/styles/spacingScale.test.ts flags an on-scale literal gap.

Co-authored-by: Mr0Bread <[email protected]>
2026-11-15 23:59:47 +08:00

48 рядки
848 B
CSS

/* 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: 4px 8px;
background: var(--bg-elev);
border-bottom: 1px solid var(--border);
}
.findField {
flex: 0 1 360px;
min-width: 160px;
}
.findCount {
font-family: var(--font-mono);
font-size: var(--fs-small);
color: var(--fg-subtle);
padding: 0 6px;
white-space: nowrap;
min-width: 56px;
}
.findCountNone {
color: var(--danger);
}
.findSpacer {
flex: 1;
}
@container console-find (max-width: 360px) {
.find {
display: grid;
grid-template-columns: minmax(0, 1fr) repeat(3, 20px);
}
.findField {
grid-column: 1 / -1;
min-width: 0;
}
.findSpacer {
display: none;
}
}