дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-28 13:32:29 +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]>
244 рядки
4.3 KiB
CSS
244 рядки
4.3 KiB
CSS
.mark {
|
|
background: color-mix(in srgb, var(--warning) 28%, transparent);
|
|
color: var(--fg-strong);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.section + .section {
|
|
margin-top: 22px;
|
|
}
|
|
.sectionTitle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
height: 22px;
|
|
margin-bottom: 6px;
|
|
color: var(--fg-strong);
|
|
}
|
|
/* IDEA titled separator: "Accessibility ─────────". */
|
|
.sectionRule {
|
|
flex: 1;
|
|
height: 1px;
|
|
background: var(--border);
|
|
}
|
|
.sectionBody {
|
|
padding-left: 18px;
|
|
}
|
|
.formGroup {
|
|
display: grid;
|
|
grid-template-columns: fit-content(45%) minmax(0, 1fr);
|
|
column-gap: var(--space-2);
|
|
min-width: 0;
|
|
}
|
|
.formGroup > * {
|
|
grid-column: 1 / -1;
|
|
min-width: 0;
|
|
}
|
|
.formGroup > .row,
|
|
.formGroup > .formGroup {
|
|
grid-template-columns: subgrid;
|
|
}
|
|
.formGroup > .stacked,
|
|
.formGroup > .toggleRow {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
.indented {
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.row {
|
|
display: grid;
|
|
grid-template-columns: max-content minmax(0, 1fr);
|
|
align-items: start;
|
|
column-gap: var(--space-2);
|
|
min-height: 28px;
|
|
padding: 2px 6px;
|
|
margin: 0 -6px;
|
|
border-radius: var(--radius-row);
|
|
}
|
|
.matched {
|
|
background: color-mix(in srgb, var(--warning) 8%, transparent);
|
|
}
|
|
.stacked {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
row-gap: var(--space-1-5);
|
|
align-items: start;
|
|
padding-top: 4px;
|
|
padding-bottom: 4px;
|
|
}
|
|
.label {
|
|
color: var(--fg);
|
|
padding-top: max(0px, calc((var(--h-field) - 1.4em) / 2));
|
|
white-space: nowrap;
|
|
}
|
|
.stacked > .label {
|
|
padding-top: 0;
|
|
}
|
|
.row:not(.stacked) > .label::after {
|
|
content: ":";
|
|
}
|
|
:lang(fr) .row:not(.stacked) > .label::after {
|
|
content: "\00a0:";
|
|
}
|
|
.control {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-2);
|
|
min-width: 0;
|
|
min-height: var(--h-field);
|
|
}
|
|
.control > * {
|
|
max-width: 100%;
|
|
}
|
|
.hint {
|
|
grid-column: 2;
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
line-height: 1.4;
|
|
padding-bottom: 2px;
|
|
}
|
|
.toggleRow {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
min-height: 26px;
|
|
}
|
|
.toggleHint {
|
|
grid-column: 1 / -1;
|
|
padding-left: 20px;
|
|
}
|
|
.stacked > .hint {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.number {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-1-5);
|
|
}
|
|
.numberInput {
|
|
width: 64px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.unit {
|
|
color: var(--fg-subtle);
|
|
}
|
|
.select {
|
|
min-width: min(180px, 100%);
|
|
max-width: min(320px, 100%);
|
|
}
|
|
.text {
|
|
width: 240px;
|
|
}
|
|
|
|
@container settings-content (max-width: 480px) {
|
|
.label {
|
|
white-space: normal;
|
|
}
|
|
}
|
|
|
|
.swatches {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
}
|
|
.swatch {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
box-shadow: inset 0 0 0 1px var(--border-strong);
|
|
}
|
|
.swatchColor {
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background: var(--bg-control);
|
|
}
|
|
.swatchOn {
|
|
box-shadow: inset 0 0 0 2px var(--fg-emphasis);
|
|
}
|
|
.custom .swatchColor:not([style]) {
|
|
background: conic-gradient(
|
|
var(--danger),
|
|
var(--warning),
|
|
var(--success),
|
|
var(--info),
|
|
var(--syn-annotation),
|
|
var(--danger)
|
|
);
|
|
}
|
|
.colorNative {
|
|
position: absolute;
|
|
inset: 0;
|
|
opacity: 0;
|
|
border: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.custom:focus-within {
|
|
outline: 1px solid var(--accent);
|
|
outline-offset: 1px;
|
|
}
|
|
.hexInput {
|
|
width: 86px;
|
|
}
|
|
|
|
.globEditor {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
max-width: 480px;
|
|
border-radius: var(--radius-small);
|
|
box-shadow: inset 0 0 0 1px var(--border-strong);
|
|
overflow: hidden;
|
|
}
|
|
.listToolbar {
|
|
display: flex;
|
|
gap: var(--space-0-5);
|
|
height: 28px;
|
|
align-items: center;
|
|
padding: 0 4px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.globList {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 2px 0;
|
|
min-height: 120px;
|
|
max-height: 260px;
|
|
overflow: auto;
|
|
outline: none;
|
|
}
|
|
.globRow {
|
|
display: flex;
|
|
align-items: center;
|
|
height: var(--h-row);
|
|
padding: 0 8px;
|
|
font-family: var(--font-mono);
|
|
color: var(--fg);
|
|
}
|
|
.globSelected {
|
|
background: var(--bg-selected);
|
|
color: var(--fg-strong);
|
|
}
|
|
.globList:focus .globSelected {
|
|
background: var(--bg-selected-strong);
|
|
}
|
|
.globText {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.globInput {
|
|
flex: 1;
|
|
height: 100%;
|
|
}
|
|
.globEmpty {
|
|
padding: 6px 8px;
|
|
color: var(--fg-subtle);
|
|
}
|