mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 08:03:19 +00:00
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>
63 lines
1.2 KiB
CSS
63 lines
1.2 KiB
CSS
.form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
padding: 14px;
|
|
}
|
|
.label {
|
|
color: var(--fg-secondary);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.error {
|
|
color: var(--danger);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.hint {
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
line-height: 1.5;
|
|
}
|
|
.list {
|
|
height: 200px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-control, 4px);
|
|
}
|
|
.row,
|
|
.activeRow {
|
|
padding: 0 8px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.activeRow {
|
|
color: var(--fg-strong);
|
|
}
|
|
.area {
|
|
resize: vertical;
|
|
min-height: 60px;
|
|
max-height: 240px;
|
|
padding: 4px 8px;
|
|
border: 0;
|
|
border-radius: var(--radius-control, 4px);
|
|
background: var(--bg-field, var(--bg-button));
|
|
box-shadow: inset 0 0 0 1px var(--border-button);
|
|
color: var(--fg-strong);
|
|
font-family: inherit;
|
|
font-size: var(--fs-ui);
|
|
line-height: 20px;
|
|
outline: none;
|
|
}
|
|
.area:focus {
|
|
box-shadow:
|
|
inset 0 0 0 1px var(--focus-ring),
|
|
0 0 0 1px var(--focus-ring);
|
|
}
|
|
.area[aria-invalid="true"] {
|
|
box-shadow:
|
|
inset 0 0 0 1px var(--danger),
|
|
0 0 0 1px var(--danger);
|
|
}
|
|
.area::placeholder {
|
|
color: var(--fg-faint);
|
|
}
|