Files
openidea/src/ui/BarButton.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 <55754540+Mr0Bread@users.noreply.github.com>
2026-11-15 23:59:47 +08:00

54 lines
1.2 KiB
CSS

.button {
display: inline-flex;
align-items: center;
gap: var(--space-1);
min-width: 0;
white-space: nowrap;
border-radius: var(--radius-small);
transition:
background var(--dur-fast) var(--ease),
color var(--dur-fast) var(--ease);
}
.button:not(:disabled):hover,
.button[aria-expanded="true"] {
background: var(--bg-toolbar-hover);
color: var(--fg-strong);
}
.button:not(:disabled):active {
background: var(--bg-toolbar-pressed, color-mix(in srgb, var(--fg-strong) 12%, transparent));
}
.button:focus-visible {
outline: 2px solid var(--focus-ring);
outline-offset: -2px;
}
/* Status bar widget (StatusBar.Widget): UI font, secondary text, rounded hover. */
.status {
height: 22px;
margin: 0 -2px;
padding: 0 6px;
color: var(--fg-secondary);
font-size: var(--fs-ui);
}
/* Main toolbar widget (project / VCS / run configuration). */
.title {
height: 28px;
margin: 0 -4px;
padding: 0 8px;
border-radius: var(--radius-toolbar-button, 6px);
color: var(--fg-strong);
}
.mono {
font-family: var(--font-mono);
font-size: var(--fs-small);
}
.emphasis {
color: var(--fg-strong);
font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
.button {
transition: none;
}
}