/ proof-of-concept / steelsim41
Sign in
proof-of-concept / steelsim41
steelsim41 / src / style.css
84 lines · 4.9 KBBlameHistoryRaw
1:root {
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; min-width: 0; display: flex; flex-direction: column;
18 background: var(--panel);
20/* The head does not scroll, so Start stays in reach however long the script is. */
21#sidebarHead { flex: none; padding: 10px 14px 8px; border-bottom: 1px solid var(--border); }
22#sidebarBody { flex: 1; overflow-y: auto; padding: 10px 14px 16px; }
23#splitter {
24 flex: none; width: 6px; cursor: col-resize; background: var(--border);
25 border-left: 1px solid var(--bg); border-right: 1px solid var(--bg);
27#splitter:hover, #splitter.dragging { background: var(--accent2); }
28body.resizing { cursor: col-resize; user-select: none; }
29#main { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 8px; gap: 6px; }
30h1 { font-size: 15px; margin: 0 0 6px; }
31.sub { color: var(--muted); margin: 0 0 8px; line-height: 1.35; }
32a { color: var(--accent2); }
33details { border-top: 1px solid var(--border); padding: 4px 0; }
34details summary { cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 4px 0; }
35/* Explanatory prose, folded away by default so the panel stays a panel. */
36details.blurb { border-top: none; padding: 0; margin: 2px 0; }
37details.blurb > summary { text-transform: none; letter-spacing: 0; color: var(--muted); padding: 2px 0; }
38details.blurb > summary:hover { color: var(--text); }
39details.blurb > .sub { margin: 4px 0 6px; }
40.field { display: grid; grid-template-columns: 1fr 92px 46px; align-items: center; gap: 6px; margin: 3px 0; }
41.field label { color: var(--text); }
42.field .unit { color: var(--muted); font-size: 11px; }
43input[type=number], select, textarea {
44 width: 100%; background: #0f1113; color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 3px 5px; font: inherit;
46input[type=number]:disabled, textarea:disabled { color: var(--muted); }
47button {
48 background: #2a2e34; color: var(--text); border: 1px solid #3a3f47; border-radius: 5px; padding: 5px 10px; font: inherit; cursor: pointer;
50button:hover { background: #343941; }
51button:disabled { opacity: 0.45; cursor: default; }
52button.primary { background: var(--accent); color: #1a1500; border-color: var(--accent); font-weight: 600; }
53button.primary:hover { background: #f8c453; }
54#controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
55#controls .field { display: flex; align-items: center; gap: 6px; width: auto; flex: 1 1 100%; }
56#controls .field label { flex: none; }
57#controls .field input { width: 80px; flex: none; }
58#info { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
59.row { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; }
60.row span:last-child { font-variant-numeric: tabular-nums; color: var(--text); text-align: right; }
61.row span:first-child { color: var(--muted); flex: none; }
62.warn { color: var(--accent); }
63.err { color: #ff6b6b; }
64.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; }
65.toolbar label { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
66.toolbar input[type=number], .toolbar select { width: 82px; }
67.toolbar select { width: auto; }
68.toolbar input[type=range] { flex: 1; min-width: 120px; }
69.toolbar .time { font-variant-numeric: tabular-nums; min-width: 72px; }
70#viewWrap { position: relative; flex: 3; min-height: 200px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
71#view { width: 100%; height: 100%; display: block; touch-action: none; }
72#spec { flex: 2; min-height: 140px; width: 100%; border: 1px solid var(--border); border-radius: 6px; }
73#nogpu[hidden] { display: none; }
74#nogpu { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: #ff8a8a; background: var(--bg); }
75.seg button.on { background: var(--accent2); border-color: var(--accent2); color: white; }
76button.on { background: var(--accent2); border-color: var(--accent2); color: white; }
77.editor-head { display: flex; align-items: center; gap: 6px; margin: 4px 0 6px; }
78.editor-head label { color: var(--muted); flex: none; }
79.editor-head select { flex: 1; }
80.script { resize: vertical; overflow: hidden; min-height: 200px; height: 340px; }
81.script .cm-editor { height: 100%; }
82.editor-status { margin: 6px 0 4px; min-height: 1.2em; white-space: pre-wrap; }
83.editor-summary { margin-bottom: 6px; }
84.editor-summary .warn { margin-top: 4px; line-height: 1.35; }
↑↓ move↵openescclose