BangSo/apps/desktop/src/setup.css

278 lines
4.4 KiB
CSS
Raw Normal View History

2026-09-01 16:51:19 +00:00
:root {
color-scheme: dark;
--bg: #050506;
--panel: #0f0f12;
--panel-raised: #17171c;
--border: #26262e;
--border-strong: #3a3a46;
--text: #f4f4f6;
--text-muted: #9a9aa8;
--accent: #2563eb;
--accent-hover: #3b76f2;
--danger: #f87171;
--ok: #4ade80;
}
* {
box-sizing: border-box;
}
html,
body {
height: 100%;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family:
"Segoe UI", -apple-system, BlinkMacSystemFont, Inter, Roboto, Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
display: flex;
flex-direction: column;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.titlebar {
-webkit-app-region: drag;
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
flex: none;
}
.titlebar-name {
font-size: 12px;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-muted);
}
.titlebar-quit {
-webkit-app-region: no-drag;
background: none;
border: 0;
color: var(--text-muted);
font: inherit;
font-size: 12px;
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
}
.titlebar-quit:hover {
color: var(--text);
background: var(--panel-raised);
}
.shell {
flex: 1;
width: 100%;
max-width: 620px;
margin: 0 auto;
padding: 24px 28px 32px;
display: flex;
flex-direction: column;
justify-content: center;
}
.heading {
margin: 0 0 8px;
font-size: 26px;
font-weight: 600;
letter-spacing: -0.01em;
}
.subheading {
margin: 0 0 24px;
color: var(--text-muted);
}
.card {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 14px;
padding: 20px;
}
.choices {
border: 0;
margin: 0 0 18px;
padding: 0;
display: grid;
gap: 10px;
}
.choice {
display: flex;
gap: 12px;
align-items: flex-start;
padding: 14px;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--panel-raised);
cursor: pointer;
}
.choice:hover {
border-color: var(--border-strong);
}
.choice:has(input:checked) {
border-color: var(--accent);
background: color-mix(in srgb, var(--accent) 12%, var(--panel-raised));
}
.choice:has(input:focus-visible) {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.choice input {
margin: 2px 0 0;
accent-color: var(--accent);
flex: none;
}
.choice-body {
display: flex;
flex-direction: column;
gap: 3px;
}
.choice-title {
font-weight: 600;
}
.choice-note {
color: var(--text-muted);
font-size: 13px;
}
.panel {
margin-bottom: 4px;
}
.field-label {
display: block;
font-size: 12px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--text-muted);
margin-bottom: 6px;
}
.field {
width: 100%;
padding: 10px 12px;
border-radius: 9px;
border: 1px solid var(--border-strong);
background: #08080a;
color: var(--text);
font: inherit;
font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, monospace;
font-size: 13px;
}
.field:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 1px;
border-color: var(--accent);
}
.hint {
margin: 8px 0 0;
font-size: 12.5px;
color: var(--text-muted);
}
.hint code {
background: var(--panel-raised);
border: 1px solid var(--border);
border-radius: 5px;
padding: 1px 5px;
font-size: 12px;
}
.status {
margin: 14px 0 0;
min-height: 20px;
font-size: 13px;
color: var(--text-muted);
}
.status[data-tone="ok"] {
color: var(--ok);
}
.status[data-tone="error"] {
color: var(--danger);
}
.actions {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 18px;
}
.button {
font: inherit;
font-weight: 600;
padding: 9px 18px;
border-radius: 9px;
cursor: pointer;
border: 1px solid transparent;
}
.button:disabled {
opacity: 0.55;
cursor: default;
}
.button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.button-primary {
background: var(--accent);
color: #fff;
}
.button-primary:hover:not(:disabled) {
background: var(--accent-hover);
}
.button-secondary {
background: var(--panel-raised);
color: var(--text);
border-color: var(--border-strong);
}
.button-secondary:hover:not(:disabled) {
border-color: var(--text-muted);
}
.footnote {
margin: 16px 0 0;
font-size: 12px;
color: var(--text-muted);
text-align: center;
}