BlueGit

timfa questward

Files

questward / client / ui / play.css

play.css

play.css 4.5 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#context-menu {
82 position: fixed;
83 z-index: 20;
84 min-width: 140px;
85 background: #161a22;
86 border: 1px solid #3a4250;
87 padding: 0.25rem;
88 display: flex;
89 flex-direction: column;
90 gap: 0.15rem;
91}
92
93#context-menu[hidden] {
94 display: none !important;
95}
96
97#context-menu button {
98 display: block;
99 width: 100%;
100 text-align: left;
101 background: transparent;
102 border: 0;
103 color: #e8ecf4;
104 padding: 0.35rem 0.55rem;
105 cursor: pointer;
106}
107
108#context-menu button:hover {
109 background: #2a3140;
110}
111
112#inspect-backdrop {
113 position: fixed;
114 inset: 0;
115 z-index: 6;
116 background: rgba(0, 0, 0, 0.45);
117}
118
119#inspect-modal {
120 position: fixed;
121 z-index: 7;
122 left: 50%;
123 top: 40%;
124 transform: translate(-50%, -50%);
125 width: min(360px, 92vw);
126 background: #161a22;
127 border: 1px solid #3a4250;
128 padding: 0.85rem 1rem 1rem;
129}
130
131#inspect-modal header {
132 display: flex;
133 align-items: center;
134 justify-content: space-between;
135 gap: 0.75rem;
136}
137
138#inspect-action {
139 display: flex;
140 flex-wrap: wrap;
141 gap: 0.4rem;
142 margin-top: 0.5rem;
143}
144
145#friends-panel {
146 position: fixed;
147 z-index: 5;
148 top: 48px;
149 right: 0.75rem;
150 width: min(280px, 92vw);
151 max-height: calc(100vh - 64px);
152 overflow: auto;
153 background: #1a1e26;
154 border: 1px solid #2c3340;
155 padding: 0.75rem;
156}
157
158#bag-panel, #bank-panel {
159 position: fixed;
160 z-index: 5;
161 top: 48px;
162 left: 0.75rem;
163 width: min(320px, 92vw);
164 max-height: calc(100vh - 64px);
165 overflow: auto;
166 background: #1a1e26;
167 border: 1px solid #2c3340;
168 padding: 0.75rem;
169}
170
171#bank-panel {
172 left: auto;
173 right: 0.75rem;
174 width: min(340px, 92vw);
175}
176
177#bank-panel header {
178 display: flex;
179 justify-content: space-between;
180 align-items: center;
181}
182
183.item-grid {
184 display: grid;
185 grid-template-columns: repeat(8, 1fr);
186 gap: 0.25rem;
187 margin: 0.4rem 0;
188}
189
190.item-grid.equip {
191 grid-template-columns: repeat(3, 1fr);
192}
193
194.item-slot {
195 position: relative;
196 min-height: 36px;
197 padding: 0.15rem;
198 image-rendering: pixelated;
199}
200
201.item-slot img {
202 width: 100%;
203 height: 32px;
204 object-fit: contain;
205 image-rendering: pixelated;
206}
207
208.item-slot.selected {
209 outline: 2px solid #d4c48a;
210}
211
212.item-slot .qty {
213 position: absolute;
214 right: 2px;
215 bottom: 1px;
216 font-size: 0.7rem;
217}
218
219.bag-actions {
220 display: flex;
221 flex-wrap: wrap;
222 gap: 0.35rem;
223}
224
225.pigeon-row {
226 display: flex;
227 flex-direction: column;
228 gap: 0.2rem;
229 margin: 0.35rem 0;
230 font-size: 0.85rem;
231}
232
233.pigeon-row input {
234 padding: 0.25rem 0.4rem;
235}
236
237#friends-panel h2, #friends-panel h3 {
238 margin: 0.4rem 0;
239 font-size: 0.95rem;
240}
241
242.social-row {
243 display: flex;
244 flex-wrap: wrap;
245 gap: 0.35rem;
246 align-items: center;
247 margin: 0.35rem 0;
248}
249
250#inspect-modal[hidden],
251#inspect-backdrop[hidden],
252#friends-panel[hidden],
253#bag-panel[hidden],
254#bank-panel[hidden],
255#nametag[hidden],
256#chat-bar[hidden] {
257 display: none !important;
258}
259
260#chat-bar {
261 position: fixed;
262 z-index: 5;
263 left: 50%;
264 bottom: 1.25rem;
265 transform: translateX(-50%);
266 width: min(640px, calc(100vw - 2rem));
267}
268
269#chat-bar input {
270 width: 100%;
271 box-sizing: border-box;
272 padding: 0.55rem 0.75rem;
273 background: rgba(12, 14, 18, 0.92);
274}
275
276.chat-bubble {
277 position: fixed;
278 z-index: 4;
279 pointer-events: none;
280 transform: translate(-50%, -100%);
281 max-width: min(280px, 70vw);
282 background: rgba(16, 18, 24, 0.92);
283 border: 1px solid #3a4250;
284 border-radius: 8px;
285 padding: 0.3rem 0.55rem;
286 font-size: 0.9rem;
287 line-height: 1.25;
288 white-space: pre-wrap;
289 word-break: break-word;
290}
291
292.chat-bubble[hidden] {
293 display: none !important;
294}