/ proof-of-concept / steelsim41
Sign in
proof-of-concept / steelsim41
steelsim41 / src / style.css
69 lines · 4.0 KBCodeBlameHistory
2 color-scheme: dark;
3 --bg: #15171a;
4 --panel: #1c1e22;
5 --border: #2c3036;
6 --text: #dfe2e6;
7 --muted: #9aa0a8;
8 --accent: #f0b429;
9 --accent2: #3b8ce6;
10 font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
11 font-size: 13px;
13* { box-sizing: border-box; }
14html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
15#app { display: flex; height: 100vh; }
16#sidebar {
17 width: 420px; flex: none; overflow-y: auto; padding: 12px 14px; background: var(--panel);
18 border-right: 1px solid var(--border);
20#main { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 8px; gap: 6px; }
21h1 { font-size: 17px; margin: 0 0 4px; }
22.sub { color: var(--muted); margin: 0 0 8px; line-height: 1.35; }
23a { color: var(--accent2); }
24details { border-top: 1px solid var(--border); padding: 4px 0; }
25details summary { cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 4px 0; }
26.field { display: grid; grid-template-columns: 1fr 92px 46px; align-items: center; gap: 6px; margin: 3px 0; }
27.field label { color: var(--text); }
28.field .unit { color: var(--muted); font-size: 11px; }
29input[type=number], select, textarea {
30 width: 100%; background: #0f1113; color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 3px 5px; font: inherit;
32input[type=number]:disabled, textarea:disabled { color: var(--muted); }
33button {
34 background: #2a2e34; color: var(--text); border: 1px solid #3a3f47; border-radius: 5px; padding: 5px 10px; font: inherit; cursor: pointer;
36button:hover { background: #343941; }
37button:disabled { opacity: 0.45; cursor: default; }
38button.primary { background: var(--accent); color: #1a1500; border-color: var(--accent); font-weight: 600; }
39button.primary:hover { background: #f8c453; }
40#controls { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; border-top: 1px solid var(--border); padding-top: 8px; }
41#info { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
42.row { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; }
43.row span:last-child { font-variant-numeric: tabular-nums; color: var(--text); text-align: right; }
44.row span:first-child { color: var(--muted); flex: none; }
45.warn { color: var(--accent); }
46.err { color: #ff6b6b; }
47.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; }
48.toolbar label { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
49.toolbar input[type=number], .toolbar select { width: 82px; }
50.toolbar select { width: auto; }
51.toolbar input[type=range] { flex: 1; min-width: 120px; }
52.toolbar .time { font-variant-numeric: tabular-nums; min-width: 72px; }
53#viewWrap { position: relative; flex: 3; min-height: 200px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
54#view { width: 100%; height: 100%; display: block; touch-action: none; }
55#spec { flex: 2; min-height: 140px; width: 100%; border: 1px solid var(--border); border-radius: 6px; }
56#nogpu[hidden] { display: none; }
57#nogpu { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: #ff8a8a; background: var(--bg); }
58.seg button.on { background: var(--accent2); border-color: var(--accent2); color: white; }
59button.on { background: var(--accent2); border-color: var(--accent2); color: white; }
60.editor-head { display: flex; align-items: center; gap: 6px; margin: 4px 0 6px; }
61.editor-head label { color: var(--muted); flex: none; }
62.editor-head select { flex: 1; }
63textarea.script {
64 font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.4;
65 min-height: 280px; height: 340px; resize: vertical; white-space: pre; overflow: auto; tab-size: 2;
67.editor-status { margin: 6px 0 4px; min-height: 1.2em; white-space: pre-wrap; }
68.editor-summary { margin-bottom: 6px; }
69.editor-summary .warn { margin-top: 4px; line-height: 1.35; }
↑↓ move↵openescclose