mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 16:08:05 +00:00
Adds French as a UI language, with French catalogs for message keys and source text, and the French space before a colon in settings labels. UI languages are now registered in one place, `LOCALES` in `src/platform/i18n.ts` (name in its own language and `<html lang>` tag); the Language and Region options, settings validation and `<html lang>` all come from it. The catalog tests read every catalog in `locales/` and `locales/text/`, so a new file is always checked, and literal message keys given to `t` must exist in `en.json`. Only Chinese must cover every UI string; French and Korean show English for text they lack. Also makes two date tests independent of DST changes. Co-authored-by: J-Dudek <46819368+J-Dudek@users.noreply.github.com>
206 lines
3.5 KiB
CSS
206 lines
3.5 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: 8px;
|
|
height: 22px;
|
|
margin-bottom: 6px;
|
|
color: var(--fg-strong);
|
|
}
|
|
/* IDEA titled separator: "Accessibility ─────────". */
|
|
.sectionRule {
|
|
flex: 1;
|
|
height: 1px;
|
|
background: var(--border);
|
|
}
|
|
.sectionBody {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding-left: 18px;
|
|
}
|
|
|
|
.row {
|
|
display: grid;
|
|
grid-template-columns: max-content minmax(0, 1fr);
|
|
align-items: center;
|
|
column-gap: 8px;
|
|
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: 6px;
|
|
align-items: start;
|
|
padding-top: 4px;
|
|
padding-bottom: 4px;
|
|
}
|
|
.label {
|
|
color: var(--fg);
|
|
white-space: nowrap;
|
|
}
|
|
.row:not(.stacked) > .label::after {
|
|
content: ":";
|
|
}
|
|
:lang(fr) .row:not(.stacked) > .label::after {
|
|
content: "\00a0:";
|
|
}
|
|
.control {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
.hint {
|
|
grid-column: 1 / -1;
|
|
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 {
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.number {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.numberInput {
|
|
width: 64px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.unit {
|
|
color: var(--fg-subtle);
|
|
}
|
|
.select {
|
|
min-width: 180px;
|
|
max-width: 320px;
|
|
}
|
|
.text {
|
|
width: 240px;
|
|
}
|
|
|
|
.swatches {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.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: 2px;
|
|
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);
|
|
}
|