Файли
openidea/src/features/app/WorkspaceDialog.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

75 рядки
1.2 KiB
CSS

.body {
display: flex;
flex-direction: column;
gap: var(--space-4);
padding: 20px;
}
.field {
display: grid;
grid-template-columns: 80px 1fr;
align-items: center;
gap: var(--space-3);
}
.row {
display: flex;
align-items: center;
gap: var(--space-2);
min-width: 0;
}
.row > input {
flex: 1;
min-width: 0;
}
.heading {
display: flex;
align-items: center;
justify-content: space-between;
font-weight: 600;
}
.projects {
min-height: 130px;
max-height: 260px;
overflow: auto;
border: 1px solid var(--border);
border-radius: var(--radius-small);
}
.project {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
}
.project + .project {
border-top: 1px solid var(--border);
}
.path {
display: flex;
flex: 1;
min-width: 0;
flex-direction: column;
gap: 3px;
}
.path span {
color: var(--fg-muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.hint {
color: var(--fg-muted);
margin: 0;
line-height: 1.5;
}
.projects > .hint {
padding: 16px;
}
.error {
color: var(--danger);
}
.candidate {
display: flex;
flex-direction: column;
gap: 3px;
overflow-wrap: anywhere;
}