noah33565 commited on
Commit
6599a8f
Β·
verified Β·
1 Parent(s): 93285ba

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +165 -4
style.css CHANGED
@@ -336,11 +336,172 @@ body {
336
  .messages::-webkit-scrollbar { width:3px; }
337
  .sidebar-scroll::-webkit-scrollbar { width:3px; }
338
 
339
- /* ─── RESPONSIVE ─── */
340
  @media (max-width:768px) {
341
- :root { --sidebar-w: 0px; }
342
- .sidebar { display:none; }
343
- #app.visible { grid-template-columns:1fr; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
344
  }
345
 
346
  /* ─── MISC ─── */
 
336
  .messages::-webkit-scrollbar { width:3px; }
337
  .sidebar-scroll::-webkit-scrollbar { width:3px; }
338
 
339
+ /* ─── RESPONSIVE / MOBILE ─── */
340
  @media (max-width:768px) {
341
+ :root { --sidebar-w: 260px; --topbar-h: 50px; }
342
+
343
+ /* ── Layout ── */
344
+ #app.visible {
345
+ display: flex;
346
+ flex-direction: column;
347
+ height: 100dvh;
348
+ overflow: hidden;
349
+ }
350
+
351
+ /* ── Topbar ── */
352
+ .topbar {
353
+ order: 0;
354
+ padding: 0 10px;
355
+ height: var(--topbar-h);
356
+ flex-shrink: 0;
357
+ gap: 8px;
358
+ }
359
+ .topbar-logo { font-size: .8rem; }
360
+ .topbar-sep { display: none; }
361
+ .topbar-channel { font-size: .6rem; flex: 1; text-align: center; }
362
+ .topbar-role-badge, #topbar-username { display: none; }
363
+ .logout-btn { font-size: .7rem; padding: 4px 7px; }
364
+ .icon-btn { padding: 5px 7px; font-size: .8rem; }
365
+ #topbar-avatar { width: 28px; height: 28px; font-size: .6rem; }
366
+
367
+ /* Hamburger button */
368
+ #mobile-menu-btn {
369
+ display: flex;
370
+ align-items: center;
371
+ justify-content: center;
372
+ background: none;
373
+ border: 1px solid var(--border);
374
+ color: var(--muted);
375
+ width: 34px; height: 34px;
376
+ cursor: pointer;
377
+ font-size: 1.2rem;
378
+ flex-shrink: 0;
379
+ clip-path: polygon(4px 0%,100% 0%,calc(100% - 4px) 100%,0% 100%);
380
+ transition: color .2s, border-color .2s;
381
+ }
382
+ #mobile-menu-btn:hover { color: var(--accent); border-color: rgba(0,212,255,0.4); }
383
+
384
+ /* ── Sidebar as overlay drawer ── */
385
+ .sidebar {
386
+ position: fixed;
387
+ top: var(--topbar-h);
388
+ left: 0;
389
+ bottom: 0;
390
+ width: var(--sidebar-w);
391
+ z-index: 500;
392
+ transform: translateX(-100%);
393
+ transition: transform .28s cubic-bezier(.4,0,.2,1);
394
+ flex-direction: column;
395
+ display: flex;
396
+ }
397
+ .sidebar.open {
398
+ transform: translateX(0);
399
+ box-shadow: 6px 0 30px rgba(0,0,0,0.6);
400
+ }
401
+
402
+ /* Sidebar overlay backdrop */
403
+ #sidebar-backdrop {
404
+ display: none;
405
+ position: fixed;
406
+ inset: 0;
407
+ top: var(--topbar-h);
408
+ z-index: 499;
409
+ background: rgba(0,0,0,0.55);
410
+ backdrop-filter: blur(2px);
411
+ }
412
+ #sidebar-backdrop.visible { display: block; }
413
+
414
+ /* ── Chat area fills remaining space ── */
415
+ .chat-area {
416
+ flex: 1;
417
+ min-height: 0;
418
+ display: flex;
419
+ flex-direction: column;
420
+ overflow: hidden;
421
+ }
422
+
423
+ /* ── Chat header ── */
424
+ .chat-header { padding: 8px 12px; }
425
+ .chat-header-title { font-size: .78rem; }
426
+ .chat-header-sub { font-size: .68rem; }
427
+
428
+ /* ── Messages ── */
429
+ .messages {
430
+ flex: 1;
431
+ min-height: 0;
432
+ padding: 10px 10px 6px;
433
+ overflow-y: auto;
434
+ -webkit-overflow-scrolling: touch;
435
+ }
436
+
437
+ /* ── Input area ── */
438
+ .input-area {
439
+ padding: 8px 10px;
440
+ flex-shrink: 0;
441
+ /* Make it stick above the virtual keyboard */
442
+ position: sticky;
443
+ bottom: 0;
444
+ }
445
+ .msg-input {
446
+ font-size: 1rem; /* prevents iOS zoom on focus */
447
+ padding: 9px 12px;
448
+ min-height: 40px;
449
+ }
450
+ .send-btn {
451
+ padding: 0 14px;
452
+ height: 40px;
453
+ font-size: .6rem;
454
+ }
455
+
456
+ /* ── Messages layout ── */
457
+ .msg { padding: 3px 4px; gap: 8px; }
458
+ .msg-avatar { width: 30px; height: 30px; font-size: .62rem; }
459
+ .msg-text { font-size: .92rem; }
460
+ .msg-actions { display: none !important; } /* use long-press context menu on mobile */
461
+
462
+ /* ── Auth box ── */
463
+ .auth-box {
464
+ padding: 30px 20px;
465
+ margin: 12px;
466
+ max-width: 100%;
467
+ clip-path: polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,16px 100%,0 calc(100% - 16px));
468
+ }
469
+ .auth-logo { font-size: 1.6rem; }
470
+
471
+ /* ── Modals ── */
472
+ .modal {
473
+ margin: 12px;
474
+ padding: 22px 16px;
475
+ max-width: calc(100% - 24px);
476
+ max-height: 88vh;
477
+ clip-path: polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px));
478
+ }
479
+
480
+ /* ── Voice panel ── */
481
+ .voice-panel.active {
482
+ flex-shrink: 0;
483
+ }
484
+ .voice-status-bar { flex-wrap: wrap; gap: 6px; }
485
+ .voice-ctrl { font-size: .68rem; padding: 4px 6px; }
486
+
487
+ /* ── Toast ── */
488
+ .toast {
489
+ bottom: 12px;
490
+ right: 10px;
491
+ left: 10px;
492
+ max-width: 100%;
493
+ font-size: .62rem;
494
+ }
495
+
496
+ /* ── Timeout bar ── */
497
+ .timeout-bar { font-size: .58rem; padding: 8px 12px; }
498
+
499
+ /* ── Context menu ── */
500
+ #context-menu {
501
+ min-width: 170px;
502
+ /* Prevent overflow off-screen */
503
+ max-width: calc(100vw - 20px);
504
+ }
505
  }
506
 
507
  /* ─── MISC ─── */