BlueGit

timfa questward

Files

questward / client / ui / play.css

play.css

play.css 3.9 KiB Download Raw
1:root {
2 color-scheme: dark;
3 font-family: "Segoe UI", sans-serif;
4 background: #101216;
5 color: #e8e4d9;
6}
7
8html, body {
9 margin: 0;
10 height: 100%;
11 overflow: hidden;
12}
13
14#hud {
15 position: fixed;
16 z-index: 2;
17 top: 0;
18 left: 0;
19 right: 0;
20 display: flex;
21 gap: 1.25rem;
22 align-items: center;
23 padding: 0.5rem 0.75rem;
24 background: rgba(12, 14, 18, 0.82);
25}
26
27#overlay {
28 position: fixed;
29 inset: 0;
30 z-index: 3;
31 display: grid;
32 place-items: center;
33 background: #101216;
34}
35
36#overlay[hidden], #hud[hidden] {
37 display: none !important;
38}
39
40.panel {
41 width: min(420px, 92vw);
42 background: #1a1e26;
43 border: 1px solid #2c3340;
44 padding: 1.25rem;
45}
46
47label, .character-row {
48 display: flex;
49 gap: 0.5rem;
50 align-items: center;
51 margin: 0.5rem 0;
52}
53
54input, select, button {
55 font: inherit;
56 background: #101216;
57 color: inherit;
58 border: 1px solid #3a4250;
59 padding: 0.3rem 0.5rem;
60}
61
62button {
63 cursor: pointer;
64}
65
66.error { color: #f0a0a0; min-height: 1.2em; }
67.hint { color: #9aa3b2; font-size: 0.9rem; }
68a { color: #d4c48a; }
69
70#nametag {
71 position: fixed;
72 z-index: 4;
73 pointer-events: none;
74 transform: translate(-50%, -100%);
75 background: rgba(12, 14, 18, 0.88);
76 border: 1px solid #3a4250;
77 padding: 0.1rem 0.45rem;
78 font-size: 0.85rem;
79}
80
81#inspect-backdrop {
82 position: fixed;
83 inset: 0;
84 z-index: 6;
85 background: rgba(0, 0, 0, 0.45);
86}
87
88#inspect-modal {
89 position: fixed;
90 z-index: 7;
91 left: 50%;
92 top: 40%;
93 transform: translate(-50%, -50%);
94 width: min(360px, 92vw);
95 background: #161a22;
96 border: 1px solid #3a4250;
97 padding: 0.85rem 1rem 1rem;
98}
99
100#inspect-modal header {
101 display: flex;
102 align-items: center;
103 justify-content: space-between;
104 gap: 0.75rem;
105}
106
107#inspect-action {
108 display: flex;
109 flex-wrap: wrap;
110 gap: 0.4rem;
111 margin-top: 0.5rem;
112}
113
114#friends-panel {
115 position: fixed;
116 z-index: 5;
117 top: 48px;
118 right: 0.75rem;
119 width: min(280px, 92vw);
120 max-height: calc(100vh - 64px);
121 overflow: auto;
122 background: #1a1e26;
123 border: 1px solid #2c3340;
124 padding: 0.75rem;
125}
126
127#bag-panel, #bank-panel {
128 position: fixed;
129 z-index: 5;
130 top: 48px;
131 left: 0.75rem;
132 width: min(320px, 92vw);
133 max-height: calc(100vh - 64px);
134 overflow: auto;
135 background: #1a1e26;
136 border: 1px solid #2c3340;
137 padding: 0.75rem;
138}
139
140#bank-panel {
141 left: auto;
142 right: 0.75rem;
143 width: min(340px, 92vw);
144}
145
146#bank-panel header {
147 display: flex;
148 justify-content: space-between;
149 align-items: center;
150}
151
152.item-grid {
153 display: grid;
154 grid-template-columns: repeat(8, 1fr);
155 gap: 0.25rem;
156 margin: 0.4rem 0;
157}
158
159.item-grid.equip {
160 grid-template-columns: repeat(3, 1fr);
161}
162
163.item-slot {
164 position: relative;
165 min-height: 36px;
166 padding: 0.15rem;
167 image-rendering: pixelated;
168}
169
170.item-slot img {
171 width: 100%;
172 height: 32px;
173 object-fit: contain;
174 image-rendering: pixelated;
175}
176
177.item-slot.selected {
178 outline: 2px solid #d4c48a;
179}
180
181.item-slot .qty {
182 position: absolute;
183 right: 2px;
184 bottom: 1px;
185 font-size: 0.7rem;
186}
187
188.bag-actions {
189 display: flex;
190 flex-wrap: wrap;
191 gap: 0.35rem;
192}
193
194#friends-panel h2, #friends-panel h3 {
195 margin: 0.4rem 0;
196 font-size: 0.95rem;
197}
198
199.social-row {
200 display: flex;
201 flex-wrap: wrap;
202 gap: 0.35rem;
203 align-items: center;
204 margin: 0.35rem 0;
205}
206
207#inspect-modal[hidden],
208#inspect-backdrop[hidden],
209#friends-panel[hidden],
210#bag-panel[hidden],
211#bank-panel[hidden],
212#nametag[hidden],
213#chat-bar[hidden] {
214 display: none !important;
215}
216
217#chat-bar {
218 position: fixed;
219 z-index: 5;
220 left: 50%;
221 bottom: 1.25rem;
222 transform: translateX(-50%);
223 width: min(640px, calc(100vw - 2rem));
224}
225
226#chat-bar input {
227 width: 100%;
228 box-sizing: border-box;
229 padding: 0.55rem 0.75rem;
230 background: rgba(12, 14, 18, 0.92);
231}
232
233.chat-bubble {
234 position: fixed;
235 z-index: 4;
236 pointer-events: none;
237 transform: translate(-50%, -100%);
238 max-width: min(280px, 70vw);
239 background: rgba(16, 18, 24, 0.92);
240 border: 1px solid #3a4250;
241 border-radius: 8px;
242 padding: 0.3rem 0.55rem;
243 font-size: 0.9rem;
244 line-height: 1.25;
245 white-space: pre-wrap;
246 word-break: break-word;
247}
248
249.chat-bubble[hidden] {
250 display: none !important;
251}