BlueGit

timfa timdraw

Files

timdraw / static / style.css

style.css

style.css 5.3 KiB Download Raw
1:root {
2 --bg: #241f1b;
3 --panel: #312b26;
4 --panel-2: #3a342e;
5 --ink: #f3ece3;
6 --muted: #b3a79b;
7 --line: #5a5148;
8 --accent: #e07a3d;
9 --accent-ink: #2a140c;
10 --paper: #f6f1e6;
11 --danger: #e07a72;
12 --ok: #7dcea0;
13 color-scheme: dark;
14 font-family: "Liberation Sans", "Source Sans 3", sans-serif;
15}
16
17* {
18 box-sizing: border-box;
19}
20
21html,
22body {
23 margin: 0;
24 height: 100%;
25 background: var(--bg);
26 color: var(--ink);
27}
28
29body {
30 display: flex;
31 flex-direction: column;
32 min-height: 100%;
33}
34
35button,
36input,
37select,
38textarea {
39 font: inherit;
40 color: inherit;
41}
42
43button,
44select,
45input,
46textarea {
47 background: var(--panel-2);
48 border: 1px solid var(--line);
49 border-radius: 6px;
50 padding: 0.4rem 0.55rem;
51}
52
53button {
54 cursor: pointer;
55}
56
57button:hover {
58 border-color: #8a7d70;
59}
60
61button.primary {
62 background: var(--accent);
63 color: var(--accent-ink);
64 border-color: transparent;
65 font-weight: 650;
66}
67
68button:disabled {
69 opacity: 0.45;
70 cursor: default;
71}
72
73textarea {
74 width: 100%;
75 resize: vertical;
76}
77
78header {
79 display: grid;
80 grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
81 align-items: center;
82 gap: 0.8rem;
83 padding: 0.65rem 1rem;
84 border-bottom: 1px solid var(--line);
85}
86
87.plot-actions {
88 display: flex;
89 gap: 0.4rem;
90 justify-self: center;
91}
92
93.brand {
94 display: flex;
95 flex-direction: column;
96 min-width: 11rem;
97}
98
99.brand span,
100.hint,
101.mono {
102 color: var(--muted);
103}
104
105.brand a {
106 color: var(--accent);
107 font-size: 0.82rem;
108 text-decoration: none;
109}
110
111.machine-name {
112 display: inline-flex;
113 align-items: center;
114 gap: 0.45rem;
115 width: fit-content;
116 margin: 0.15rem 0;
117 padding: 0.1rem 0.15rem;
118 background: transparent;
119 border: none;
120 color: var(--ink);
121 font-weight: 650;
122}
123
124.machine-name:hover {
125 color: var(--accent);
126}
127
128.connect-modal {
129 background: var(--panel);
130 color: var(--ink);
131 border: 1px solid var(--line);
132 border-radius: 12px;
133 padding: 1rem 1.1rem 1.15rem;
134 width: min(24rem, calc(100vw - 2rem));
135}
136
137.connect-modal::backdrop {
138 background: rgba(18, 14, 11, 0.72);
139}
140
141.connect-modal h2 {
142 margin: 0 0 0.6rem;
143}
144
145.hint {
146 font-size: 0.82rem;
147 line-height: 1.35;
148 margin: 0.35rem 0;
149}
150
151.header-actions {
152 justify-self: end;
153 display: flex;
154 gap: 0.8rem;
155 align-items: center;
156}
157
158.toast {
159 margin: 0;
160 padding: 0.35rem 0.7rem;
161 background: #4a3424;
162 border-radius: 999px;
163 color: #f6d7bf;
164}
165
166.layout {
167 flex: 1;
168 min-height: 0;
169 display: grid;
170 grid-template-columns: minmax(230px, 270px) minmax(0, 1fr) minmax(250px, 310px);
171}
172
173.panel {
174 overflow: auto;
175 padding: 0.8rem 0.9rem 1.4rem;
176 background: var(--panel);
177}
178
179.panel.left {
180 border-right: 1px solid var(--line);
181}
182
183.panel.right {
184 border-left: 1px solid var(--line);
185}
186
187section {
188 margin-bottom: 1.1rem;
189}
190
191h2 {
192 margin: 0 0 0.55rem;
193 font-size: 0.78rem;
194 letter-spacing: 0.08em;
195 text-transform: uppercase;
196 color: var(--muted);
197}
198
199.row {
200 display: flex;
201 gap: 0.4rem;
202}
203
204.row.wrap {
205 flex-wrap: wrap;
206}
207
208.row>button,
209.row>.primary {
210 flex: 1;
211}
212
213.split {
214 display: grid;
215 grid-template-columns: 1fr 1fr;
216 gap: 0.45rem;
217}
218
219.field {
220 display: flex;
221 flex-direction: column;
222 gap: 0.2rem;
223 font-size: 0.82rem;
224 color: var(--muted);
225 margin: 0.35rem 0;
226}
227
228.field input,
229.field select,
230.field textarea {
231 color: var(--ink);
232}
233
234.check {
235 display: flex;
236 gap: 0.45rem;
237 align-items: center;
238 margin: 0.3rem 0;
239 font-size: 0.92rem;
240}
241
242.modes {
243 display: flex;
244 gap: 1rem;
245 margin-top: 0.3rem;
246}
247
248#layers {
249 list-style: none;
250 margin: 0 0 0.5rem;
251 padding: 0;
252 max-height: 180px;
253 overflow: auto;
254}
255
256#layers button {
257 width: 100%;
258 text-align: left;
259 background: transparent;
260 border: 0;
261 padding: 0.35rem 0.45rem;
262 border-radius: 6px;
263 display: flex;
264 justify-content: space-between;
265 gap: 0.5rem;
266}
267
268#layers button.active {
269 background: #4a3428;
270}
271
272#layers .tag {
273 color: var(--muted);
274 font-size: 0.75rem;
275}
276
277main {
278 position: relative;
279 min-width: 0;
280 background: #1a1613;
281}
282
283canvas {
284 width: 100%;
285 height: 100%;
286 display: block;
287 cursor: default;
288}
289
290.status-line {
291 display: flex;
292 align-items: center;
293 gap: 0.5rem;
294 font-weight: 650;
295}
296
297.lamp {
298 width: 0.7rem;
299 height: 0.7rem;
300 border-radius: 50%;
301 background: #6d645c;
302 display: inline-block;
303}
304
305.lamp.on {
306 background: var(--ok);
307}
308
309.lamp.busy {
310 background: var(--accent);
311}
312
313.lamp.bad {
314 background: var(--danger);
315}
316
317.error {
318 color: var(--danger);
319 margin: 0.3rem 0;
320 white-space: pre-wrap;
321}
322
323.mono {
324 font-family: "Liberation Mono", ui-monospace, monospace;
325}
326
327.jog {
328 display: grid;
329 justify-items: center;
330 gap: 0.3rem;
331 margin: 0.4rem 0 0.6rem;
332}
333
334.jog-mid {
335 display: flex;
336 gap: 0.3rem;
337 align-items: center;
338}
339
340.jog button {
341 width: 2.4rem;
342 height: 2.2rem;
343}
344
345.progress {
346 height: 6px;
347 background: #1a1613;
348 border-radius: 99px;
349 overflow: hidden;
350 margin: 0.4rem 0;
351}
352
353#bar {
354 height: 100%;
355 width: 0;
356 background: var(--accent);
357}
358
359#gray-props[hidden],
360#text-props[hidden] {
361 display: none;
362}
363
364@media (max-width: 860px) {
365 header {
366 grid-template-columns: 1fr auto;
367 }
368
369 .plot-actions {
370 grid-column: 1 / -1;
371 grid-row: 2;
372 justify-self: center;
373 }
374
375 body {
376 height: auto;
377 min-height: 100%;
378 overflow: auto;
379 }
380
381 .layout {
382 display: flex;
383 flex-direction: column;
384 height: auto;
385 flex: none;
386 }
387
388 .panel {
389 overflow: visible;
390 }
391
392 main {
393 height: 70vh;
394 flex: none;
395 }
396}