mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-17 08:08:55 +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>
192 lines
3.2 KiB
CSS
192 lines
3.2 KiB
CSS
.form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* IDEA titled separator: "Startup ─────────". */
|
|
.section {
|
|
min-width: 0;
|
|
}
|
|
.sectionTitle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
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: 4px;
|
|
min-width: 0;
|
|
}
|
|
.label {
|
|
color: var(--fg);
|
|
}
|
|
.label::after {
|
|
content: ":";
|
|
}
|
|
:lang(fr) .label::after {
|
|
content: "\00a0:";
|
|
}
|
|
.control {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 4px;
|
|
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: 6px;
|
|
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: 6px;
|
|
width: 260px;
|
|
padding: 8px;
|
|
}
|
|
.pickerList {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
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: 8px;
|
|
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: 8px;
|
|
}
|
|
.dialogBody .control {
|
|
align-items: center;
|
|
}
|