Improve desktop UI settings defaults and env inference
All checks were successful
Build Windows App / build-windows (push) Successful in 16m23s
All checks were successful
Build Windows App / build-windows (push) Successful in 16m23s
This commit is contained in:
577
src/styles.css
577
src/styles.css
@@ -1,28 +1,95 @@
|
||||
:root {
|
||||
color: #17211c;
|
||||
background: #f5f5ef;
|
||||
color-scheme: light;
|
||||
--bg: #eef1ed;
|
||||
--bg-soft: #f7f8f5;
|
||||
--surface: rgba(255, 255, 255, 0.92);
|
||||
--surface-solid: #ffffff;
|
||||
--surface-subtle: #f0f4ef;
|
||||
--text: #18231e;
|
||||
--muted: #62706a;
|
||||
--border: #d8dfd6;
|
||||
--accent: #1f665a;
|
||||
--accent-strong: #154d44;
|
||||
--accent-soft: #e2eee9;
|
||||
--danger: #9f3e34;
|
||||
--editor-bg: #0d1714;
|
||||
--editor-text: #eef8f3;
|
||||
--shadow: 0 18px 45px rgba(42, 56, 49, 0.12);
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family:
|
||||
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root[data-theme="system"] {
|
||||
color-scheme: dark;
|
||||
--bg: #111614;
|
||||
--bg-soft: #151d1a;
|
||||
--surface: rgba(26, 35, 31, 0.94);
|
||||
--surface-solid: #1a231f;
|
||||
--surface-subtle: #202c27;
|
||||
--text: #e8eee9;
|
||||
--muted: #a2afa9;
|
||||
--border: #34413b;
|
||||
--accent: #65c0ad;
|
||||
--accent-strong: #8bd8c7;
|
||||
--accent-soft: #233c36;
|
||||
--danger: #ef8b7d;
|
||||
--editor-bg: #07100d;
|
||||
--editor-text: #f1fbf7;
|
||||
--shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
|
||||
}
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] {
|
||||
color-scheme: dark;
|
||||
--bg: #111614;
|
||||
--bg-soft: #151d1a;
|
||||
--surface: rgba(26, 35, 31, 0.94);
|
||||
--surface-solid: #1a231f;
|
||||
--surface-subtle: #202c27;
|
||||
--text: #e8eee9;
|
||||
--muted: #a2afa9;
|
||||
--border: #34413b;
|
||||
--accent: #65c0ad;
|
||||
--accent-strong: #8bd8c7;
|
||||
--accent-soft: #233c36;
|
||||
--danger: #ef8b7d;
|
||||
--editor-bg: #07100d;
|
||||
--editor-text: #f1fbf7;
|
||||
--shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
|
||||
}
|
||||
|
||||
:root[data-theme="light"] {
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
#root {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-width: 940px;
|
||||
min-height: 100vh;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
background:
|
||||
linear-gradient(135deg, rgba(41, 94, 82, 0.12), transparent 36%),
|
||||
linear-gradient(315deg, rgba(190, 78, 61, 0.1), transparent 34%),
|
||||
#f5f5ef;
|
||||
radial-gradient(circle at 0 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 30%),
|
||||
var(--bg);
|
||||
}
|
||||
|
||||
button,
|
||||
textarea {
|
||||
input,
|
||||
textarea,
|
||||
select {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
@@ -32,15 +99,17 @@ button {
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 750;
|
||||
gap: 8px;
|
||||
justify-content: center;
|
||||
min-height: 42px;
|
||||
padding: 0 16px;
|
||||
min-height: 36px;
|
||||
padding: 0 13px;
|
||||
transition:
|
||||
transform 140ms ease,
|
||||
box-shadow 140ms ease,
|
||||
background 140ms ease;
|
||||
background 140ms ease,
|
||||
border-color 140ms ease,
|
||||
color 140ms ease,
|
||||
transform 140ms ease;
|
||||
}
|
||||
|
||||
button:hover:not(:disabled) {
|
||||
@@ -49,37 +118,64 @@ button:hover:not(:disabled) {
|
||||
|
||||
button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.5;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 18px;
|
||||
margin: 0 auto;
|
||||
max-width: 1420px;
|
||||
min-height: 100vh;
|
||||
padding: 28px;
|
||||
input {
|
||||
background: var(--surface-solid);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
color: var(--text);
|
||||
min-height: 36px;
|
||||
min-width: 0;
|
||||
outline: none;
|
||||
padding: 0 11px;
|
||||
}
|
||||
|
||||
.hero {
|
||||
align-items: flex-end;
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
justify-content: space-between;
|
||||
padding: 10px 2px 4px;
|
||||
input:focus,
|
||||
textarea:focus {
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
.appShell {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
grid-template-rows: auto auto minmax(260px, 1fr) minmax(160px, 0.52fr);
|
||||
height: 100%;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
align-items: center;
|
||||
color: #2d6f62;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
box-shadow: var(--shadow);
|
||||
display: flex;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 800;
|
||||
gap: 7px;
|
||||
letter-spacing: 0;
|
||||
margin: 0 0 10px;
|
||||
text-transform: uppercase;
|
||||
gap: 16px;
|
||||
justify-content: space-between;
|
||||
min-height: 64px;
|
||||
padding: 10px 12px;
|
||||
}
|
||||
|
||||
.brand {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
gap: 11px;
|
||||
min-width: 220px;
|
||||
}
|
||||
|
||||
.brandMark {
|
||||
align-items: center;
|
||||
background: var(--accent);
|
||||
border-radius: 8px;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 850;
|
||||
height: 38px;
|
||||
justify-content: center;
|
||||
width: 38px;
|
||||
}
|
||||
|
||||
h1,
|
||||
@@ -89,212 +185,369 @@ p {
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #13201b;
|
||||
font-size: 2.8rem;
|
||||
font-size: 1.15rem;
|
||||
letter-spacing: 0;
|
||||
line-height: 1.02;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1rem;
|
||||
font-size: 0.98rem;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.subline {
|
||||
color: #53635d;
|
||||
font-size: 1.04rem;
|
||||
line-height: 1.5;
|
||||
margin-top: 12px;
|
||||
max-width: 720px;
|
||||
.brand p,
|
||||
.panelHeader p,
|
||||
.panelHeading p,
|
||||
.settingsHeader p,
|
||||
.statItem p {
|
||||
color: var(--muted);
|
||||
font-size: 0.82rem;
|
||||
line-height: 1.35;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.heroActions,
|
||||
.toolbarActions,
|
||||
.buttonRow {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.primary {
|
||||
background: #1f5d53;
|
||||
color: #ffffff;
|
||||
box-shadow: 0 10px 24px rgba(31, 93, 83, 0.18);
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 18%, transparent);
|
||||
}
|
||||
|
||||
.secondary {
|
||||
background: #ffffff;
|
||||
color: #1f332d;
|
||||
box-shadow: inset 0 0 0 1px #d9ded5;
|
||||
.primary:hover:not(:disabled) {
|
||||
background: var(--accent-strong);
|
||||
}
|
||||
|
||||
.secondary,
|
||||
.iconButton,
|
||||
.segmented {
|
||||
background: var(--surface-solid);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.iconButton {
|
||||
background: #eef2ec;
|
||||
color: #26372f;
|
||||
min-width: 42px;
|
||||
min-width: 36px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.stats {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
.iconButton.subtle {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.stats div {
|
||||
background: rgba(255, 255, 255, 0.78);
|
||||
border: 1px solid #dde3da;
|
||||
.segmented {
|
||||
border-radius: 8px;
|
||||
padding: 14px 16px;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.stats span {
|
||||
color: #9b3f31;
|
||||
.segmented button {
|
||||
background: transparent;
|
||||
border-radius: 6px;
|
||||
color: var(--muted);
|
||||
min-height: 30px;
|
||||
min-width: 42px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.segmented button.active {
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent-strong);
|
||||
}
|
||||
|
||||
.statusStrip {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.statItem {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 10px 12px;
|
||||
}
|
||||
|
||||
.statItem span {
|
||||
color: var(--danger);
|
||||
display: block;
|
||||
font-size: 1.35rem;
|
||||
font-size: 1.08rem;
|
||||
font-weight: 850;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.stats p,
|
||||
.panelHeader p,
|
||||
.replacement p {
|
||||
color: #64726d;
|
||||
font-size: 0.86rem;
|
||||
line-height: 1.4;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.workspace {
|
||||
.workbench {
|
||||
display: grid;
|
||||
flex: 1;
|
||||
gap: 18px;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
min-height: 430px;
|
||||
gap: 12px;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.panel,
|
||||
.replacementPanel {
|
||||
background: rgba(255, 255, 255, 0.86);
|
||||
border: 1px solid #dbe2d8;
|
||||
.editorPanel,
|
||||
.dataPanel {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 20px 54px rgba(54, 67, 61, 0.1);
|
||||
box-shadow: var(--shadow);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.panel {
|
||||
.editorPanel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.panelHeader {
|
||||
.panelHeader,
|
||||
.panelHeading {
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #e2e6de;
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
gap: 12px;
|
||||
justify-content: space-between;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.panelHeader.compact {
|
||||
border-bottom: 0;
|
||||
padding-bottom: 10px;
|
||||
min-height: 62px;
|
||||
padding: 11px 12px;
|
||||
}
|
||||
|
||||
textarea {
|
||||
background: #101815;
|
||||
background: var(--editor-bg);
|
||||
border: 0;
|
||||
color: #e7eee8;
|
||||
color: var(--editor-text);
|
||||
flex: 1;
|
||||
font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
|
||||
font-size: 0.92rem;
|
||||
line-height: 1.55;
|
||||
min-height: 360px;
|
||||
min-height: 0;
|
||||
outline: none;
|
||||
padding: 18px;
|
||||
padding: 15px;
|
||||
resize: none;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
textarea::selection {
|
||||
background: #be4e3d;
|
||||
color: #ffffff;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.replacementPanel {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
|
||||
.replacementGrid {
|
||||
.lowerGrid {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.replacement {
|
||||
align-items: flex-start;
|
||||
background: #f7f8f4;
|
||||
border: 1px solid #e1e6dd;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
justify-content: space-between;
|
||||
min-height: 88px;
|
||||
padding: 13px;
|
||||
grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.replacement strong {
|
||||
color: #26372f;
|
||||
display: block;
|
||||
font-size: 0.86rem;
|
||||
line-height: 1.35;
|
||||
.dataPanel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
|
||||
.panelHeading {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.defaultsList {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
padding: 0 12px 10px;
|
||||
}
|
||||
|
||||
.defaultRow {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
grid-template-columns: minmax(120px, 0.9fr) minmax(140px, 1.1fr) 36px;
|
||||
}
|
||||
|
||||
.fullWidth {
|
||||
margin: 0 12px;
|
||||
}
|
||||
|
||||
.requirementsTable {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
margin: 0 12px;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.tableHeader,
|
||||
.tableRow {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
grid-template-columns: minmax(180px, 0.95fr) minmax(160px, 1fr) minmax(150px, 0.8fr);
|
||||
min-width: 620px;
|
||||
}
|
||||
|
||||
.tableHeader {
|
||||
background: var(--surface-subtle);
|
||||
color: var(--muted);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 850;
|
||||
padding: 9px 12px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.tableRow {
|
||||
align-items: center;
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 10px 12px;
|
||||
}
|
||||
|
||||
.tableRow code {
|
||||
color: var(--text);
|
||||
font-family: "Cascadia Code", Consolas, monospace;
|
||||
font-size: 0.82rem;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.replacement span {
|
||||
background: #e6efe8;
|
||||
border-radius: 999px;
|
||||
color: #23594f;
|
||||
flex: 0 0 auto;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 800;
|
||||
max-width: 42%;
|
||||
padding: 6px 9px;
|
||||
.tableRow span {
|
||||
color: var(--muted);
|
||||
font-size: 0.84rem;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.tableRow strong {
|
||||
color: var(--accent-strong);
|
||||
font-size: 0.82rem;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.empty {
|
||||
color: #66736d;
|
||||
padding: 0 16px 4px;
|
||||
color: var(--muted);
|
||||
padding: 0 12px 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 1050px) {
|
||||
.settingsOverlay {
|
||||
align-items: stretch;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
display: flex;
|
||||
inset: 0;
|
||||
justify-content: flex-end;
|
||||
padding: 14px;
|
||||
position: fixed;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.settingsPanel {
|
||||
background: var(--surface-solid);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
box-shadow: var(--shadow);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: 380px;
|
||||
min-width: 320px;
|
||||
padding: 14px;
|
||||
width: 28vw;
|
||||
}
|
||||
|
||||
.settingsHeader {
|
||||
align-items: flex-start;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.settingsGroup {
|
||||
border-top: 1px solid var(--border);
|
||||
margin-top: 18px;
|
||||
padding-top: 18px;
|
||||
}
|
||||
|
||||
.settingsGroup label {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 800;
|
||||
gap: 8px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.languageGrid {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.languageGrid button {
|
||||
background: var(--surface-subtle);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.languageGrid button.selected {
|
||||
background: var(--accent-soft);
|
||||
border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
|
||||
color: var(--accent-strong);
|
||||
}
|
||||
|
||||
.settingsMeta {
|
||||
border-top: 1px solid var(--border);
|
||||
color: var(--muted);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-size: 0.78rem;
|
||||
gap: 6px;
|
||||
margin-top: auto;
|
||||
padding-top: 14px;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.appShell {
|
||||
grid-template-rows: auto auto minmax(420px, 1fr) minmax(320px, auto);
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
body {
|
||||
min-width: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.shell {
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.hero,
|
||||
.workspace {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.hero {
|
||||
.toolbar,
|
||||
.toolbarActions {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.heroActions {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.25rem;
|
||||
}
|
||||
|
||||
.replacementGrid,
|
||||
.stats {
|
||||
.workbench,
|
||||
.lowerGrid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.appShell {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.statusStrip {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.toolbarActions {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.toolbarActions .secondary,
|
||||
.toolbarActions .segmented {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.defaultRow {
|
||||
grid-template-columns: 1fr 1fr 36px;
|
||||
}
|
||||
|
||||
.settingsPanel {
|
||||
max-width: none;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user