e53205fShow one parameter across its range, not only at a pointJeremy Magland 1/* One stylesheet for both pages (index.html and sweep.html), linked from
2 each head so the two stay one design rather than drifting copies. */
3:root {
4 --bg: #ffffff;
5 --ink: #1f2328;
6 --ink-2: #57606a;
7 --line: #d0d7de;
8 --accent: #0969da;
9 --ok: #1a7f37;
10 --sphere-bg: #f4f6f8;
11 color-scheme: light dark;
12}
13@media (prefers-color-scheme: dark) {
14 :root {
15 --bg: #14171a;
16 --ink: #e6e9ec;
17 --ink-2: #9aa4af;
18 --line: #333b44;
19 --accent: #58a6ff;
20 --ok: #3fb950;
21 --sphere-bg: #14161c;
22 }
23}
24body {
25 margin: 0;
26 background: var(--bg);
27 color: var(--ink);
28 font: 15px/1.5 system-ui, -apple-system, sans-serif;
29}
30main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 48px; }
31h1 { font-size: 20px; margin: 0 0 2px; }
32.sub { color: var(--ink-2); margin: 0 0 12px; font-size: 13px; }
33.sub a { color: var(--accent); }
34.controls {
35 display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
36 padding: 6px 0;
37}
38.controls[hidden] { display: none; }
39.controls label { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
40select, input[type="password"], input[type="text"], button {
41 font: inherit; font-size: 13px;
42 color: var(--ink); background: var(--bg);
43 border: 1px solid var(--line); border-radius: 6px;
44 padding: 4px 8px;
45}
46button { cursor: pointer; }
47button:hover { border-color: var(--accent); }
48button.primary { border-color: var(--accent); color: var(--accent); font-weight: 600; min-width: 8em; }
49button:disabled { opacity: 0.5; cursor: default; }
50#cachenote { font-size: 13px; color: var(--ink-2); }
51#cachenote b { color: var(--ok); font-weight: 600; }
52#status { margin-top: 10px; font-size: 13.5px; }
53#status b { font-weight: 600; }
54#panels { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
55.panel {
56 flex: 1 1 320px; min-width: 280px;
57 border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
58 display: flex;
59}
60.sphere-box { flex: 1; aspect-ratio: 1 / 1; max-height: 70vh; position: relative; }
61.species-tag {
62 position: absolute; top: 8px; left: 10px; z-index: 2;
63 font-size: 15px; font-weight: 600; color: #fff;
64 background: rgba(0, 0, 0, 0.45);
65 padding: 1px 10px; border-radius: 12px;
66 pointer-events: none;
67}
68.colorbar {
69 display: flex; flex-direction: column; align-items: center; justify-content: center;
70 gap: 4px; padding: 8px 4px; background: var(--sphere-bg);
71 width: 52px; flex: none; box-sizing: border-box;
72}
73.colorbar canvas { border: 1px solid var(--line); border-radius: 2px; }
74.colorbar-label { font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
75.stats { margin-top: 10px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
76.stats b { color: var(--ink); font-weight: 600; }
77.cloud {
78 margin-top: 14px; border: 1px solid var(--line); border-radius: 8px;
79 padding: 8px 12px; font-size: 13px; color: var(--ink-2);
80}
81.cloud .controls { padding: 2px 0 0; }
82/* The same walk, spelled as a command for a machine with no browser on
83 it. The key is masked here and real in the clipboard, so the command
84 is paste-and-go without the key ending up in a screenshot. */
85#clicmd {
86 font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
87 color: var(--ink); background: var(--sphere-bg);
88 border: 1px solid var(--line); border-radius: 6px;
89 padding: 3px 8px; max-width: 100%;
90 overflow-x: auto; white-space: nowrap;
91}
92#clicopied { color: var(--ok); }
93/* Troubleshooting, folded away: the failures below are undiscoverable
94 from the error alone, and the page is where people start. */
95#clihelp { margin-top: 4px; font-size: 12.5px; }
96#clihelp[hidden] { display: none; }
97#clihelp summary { cursor: pointer; color: var(--accent); width: fit-content; }
98#clihelp p { margin: 8px 0; max-width: 68ch; }
99#clihelp code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
100#clihelp pre {
101 font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
102 background: var(--sphere-bg); border: 1px solid var(--line);
103 border-radius: 6px; padding: 8px 10px; overflow-x: auto;
104 color: var(--ink);
105}
106#err { color: #b35900; white-space: pre-wrap; font-size: 13px; }
108/* The sweep page's knob: one model parameter running over its listed values,
109 everything else fixed. The tick under each value says whether that value is
110 in the cache — dimmed ones are not there yet. */
111.sweepbar {
112 display: flex; align-items: flex-start; gap: 14px;
113 margin-top: 10px; flex-wrap: wrap;
114}
115.knobtrack { flex: 0 1 420px; min-width: 240px; display: flex; flex-direction: column; }
116#knob { width: 100%; margin: 2px 0 0; accent-color: var(--accent); }
117.ticks { display: flex; justify-content: space-between; }
118.tick {
119 border: none; background: none; padding: 2px 0; cursor: pointer;
120 font-family: inherit; font-size: 12.5px;
121 font-variant-numeric: tabular-nums;
122 color: var(--ink-2); opacity: 0.55;
123}
124.tick.cached { opacity: 1; }
125.tick.current { color: var(--accent); font-weight: 600; opacity: 1; }
126#knobval {
127 font-size: 15px; font-weight: 600; padding-top: 14px;
128 font-variant-numeric: tabular-nums; white-space: nowrap;
129}
130#values { font-variant-numeric: tabular-nums; }
131#valuesnote { font-size: 12.5px; color: var(--ink-2); }