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>
121 lines
2.0 KiB
CSS
121 lines
2.0 KiB
CSS
.page,
|
|
.group,
|
|
.field,
|
|
.array {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-3);
|
|
min-width: 0;
|
|
}
|
|
|
|
.field {
|
|
gap: var(--space-1);
|
|
}
|
|
|
|
.group h3 {
|
|
margin: 0;
|
|
font-size: inherit;
|
|
}
|
|
|
|
.description {
|
|
color: var(--fg-muted);
|
|
margin: 0;
|
|
}
|
|
|
|
.scroll {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.scroll table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.scroll th,
|
|
.scroll td {
|
|
padding: 6px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.scroll input {
|
|
min-width: 100px;
|
|
}
|
|
|
|
.buttons {
|
|
display: flex;
|
|
gap: var(--space-1-5);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.error {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.multiline {
|
|
min-height: 100px;
|
|
padding: var(--space-2);
|
|
color: var(--fg);
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border);
|
|
font: inherit;
|
|
resize: vertical;
|
|
}
|
|
|
|
.add {
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.scroll th {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.scroll th:last-child,
|
|
.scroll td:last-child {
|
|
position: sticky;
|
|
right: 0;
|
|
background: var(--bg-dialog, var(--bg-elev));
|
|
}
|
|
|
|
.scroll td:last-child .buttons {
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.scalars {
|
|
max-width: 560px;
|
|
}
|
|
|
|
/* A severity's sample, drawn the way the annotation appears in the editor: the line-end
|
|
message carries the severity colour alone — the wave belongs to the code token, the
|
|
message itself is never underlined. The label column is fixed so the samples line up,
|
|
one row per setting. */
|
|
.exampleRow {
|
|
display: grid;
|
|
grid-template-columns: 180px minmax(0, 1fr);
|
|
align-items: baseline;
|
|
column-gap: var(--space-3);
|
|
}
|
|
.example {
|
|
font-family: var(--openidea-editor-font, var(--font-mono));
|
|
font-size: var(--fs-code);
|
|
white-space: pre-wrap;
|
|
}
|
|
.example[data-style="error"] {
|
|
color: var(--wave-error);
|
|
}
|
|
.example[data-style="warning"] {
|
|
color: var(--wave-warning);
|
|
}
|
|
.example[data-style="weak"] {
|
|
color: var(--fg-weak-warning);
|
|
}
|
|
.example[data-style="typo"] {
|
|
color: var(--wave-typo, var(--success));
|
|
}
|
|
.example[data-style="info"] {
|
|
color: var(--info);
|
|
}
|
|
.example[data-style="muted"] {
|
|
color: var(--fg-muted);
|
|
}
|