дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02: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 <[email protected]>
192 рядки
3.3 KiB
CSS
192 рядки
3.3 KiB
CSS
.form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-4);
|
|
min-width: 0;
|
|
}
|
|
|
|
/* IDEA titled separator: "Startup ─────────". */
|
|
.section {
|
|
min-width: 0;
|
|
}
|
|
.sectionTitle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
height: 22px;
|
|
margin-bottom: 4px;
|
|
color: var(--fg-strong);
|
|
}
|
|
.sectionRule {
|
|
flex: 1;
|
|
height: 1px;
|
|
background: var(--border);
|
|
}
|
|
.sectionToggle {
|
|
width: 100%;
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
.sectionToggle:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
.sectionBody {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
padding: 4px 0 0 12px;
|
|
}
|
|
|
|
/* Label above a full-width control: the details pane is narrow. */
|
|
.row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-1);
|
|
min-width: 0;
|
|
}
|
|
.label {
|
|
color: var(--fg);
|
|
}
|
|
.label::after {
|
|
content: ":";
|
|
}
|
|
:lang(fr) .label::after {
|
|
content: "\00a0:";
|
|
}
|
|
.control {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: var(--space-1);
|
|
min-width: 0;
|
|
}
|
|
.hint {
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
line-height: 1.4;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.note {
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.error {
|
|
color: var(--danger);
|
|
}
|
|
.code {
|
|
font-family: var(--font-mono);
|
|
}
|
|
.grow {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.area {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: 4px 6px;
|
|
border: 0;
|
|
border-radius: var(--radius-small);
|
|
box-shadow: inset 0 0 0 1px var(--border-strong);
|
|
background: var(--bg-input);
|
|
color: var(--fg);
|
|
font-family: var(--font-mono);
|
|
font-size: var(--fs-small);
|
|
line-height: 1.45;
|
|
resize: vertical;
|
|
}
|
|
.area:focus {
|
|
outline: none;
|
|
box-shadow: inset 0 0 0 2px var(--accent);
|
|
}
|
|
.area::placeholder {
|
|
color: var(--fg-muted);
|
|
}
|
|
.invalid,
|
|
.invalid:focus {
|
|
box-shadow: inset 0 0 0 2px var(--danger);
|
|
}
|
|
|
|
.picker {
|
|
display: flex;
|
|
flex: 1;
|
|
align-items: center;
|
|
gap: var(--space-1-5);
|
|
min-width: 0;
|
|
height: var(--h-control);
|
|
padding: 0 8px;
|
|
border: 0;
|
|
border-radius: var(--radius-small);
|
|
box-shadow: inset 0 0 0 1px var(--border-strong);
|
|
background: var(--bg-input);
|
|
color: var(--fg);
|
|
font: inherit;
|
|
text-align: left;
|
|
}
|
|
.picker:focus-visible {
|
|
outline: none;
|
|
box-shadow: inset 0 0 0 2px var(--accent);
|
|
}
|
|
.pickerText {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.placeholder {
|
|
color: var(--fg-muted);
|
|
}
|
|
.pickerPopup {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-1-5);
|
|
width: 260px;
|
|
padding: 8px;
|
|
}
|
|
.pickerList {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-0-5);
|
|
max-height: 240px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.link {
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
color: var(--link);
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.link:hover {
|
|
color: var(--link-hover);
|
|
text-decoration: underline;
|
|
}
|
|
.link:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.dialogBody {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
padding: 12px 16px 4px;
|
|
}
|
|
/* Dialogs are wide enough for "Label: [control]". */
|
|
.dialogBody .row {
|
|
display: grid;
|
|
grid-template-columns: 90px minmax(0, 1fr);
|
|
align-items: center;
|
|
column-gap: var(--space-2);
|
|
}
|
|
.dialogBody .control {
|
|
align-items: center;
|
|
}
|