BlueGit

timfa timdraw

Files

timdraw / static / style.css

style.css

style.css 5.4 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.modes {
245 display: flex;
246 gap: 1rem;
247 margin-top: 0.3rem;
248}
249
250#layers {
251 list-style: none;
252 margin: 0 0 0.5rem;
253 padding: 0;
254 max-height: 180px;
255 overflow: auto;
256}
257
258#layers button {
259 width: 100%;
260 text-align: left;
261 background: transparent;
262 border: 0;
263 padding: 0.35rem 0.45rem;
264 border-radius: 6px;
265 display: flex;
266 justify-content: space-between;
267 gap: 0.5rem;
268}
269
270#layers button.active {
271 background: #4a3428;
272}
273
274#layers .tag {
275 color: var(--muted);
276 font-size: 0.75rem;
277}
278
279main {
280 position: relative;
281 min-width: 0;
282 background: #1a1613;
283}
284
285canvas {
286 width: 100%;
287 height: 100%;
288 display: block;
289 cursor: default;
290}
291
292.status-line {
293 display: flex;
294 align-items: center;
295 gap: 0.5rem;
296 font-weight: 650;
297}
298
299.lamp {
300 width: 0.7rem;
301 height: 0.7rem;
302 border-radius: 50%;
303 background: #6d645c;
304 display: inline-block;
305}
306
307.lamp.on {
308 background: var(--ok);
309}
310
311.lamp.busy {
312 background: var(--accent);
313}
314
315.lamp.bad {
316 background: var(--danger);
317}
318
319.error {
320 color: var(--danger);
321 margin: 0.3rem 0;
322 white-space: pre-wrap;
323}
324
325.mono {
326 font-family: "Liberation Mono", ui-monospace, monospace;
327}
328
329.jog {
330 display: grid;
331 justify-items: center;
332 gap: 0.3rem;
333 margin: 0.4rem 0 0.6rem;
334}
335
336.jog-mid {
337 display: flex;
338 gap: 0.3rem;
339 align-items: center;
340}
341
342.jog button {
343 width: 2.4rem;
344 height: 2.2rem;
345}
346
347.progress {
348 height: 6px;
349 background: #1a1613;
350 border-radius: 99px;
351 overflow: hidden;
352 margin: 0.4rem 0;
353}
354
355#bar {
356 height: 100%;
357 width: 0;
358 background: var(--accent);
359}
360
361#gray-props[hidden],
362#text-props[hidden] {
363 display: none;
364}
365
366@media (max-width: 860px) {
367 header {
368 grid-template-columns: 1fr auto;
369 }
370
371 .plot-actions {
372 grid-column: 1 / -1;
373 grid-row: 2;
374 justify-self: center;
375 }
376
377 body {
378 height: auto;
379 min-height: 100%;
380 overflow: auto;
381 }
382
383 .layout {
384 display: flex;
385 flex-direction: column;
386 height: auto;
387 flex: none;
388 }
389
390 .panel {
391 overflow: visible;
392 }
393
394 main {
395 height: 70vh;
396 flex: none;
397 }
398}