BlueGit

timfa timdraw

Files

timdraw / static / style.css

style.css

style.css 5.6 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(28rem, calc(100vw - 2rem));
135 max-height: calc(100vh - 2rem);
136 overflow: auto;
137}
138
139.connect-modal::backdrop {
140 background: rgba(18, 14, 11, 0.72);
141}
142
143.connect-modal h2 {
144 margin: 0 0 0.6rem;
145}
146
147.hint {
148 font-size: 0.82rem;
149 line-height: 1.35;
150 margin: 0.35rem 0;
151}
152
153.header-actions {
154 justify-self: end;
155 display: flex;
156 gap: 0.8rem;
157 align-items: center;
158}
159
160.toast {
161 margin: 0;
162 padding: 0.35rem 0.7rem;
163 background: #4a3424;
164 border-radius: 999px;
165 color: #f6d7bf;
166}
167
168.layout {
169 flex: 1;
170 min-height: 0;
171 display: grid;
172 grid-template-columns: minmax(230px, 270px) minmax(0, 1fr) minmax(250px, 310px);
173}
174
175.panel {
176 overflow: auto;
177 padding: 0.8rem 0.9rem 1.4rem;
178 background: var(--panel);
179}
180
181.panel.left {
182 border-right: 1px solid var(--line);
183}
184
185.panel.right {
186 border-left: 1px solid var(--line);
187}
188
189section {
190 margin-bottom: 1.1rem;
191}
192
193h2 {
194 margin: 0 0 0.55rem;
195 font-size: 0.78rem;
196 letter-spacing: 0.08em;
197 text-transform: uppercase;
198 color: var(--muted);
199}
200
201.row {
202 display: flex;
203 gap: 0.4rem;
204}
205
206.row.wrap {
207 flex-wrap: wrap;
208}
209
210.row>button,
211.row>.primary {
212 flex: 1;
213}
214
215.split {
216 display: grid;
217 grid-template-columns: 1fr 1fr;
218 gap: 0.45rem;
219}
220
221.field {
222 display: flex;
223 flex-direction: column;
224 gap: 0.2rem;
225 font-size: 0.82rem;
226 color: var(--muted);
227 margin: 0.35rem 0;
228}
229
230.field input,
231.field select,
232.field textarea {
233 color: var(--ink);
234}
235
236.check {
237 display: flex;
238 gap: 0.45rem;
239 align-items: center;
240 margin: 0.3rem 0;
241 font-size: 0.92rem;
242}
243
244.check.pulse {
245 border-radius: 0.35rem;
246 animation: soft-pulse 1.8s ease-in-out infinite;
247}
248
249@keyframes soft-pulse {
250 0%, 100% { background: transparent; }
251 50% { background: rgba(215, 38, 61, 0.16); }
252}
253
254.modes {
255 display: flex;
256 gap: 1rem;
257 margin-top: 0.3rem;
258}
259
260#layers {
261 list-style: none;
262 margin: 0 0 0.5rem;
263 padding: 0;
264 max-height: 180px;
265 overflow: auto;
266}
267
268#layers button {
269 width: 100%;
270 text-align: left;
271 background: transparent;
272 border: 0;
273 padding: 0.35rem 0.45rem;
274 border-radius: 6px;
275 display: flex;
276 justify-content: space-between;
277 gap: 0.5rem;
278}
279
280#layers button.active {
281 background: #4a3428;
282}
283
284#layers .tag {
285 color: var(--muted);
286 font-size: 0.75rem;
287}
288
289main {
290 position: relative;
291 min-width: 0;
292 background: #1a1613;
293}
294
295canvas {
296 width: 100%;
297 height: 100%;
298 display: block;
299 cursor: default;
300}
301
302.status-line {
303 display: flex;
304 align-items: center;
305 gap: 0.5rem;
306 font-weight: 650;
307}
308
309.lamp {
310 width: 0.7rem;
311 height: 0.7rem;
312 border-radius: 50%;
313 background: #6d645c;
314 display: inline-block;
315}
316
317.lamp.on {
318 background: var(--ok);
319}
320
321.lamp.busy {
322 background: var(--accent);
323}
324
325.lamp.bad {
326 background: var(--danger);
327}
328
329.error {
330 color: var(--danger);
331 margin: 0.3rem 0;
332 white-space: pre-wrap;
333}
334
335.mono {
336 font-family: "Liberation Mono", ui-monospace, monospace;
337}
338
339.jog {
340 display: grid;
341 justify-items: center;
342 gap: 0.3rem;
343 margin: 0.4rem 0 0.6rem;
344}
345
346.jog-mid {
347 display: flex;
348 gap: 0.3rem;
349 align-items: center;
350}
351
352.jog button {
353 width: 2.4rem;
354 height: 2.2rem;
355}
356
357.progress {
358 height: 6px;
359 background: #1a1613;
360 border-radius: 99px;
361 overflow: hidden;
362 margin: 0.4rem 0;
363}
364
365#bar {
366 height: 100%;
367 width: 0;
368 background: var(--accent);
369}
370
371#gray-props[hidden],
372#text-props[hidden] {
373 display: none;
374}
375
376@media (max-width: 860px) {
377 header {
378 grid-template-columns: 1fr auto;
379 }
380
381 .plot-actions {
382 grid-column: 1 / -1;
383 grid-row: 2;
384 justify-self: center;
385 }
386
387 body {
388 height: auto;
389 min-height: 100%;
390 overflow: auto;
391 }
392
393 .layout {
394 display: flex;
395 flex-direction: column;
396 height: auto;
397 flex: none;
398 }
399
400 .panel {
401 overflow: visible;
402 }
403
404 main {
405 height: 70vh;
406 flex: none;
407 }
408}