BlueGit

timfa questward

Files

questward / client / ui / editor.css

editor.css

editor.css 11.1 KiB Download Raw
1:root {
2 color-scheme: dark;
3 font-family: "Segoe UI", sans-serif;
4 background: #12151b;
5 color: #e8e4d9;
6}
7
8html, body {
9 margin: 0;
10 min-height: 100%;
11}
12
13body > header {
14 padding: 0.6rem 1rem;
15 border-bottom: 1px solid #2c3340;
16}
17
18body > aside {
19 position: absolute;
20 left: 0;
21 top: 56px;
22 width: 250px;
23 bottom: 0;
24 overflow: auto;
25 padding: 0.75rem;
26 box-sizing: border-box;
27 background: #1a1e26;
28 border-right: 1px solid #2c3340;
29}
30
31#changelog-wrap {
32 position: absolute;
33 right: 0;
34 top: 56px;
35 width: 280px;
36 bottom: 0;
37 overflow: auto;
38 padding: 0.75rem;
39 box-sizing: border-box;
40 background: #1a1e26;
41 border-left: 1px solid #2c3340;
42}
43
44.nav, .palette {
45 display: flex;
46 flex-direction: column;
47 gap: 0.35rem;
48 margin: 0.75rem 0;
49}
50
51button, input {
52 font: inherit;
53 background: #101216;
54 color: inherit;
55 border: 1px solid #3a4250;
56 padding: 0.3rem 0.5rem;
57}
58
59button { cursor: pointer; }
60button:disabled {
61 opacity: 0.45;
62 cursor: not-allowed;
63}
64#apply-status.ok { color: #b8d4a0; }
65.error { color: #f0a0a0; }
66.hint { color: #9aa3b2; font-size: 0.85rem; }
67.open-toggle { display: flex; gap: 0.4rem; align-items: center; }
68article { margin-bottom: 0.75rem; }
69fieldset { border-color: #3a4250; margin-top: 1rem; }
70#selection-border {
71 position: fixed;
72 pointer-events: none;
73 box-sizing: border-box;
74 border: 2px solid #e23d3d;
75 box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
76 z-index: 4;
77}
78
79label { display: block; margin: 0.4rem 0; }
80
81#settings-backdrop {
82 position: fixed;
83 inset: 0;
84 background: rgba(0, 0, 0, 0.62);
85 z-index: 19;
86}
87
88#settings-modal {
89 position: fixed;
90 inset: 4vh 4vw;
91 z-index: 20;
92 display: flex;
93 background: #161a22;
94 border: 1px solid #3a4250;
95 box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
96}
97
98#settings-modal[hidden],
99#settings-backdrop[hidden] {
100 display: none !important;
101}
102
103#settings-main {
104 flex: 1;
105 min-width: 0;
106 display: flex;
107 flex-direction: column;
108}
109
110#settings-main header,
111#settings-main footer {
112 display: flex;
113 align-items: center;
114 justify-content: space-between;
115 gap: 0.75rem;
116 padding: 0.75rem 1rem;
117 border-bottom: 1px solid #2c3340;
118}
119
120#settings-main footer {
121 border-bottom: 0;
122 border-top: 1px solid #2c3340;
123}
124
125#settings-form {
126 flex: 1;
127 overflow: auto;
128 padding: 0;
129 display: flex;
130 flex-direction: column;
131 min-height: 0;
132}
133
134.settings-tabs {
135 display: flex;
136 flex-wrap: wrap;
137 gap: 0.25rem;
138 padding: 0.65rem 1rem 0.5rem;
139 border-bottom: 1px solid #2c3340;
140 background: #12151c;
141}
142
143.settings-tab {
144 appearance: none;
145 border: 1px solid transparent;
146 background: transparent;
147 color: #a8a295;
148 padding: 0.35rem 0.7rem;
149 border-radius: 4px;
150 cursor: pointer;
151 font: inherit;
152}
153
154.settings-tab:hover {
155 color: #e8e2d4;
156 background: #1c222c;
157}
158
159.settings-tab.active {
160 color: #1a1510;
161 background: #d4c48a;
162 border-color: #d4c48a;
163}
164
165.settings-panels {
166 flex: 1;
167 overflow: auto;
168 padding: 0.75rem 1rem 1.25rem;
169}
170
171.settings-category {
172 margin-bottom: 0;
173}
174
175.settings-category h3 {
176 margin: 0 0 0.5rem;
177 font-size: 0.95rem;
178 color: #d4c48a;
179 border-bottom: 1px solid #2c3340;
180 padding-bottom: 0.25rem;
181}
182
183.setting-row {
184 display: grid;
185 grid-template-columns: minmax(12rem, 1fr) minmax(8rem, 14rem) 4rem;
186 gap: 0.4rem 0.75rem;
187 align-items: center;
188 padding: 0.45rem 0.5rem;
189 margin: 0.2rem 0;
190 border-radius: 4px;
191}
192
193.setting-row .hint {
194 grid-column: 1 / -1;
195 margin: 0;
196}
197
198.setting-row.dirty {
199 background: #4a3d18;
200 box-shadow: inset 0 0 0 1px #c4a35a;
201}
202
203.setting-value {
204 font-variant-numeric: tabular-nums;
205 color: #c5c0b4;
206}
207
208.seed-price-panel {
209 display: flex;
210 flex-direction: column;
211 gap: 0.65rem;
212 min-height: 0;
213}
214
215.seed-price-toolbar {
216 display: flex;
217 flex-wrap: wrap;
218 gap: 0.55rem 0.75rem;
219 align-items: center;
220}
221
222.seed-price-search {
223 flex: 1 1 12rem;
224 min-width: 10rem;
225 padding: 0.4rem 0.55rem;
226 background: #10141b;
227 border: 1px solid #3a4250;
228 color: #e8e4d9;
229 font: inherit;
230}
231
232.seed-price-meta {
233 flex: 0 0 auto;
234}
235
236.seed-price-pager {
237 display: flex;
238 align-items: center;
239 gap: 0.45rem;
240 margin-left: auto;
241}
242
243.seed-price-pager button {
244 appearance: none;
245 border: 1px solid #3a4250;
246 background: #1c222c;
247 color: #e8e4d9;
248 padding: 0.3rem 0.55rem;
249 cursor: pointer;
250 font: inherit;
251}
252
253.seed-price-pager button:disabled {
254 opacity: 0.4;
255 cursor: default;
256}
257
258.seed-price-header,
259.seed-price-row {
260 display: grid;
261 grid-template-columns: minmax(10rem, 1.6fr) 6.5rem 5.5rem 5.5rem;
262 gap: 0.5rem 0.65rem;
263 align-items: center;
264}
265
266.seed-price-header {
267 padding: 0.25rem 0.4rem;
268 color: #a8a295;
269 font-size: 0.78rem;
270 text-transform: uppercase;
271 letter-spacing: 0.04em;
272 border-bottom: 1px solid #2c3340;
273}
274
275.seed-price-list {
276 display: flex;
277 flex-direction: column;
278 gap: 0.25rem;
279}
280
281.seed-price-row {
282 padding: 0.4rem;
283 border-radius: 4px;
284}
285
286.seed-price-row.dirty {
287 background: #4a3d18;
288 box-shadow: inset 0 0 0 1px #c4a35a;
289}
290
291.seed-price-name {
292 display: flex;
293 flex-direction: column;
294 gap: 0.1rem;
295 min-width: 0;
296}
297
298.seed-price-name strong {
299 overflow: hidden;
300 text-overflow: ellipsis;
301 white-space: nowrap;
302}
303
304.seed-price-name small {
305 color: #8b8790;
306 font-size: 0.75rem;
307}
308
309.seed-price-seed {
310 display: flex;
311 flex-direction: column;
312 gap: 0.15rem;
313 font-size: 0.75rem;
314 color: #a8a295;
315}
316
317.seed-price-seed input {
318 width: 100%;
319 padding: 0.3rem 0.4rem;
320 background: #10141b;
321 border: 1px solid #3a4250;
322 color: #e8e4d9;
323 font: inherit;
324}
325
326.seed-price-readonly {
327 display: flex;
328 flex-direction: column;
329 gap: 0.15rem;
330 font-size: 0.75rem;
331 color: #a8a295;
332}
333
334.seed-price-readonly strong {
335 font-size: 0.95rem;
336 color: #e8e4d9;
337 font-variant-numeric: tabular-nums;
338}
339
340.seed-price-readonly strong.muted {
341 color: #6d6875;
342}
343
344#settings-log-wrap {
345 width: min(340px, 32vw);
346 flex-shrink: 0;
347 border-left: 1px solid #2c3340;
348 display: flex;
349 flex-direction: column;
350 background: #1a1e26;
351}
352
353#settings-log-wrap h2 {
354 margin: 0;
355 padding: 0.75rem 1rem;
356 border-bottom: 1px solid #2c3340;
357 font-size: 1rem;
358}
359
360#settings-log {
361 flex: 1;
362 overflow: auto;
363 padding: 0.75rem 1rem;
364}
365
366#palette-backdrop,
367#tile-config-backdrop {
368 position: fixed;
369 inset: 0;
370 background: rgba(0, 0, 0, 0.62);
371 z-index: 19;
372}
373
374#palette-modal,
375#tile-config-modal {
376 position: fixed;
377 z-index: 20;
378 display: flex;
379 flex-direction: column;
380 background: #161a22;
381 border: 1px solid #3a4250;
382 box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
383}
384
385#palette-modal {
386 inset: 8vh 12vw;
387}
388
389#tile-config-modal {
390 top: 10vh;
391 left: 50%;
392 transform: translateX(-50%);
393 width: min(440px, 92vw);
394 max-height: 80vh;
395}
396
397#palette-modal[hidden],
398#palette-backdrop[hidden],
399#tile-config-modal[hidden],
400#tile-config-backdrop[hidden],
401#tile-tooltip[hidden] {
402 display: none !important;
403}
404
405#palette-modal > header,
406#tile-config-modal > header,
407#tile-config-modal > footer {
408 display: flex;
409 align-items: center;
410 justify-content: space-between;
411 gap: 0.75rem;
412 padding: 0.75rem 1rem;
413 border-bottom: 1px solid #2c3340;
414}
415
416#tile-config-modal > footer {
417 border-bottom: 0;
418 border-top: 1px solid #2c3340;
419}
420
421#palette-panels {
422 flex: 1;
423 overflow: auto;
424 padding: 0.75rem 1rem 1.25rem;
425}
426
427.palette-grid {
428 display: grid;
429 grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
430 gap: 0.6rem;
431}
432
433.palette-card {
434 display: flex;
435 flex-direction: column;
436 align-items: center;
437 gap: 0.35rem;
438 padding: 0.55rem 0.4rem;
439 min-height: 6.5rem;
440}
441
442.palette-thumb {
443 width: 48px;
444 height: 48px;
445 display: grid;
446 place-items: center;
447 background: #0d1016;
448 border: 1px solid #2c3340;
449 image-rendering: pixelated;
450 font-weight: 600;
451 color: #9aa3b2;
452}
453
454.palette-thumb img {
455 width: 100%;
456 height: 100%;
457 object-fit: contain;
458 image-rendering: pixelated;
459}
460
461#tile-config-form {
462 padding: 0.75rem 1rem 1rem;
463 display: flex;
464 flex-direction: column;
465 gap: 0.35rem;
466 flex: 1;
467 min-height: 0;
468 overflow: auto;
469}
470
471.spawner-sells-header {
472 display: flex;
473 align-items: center;
474 justify-content: space-between;
475 gap: 0.5rem;
476 margin-top: 0.55rem;
477}
478
479.spawner-sells-list {
480 display: flex;
481 flex-direction: column;
482 gap: 0.35rem;
483}
484
485.spawner-sells-row {
486 display: grid;
487 grid-template-columns: 1fr 4.5rem auto;
488 gap: 0.4rem;
489 align-items: center;
490}
491
492.spawner-sells-name {
493 overflow: hidden;
494 text-overflow: ellipsis;
495 white-space: nowrap;
496}
497
498.spawner-equip-list {
499 display: flex;
500 flex-direction: column;
501 gap: 0.35rem;
502}
503
504.spawner-equip-row {
505 display: grid;
506 grid-template-columns: 4.5rem 1fr auto auto auto;
507 gap: 0.35rem;
508 align-items: center;
509}
510
511.spawner-equip-slot {
512 text-transform: capitalize;
513 color: #9aa3b2;
514 font-size: 0.85rem;
515}
516
517.spawner-equip-name {
518 overflow: hidden;
519 text-overflow: ellipsis;
520 white-space: nowrap;
521}
522
523.spawner-equip-dye-swatch {
524 display: inline-block;
525 width: 0.85rem;
526 height: 0.85rem;
527 margin-right: 0.35rem;
528 border: 1px solid #3a4250;
529 vertical-align: -0.1rem;
530 border-radius: 2px;
531}
532
533#equip-dye-backdrop {
534 position: fixed;
535 inset: 0;
536 background: rgba(0, 0, 0, 0.55);
537 z-index: 23;
538}
539
540#equip-dye-modal {
541 position: fixed;
542 z-index: 24;
543 top: 18vh;
544 left: 50%;
545 transform: translateX(-50%);
546 width: min(340px, 90vw);
547 display: flex;
548 flex-direction: column;
549 background: #161a22;
550 border: 1px solid #3a4250;
551 box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
552}
553
554#equip-dye-modal[hidden],
555#equip-dye-backdrop[hidden] {
556 display: none !important;
557}
558
559#equip-dye-modal > header {
560 display: flex;
561 align-items: center;
562 justify-content: space-between;
563 gap: 0.75rem;
564 padding: 0.75rem 1rem;
565 border-bottom: 1px solid #2c3340;
566}
567
568.equip-dye-body {
569 padding: 0.85rem 1rem 1rem;
570 display: flex;
571 flex-direction: column;
572 gap: 0.55rem;
573}
574
575.equip-dye-preview {
576 height: 3rem;
577 border: 1px solid #3a4250;
578 border-radius: 4px;
579 background: #c85078;
580}
581
582.equip-dye-channel {
583 display: grid;
584 grid-template-columns: 1.25rem 1fr 3.5rem;
585 gap: 0.4rem;
586 align-items: center;
587 font-size: 0.85rem;
588 color: #9aa3b2;
589}
590
591.equip-dye-channel input[type="number"] {
592 width: 100%;
593}
594
595.equip-dye-actions {
596 display: flex;
597 justify-content: flex-end;
598 gap: 0.4rem;
599 margin-top: 0.25rem;
600}
601
602.spawner-buys-row {
603 display: flex;
604 align-items: center;
605 gap: 0.4rem;
606 margin-top: 0.45rem;
607}
608
609#shop-item-search-backdrop {
610 position: fixed;
611 inset: 0;
612 background: rgba(0, 0, 0, 0.55);
613 z-index: 21;
614}
615
616#shop-item-search-modal {
617 position: fixed;
618 z-index: 22;
619 top: 18vh;
620 left: 50%;
621 transform: translateX(-50%);
622 width: min(380px, 90vw);
623 max-height: 60vh;
624 display: flex;
625 flex-direction: column;
626 background: #161a22;
627 border: 1px solid #3a4250;
628 box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
629}
630
631#shop-item-search-modal[hidden],
632#shop-item-search-backdrop[hidden] {
633 display: none !important;
634}
635
636#shop-item-search-modal > header {
637 display: flex;
638 align-items: center;
639 justify-content: space-between;
640 gap: 0.75rem;
641 padding: 0.75rem 1rem;
642 border-bottom: 1px solid #2c3340;
643}
644
645#shop-item-search-modal > .shop-item-search-body {
646 padding: 0.75rem 1rem 1rem;
647 display: flex;
648 flex-direction: column;
649 gap: 0.5rem;
650 min-height: 0;
651 overflow: hidden;
652}
653
654#shop-item-search-results {
655 overflow: auto;
656 max-height: 40vh;
657 display: flex;
658 flex-direction: column;
659 gap: 0.25rem;
660}
661
662.shop-item-search-row {
663 text-align: left;
664 padding: 0.4rem 0.5rem;
665}
666
667#tile-tooltip {
668 position: fixed;
669 z-index: 15;
670 pointer-events: none;
671 max-width: 16rem;
672 padding: 0.4rem 0.55rem;
673 background: rgba(12, 14, 18, 0.92);
674 border: 1px solid #3a4250;
675 color: #e8e4d9;
676 font-size: 0.8rem;
677 white-space: pre-wrap;
678 box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
679}
680