Файли
openidea/src/ui/Chip.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

33 рядки
820 B
CSS

/* The chip surface: shared with the pickers that open (Select's chip variant) and the changes
button. Flat like the main toolbar's project and branch widgets: no frame at rest, a toolbar
button's hover on the ones that open. */
.surface {
box-sizing: border-box;
height: 22px;
border-radius: var(--radius-toolbar-button);
background: transparent;
color: var(--fg-secondary);
font-size: var(--fs-small);
}
/* A read-only fact: same shape and height as the pickers it sits beside. */
.chip {
composes: surface;
display: inline-flex;
align-items: center;
gap: var(--space-1);
max-width: 100%;
min-width: 0;
padding: 0 6px;
line-height: 1;
white-space: nowrap;
}
.icon {
flex: none;
color: var(--fg-muted);
}
.label {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}