BlueGit

timfa questward

Files

questward / client / ui / editor.css

editor.css

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