BlueGit

timfa timdraw

Files

timdraw / static / style.css

style.css

727c7433 History
style.css 5.1 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: flex;
80 align-items: center;
81 gap: 1rem;
82 padding: 0.65rem 1rem;
83 border-bottom: 1px solid var(--line);
84}
85
86.brand {
87 display: flex;
88 flex-direction: column;
89 min-width: 11rem;
90}
91
92.brand span,
93.hint,
94.mono {
95 color: var(--muted);
96}
97
98.brand a {
99 color: var(--accent);
100 font-size: 0.82rem;
101 text-decoration: none;
102}
103
104.machine-name {
105 display: inline-flex;
106 align-items: center;
107 gap: 0.45rem;
108 width: fit-content;
109 margin: 0.15rem 0;
110 padding: 0.1rem 0.15rem;
111 background: transparent;
112 border: none;
113 color: var(--ink);
114 font-weight: 650;
115}
116
117.machine-name:hover {
118 color: var(--accent);
119}
120
121.connect-modal {
122 background: var(--panel);
123 color: var(--ink);
124 border: 1px solid var(--line);
125 border-radius: 12px;
126 padding: 1rem 1.1rem 1.15rem;
127 width: min(24rem, calc(100vw - 2rem));
128}
129
130.connect-modal::backdrop {
131 background: rgba(18, 14, 11, 0.72);
132}
133
134.connect-modal h2 {
135 margin: 0 0 0.6rem;
136}
137
138.hint {
139 font-size: 0.82rem;
140 line-height: 1.35;
141 margin: 0.35rem 0;
142}
143
144.header-actions {
145 margin-left: auto;
146 display: flex;
147 gap: 0.8rem;
148 align-items: center;
149}
150
151.toast {
152 margin: 0;
153 padding: 0.35rem 0.7rem;
154 background: #4a3424;
155 border-radius: 999px;
156 color: #f6d7bf;
157}
158
159.layout {
160 flex: 1;
161 min-height: 0;
162 display: grid;
163 grid-template-columns: minmax(230px, 270px) minmax(0, 1fr) minmax(250px, 310px);
164}
165
166.panel {
167 overflow: auto;
168 padding: 0.8rem 0.9rem 1.4rem;
169 background: var(--panel);
170}
171
172.panel.left {
173 border-right: 1px solid var(--line);
174}
175
176.panel.right {
177 border-left: 1px solid var(--line);
178}
179
180section {
181 margin-bottom: 1.1rem;
182}
183
184h2 {
185 margin: 0 0 0.55rem;
186 font-size: 0.78rem;
187 letter-spacing: 0.08em;
188 text-transform: uppercase;
189 color: var(--muted);
190}
191
192.row {
193 display: flex;
194 gap: 0.4rem;
195}
196
197.row.wrap {
198 flex-wrap: wrap;
199}
200
201.row>button,
202.row>.primary {
203 flex: 1;
204}
205
206.split {
207 display: grid;
208 grid-template-columns: 1fr 1fr;
209 gap: 0.45rem;
210}
211
212.field {
213 display: flex;
214 flex-direction: column;
215 gap: 0.2rem;
216 font-size: 0.82rem;
217 color: var(--muted);
218 margin: 0.35rem 0;
219}
220
221.field input,
222.field select,
223.field textarea {
224 color: var(--ink);
225}
226
227.check {
228 display: flex;
229 gap: 0.45rem;
230 align-items: center;
231 margin: 0.3rem 0;
232 font-size: 0.92rem;
233}
234
235.modes {
236 display: flex;
237 gap: 1rem;
238 margin-top: 0.3rem;
239}
240
241#layers {
242 list-style: none;
243 margin: 0 0 0.5rem;
244 padding: 0;
245 max-height: 180px;
246 overflow: auto;
247}
248
249#layers button {
250 width: 100%;
251 text-align: left;
252 background: transparent;
253 border: 0;
254 padding: 0.35rem 0.45rem;
255 border-radius: 6px;
256 display: flex;
257 justify-content: space-between;
258 gap: 0.5rem;
259}
260
261#layers button.active {
262 background: #4a3428;
263}
264
265#layers .tag {
266 color: var(--muted);
267 font-size: 0.75rem;
268}
269
270main {
271 position: relative;
272 min-width: 0;
273 background: #1a1613;
274}
275
276canvas {
277 width: 100%;
278 height: 100%;
279 display: block;
280 cursor: default;
281}
282
283.status-line {
284 display: flex;
285 align-items: center;
286 gap: 0.5rem;
287 font-weight: 650;
288}
289
290.lamp {
291 width: 0.7rem;
292 height: 0.7rem;
293 border-radius: 50%;
294 background: #6d645c;
295 display: inline-block;
296}
297
298.lamp.on {
299 background: var(--ok);
300}
301
302.lamp.busy {
303 background: var(--accent);
304}
305
306.lamp.bad {
307 background: var(--danger);
308}
309
310.error {
311 color: var(--danger);
312 margin: 0.3rem 0;
313 white-space: pre-wrap;
314}
315
316.mono {
317 font-family: "Liberation Mono", ui-monospace, monospace;
318}
319
320.jog {
321 display: grid;
322 justify-items: center;
323 gap: 0.3rem;
324 margin: 0.4rem 0 0.6rem;
325}
326
327.jog-mid {
328 display: flex;
329 gap: 0.3rem;
330 align-items: center;
331}
332
333.jog button {
334 width: 2.4rem;
335 height: 2.2rem;
336}
337
338.progress {
339 height: 6px;
340 background: #1a1613;
341 border-radius: 99px;
342 overflow: hidden;
343 margin: 0.4rem 0;
344}
345
346#bar {
347 height: 100%;
348 width: 0;
349 background: var(--accent);
350}
351
352#gray-props[hidden],
353#text-props[hidden] {
354 display: none;
355}
356
357@media (max-width: 860px) {
358 body {
359 height: auto;
360 min-height: 100%;
361 overflow: auto;
362 }
363
364 .layout {
365 display: flex;
366 flex-direction: column;
367 height: auto;
368 flex: none;
369 }
370
371 .panel {
372 overflow: visible;
373 }
374
375 main {
376 height: 70vh;
377 flex: none;
378 }
379}