|
4 | 4 | left: 0;
|
5 | 5 | right: 0;
|
6 | 6 | bottom: 0;
|
7 |
| - background-color: rgba(0, 0, 0, 0.5); |
8 |
| - backdrop-filter: blur(15px); |
9 |
| - -webkit-backdrop-filter: blur(15px); |
10 |
| - display: flex; |
11 |
| - justify-content: center; |
12 |
| - align-items: center; |
| 7 | + background-color: var(--modal-bg); |
13 | 8 | z-index: 1000;
|
14 | 9 | }
|
15 | 10 |
|
16 | 11 | .modalContent {
|
17 |
| - background-color: var(--modal-bg); |
18 |
| - padding: 32px; |
19 | 12 | width: 100%;
|
20 |
| - height: 100vh; |
| 13 | + height: 100%; |
21 | 14 | color: var(--modal-text);
|
22 | 15 | overflow-y: auto;
|
23 | 16 | display: flex;
|
24 | 17 | flex-direction: column;
|
25 | 18 | align-items: center;
|
26 | 19 | justify-content: center;
|
27 | 20 | box-sizing: border-box;
|
| 21 | + padding: 24px; |
28 | 22 | }
|
29 | 23 |
|
30 | 24 | .modalContent[data-mode="advanced"] {
|
31 | 25 | align-items: stretch;
|
32 |
| - max-width: none; |
| 26 | + padding: 16px; |
| 27 | + justify-content: flex-start; |
| 28 | +} |
| 29 | + |
| 30 | +.modalContent[data-mode="advanced"] h2 { |
| 31 | + margin: 0 0 4px; |
| 32 | + font-size: 24px; |
| 33 | +} |
| 34 | + |
| 35 | +.modalContent[data-mode="advanced"] p { |
| 36 | + margin: 0 0 8px; |
33 | 37 | }
|
34 | 38 |
|
35 | 39 | .modalContent h2 {
|
36 |
| - margin: 0 0 32px; |
| 40 | + margin: 0 0 24px; |
37 | 41 | color: var(--modal-text);
|
38 |
| - font-size: 32px; |
| 42 | + font-size: 28px; |
39 | 43 | text-align: center;
|
40 | 44 | }
|
41 | 45 |
|
42 | 46 | .pageHeader {
|
43 | 47 | display: flex;
|
44 | 48 | align-items: center;
|
45 |
| - margin-bottom: 32px; |
| 49 | + margin-bottom: 24px; |
46 | 50 | position: relative;
|
47 | 51 | width: 100%;
|
48 | 52 | max-width: 800px;
|
49 | 53 | }
|
50 | 54 |
|
| 55 | +.modalContent[data-mode="advanced"] .pageHeader { |
| 56 | + margin-bottom: 8px; |
| 57 | +} |
| 58 | + |
51 | 59 | .pageHeader h2 {
|
52 | 60 | flex: 1;
|
53 | 61 | text-align: center;
|
|
105 | 113 | .buttonContainer {
|
106 | 114 | display: flex;
|
107 | 115 | justify-content: center;
|
108 |
| - margin-top: 32px; |
| 116 | + margin-top: 24px; |
109 | 117 | width: 100%;
|
110 | 118 | }
|
111 | 119 |
|
| 120 | +.modalContent[data-mode="advanced"] .buttonContainer { |
| 121 | + margin-top: 0; |
| 122 | + display: flex; |
| 123 | + gap: 12px; |
| 124 | + align-items: center; |
| 125 | +} |
| 126 | + |
112 | 127 | .actionButton {
|
113 | 128 | min-width: 200px;
|
114 | 129 | padding: 16px 32px;
|
|
136 | 151 | }
|
137 | 152 |
|
138 | 153 | .modalBody {
|
139 |
| - margin-bottom: 3rem; |
| 154 | + margin-bottom: 2rem; |
140 | 155 | color: var(--modal-text);
|
141 | 156 | text-align: center;
|
142 | 157 | max-width: 800px;
|
|
148 | 163 | line-height: 1.6;
|
149 | 164 | }
|
150 | 165 |
|
151 |
| -/* Generate button with shimmer effect */ |
152 | 166 | .generateButton {
|
153 | 167 | display: block;
|
154 | 168 | width: 300px;
|
|
213 | 227 | }
|
214 | 228 |
|
215 | 229 | .inputGroup {
|
216 |
| - margin-bottom: 24px; |
| 230 | + margin-bottom: 20px; |
217 | 231 | max-width: 600px;
|
218 | 232 | width: 100%;
|
219 | 233 | margin-left: auto;
|
220 | 234 | margin-right: auto;
|
| 235 | + display: flex; |
| 236 | + gap: 12px; |
| 237 | + align-items: flex-start; |
| 238 | +} |
| 239 | + |
| 240 | +.modalContent[data-mode="advanced"] .inputGroup { |
| 241 | + margin-bottom: 8px; |
| 242 | +} |
| 243 | + |
| 244 | +.modalContent[data-mode="advanced"] .input { |
| 245 | + flex: 1; |
| 246 | + margin: 0; |
| 247 | +} |
| 248 | + |
| 249 | +.modalContent[data-mode="advanced"] .error { |
| 250 | + display: none; |
| 251 | +} |
| 252 | + |
| 253 | +.modalContent[data-mode="advanced"] .buttonContainer .error { |
| 254 | + display: block; |
| 255 | + margin: 0; |
| 256 | + text-align: left; |
| 257 | + flex: 1; |
| 258 | +} |
| 259 | + |
| 260 | +.randomButton { |
| 261 | + min-width: 140px; |
| 262 | + padding: 12px; |
| 263 | + background-color: var(--download-btn); |
| 264 | + color: white; |
| 265 | + border: none; |
| 266 | + border-radius: 4px; |
| 267 | + cursor: pointer; |
| 268 | + font-weight: 600; |
| 269 | + font-size: 0.95rem; |
| 270 | + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', |
| 271 | + 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', |
| 272 | + sans-serif; |
| 273 | + transition: background-color 0.2s ease, opacity 0.2s ease; |
| 274 | + text-align: center; |
| 275 | + height: 42px; |
| 276 | + white-space: nowrap; |
| 277 | + margin: 0; |
| 278 | +} |
| 279 | + |
| 280 | +.randomButton:hover:not(:disabled) { |
| 281 | + background-color: var(--download-btn-hover); |
| 282 | +} |
| 283 | + |
| 284 | +.randomButton:disabled { |
| 285 | + opacity: 0.8; |
| 286 | + cursor: wait; |
221 | 287 | }
|
222 | 288 |
|
223 | 289 | .input {
|
224 | 290 | width: 100%;
|
225 |
| - padding: 16px; |
| 291 | + padding: 12px; |
226 | 292 | box-sizing: border-box;
|
227 | 293 | border: 1px solid var(--btn-bg);
|
228 | 294 | border-radius: 4px;
|
229 | 295 | background-color: var(--bg-color);
|
230 | 296 | color: var(--text-color);
|
231 |
| - font-size: 1rem; |
| 297 | + font-size: 0.95rem; |
232 | 298 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
233 | 299 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
234 | 300 | sans-serif;
|
235 | 301 | transition: all 0.2s;
|
| 302 | + height: 42px; |
236 | 303 | }
|
237 | 304 |
|
238 | 305 | .input:focus {
|
|
244 | 311 | .modeToggle {
|
245 | 312 | display: flex;
|
246 | 313 | gap: 24px;
|
247 |
| - margin-bottom: 24px; |
248 |
| - padding: 16px; |
| 314 | + margin-bottom: 12px; |
| 315 | + padding: 8px; |
249 | 316 | background-color: rgba(128, 128, 128, 0.05);
|
250 | 317 | border-radius: 4px;
|
251 | 318 | justify-content: center;
|
|
261 | 328 | padding: 8px 16px;
|
262 | 329 | border-radius: 4px;
|
263 | 330 | transition: background-color 0.2s;
|
264 |
| - font-size: 1rem; |
| 331 | + font-size: 0.95rem; |
265 | 332 | }
|
266 | 333 |
|
267 | 334 | .modeToggle label:hover {
|
|
270 | 337 |
|
271 | 338 | .modeToggle input[type="radio"] {
|
272 | 339 | margin: 0;
|
273 |
| - width: 18px; |
274 |
| - height: 18px; |
275 |
| -} |
276 |
| - |
277 |
| -.randomButton { |
278 |
| - min-width: 180px; |
279 |
| - padding: 16px; |
280 |
| - background-color: var(--download-btn); |
281 |
| - color: white; |
282 |
| - border: none; |
283 |
| - border-radius: 4px; |
284 |
| - cursor: pointer; |
285 |
| - font-weight: 600; |
286 |
| - font-size: 1rem; |
287 |
| - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', |
288 |
| - 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', |
289 |
| - sans-serif; |
290 |
| - transition: background-color 0.2s ease, opacity 0.2s ease; |
291 |
| - text-align: center; |
292 |
| -} |
293 |
| - |
294 |
| -.randomButton:hover:not(:disabled) { |
295 |
| - background-color: var(--download-btn-hover); |
296 |
| -} |
297 |
| - |
298 |
| -.randomButton:disabled { |
299 |
| - opacity: 0.8; |
300 |
| - cursor: wait; |
| 340 | + width: 16px; |
| 341 | + height: 16px; |
301 | 342 | }
|
302 | 343 |
|
303 | 344 | .previewSection {
|
304 |
| - margin: 32px auto; |
305 |
| - padding: 24px; |
| 345 | + margin: 12px auto; |
| 346 | + padding: 16px; |
306 | 347 | background-color: rgba(128, 128, 128, 0.05);
|
307 | 348 | border-radius: 8px;
|
308 |
| - max-width: 1200px; |
309 | 349 | width: 100%;
|
| 350 | + box-sizing: border-box; |
310 | 351 | }
|
311 | 352 |
|
312 | 353 | .previewGrid {
|
313 | 354 | display: grid;
|
314 |
| - grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); |
315 |
| - gap: 24px; |
316 |
| - margin-bottom: 32px; |
| 355 | + grid-template-columns: repeat(4, 1fr); |
| 356 | + gap: 10px; |
| 357 | + margin-bottom: 20px; |
317 | 358 | width: 100%;
|
318 | 359 | }
|
319 | 360 |
|
320 | 361 | .wordCell {
|
321 |
| - padding: 12px; |
| 362 | + padding: 8px; |
322 | 363 | background-color: rgba(128, 128, 128, 0.05);
|
323 | 364 | border-radius: 6px;
|
324 | 365 | }
|
325 | 366 |
|
326 | 367 | .word {
|
327 | 368 | font-weight: 500;
|
328 |
| - margin-bottom: 8px; |
| 369 | + margin-bottom: 4px; |
329 | 370 | color: var(--text-color);
|
330 |
| - font-size: 1.1rem; |
| 371 | + font-size: 0.9rem; |
331 | 372 | }
|
332 | 373 |
|
333 | 374 | .binary {
|
334 | 375 | font-family: monospace;
|
335 |
| - font-size: 0.9rem; |
| 376 | + font-size: 0.65rem; |
336 | 377 | color: rgba(128, 128, 128, 0.8);
|
| 378 | + word-break: break-all; |
| 379 | + line-height: 1.1; |
337 | 380 | }
|
338 | 381 |
|
339 | 382 | .decimal {
|
340 | 383 | font-family: monospace;
|
341 |
| - font-size: 0.9rem; |
| 384 | + font-size: 0.65rem; |
342 | 385 | color: #0088cc;
|
343 | 386 | margin-top: 4px;
|
344 | 387 | }
|
|
348 | 391 | }
|
349 | 392 |
|
350 | 393 | .technicalInfo {
|
351 |
| - margin-top: 24px; |
352 |
| - padding-top: 24px; |
| 394 | + margin-top: 16px; |
| 395 | + padding-top: 16px; |
353 | 396 | border-top: 1px solid rgba(128, 128, 128, 0.2);
|
| 397 | + font-size: 0.9rem; |
354 | 398 | }
|
355 | 399 |
|
356 | 400 | .technicalInfo div {
|
357 | 401 | margin-bottom: 12px;
|
358 | 402 | display: flex;
|
359 |
| - flex-direction: row; |
360 |
| - align-items: center; |
361 |
| - gap: 16px; |
| 403 | + flex-direction: column; |
| 404 | + gap: 8px; |
362 | 405 | }
|
363 | 406 |
|
364 | 407 | .technicalInfo strong {
|
365 | 408 | color: var(--text-color);
|
366 |
| - font-size: 0.95rem; |
367 |
| - min-width: 120px; |
| 409 | + font-size: 0.9rem; |
| 410 | + min-width: 100px; |
| 411 | + white-space: nowrap; |
368 | 412 | }
|
369 | 413 |
|
370 | 414 | .technicalInfo code {
|
371 | 415 | font-family: monospace;
|
372 |
| - font-size: 0.9rem; |
373 |
| - padding: 6px 12px; |
| 416 | + font-size: 0.85rem; |
| 417 | + padding: 6px 10px; |
374 | 418 | background-color: rgba(128, 128, 128, 0.1);
|
375 | 419 | border-radius: 4px;
|
376 | 420 | word-break: break-all;
|
377 |
| - flex: 1; |
| 421 | + width: 100%; |
| 422 | + box-sizing: border-box; |
| 423 | + overflow-x: auto; |
| 424 | + white-space: pre-wrap; |
378 | 425 | }
|
379 | 426 |
|
380 | 427 | .error {
|
381 | 428 | color: #dc3545;
|
382 | 429 | background-color: rgba(220, 53, 69, 0.1);
|
383 | 430 | padding: 12px 16px;
|
384 | 431 | border-radius: 4px;
|
385 |
| - margin: 0 auto 24px; |
386 |
| - font-size: 1rem; |
| 432 | + margin: 0 auto 16px; |
| 433 | + font-size: 0.95rem; |
387 | 434 | text-align: center;
|
388 | 435 | max-width: 600px;
|
389 | 436 | }
|
|
0 commit comments