BlueGit

timfa questward

Files

questward / client / ui / editor.css

editor.css

editor.css 11.7 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.starter-equipment-panel h3 {
345 margin: 0.85rem 0 0.4rem;
346 font-size: 0.85rem;
347 text-transform: uppercase;
348 letter-spacing: 0.03em;
349 color: #9aa3b2;
350}
351
352.starter-equip-list,
353.starter-inv-list {
354 display: flex;
355 flex-direction: column;
356 gap: 0.4rem;
357}
358
359.starter-equip-row {
360 display: grid;
361 grid-template-columns: 5.5rem 1fr;
362 gap: 0.5rem;
363 align-items: center;
364}
365
366.starter-equip-row.dirty select,
367.starter-inv-row.dirty select,
368.starter-inv-row.dirty input {
369 border-color: #c4a35a;
370}
371
372.starter-inv-row {
373 display: grid;
374 grid-template-columns: 1fr 4.5rem auto;
375 gap: 0.4rem;
376 align-items: center;
377}
378
379#settings-log-wrap {
380 width: min(340px, 32vw);
381 flex-shrink: 0;
382 border-left: 1px solid #2c3340;
383 display: flex;
384 flex-direction: column;
385 background: #1a1e26;
386}
387
388#settings-log-wrap h2 {
389 margin: 0;
390 padding: 0.75rem 1rem;
391 border-bottom: 1px solid #2c3340;
392 font-size: 1rem;
393}
394
395#settings-log {
396 flex: 1;
397 overflow: auto;
398 padding: 0.75rem 1rem;
399}
400
401#palette-backdrop,
402#tile-config-backdrop {
403 position: fixed;
404 inset: 0;
405 background: rgba(0, 0, 0, 0.62);
406 z-index: 19;
407}
408
409#palette-modal,
410#tile-config-modal {
411 position: fixed;
412 z-index: 20;
413 display: flex;
414 flex-direction: column;
415 background: #161a22;
416 border: 1px solid #3a4250;
417 box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
418}
419
420#palette-modal {
421 inset: 8vh 12vw;
422}
423
424#tile-config-modal {
425 top: 10vh;
426 left: 50%;
427 transform: translateX(-50%);
428 width: min(440px, 92vw);
429 max-height: 80vh;
430}
431
432#palette-modal[hidden],
433#palette-backdrop[hidden],
434#tile-config-modal[hidden],
435#tile-config-backdrop[hidden],
436#tile-tooltip[hidden] {
437 display: none !important;
438}
439
440#palette-modal > header,
441#tile-config-modal > header,
442#tile-config-modal > footer {
443 display: flex;
444 align-items: center;
445 justify-content: space-between;
446 gap: 0.75rem;
447 padding: 0.75rem 1rem;
448 border-bottom: 1px solid #2c3340;
449}
450
451#tile-config-modal > footer {
452 border-bottom: 0;
453 border-top: 1px solid #2c3340;
454}
455
456#palette-panels {
457 flex: 1;
458 overflow: auto;
459 padding: 0.75rem 1rem 1.25rem;
460}
461
462.palette-grid {
463 display: grid;
464 grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
465 gap: 0.6rem;
466}
467
468.palette-card {
469 display: flex;
470 flex-direction: column;
471 align-items: center;
472 gap: 0.35rem;
473 padding: 0.55rem 0.4rem;
474 min-height: 6.5rem;
475}
476
477.palette-thumb {
478 width: 48px;
479 height: 48px;
480 display: grid;
481 place-items: center;
482 background: #0d1016;
483 border: 1px solid #2c3340;
484 image-rendering: pixelated;
485 font-weight: 600;
486 color: #9aa3b2;
487}
488
489.palette-thumb img {
490 width: 100%;
491 height: 100%;
492 object-fit: contain;
493 image-rendering: pixelated;
494}
495
496#tile-config-form {
497 padding: 0.75rem 1rem 1rem;
498 display: flex;
499 flex-direction: column;
500 gap: 0.35rem;
501 flex: 1;
502 min-height: 0;
503 overflow: auto;
504}
505
506.spawner-sells-header {
507 display: flex;
508 align-items: center;
509 justify-content: space-between;
510 gap: 0.5rem;
511 margin-top: 0.55rem;
512}
513
514.spawner-sells-list {
515 display: flex;
516 flex-direction: column;
517 gap: 0.35rem;
518}
519
520.spawner-sells-row {
521 display: grid;
522 grid-template-columns: 1fr 4.5rem auto;
523 gap: 0.4rem;
524 align-items: center;
525}
526
527.spawner-sells-name {
528 overflow: hidden;
529 text-overflow: ellipsis;
530 white-space: nowrap;
531}
532
533.spawner-equip-list {
534 display: flex;
535 flex-direction: column;
536 gap: 0.35rem;
537}
538
539.spawner-equip-row {
540 display: grid;
541 grid-template-columns: 4.5rem 1fr auto auto auto;
542 gap: 0.35rem;
543 align-items: center;
544}
545
546.spawner-equip-slot {
547 text-transform: capitalize;
548 color: #9aa3b2;
549 font-size: 0.85rem;
550}
551
552.spawner-equip-name {
553 overflow: hidden;
554 text-overflow: ellipsis;
555 white-space: nowrap;
556}
557
558.spawner-equip-dye-swatch {
559 display: inline-block;
560 width: 0.85rem;
561 height: 0.85rem;
562 margin-right: 0.35rem;
563 border: 1px solid #3a4250;
564 vertical-align: -0.1rem;
565 border-radius: 2px;
566}
567
568#equip-dye-backdrop {
569 position: fixed;
570 inset: 0;
571 background: rgba(0, 0, 0, 0.55);
572 z-index: 23;
573}
574
575#equip-dye-modal {
576 position: fixed;
577 z-index: 24;
578 top: 18vh;
579 left: 50%;
580 transform: translateX(-50%);
581 width: min(340px, 90vw);
582 display: flex;
583 flex-direction: column;
584 background: #161a22;
585 border: 1px solid #3a4250;
586 box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
587}
588
589#equip-dye-modal[hidden],
590#equip-dye-backdrop[hidden] {
591 display: none !important;
592}
593
594#equip-dye-modal > header {
595 display: flex;
596 align-items: center;
597 justify-content: space-between;
598 gap: 0.75rem;
599 padding: 0.75rem 1rem;
600 border-bottom: 1px solid #2c3340;
601}
602
603.equip-dye-body {
604 padding: 0.85rem 1rem 1rem;
605 display: flex;
606 flex-direction: column;
607 gap: 0.55rem;
608}
609
610.equip-dye-preview {
611 height: 3rem;
612 border: 1px solid #3a4250;
613 border-radius: 4px;
614 background: #c85078;
615}
616
617.equip-dye-channel {
618 display: grid;
619 grid-template-columns: 1.25rem 1fr 3.5rem;
620 gap: 0.4rem;
621 align-items: center;
622 font-size: 0.85rem;
623 color: #9aa3b2;
624}
625
626.equip-dye-channel input[type="number"] {
627 width: 100%;
628}
629
630.equip-dye-actions {
631 display: flex;
632 justify-content: flex-end;
633 gap: 0.4rem;
634 margin-top: 0.25rem;
635}
636
637.spawner-buys-row {
638 display: flex;
639 align-items: center;
640 gap: 0.4rem;
641 margin-top: 0.45rem;
642}
643
644#shop-item-search-backdrop {
645 position: fixed;
646 inset: 0;
647 background: rgba(0, 0, 0, 0.55);
648 z-index: 21;
649}
650
651#shop-item-search-modal {
652 position: fixed;
653 z-index: 22;
654 top: 18vh;
655 left: 50%;
656 transform: translateX(-50%);
657 width: min(380px, 90vw);
658 max-height: 60vh;
659 display: flex;
660 flex-direction: column;
661 background: #161a22;
662 border: 1px solid #3a4250;
663 box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
664}
665
666#shop-item-search-modal[hidden],
667#shop-item-search-backdrop[hidden] {
668 display: none !important;
669}
670
671#shop-item-search-modal > header {
672 display: flex;
673 align-items: center;
674 justify-content: space-between;
675 gap: 0.75rem;
676 padding: 0.75rem 1rem;
677 border-bottom: 1px solid #2c3340;
678}
679
680#shop-item-search-modal > .shop-item-search-body {
681 padding: 0.75rem 1rem 1rem;
682 display: flex;
683 flex-direction: column;
684 gap: 0.5rem;
685 min-height: 0;
686 overflow: hidden;
687}
688
689#shop-item-search-results {
690 overflow: auto;
691 max-height: 40vh;
692 display: flex;
693 flex-direction: column;
694 gap: 0.25rem;
695}
696
697.shop-item-search-row {
698 text-align: left;
699 padding: 0.4rem 0.5rem;
700}
701
702#tile-tooltip {
703 position: fixed;
704 z-index: 15;
705 pointer-events: none;
706 max-width: 16rem;
707 padding: 0.4rem 0.55rem;
708 background: rgba(12, 14, 18, 0.92);
709 border: 1px solid #3a4250;
710 color: #e8e4d9;
711 font-size: 0.8rem;
712 white-space: pre-wrap;
713 box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
714}
715