Spaces:
Running on Zero
Running on Zero
Upload 10 files
Browse files- static/css/base.css +224 -0
- static/css/bubble.css +159 -0
- static/css/chatlist.css +34 -0
- static/css/composer.css +50 -0
- static/css/emoji.css +34 -0
- static/css/icons.css +92 -0
- static/css/settings.css +88 -0
- static/css/sidebar.css +64 -0
- static/css/topbar.css +55 -0
- static/css/variables.css +132 -0
static/css/base.css
CHANGED
|
@@ -0,0 +1,224 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ==========================================================================
|
| 2 |
+
Base: reset, app shell, M3 interaction primitives (state layer + ripple),
|
| 3 |
+
buttons, text fields, switch / checkbox / radio, chips, badges, progress,
|
| 4 |
+
dialogs, snackbar, menus, banners.
|
| 5 |
+
========================================================================== */
|
| 6 |
+
@media (prefers-reduced-motion:reduce){
|
| 7 |
+
*,*::before,*::after{animation-duration:.001ms!important;animation-delay:0s!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
|
| 8 |
+
}
|
| 9 |
+
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
|
| 10 |
+
html,body{height:100vh;height:100dvh;overflow:hidden;margin:0;background:var(--md-sys-color-surface);color:var(--md-sys-color-on-surface);font:var(--md-type-body-large)}
|
| 11 |
+
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
|
| 12 |
+
button,input,textarea,select{font-family:inherit}
|
| 13 |
+
a{color:var(--md-sys-color-primary)}
|
| 14 |
+
::selection{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container)}
|
| 15 |
+
|
| 16 |
+
/* scrollbars */
|
| 17 |
+
*{scrollbar-width:thin;scrollbar-color:var(--md-sys-color-outline-variant) transparent}
|
| 18 |
+
::-webkit-scrollbar{width:8px;height:8px}
|
| 19 |
+
::-webkit-scrollbar-thumb{background:var(--md-sys-color-outline-variant);border-radius:8px;border:2px solid transparent;background-clip:content-box}
|
| 20 |
+
::-webkit-scrollbar-thumb:hover{background:var(--md-sys-color-outline);background-clip:content-box;border:2px solid transparent}
|
| 21 |
+
|
| 22 |
+
/* focus ring */
|
| 23 |
+
:focus-visible{outline:3px solid var(--md-sys-color-secondary);outline-offset:2px;border-radius:var(--md-sys-shape-sm)}
|
| 24 |
+
|
| 25 |
+
.app{display:flex;height:100vh;height:100dvh;width:100vw;overflow:hidden;position:relative;background:var(--md-sys-color-surface)}
|
| 26 |
+
.chat-main{flex:1;display:flex;flex-direction:column;height:100%;min-height:0;position:relative;overflow:hidden;background:var(--md-sys-color-surface)}
|
| 27 |
+
#chatBox{height:100%;min-height:0;display:flex;flex-direction:column;flex:1;overflow:hidden}
|
| 28 |
+
#chatBox:not(.d-none){animation:md-fade-through var(--md-dur-m2) var(--md-ease-emph-decel)}
|
| 29 |
+
#noChat{color:var(--md-sys-color-on-surface-variant)!important;font:var(--md-type-body-large)}
|
| 30 |
+
#noChat .brand-orb{opacity:1!important;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-primary);box-shadow:none}
|
| 31 |
+
|
| 32 |
+
/* ---------- shared keyframes ---------- */
|
| 33 |
+
@keyframes md-fade-through{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:none}}
|
| 34 |
+
@keyframes md-pop-in{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}
|
| 35 |
+
@keyframes md-menu-in{from{opacity:0;transform:scale(.92,.7)}to{opacity:1;transform:none}}
|
| 36 |
+
@keyframes md-slide-up{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
|
| 37 |
+
@keyframes md-pulse{0%,100%{opacity:.35}50%{opacity:1}}
|
| 38 |
+
@keyframes md-spin{to{transform:rotate(360deg)}}
|
| 39 |
+
@keyframes md-shared-axis-in{from{opacity:0;transform:translateX(var(--app-slide))}to{opacity:1;transform:none}}
|
| 40 |
+
|
| 41 |
+
/* ---------- state layer + ripple (applied to every pressable surface) ---------- */
|
| 42 |
+
.icon-btn,.btn,.fab,.chatlist-chat,.view-btn,.ftab,.sp-list-row,.mcm-item,.att-menu .opt,.pa-btn,.u-btn,.tbb,.pm-tab,.pm-media-row,
|
| 43 |
+
.ec,.load-older-btn,.send-btn,.scroll-btn,.voice-rec-cancel,.voice-rec-send,.react-expand,.sk-tile,.gi-member,.search-bar,
|
| 44 |
+
.chat-info-container,.auth-link,.btn-close{position:relative;-webkit-user-select:none;user-select:none}
|
| 45 |
+
.icon-btn::after,.btn::after,.fab::after,.chatlist-chat::after,.view-btn::after,.ftab::after,.sp-list-row::after,.mcm-item::after,
|
| 46 |
+
.att-menu .opt::after,.pa-btn::after,.u-btn::after,.tbb::after,.pm-tab::after,.pm-media-row::after,.ec::after,.load-older-btn::after,
|
| 47 |
+
.send-btn::after,.scroll-btn::after,.voice-rec-cancel::after,.voice-rec-send::after,.react-expand::after,.sk-tile::after,
|
| 48 |
+
.gi-member::after,.chat-info-container::after,.btn-close::after{
|
| 49 |
+
content:"";position:absolute;inset:0;border-radius:inherit;background:currentColor;opacity:0;pointer-events:none;
|
| 50 |
+
transition:opacity var(--md-dur-s3) var(--md-ease-standard)
|
| 51 |
+
}
|
| 52 |
+
@media (hover:hover){
|
| 53 |
+
.icon-btn:hover::after,.btn:hover::after,.fab:hover::after,.chatlist-chat:hover::after,.view-btn:hover::after,.ftab:hover::after,
|
| 54 |
+
.sp-list-row:hover::after,.mcm-item:hover::after,.att-menu .opt:hover::after,.pa-btn:hover::after,.u-btn:hover::after,.tbb:hover::after,
|
| 55 |
+
.pm-tab:hover::after,.pm-media-row:hover::after,.ec:hover::after,.load-older-btn:hover::after,.send-btn:hover::after,.scroll-btn:hover::after,
|
| 56 |
+
.voice-rec-cancel:hover::after,.voice-rec-send:hover::after,.react-expand:hover::after,.sk-tile:hover::after,.gi-member:hover::after,
|
| 57 |
+
.chat-info-container:hover::after,.btn-close:hover::after{opacity:var(--md-state-hover)}
|
| 58 |
+
}
|
| 59 |
+
.icon-btn:focus-visible::after,.btn:focus-visible::after,.fab:focus-visible::after,.view-btn:focus-visible::after,.ftab:focus-visible::after,
|
| 60 |
+
.sp-list-row:focus-visible::after,.u-btn:focus-visible::after{opacity:var(--md-state-focus)}
|
| 61 |
+
.icon-btn:active::after,.btn:active::after,.fab:active::after,.chatlist-chat:active::after,.view-btn:active::after,.ftab:active::after,
|
| 62 |
+
.sp-list-row:active::after,.mcm-item:active::after,.att-menu .opt:active::after,.pa-btn:active::after,.u-btn:active::after,.tbb:active::after,
|
| 63 |
+
.pm-tab:active::after,.ec:active::after,.send-btn:active::after,.scroll-btn:active::after,.btn-close:active::after{opacity:var(--md-state-press)}
|
| 64 |
+
|
| 65 |
+
.md-ripple-wrap{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;z-index:0}
|
| 66 |
+
.md-ripple{position:absolute;border-radius:50%;background:currentColor;opacity:.14;transform:scale(0);
|
| 67 |
+
animation:md-ripple-grow 480ms var(--md-ease-standard) forwards;will-change:transform,opacity}
|
| 68 |
+
.md-ripple.release{transition:opacity 320ms var(--md-ease-standard);opacity:0}
|
| 69 |
+
@keyframes md-ripple-grow{to{transform:scale(1)}}
|
| 70 |
+
|
| 71 |
+
/* ---------- icon button ---------- */
|
| 72 |
+
.icon-btn{width:var(--app-icon-btn);height:var(--app-icon-btn);border-radius:var(--md-sys-shape-full);border:0;background:transparent;
|
| 73 |
+
color:var(--md-sys-color-on-surface-variant);display:inline-flex;align-items:center;justify-content:center;font-size:1.5rem;flex-shrink:0;
|
| 74 |
+
cursor:pointer;padding:0;transition:background var(--md-dur-s3) var(--md-ease-standard),color var(--md-dur-s3) var(--md-ease-standard),transform var(--md-dur-s3) var(--md-ease-standard)}
|
| 75 |
+
.icon-btn:active{transform:scale(.92)}
|
| 76 |
+
.icon-btn.pri{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container)}
|
| 77 |
+
.icon-btn.filled{background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary)}
|
| 78 |
+
.icon-btn.rec{background:var(--md-sys-color-error-container)!important;color:var(--md-sys-color-on-error-container)!important}
|
| 79 |
+
|
| 80 |
+
/* ---------- FAB ---------- */
|
| 81 |
+
.fab{width:56px;height:56px;border-radius:var(--md-sys-shape-lg);border:0;background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);
|
| 82 |
+
display:inline-flex;align-items:center;justify-content:center;font-size:1.5rem;cursor:pointer;box-shadow:var(--md-elev-3);
|
| 83 |
+
transition:box-shadow var(--md-dur-s4) var(--md-ease-standard),transform var(--md-dur-s4) var(--md-ease-standard);animation:md-pop-in var(--md-dur-m2) var(--md-ease-emph-decel) .15s backwards}
|
| 84 |
+
.fab:hover{box-shadow:var(--md-elev-4)}
|
| 85 |
+
.fab:active{transform:scale(.94)}
|
| 86 |
+
|
| 87 |
+
/* ---------- buttons (Bootstrap .btn re-skinned as M3 buttons) ---------- */
|
| 88 |
+
.btn{--bs-btn-padding-x:24px;--bs-btn-padding-y:0;--bs-btn-border-width:0;
|
| 89 |
+
display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 24px;border:0;border-radius:var(--md-sys-shape-full);
|
| 90 |
+
font:var(--md-type-label-large);letter-spacing:.01em;cursor:pointer;color:var(--md-sys-color-primary);background:transparent;
|
| 91 |
+
transition:background var(--md-dur-s4) var(--md-ease-standard),box-shadow var(--md-dur-s4) var(--md-ease-standard),transform var(--md-dur-s3) var(--md-ease-standard)}
|
| 92 |
+
.btn:active{transform:scale(.97)}
|
| 93 |
+
.btn-primary{background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary)}
|
| 94 |
+
.btn-primary:hover,.btn-primary:focus,.btn-primary:active{background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary);box-shadow:var(--md-elev-1)}
|
| 95 |
+
.btn-secondary{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container)}
|
| 96 |
+
.btn-secondary:hover,.btn-secondary:focus,.btn-secondary:active{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);box-shadow:var(--md-elev-1)}
|
| 97 |
+
.btn-outline-secondary,.btn-outline-light{border:1px solid var(--md-sys-color-outline);color:var(--md-sys-color-primary);background:transparent;padding:0 20px}
|
| 98 |
+
.btn-outline-secondary:hover,.btn-outline-secondary:focus,.btn-outline-secondary:active,.btn-outline-light:hover,.btn-outline-light:focus,.btn-outline-light:active{background:transparent;color:var(--md-sys-color-primary);border-color:var(--md-sys-color-outline)}
|
| 99 |
+
.btn-outline-secondary .bi,.btn-outline-light .bi{font-size:1.25rem}
|
| 100 |
+
.btn-primary.w-100,.btn-secondary.w-100{min-height:48px}
|
| 101 |
+
.btn:disabled,.btn.disabled{opacity:.38;pointer-events:none;box-shadow:none}
|
| 102 |
+
/* small tonal "action" button used across the settings / profile screens */
|
| 103 |
+
.u-btn{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 14px;border:1px solid var(--md-sys-color-outline);border-radius:var(--md-sys-shape-sm);
|
| 104 |
+
background:transparent;color:var(--md-sys-color-on-surface-variant);font:var(--md-type-label-medium);cursor:pointer;
|
| 105 |
+
transition:background var(--md-dur-s3) var(--md-ease-standard),color var(--md-dur-s3) var(--md-ease-standard),transform var(--md-dur-s3) var(--md-ease-standard)}
|
| 106 |
+
.u-btn:active{transform:scale(.96)}
|
| 107 |
+
.u-btn .bi{font-size:1.1rem}
|
| 108 |
+
.u-btn.primary{background:var(--md-sys-color-secondary-container);border-color:transparent;color:var(--md-sys-color-on-secondary-container)}
|
| 109 |
+
.u-btn.warn{color:var(--app-amber);border-color:color-mix(in srgb,var(--app-amber) 45%,transparent)}
|
| 110 |
+
.u-btn.danger{color:var(--md-sys-color-error);border-color:color-mix(in srgb,var(--md-sys-color-error) 45%,transparent)}
|
| 111 |
+
|
| 112 |
+
/* ---------- text fields (filled) ---------- */
|
| 113 |
+
.form-control,.sp-inp{
|
| 114 |
+
display:block;width:100%;min-height:48px;padding:12px 16px;border:0;border-radius:var(--md-sys-shape-xs) var(--md-sys-shape-xs) 0 0;
|
| 115 |
+
background-color:var(--md-sys-color-surface-container-highest);color:var(--md-sys-color-on-surface);font:var(--md-type-body-large);
|
| 116 |
+
box-shadow:inset 0 -1px 0 var(--md-sys-color-on-surface-variant);caret-color:var(--md-sys-color-primary);
|
| 117 |
+
background-image:linear-gradient(var(--md-sys-color-primary),var(--md-sys-color-primary));background-repeat:no-repeat;background-position:center bottom;background-size:0 2px;
|
| 118 |
+
transition:background-size var(--md-dur-m1) var(--md-ease-emph-decel),box-shadow var(--md-dur-s3) var(--md-ease-standard),background-color var(--md-dur-s3) var(--md-ease-standard)}
|
| 119 |
+
.form-control:hover,.sp-inp:hover{box-shadow:inset 0 -1px 0 var(--md-sys-color-on-surface)}
|
| 120 |
+
.form-control:focus,.sp-inp:focus{background-color:var(--md-sys-color-surface-container-highest);color:var(--md-sys-color-on-surface);outline:none;background-size:100% 2px;box-shadow:inset 0 -1px 0 transparent}
|
| 121 |
+
.form-control::placeholder,.sp-inp::placeholder{color:var(--md-sys-color-on-surface-variant);opacity:.8}
|
| 122 |
+
textarea.form-control{min-height:56px;resize:vertical}
|
| 123 |
+
.sp-inp{width:auto;min-height:40px;padding:8px 12px;font:var(--md-type-body-medium)}
|
| 124 |
+
.form-label,.bp-label{display:block;margin:0 4px 4px;font:var(--md-type-body-small);color:var(--md-sys-color-on-surface-variant)}
|
| 125 |
+
|
| 126 |
+
/* ---------- switch / checkbox / radio ---------- */
|
| 127 |
+
.form-check{min-height:0;padding:0;margin:0;display:flex;align-items:center;gap:12px}
|
| 128 |
+
.form-check-label{font:var(--md-type-body-medium);color:var(--md-sys-color-on-surface);cursor:pointer}
|
| 129 |
+
.form-check .form-check-input{float:none;margin:0}
|
| 130 |
+
.form-check-input{appearance:none;-webkit-appearance:none;flex-shrink:0;cursor:pointer;border:2px solid var(--md-sys-color-outline);background:transparent;position:relative;
|
| 131 |
+
transition:background var(--md-dur-s4) var(--md-ease-standard),border-color var(--md-dur-s4) var(--md-ease-standard)}
|
| 132 |
+
.form-check-input:focus{box-shadow:none;outline:none}
|
| 133 |
+
.form-check-input:active{filter:none}
|
| 134 |
+
.form-check-input:focus-visible{outline:3px solid var(--md-sys-color-secondary);outline-offset:2px}
|
| 135 |
+
/* switch */
|
| 136 |
+
.form-switch .form-check-input{width:52px;height:32px;border-radius:var(--md-sys-shape-full);background-color:var(--md-sys-color-surface-container-highest);background-image:none}
|
| 137 |
+
.form-switch .form-check-input::before{content:"";position:absolute;top:50%;inset-inline-start:6px;width:16px;height:16px;border-radius:50%;background:var(--md-sys-color-outline);
|
| 138 |
+
transform:translateY(-50%);transition:inset-inline-start var(--md-dur-m1) var(--md-ease-emph-decel),width var(--md-dur-s4) var(--md-ease-standard),height var(--md-dur-s4) var(--md-ease-standard),background var(--md-dur-s4) var(--md-ease-standard)}
|
| 139 |
+
.form-switch .form-check-input:active::before{width:28px;height:28px;inset-inline-start:2px}
|
| 140 |
+
.form-switch .form-check-input:checked{background-color:var(--md-sys-color-primary);border-color:var(--md-sys-color-primary);background-image:none}
|
| 141 |
+
.form-switch .form-check-input:checked::before{width:24px;height:24px;inset-inline-start:calc(100% - 26px - 2px);background:var(--md-sys-color-on-primary)}
|
| 142 |
+
.form-switch .form-check-input:checked:active::before{width:28px;height:28px;inset-inline-start:calc(100% - 30px - 2px)}
|
| 143 |
+
/* checkbox + radio */
|
| 144 |
+
.form-check-input[type=checkbox]:not(:is(.form-switch *)){width:18px;height:18px;border-radius:2px}
|
| 145 |
+
.form-check-input[type=checkbox]:not(:is(.form-switch *)):checked{background-color:var(--md-sys-color-primary);border-color:var(--md-sys-color-primary);
|
| 146 |
+
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23003259'/%3E%3C/svg%3E");background-size:100%}
|
| 147 |
+
.form-check-input[type=radio]{width:20px;height:20px;border-radius:50%}
|
| 148 |
+
.form-check-input[type=radio]:checked{border-color:var(--md-sys-color-primary);background-color:transparent;background-image:radial-gradient(var(--md-sys-color-primary) 0 45%,transparent 50%)}
|
| 149 |
+
|
| 150 |
+
/* ---------- chips / badges ---------- */
|
| 151 |
+
.badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:var(--md-sys-shape-full);
|
| 152 |
+
font:var(--md-type-label-small);letter-spacing:.02em;line-height:1;color:inherit;vertical-align:baseline}
|
| 153 |
+
.cmd-badge{display:inline-block;background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);font:var(--md-type-label-small);padding:2px 10px;border-radius:var(--md-sys-shape-sm);margin-bottom:4px}
|
| 154 |
+
.ai-dot{width:8px;height:8px;border-radius:50%;background:var(--md-sys-color-tertiary);animation:md-pulse 1.4s ease-in-out infinite;flex-shrink:0}
|
| 155 |
+
|
| 156 |
+
/* ---------- progress ---------- */
|
| 157 |
+
.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-border-width:3px;display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);
|
| 158 |
+
border:var(--bs-spinner-border-width) solid currentColor;border-inline-end-color:transparent;border-radius:50%;animation:md-spin .9s var(--md-ease-standard) infinite;vertical-align:-.125em}
|
| 159 |
+
.spinner-border-sm{--bs-spinner-width:1.25rem;--bs-spinner-height:1.25rem;--bs-spinner-border-width:2.5px}
|
| 160 |
+
|
| 161 |
+
/* ---------- brand mark ---------- */
|
| 162 |
+
.brand-orb{width:64px;height:64px;border-radius:var(--md-sys-shape-xl);background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);
|
| 163 |
+
display:flex;align-items:center;justify-content:center;font-size:2rem;flex-shrink:0}
|
| 164 |
+
|
| 165 |
+
/* ---------- dialogs (Bootstrap modal → M3 dialog / bottom sheet on phones) ---------- */
|
| 166 |
+
.modal{--bs-modal-border-width:0}
|
| 167 |
+
.modal-backdrop{--bs-backdrop-opacity:.32}
|
| 168 |
+
.modal-backdrop.fade{transition:opacity var(--md-dur-m1) var(--md-ease-standard)}
|
| 169 |
+
.modal-content{background:var(--md-sys-color-surface-container-high)!important;color:var(--md-sys-color-on-surface)!important;border:0!important;
|
| 170 |
+
border-radius:var(--md-sys-shape-xl)!important;box-shadow:var(--md-elev-3);overflow:hidden}
|
| 171 |
+
.modal.fade .modal-dialog{transform:scale(.92) translateY(8px);opacity:0;transition:transform var(--md-dur-m2) var(--md-ease-emph-decel),opacity var(--md-dur-s4) var(--md-ease-standard)}
|
| 172 |
+
.modal.show .modal-dialog{transform:none;opacity:1}
|
| 173 |
+
.modal-header{padding:20px 24px 8px;border:0!important;align-items:center;gap:8px}
|
| 174 |
+
.modal-title{font:var(--md-type-headline-small);font-size:1.25rem;margin:0;flex:1}
|
| 175 |
+
.modal-title .bi{color:var(--md-sys-color-primary);margin-inline-end:6px;vertical-align:-.2em}
|
| 176 |
+
.modal-body{padding:8px 24px 16px;color:var(--md-sys-color-on-surface-variant)}
|
| 177 |
+
.modal-footer{padding:8px 24px 24px;border:0!important;gap:8px;justify-content:flex-end}
|
| 178 |
+
.modal-footer .btn.w-100{margin:0}
|
| 179 |
+
.modal-body .text-secondary,.modal-body label{color:var(--md-sys-color-on-surface-variant)!important}
|
| 180 |
+
.btn-close{--bs-btn-close-opacity:1;width:40px;height:40px;padding:0;margin:0;border-radius:50%;background:transparent!important;opacity:1;
|
| 181 |
+
color:var(--md-sys-color-on-surface-variant);position:relative}
|
| 182 |
+
.btn-close::before{content:"close";font-family:'Material Symbols Rounded';font-size:24px;position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-feature-settings:'liga'}
|
| 183 |
+
#mediaViewerModal .modal-content{background:transparent!important;box-shadow:none}
|
| 184 |
+
#mediaViewerModal .btn-close{background:rgba(0,0,0,.45)!important;color:#fff;margin:12px!important}
|
| 185 |
+
@media (max-width:600px){
|
| 186 |
+
.modal:not(#mediaViewerModal) .modal-dialog{margin:0;min-height:100%;align-items:flex-end;max-width:none}
|
| 187 |
+
.modal:not(#mediaViewerModal) .modal-content{border-radius:var(--md-sys-shape-xl) var(--md-sys-shape-xl) 0 0!important;max-height:92dvh;overflow-y:auto}
|
| 188 |
+
.modal.fade:not(#mediaViewerModal) .modal-dialog{transform:translateY(100%);opacity:1;transition:transform var(--md-dur-m3) var(--md-ease-emph-decel)}
|
| 189 |
+
.modal.show:not(#mediaViewerModal) .modal-dialog{transform:none}
|
| 190 |
+
.modal:not(#mediaViewerModal) .modal-content::before{content:"";display:block;width:32px;height:4px;border-radius:2px;background:var(--md-sys-color-on-surface-variant);opacity:.4;margin:12px auto 0}
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
/* ---------- snackbar (state.js showToast) ---------- */
|
| 194 |
+
.toast-host{position:fixed;bottom:24px;inset-inline:0;margin-inline:auto;width:fit-content;z-index:var(--app-z-snackbar);display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;max-width:min(560px,92vw)}
|
| 195 |
+
.snackbar{pointer-events:auto;display:flex;align-items:center;gap:8px;min-height:48px;padding:6px 8px 6px 16px;padding-inline:16px 8px;border-radius:var(--md-sys-shape-xs);
|
| 196 |
+
background:var(--md-sys-color-inverse-surface);color:var(--md-sys-color-inverse-on-surface);box-shadow:var(--md-elev-3);font:var(--md-type-body-medium);
|
| 197 |
+
opacity:0;transform:translateY(16px);transition:opacity var(--md-dur-s4) var(--md-ease-standard),transform var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 198 |
+
.snackbar.in{opacity:1;transform:none}
|
| 199 |
+
.snackbar.out{opacity:0;transform:translateY(8px);transition-duration:var(--md-dur-s3)}
|
| 200 |
+
.snackbar.error{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container)}
|
| 201 |
+
.snackbar.warn{background:var(--app-amber-container);color:var(--app-on-amber-container)}
|
| 202 |
+
.snackbar.success{background:var(--app-green-container);color:var(--app-on-green-container)}
|
| 203 |
+
.sb-msg{flex:1;padding:6px 0}
|
| 204 |
+
.sb-close{border:0;background:transparent;color:inherit;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.25rem;cursor:pointer;flex-shrink:0;position:relative;opacity:.9}
|
| 205 |
+
.sb-close:hover{background:color-mix(in srgb,currentColor 10%,transparent)}
|
| 206 |
+
|
| 207 |
+
/* ---------- menus (shared by attach menu / message menu) ---------- */
|
| 208 |
+
.m3-menu{background:var(--md-sys-color-surface-container);border-radius:var(--md-sys-shape-xs);box-shadow:var(--md-elev-2);padding:8px 0}
|
| 209 |
+
|
| 210 |
+
/* ---------- banners (Bootstrap alerts) ---------- */
|
| 211 |
+
.alert{border:0;border-radius:var(--md-sys-shape-md);padding:12px 16px;font:var(--md-type-body-medium)}
|
| 212 |
+
.alert-warning{background:var(--app-amber-container);color:var(--app-on-amber-container)}
|
| 213 |
+
.alert-danger{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container)}
|
| 214 |
+
.alert code{background:rgba(255,255,255,.1);color:inherit;border-radius:4px;padding:0 4px}
|
| 215 |
+
|
| 216 |
+
/* ---------- Bootstrap utility overrides so text keeps M3 roles ---------- */
|
| 217 |
+
.text-secondary{color:var(--md-sys-color-on-surface-variant)!important}
|
| 218 |
+
.text-white{color:var(--md-sys-color-on-surface)!important}
|
| 219 |
+
.border-secondary{border-color:var(--md-sys-color-outline-variant)!important}
|
| 220 |
+
.small,small{font-size:.8125rem}
|
| 221 |
+
|
| 222 |
+
@media(max-width:768px){
|
| 223 |
+
.chat-main{width:100%}
|
| 224 |
+
}
|
static/css/bubble.css
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ==========================================================================
|
| 2 |
+
Message list — tonal bubbles, media, players, reactions, context menu.
|
| 3 |
+
Bubble colour by speaker (set by chat.js):
|
| 4 |
+
.b-user customer → surface-container-high
|
| 5 |
+
.b-me account owner → primary-container
|
| 6 |
+
.b-bot panel / AI / bot → green container
|
| 7 |
+
========================================================================== */
|
| 8 |
+
.msgs{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 16px 8px;display:flex;flex-direction:column;overscroll-behavior:contain}
|
| 9 |
+
.load-older-btn{align-self:center;height:32px;display:inline-flex;align-items:center;font:var(--md-type-label-large);color:var(--md-sys-color-primary);cursor:pointer;
|
| 10 |
+
padding:0 16px;border-radius:var(--md-sys-shape-full);background:var(--md-sys-color-surface-container-high);margin-bottom:12px;flex-shrink:0}
|
| 11 |
+
|
| 12 |
+
/* floating date chip (sticks to the top while its day is on screen) */
|
| 13 |
+
.date-sep{align-self:center;position:sticky;top:8px;z-index:3;font:var(--md-type-label-medium);color:var(--md-sys-color-on-surface-variant);
|
| 14 |
+
background:var(--md-sys-color-surface-container-high);padding:4px 12px;border-radius:var(--md-sys-shape-sm);margin:10px 0;box-shadow:var(--md-elev-1)}
|
| 15 |
+
|
| 16 |
+
.msg-row{display:flex;flex-direction:column;max-width:min(560px,76%);margin-top:8px;position:relative;touch-action:pan-y}
|
| 17 |
+
.msg-row.in{align-self:flex-start}
|
| 18 |
+
.msg-row.out{align-self:flex-end}
|
| 19 |
+
.msg-row.grp{margin-top:2px}
|
| 20 |
+
/* only rows that arrive live animate — the initial render of a long chat stays instant */
|
| 21 |
+
.msg-row.msg-enter{animation:md-msg-in var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 22 |
+
@keyframes md-msg-in{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
|
| 23 |
+
.msg-row.out.msg-enter{transform-origin:bottom left}
|
| 24 |
+
.msg-row.in.msg-enter{transform-origin:bottom right}
|
| 25 |
+
|
| 26 |
+
.fwd-lbl{font:var(--md-type-label-small);color:var(--md-sys-color-on-surface-variant);margin-bottom:2px;padding:0 8px;display:flex;align-items:center;gap:4px}
|
| 27 |
+
.fwd-lbl .bi{font-size:1rem}
|
| 28 |
+
|
| 29 |
+
.bubble{padding:6px 12px 6px;border-radius:20px;word-break:break-word;font:var(--md-type-body-large);font-size:.95rem;line-height:1.5;position:relative}
|
| 30 |
+
.b-user{background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface)}
|
| 31 |
+
.b-me{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container)}
|
| 32 |
+
.b-bot{background:var(--app-green-container);color:var(--app-on-green-container)}
|
| 33 |
+
|
| 34 |
+
/* group shaping: flat corner toward the neighbouring bubble, small corner on the last one */
|
| 35 |
+
.msg-row.in .bubble.cont-prev{border-start-start-radius:6px}
|
| 36 |
+
.msg-row.out .bubble.cont-prev{border-start-end-radius:6px}
|
| 37 |
+
.msg-row.in .bubble.cont-next{border-end-start-radius:6px}
|
| 38 |
+
.msg-row.out .bubble.cont-next{border-end-end-radius:6px}
|
| 39 |
+
.msg-row.in .bubble.has-tail{border-end-start-radius:6px}
|
| 40 |
+
.msg-row.out .bubble.has-tail{border-end-end-radius:6px}
|
| 41 |
+
|
| 42 |
+
.msg-sender{font:var(--md-type-label-medium);margin-bottom:2px;opacity:.9}
|
| 43 |
+
.b-user .msg-sender{color:var(--md-sys-color-primary)}
|
| 44 |
+
.b-me .msg-sender{color:var(--md-sys-color-on-primary-container)}
|
| 45 |
+
.b-bot .msg-sender{color:var(--app-green)}
|
| 46 |
+
|
| 47 |
+
.rq{background:color-mix(in srgb,currentColor 10%,transparent);border-inline-start:3px solid var(--md-sys-color-primary);border-radius:6px 12px 12px 6px;
|
| 48 |
+
padding:4px 10px;margin:2px 0 6px;font:var(--md-type-body-small);opacity:.92;cursor:pointer;display:flex;align-items:center;gap:6px;transition:background var(--md-dur-s3) var(--md-ease-standard)}
|
| 49 |
+
.rq:hover{background:color-mix(in srgb,currentColor 16%,transparent)}
|
| 50 |
+
.rq .bi{font-size:1rem;color:var(--md-sys-color-primary)}
|
| 51 |
+
.b-bot .rq{border-inline-start-color:var(--app-green)}
|
| 52 |
+
.b-bot .rq .bi{color:var(--app-green)}
|
| 53 |
+
|
| 54 |
+
.msg-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:2px}
|
| 55 |
+
.msg-time{font:var(--md-type-label-small);opacity:.65;white-space:nowrap;flex-shrink:0;font-variant-numeric:tabular-nums}
|
| 56 |
+
|
| 57 |
+
.msg-media{border-radius:var(--md-sys-shape-md);overflow:hidden;margin:2px -6px 6px;max-width:300px;position:relative}
|
| 58 |
+
.msg-media img,.msg-media video{width:100%;display:block;cursor:pointer}
|
| 59 |
+
.msg-media video{cursor:default}
|
| 60 |
+
.media-dl-overlay{position:absolute;bottom:8px;inset-inline-start:8px;width:36px;height:36px;border-radius:50%;background:var(--md-sys-color-surface-container-highest);
|
| 61 |
+
color:var(--md-sys-color-on-surface);display:flex;align-items:center;justify-content:center;font-size:1.25rem;cursor:pointer;opacity:0;transform:scale(.8);
|
| 62 |
+
transition:opacity var(--md-dur-s4) var(--md-ease-standard),transform var(--md-dur-s4) var(--md-ease-standard)}
|
| 63 |
+
.msg-media:hover .media-dl-overlay{opacity:1;transform:none}
|
| 64 |
+
|
| 65 |
+
/* voice + video players */
|
| 66 |
+
.mp{display:flex;align-items:center;gap:10px;margin-bottom:4px;min-width:220px}
|
| 67 |
+
.mp-play,.mp-dl{flex-shrink:0;width:40px;height:40px;border-radius:50%;border:0;background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary);display:flex;align-items:center;justify-content:center;cursor:pointer;
|
| 68 |
+
font-size:1.5rem;transition:transform var(--md-dur-s3) var(--md-ease-standard),box-shadow var(--md-dur-s3) var(--md-ease-standard)}
|
| 69 |
+
.mp-play:hover{box-shadow:var(--md-elev-1)}
|
| 70 |
+
.mp-play:active{transform:scale(.92)}
|
| 71 |
+
.b-bot .mp-play{background:var(--app-green);color:var(--app-on-green)}
|
| 72 |
+
.mp-dl{width:32px;height:32px;font-size:1.1rem;background:transparent;color:inherit;opacity:.7}
|
| 73 |
+
.mp-dl:hover{opacity:1}
|
| 74 |
+
.mp-bar{flex:1;height:4px;border-radius:2px;background:color-mix(in srgb,currentColor 24%,transparent);cursor:pointer;position:relative;min-width:70px}
|
| 75 |
+
/* physical left/right on purpose: scrubbers run left→right in any page direction (the click handler measures it that way) */
|
| 76 |
+
.mp-bar-fill{position:absolute;top:0;bottom:0;left:0;width:0;background:var(--md-sys-color-primary);border-radius:2px}
|
| 77 |
+
.b-bot .mp-bar-fill{background:var(--app-green)}
|
| 78 |
+
.mp-bar-fill::after{content:"";position:absolute;right:-6px;top:50%;width:12px;height:12px;margin-top:-6px;border-radius:50%;background:inherit}
|
| 79 |
+
.mp-time{font:var(--md-type-label-small);opacity:.75;min-width:34px;text-align:left;flex-shrink:0;font-variant-numeric:tabular-nums}
|
| 80 |
+
.mp-voice audio{display:none}
|
| 81 |
+
.mp-video{flex-direction:column;align-items:stretch;max-width:300px}
|
| 82 |
+
.mp-video-frame{position:relative;border-radius:var(--md-sys-shape-md);overflow:hidden;background:#000}
|
| 83 |
+
.mp-video-frame video{width:100%;display:block;max-height:300px}
|
| 84 |
+
.mp-center-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.28);cursor:pointer;font-size:2.4rem;color:#fff;transition:opacity var(--md-dur-s4) var(--md-ease-standard),background var(--md-dur-s4) var(--md-ease-standard)}
|
| 85 |
+
.mp-center-play:hover{background:rgba(0,0,0,.4)}
|
| 86 |
+
.mp-strip{display:flex;align-items:center;gap:8px;padding-top:6px}
|
| 87 |
+
|
| 88 |
+
/* stickers / documents */
|
| 89 |
+
.msg-sticker{width:128px;height:128px;margin-bottom:5px;overflow:hidden}
|
| 90 |
+
.msg-sticker img,.msg-sticker svg,.msg-sticker video{width:100%!important;height:100%!important;object-fit:contain;display:block}
|
| 91 |
+
.sticker-fallback{width:128px;height:128px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:var(--md-sys-color-surface-container-highest);border-radius:var(--md-sys-shape-lg);color:var(--md-sys-color-on-surface-variant)}
|
| 92 |
+
.sticker-fallback .emo{font-size:2.6rem;line-height:1}
|
| 93 |
+
.sticker-fallback .lbl{font:var(--md-type-label-small)}
|
| 94 |
+
.msg-doc{display:flex;align-items:center;gap:8px;background:color-mix(in srgb,currentColor 10%,transparent);padding:8px 12px;border-radius:var(--md-sys-shape-md);margin-bottom:5px}
|
| 95 |
+
.msg-doc audio{height:32px;max-width:200px}
|
| 96 |
+
|
| 97 |
+
/* hover action bar */
|
| 98 |
+
.msg-bar{display:flex;align-items:center;gap:0;position:absolute;top:-24px;z-index:6;padding:2px;border-radius:var(--md-sys-shape-full);
|
| 99 |
+
background:var(--md-sys-color-surface-container-highest);box-shadow:var(--md-elev-2);opacity:0;pointer-events:none;transform:translateY(4px) scale(.94);
|
| 100 |
+
transition:opacity var(--md-dur-s3) var(--md-ease-standard),transform var(--md-dur-s4) var(--md-ease-emph-decel)}
|
| 101 |
+
.msg-row.in .msg-bar{inset-inline-start:8px}
|
| 102 |
+
.msg-row.out .msg-bar{inset-inline-end:8px}
|
| 103 |
+
@media (hover:hover){.msg-row:hover .msg-bar,.msg-bar:has(.react-bar.show){opacity:1;pointer-events:auto;transform:none}}
|
| 104 |
+
.tbb{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;font-size:1.125rem;color:var(--md-sys-color-on-surface-variant);cursor:pointer;border-radius:50%}
|
| 105 |
+
|
| 106 |
+
/* reactions */
|
| 107 |
+
.react-bar-wrap{position:absolute;top:calc(100% + 6px);z-index:30}
|
| 108 |
+
.msg-row.in .react-bar-wrap{inset-inline-start:0}
|
| 109 |
+
.msg-row.out .react-bar-wrap{inset-inline-end:0}
|
| 110 |
+
.react-bar{display:none;flex-direction:column;border-radius:var(--md-sys-shape-xl);overflow:hidden;background:var(--md-sys-color-surface-container);box-shadow:var(--md-elev-3);transform-origin:top center}
|
| 111 |
+
.react-bar.show{display:flex;animation:md-menu-in var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 112 |
+
.react-quick{display:flex;align-items:center;gap:2px;padding:6px 10px;border-bottom:1px solid var(--md-sys-color-outline-variant)}
|
| 113 |
+
.react-quick span{font-size:1.25rem;cursor:pointer;padding:4px;border-radius:50%;transition:transform var(--md-dur-s4) var(--md-ease-emph-decel)}
|
| 114 |
+
.react-quick span:hover{transform:scale(1.25)}
|
| 115 |
+
.react-quick span.used,.react-grid span.used{background:var(--md-sys-color-secondary-container);border-radius:12px}
|
| 116 |
+
.react-expand{display:flex;align-items:center;justify-content:center;padding:6px;cursor:pointer;font:var(--md-type-label-medium);color:var(--md-sys-color-primary);gap:4px}
|
| 117 |
+
.react-grid{display:none;grid-template-columns:repeat(8,1fr);gap:2px;padding:8px;max-height:188px;overflow-y:auto}
|
| 118 |
+
.react-grid.open{display:grid;animation:md-slide-up var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 119 |
+
.react-grid span{font-size:1.125rem;cursor:pointer;padding:4px;border-radius:10px;text-align:center;transition:background var(--md-dur-s3) var(--md-ease-standard)}
|
| 120 |
+
.react-grid span:hover{background:color-mix(in srgb,var(--md-sys-color-on-surface) 10%,transparent)}
|
| 121 |
+
.reaction-row{display:flex;gap:4px;margin-top:4px;flex-wrap:wrap}
|
| 122 |
+
.reaction-row.out{justify-content:flex-end}
|
| 123 |
+
.rchip{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 10px;border-radius:var(--md-sys-shape-sm);cursor:pointer;font-size:.85rem;
|
| 124 |
+
background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface);border:1px solid var(--md-sys-color-outline-variant);
|
| 125 |
+
transition:background var(--md-dur-s4) var(--md-ease-standard),transform var(--md-dur-s3) var(--md-ease-standard);animation:md-pop-in var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 126 |
+
.rchip:active{transform:scale(.94)}
|
| 127 |
+
.rchip.mine{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);border-color:transparent}
|
| 128 |
+
.rchip .rl{font:var(--md-type-label-small);opacity:.7}
|
| 129 |
+
|
| 130 |
+
/* context menu (right-click / long-press) */
|
| 131 |
+
.msg-ctx-menu{display:none;position:fixed;z-index:var(--app-z-menu);border-radius:var(--md-sys-shape-lg);overflow:hidden;min-width:220px;max-width:280px;
|
| 132 |
+
background:var(--md-sys-color-surface-container);box-shadow:var(--md-elev-3);transform-origin:top left}
|
| 133 |
+
.msg-ctx-menu.show{display:block;animation:md-menu-in var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 134 |
+
.mcm-react{display:flex;align-items:center;gap:2px;padding:8px 10px;border-bottom:1px solid var(--md-sys-color-outline-variant)}
|
| 135 |
+
.mcm-react span{font-size:1.25rem;cursor:pointer;padding:4px;border-radius:50%;transition:transform var(--md-dur-s4) var(--md-ease-emph-decel)}
|
| 136 |
+
.mcm-react span:hover{transform:scale(1.25)}
|
| 137 |
+
.mcm-items{padding:8px 0}
|
| 138 |
+
.mcm-item{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 16px;cursor:pointer;font:var(--md-type-body-large);font-size:.92rem;color:var(--md-sys-color-on-surface)}
|
| 139 |
+
.mcm-item .bi{font-size:1.25rem;color:var(--md-sys-color-on-surface-variant)}
|
| 140 |
+
.mcm-item.danger,.mcm-item.danger .bi{color:var(--md-sys-color-error)}
|
| 141 |
+
|
| 142 |
+
/* jump-to-original highlight (reply preview click) */
|
| 143 |
+
.msg-row.msg-flash .bubble::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:var(--md-sys-color-primary);opacity:0;
|
| 144 |
+
animation:md-flash 1.7s var(--md-ease-standard) both}
|
| 145 |
+
.msg-row.msg-flash .bubble{box-shadow:0 0 0 0 transparent;animation:md-flash-ring 1.7s var(--md-ease-standard) both}
|
| 146 |
+
@keyframes md-flash{0%{opacity:0}18%{opacity:.34}60%{opacity:.2}100%{opacity:0}}
|
| 147 |
+
@keyframes md-flash-ring{0%,70%{box-shadow:0 0 0 3px var(--md-sys-color-primary)}100%{box-shadow:0 0 0 3px transparent}}
|
| 148 |
+
.rq:focus-visible{outline-offset:1px}
|
| 149 |
+
|
| 150 |
+
/* swipe-to-reply cue */
|
| 151 |
+
.swipe-reply-icon{position:absolute;top:50%;transform:translateY(-50%);opacity:0;color:var(--md-sys-color-primary);font-size:1.5rem;transition:opacity 80ms linear;pointer-events:none}
|
| 152 |
+
.msg-row.out .swipe-reply-icon{left:-34px}
|
| 153 |
+
.msg-row.in .swipe-reply-icon{right:-34px}
|
| 154 |
+
|
| 155 |
+
/* jump-to-latest (small FAB) + unread badge */
|
| 156 |
+
.scroll-btn{position:absolute;bottom:92px;inset-inline-end:16px;width:40px;height:40px;border-radius:var(--md-sys-shape-md);background:var(--md-sys-color-surface-container-high);
|
| 157 |
+
color:var(--md-sys-color-primary);display:flex;align-items:center;justify-content:center;font-size:1.5rem;cursor:pointer;z-index:20;box-shadow:var(--md-elev-2)}
|
| 158 |
+
.scroll-btn:not(.d-none){animation:md-pop-in var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 159 |
+
.ubadge{position:absolute;top:-8px;right:-6px;min-width:20px;height:20px;padding:0 6px;border-radius:var(--md-sys-shape-full);background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary);font:var(--md-type-label-small);line-height:20px;text-align:center}
|
static/css/chatlist.css
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ==========================================================================
|
| 2 |
+
Conversation list — M3 list items with state layers + selected indicator.
|
| 3 |
+
Class names are what chatlist.js already emits.
|
| 4 |
+
========================================================================== */
|
| 5 |
+
ul.chatlist{list-style:none;margin:0;padding:0 8px 96px;overflow-y:auto;flex:1}
|
| 6 |
+
|
| 7 |
+
li.chatlist-chat{display:flex;align-items:center;gap:12px;min-height:72px;padding:8px 12px;border-radius:var(--md-sys-shape-lg);cursor:pointer;
|
| 8 |
+
color:var(--md-sys-color-on-surface);list-style:none;transition:background var(--md-dur-s4) var(--md-ease-standard)}
|
| 9 |
+
li.chatlist-chat:hover .dialog-pin{opacity:1}
|
| 10 |
+
li.chatlist-chat.active{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container)}
|
| 11 |
+
li.chatlist-chat.active .row-subtitle,li.chatlist-chat.active .dialog-time{color:var(--md-sys-color-on-secondary-container);opacity:.8}
|
| 12 |
+
|
| 13 |
+
.dialog-avatar{width:var(--app-avatar-row);height:var(--app-avatar-row);border-radius:50%;color:rgba(255,255,255,.96);display:flex;align-items:center;justify-content:center;
|
| 14 |
+
font:600 1.2rem/1 var(--md-font);flex-shrink:0;overflow:hidden;position:relative}
|
| 15 |
+
.dialog-avatar img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
|
| 16 |
+
|
| 17 |
+
.dialog-subtitle-container{flex:1;min-width:0}
|
| 18 |
+
.dialog-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:2px;gap:8px}
|
| 19 |
+
.row-title{display:flex;align-items:center;gap:6px;min-width:0}
|
| 20 |
+
.row-title strong{font:var(--md-type-title-medium);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px}
|
| 21 |
+
.row-title .bi{font-size:1rem!important}
|
| 22 |
+
.dialog-meta{display:flex;align-items:center;gap:4px;flex-shrink:0}
|
| 23 |
+
.dialog-pin{opacity:0;transition:opacity var(--md-dur-s3) var(--md-ease-standard),background var(--md-dur-s3) var(--md-ease-standard);color:var(--md-sys-color-on-surface-variant);
|
| 24 |
+
font-size:1.125rem;cursor:pointer;padding:3px;border-radius:50%}
|
| 25 |
+
.dialog-pin:hover{background:color-mix(in srgb,currentColor 12%,transparent)}
|
| 26 |
+
.dialog-time{font:var(--md-type-label-small);color:var(--md-sys-color-on-surface-variant)}
|
| 27 |
+
|
| 28 |
+
.row-subtitle{font:var(--md-type-body-medium);color:var(--md-sys-color-on-surface-variant);overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:8px}
|
| 29 |
+
.dialog-subtitle-inner{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
|
| 30 |
+
.row-subtitle .bi{font-size:1.125rem!important}
|
| 31 |
+
|
| 32 |
+
.dialog-subtitle-badge{background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary);animation:md-pop-in var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 33 |
+
.dialog-subtitle-badge.muted{background:var(--md-sys-color-outline-variant);color:var(--md-sys-color-on-surface-variant)}
|
| 34 |
+
li.chatlist-chat.active .dialog-subtitle-badge{background:var(--md-sys-color-on-secondary-container);color:var(--md-sys-color-secondary-container)}
|
static/css/composer.css
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ==========================================================================
|
| 2 |
+
Composer — rounded text field with trailing send/mic, reply strip,
|
| 3 |
+
attach menu and voice-recording pill.
|
| 4 |
+
========================================================================== */
|
| 5 |
+
.comp-wrap{flex-shrink:0;padding:8px 12px calc(12px + env(safe-area-inset-bottom,0px));background:var(--md-sys-color-surface);position:relative}
|
| 6 |
+
.comp-dock{border-radius:var(--md-sys-shape-xl);padding:4px;display:flex;flex-direction:column;gap:4px;min-height:56px;background:var(--md-sys-color-surface-container-high);
|
| 7 |
+
transition:background var(--md-dur-s4) var(--md-ease-standard),box-shadow var(--md-dur-s4) var(--md-ease-standard)}
|
| 8 |
+
.comp-dock:focus-within{background:var(--md-sys-color-surface-container-highest);box-shadow:var(--md-elev-1)}
|
| 9 |
+
|
| 10 |
+
.rstrip{display:none;align-items:center;gap:8px;margin:4px 8px 0;padding:6px 8px 6px 12px;padding-inline:12px 8px;border-radius:var(--md-sys-shape-md);
|
| 11 |
+
background:var(--md-sys-color-surface-container);border-inline-start:3px solid var(--md-sys-color-primary);font:var(--md-type-body-small)}
|
| 12 |
+
.rstrip.show{display:flex;animation:md-slide-up var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 13 |
+
.rstrip .bi{color:var(--md-sys-color-primary);font-size:1.25rem}
|
| 14 |
+
.rstrip .bi-x-lg{color:var(--md-sys-color-on-surface-variant);cursor:pointer;padding:4px;border-radius:50%}
|
| 15 |
+
.rstrip .txt{color:var(--md-sys-color-on-surface-variant);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
| 16 |
+
|
| 17 |
+
.inp-row{display:flex;align-items:flex-end;gap:2px;max-height:140px}
|
| 18 |
+
.comp-dock textarea.form-control{background:transparent;background-image:none;box-shadow:none;border-radius:0;min-height:48px;padding:12px 8px;max-height:120px;
|
| 19 |
+
font:var(--md-type-body-large);font-size:.95rem;flex:1;resize:none}
|
| 20 |
+
.comp-dock textarea.form-control:focus{box-shadow:none;background:transparent}
|
| 21 |
+
.comp-dock textarea::placeholder{color:var(--md-sys-color-on-surface-variant)}
|
| 22 |
+
|
| 23 |
+
.send-btn{background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary);border:0;width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;
|
| 24 |
+
font-size:1.375rem;cursor:pointer;flex-shrink:0;transition:transform var(--md-dur-s3) var(--md-ease-standard),box-shadow var(--md-dur-s3) var(--md-ease-standard)}
|
| 25 |
+
.send-btn:not(.d-none){animation:md-pop-in var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 26 |
+
.send-btn:hover{box-shadow:var(--md-elev-1)}
|
| 27 |
+
.send-btn:active{transform:scale(.92)}
|
| 28 |
+
.rec-btn:not(.d-none){animation:md-pop-in var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 29 |
+
.rec-btn.rec{animation:md-rec-pulse 1.1s ease-in-out infinite}
|
| 30 |
+
@keyframes md-rec-pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--md-sys-color-error) 45%,transparent)}50%{box-shadow:0 0 0 8px transparent}}
|
| 31 |
+
|
| 32 |
+
/* attach menu */
|
| 33 |
+
.att-menu{display:none;position:absolute;bottom:52px;inset-inline-start:0;min-width:200px;padding:8px 0;z-index:30;border-radius:var(--md-sys-shape-lg);
|
| 34 |
+
background:var(--md-sys-color-surface-container);box-shadow:var(--md-elev-3);transform-origin:bottom left}
|
| 35 |
+
.att-menu.show{display:block;animation:md-menu-in var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 36 |
+
.att-menu .opt{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 16px;cursor:pointer;font:var(--md-type-body-large);font-size:.92rem;color:var(--md-sys-color-on-surface)}
|
| 37 |
+
.att-menu .opt .bi{font-size:1.25rem;color:var(--md-sys-color-primary)}
|
| 38 |
+
|
| 39 |
+
/* voice recording pill */
|
| 40 |
+
.voice-rec-panel{display:none;align-items:center;gap:6px;padding:2px}
|
| 41 |
+
.voice-rec-panel.show{display:flex;animation:md-fade-through var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 42 |
+
.voice-rec-cancel{flex:0 0 auto;width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--md-sys-color-error);cursor:pointer;font-size:1.375rem}
|
| 43 |
+
.voice-rec-pill{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:12px;background:var(--md-sys-color-surface-container);border-radius:var(--md-sys-shape-full);padding:10px 16px}
|
| 44 |
+
.voice-rec-dot{width:10px;height:10px;border-radius:50%;background:var(--md-sys-color-error);flex-shrink:0;animation:md-pulse 1.25s ease-in-out infinite}
|
| 45 |
+
.voice-rec-label{flex:1;font:var(--md-type-body-medium);color:var(--md-sys-color-on-surface-variant)}
|
| 46 |
+
.voice-rec-timer{flex:0 0 auto;font:var(--md-type-label-large);font-variant-numeric:tabular-nums;min-width:44px;text-align:left;color:var(--md-sys-color-on-surface)}
|
| 47 |
+
.voice-rec-send{flex:0 0 auto;width:48px;height:48px;border-radius:50%;background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:1.25rem}
|
| 48 |
+
|
| 49 |
+
#senderSelector{display:none;padding:0 12px 8px;font:var(--md-type-body-small);color:var(--md-sys-color-on-surface-variant)!important;align-items:center;gap:12px}
|
| 50 |
+
#senderSelector label{display:inline-flex;align-items:center;gap:6px;margin:0!important;cursor:pointer}
|
static/css/emoji.css
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ==========================================================================
|
| 2 |
+
Emoji / sticker / GIF sheet.
|
| 3 |
+
========================================================================== */
|
| 4 |
+
.emoji-picker{display:none;position:absolute;bottom:76px;inset-inline-start:12px;width:380px;max-width:calc(100% - 24px);height:420px;max-height:60vh;overflow:hidden;flex-direction:column;
|
| 5 |
+
z-index:40;border-radius:var(--md-sys-shape-xl);background:var(--md-sys-color-surface-container);box-shadow:var(--md-elev-3);transform-origin:bottom left}
|
| 6 |
+
.emoji-picker.show{display:flex;animation:md-menu-in var(--md-dur-m2) var(--md-ease-emph-decel)}
|
| 7 |
+
|
| 8 |
+
.emoji-cats{height:52px;flex-shrink:0;display:flex;align-items:center;gap:2px;padding:0 8px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--md-sys-color-outline-variant)}
|
| 9 |
+
.emoji-cats::-webkit-scrollbar{display:none}
|
| 10 |
+
.ec{font-size:1.2rem;cursor:pointer;padding:6px 10px;border-radius:var(--md-sys-shape-full);flex-shrink:0;opacity:.7;font:var(--md-type-label-large);
|
| 11 |
+
transition:background var(--md-dur-s4) var(--md-ease-standard),opacity var(--md-dur-s4) var(--md-ease-standard)}
|
| 12 |
+
.ec.active{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);opacity:1}
|
| 13 |
+
|
| 14 |
+
.emoji-grid{flex:1;overflow-y:auto;display:grid;grid-template-columns:repeat(8,1fr);gap:2px;padding:8px;align-content:start}
|
| 15 |
+
.emoji-grid span{font-size:1.4rem;cursor:pointer;padding:6px;border-radius:var(--md-sys-shape-md);text-align:center;transition:background var(--md-dur-s3) var(--md-ease-standard),transform var(--md-dur-s4) var(--md-ease-emph-decel)}
|
| 16 |
+
.emoji-grid span:hover{background:color-mix(in srgb,var(--md-sys-color-on-surface) 10%,transparent);transform:scale(1.14)}
|
| 17 |
+
|
| 18 |
+
.sk-grid{flex:1;overflow-y:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:12px;align-content:start}
|
| 19 |
+
.sk-tile{aspect-ratio:1;border-radius:var(--md-sys-shape-md);background:var(--md-sys-color-surface-container-high);display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;
|
| 20 |
+
transition:transform var(--md-dur-s4) var(--md-ease-emph-decel)}
|
| 21 |
+
.sk-tile:hover{transform:scale(1.05)}
|
| 22 |
+
.sk-tile img,.sk-tile video,.sk-tile svg{width:100%!important;height:100%!important;object-fit:contain}
|
| 23 |
+
.sk-tile .emo-fallback{font-size:2rem}
|
| 24 |
+
.sk-tile .sticker-fallback{width:100%;height:100%}
|
| 25 |
+
.sk-empty{grid-column:1/-1;text-align:center;color:var(--md-sys-color-on-surface-variant);font:var(--md-type-body-medium);padding:32px 0}
|
| 26 |
+
|
| 27 |
+
/* twemoji renders unicode emoji as <img class="emoji"> */
|
| 28 |
+
img.emoji{height:1.25em;width:1.25em;vertical-align:-.2em;margin:0 .03em 0 .1em}
|
| 29 |
+
.emoji-grid img.emoji,.react-quick img.emoji,.react-grid img.emoji,.sk-tab img.emoji{height:1.4em;width:1.4em;margin:0}
|
| 30 |
+
.ec img.emoji{height:1.1em;width:1.1em}
|
| 31 |
+
|
| 32 |
+
@media(max-width:768px){
|
| 33 |
+
.emoji-picker{width:auto;inset-inline:8px;bottom:72px;transform-origin:bottom center}
|
| 34 |
+
}
|
static/css/icons.css
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ==========================================================================
|
| 2 |
+
Icons — Material Symbols (Rounded).
|
| 3 |
+
The app's markup/JS addresses icons as <i class="bi bi-name">. Rather than
|
| 4 |
+
rewrite every call site, each legacy name is mapped here to a Material
|
| 5 |
+
Symbols ligature, so the markup stays untouched and the icon set is M3.
|
| 6 |
+
The font is loaded (as a small subset) by the <link> in index.html.
|
| 7 |
+
========================================================================== */
|
| 8 |
+
.bi{
|
| 9 |
+
display:inline-block;width:1em;height:1em;line-height:1;overflow:hidden;
|
| 10 |
+
vertical-align:-.15em;flex-shrink:0;font-style:normal;text-align:center;
|
| 11 |
+
}
|
| 12 |
+
.bi::before{
|
| 13 |
+
font-family:'Material Symbols Rounded';font-weight:400;font-style:normal;
|
| 14 |
+
font-size:inherit;line-height:1;letter-spacing:normal;text-transform:none;
|
| 15 |
+
display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;
|
| 16 |
+
-webkit-font-smoothing:antialiased;font-feature-settings:'liga';
|
| 17 |
+
font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;
|
| 18 |
+
transition:font-variation-settings var(--md-dur-s4) var(--md-ease-standard);
|
| 19 |
+
}
|
| 20 |
+
/* filled variants */
|
| 21 |
+
.bi-pin-angle-fill::before,.bi-bell-slash-fill::before,.bi-send-fill::before,.bi-mic-fill::before,
|
| 22 |
+
.bi-play-fill::before,.bi-pause-fill::before,.bi-reply-fill::before,.bi-people-fill::before,
|
| 23 |
+
.bi-briefcase-fill::before{font-variation-settings:'FILL' 1,'wght' 400,'GRAD' 0,'opsz' 24}
|
| 24 |
+
|
| 25 |
+
.bi-add::before,.bi-plus-lg::before{content:"add"}
|
| 26 |
+
.bi-arrow-right::before{content:"arrow_back"} /* "back" — flipped for RTL below */
|
| 27 |
+
.bi-arrow-90deg-left::before{content:"shortcut"}
|
| 28 |
+
.bi-ban::before,.bi-slash-circle::before{content:"block"}
|
| 29 |
+
.bi-bell::before{content:"notifications"}
|
| 30 |
+
.bi-bell-slash::before,.bi-bell-slash-fill::before{content:"notifications_off"}
|
| 31 |
+
.bi-box-arrow-right::before{content:"logout"}
|
| 32 |
+
.bi-briefcase-fill::before{content:"work"}
|
| 33 |
+
.bi-camera::before{content:"photo_camera"}
|
| 34 |
+
.bi-camera-video::before{content:"videocam"}
|
| 35 |
+
.bi-card-heading::before{content:"badge"}
|
| 36 |
+
.bi-chat-square-dots::before{content:"chat"}
|
| 37 |
+
.bi-check-circle::before{content:"check_circle"}
|
| 38 |
+
.bi-chevron-down::before{content:"keyboard_arrow_down"}
|
| 39 |
+
.bi-chevron-left::before{content:"chevron_right"} /* "forward" — flipped for RTL below */
|
| 40 |
+
.bi-clipboard::before{content:"content_copy"}
|
| 41 |
+
.bi-download::before,.bi-file-earmark-arrow-down::before{content:"download"}
|
| 42 |
+
.bi-emoji-smile::before{content:"mood"}
|
| 43 |
+
.bi-file-earmark::before{content:"description"}
|
| 44 |
+
.bi-film::before{content:"gif_box"}
|
| 45 |
+
.bi-forward::before{content:"forward"}
|
| 46 |
+
.bi-funnel::before{content:"filter_list"}
|
| 47 |
+
.bi-image::before{content:"image"}
|
| 48 |
+
.bi-info-circle::before{content:"info"}
|
| 49 |
+
.bi-key::before{content:"key"}
|
| 50 |
+
.bi-list::before{content:"menu"}
|
| 51 |
+
.bi-magic::before{content:"auto_fix_high"}
|
| 52 |
+
.bi-mic-fill::before{content:"mic"}
|
| 53 |
+
.bi-mic-mute::before{content:"mic_off"}
|
| 54 |
+
.bi-paperclip::before{content:"attach_file"}
|
| 55 |
+
.bi-pause-fill::before{content:"pause"}
|
| 56 |
+
.bi-pause-circle::before{content:"pause_circle"}
|
| 57 |
+
.bi-pencil::before{content:"edit"}
|
| 58 |
+
.bi-pencil-square::before{content:"edit_square"}
|
| 59 |
+
.bi-people::before,.bi-people-fill::before{content:"group"}
|
| 60 |
+
.bi-person-gear::before{content:"manage_accounts"}
|
| 61 |
+
.bi-person-plus::before{content:"person_add"}
|
| 62 |
+
.bi-person-x::before{content:"person_remove"}
|
| 63 |
+
.bi-pin-angle::before,.bi-pin-angle-fill::before{content:"keep"}
|
| 64 |
+
.bi-play-fill::before{content:"play_arrow"}
|
| 65 |
+
.bi-play-circle::before{content:"play_circle"}
|
| 66 |
+
.bi-reply::before,.bi-reply-fill::before{content:"reply"}
|
| 67 |
+
.bi-robot::before{content:"smart_toy"}
|
| 68 |
+
.bi-search::before{content:"search"}
|
| 69 |
+
.bi-send-fill::before{content:"send"}
|
| 70 |
+
.bi-shield-check::before{content:"verified_user"}
|
| 71 |
+
.bi-stickies::before{content:"sticky_note_2"}
|
| 72 |
+
.bi-telegram::before{content:"send"}
|
| 73 |
+
.bi-trash3::before{content:"delete"}
|
| 74 |
+
.bi-x-lg::before{content:"close"}
|
| 75 |
+
.bi-devices::before{content:"devices"}
|
| 76 |
+
.bi-globe::before{content:"language"}
|
| 77 |
+
.bi-install::before{content:"install_mobile"}
|
| 78 |
+
.bi-android2::before{content:"android"}
|
| 79 |
+
.bi-windows::before{content:"desktop_windows"}
|
| 80 |
+
/* status icons used by snackbars / banners */
|
| 81 |
+
.bi-error::before{content:"error"}
|
| 82 |
+
.bi-warning::before{content:"warning"}
|
| 83 |
+
.bi-done::before{content:"done"}
|
| 84 |
+
|
| 85 |
+
/* direction-aware glyphs: the base glyph points the LTR way, mirror in RTL */
|
| 86 |
+
html[dir="rtl"] .bi-arrow-right::before,
|
| 87 |
+
html[dir="rtl"] .bi-chevron-left::before,
|
| 88 |
+
html[dir="rtl"] .bi-arrow-90deg-left::before,
|
| 89 |
+
html[dir="rtl"] .bi-reply::before,html[dir="rtl"] .bi-reply-fill::before,
|
| 90 |
+
html[dir="rtl"] .bi-forward::before,
|
| 91 |
+
html[dir="rtl"] .bi-send-fill::before,
|
| 92 |
+
html[dir="rtl"] .bi-telegram::before{transform:scaleX(-1)}
|
static/css/settings.css
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ==========================================================================
|
| 2 |
+
Sign-in card, settings pages (list → sub-page), user cards, bot profile.
|
| 3 |
+
Moved here from the old inline <style> and rebuilt on M3.
|
| 4 |
+
========================================================================== */
|
| 5 |
+
|
| 6 |
+
/* ---------- start-up splash (no sign-in flash on reload) ---------- */
|
| 7 |
+
/* <head> adds html.has-session when a token is stored, before the first paint: the sign-in card never shows,
|
| 8 |
+
and this splash stands in until the session is confirmed. Its status line only fades in if loading is slow. */
|
| 9 |
+
html.has-session #authBox{display:none!important}
|
| 10 |
+
.splash{position:fixed;inset:0;z-index:1000;display:none;flex-direction:column;align-items:center;justify-content:center;gap:28px;background:var(--md-sys-color-surface)}
|
| 11 |
+
html.has-session .splash{display:flex}
|
| 12 |
+
.splash .brand-orb{animation:md-pop-in var(--md-dur-m3) var(--md-ease-emph-decel) both}
|
| 13 |
+
.splash-status{display:flex;align-items:center;gap:10px;color:var(--md-sys-color-on-surface-variant);font:var(--md-type-label-large);animation:md-fade-in var(--md-dur-m2) var(--md-ease-standard) .9s both}
|
| 14 |
+
.splash-status .spinner-border{color:var(--md-sys-color-primary)}
|
| 15 |
+
.splash.leaving{opacity:0;pointer-events:none;transition:opacity var(--md-dur-m1) var(--md-ease-standard)}
|
| 16 |
+
|
| 17 |
+
/* ---------- sign-in ---------- */
|
| 18 |
+
#authBox{background:var(--md-sys-color-surface)}
|
| 19 |
+
.auth-card{width:min(360px,calc(100vw - 32px));padding:32px 24px 24px;border-radius:var(--md-sys-shape-xl);background:var(--md-sys-color-surface-container);
|
| 20 |
+
box-shadow:var(--md-elev-1);animation:md-slide-up var(--md-dur-m3) var(--md-ease-emph-decel)}
|
| 21 |
+
.auth-card h5{font:var(--md-type-headline-small);margin:0 0 4px}
|
| 22 |
+
.auth-card p{font:var(--md-type-body-medium);color:var(--md-sys-color-on-surface-variant)!important;margin-bottom:20px!important}
|
| 23 |
+
.auth-card .form-control{text-align:center;margin-bottom:12px}
|
| 24 |
+
.auth-card .btn{margin-top:8px}
|
| 25 |
+
.auth-link{display:inline-flex;align-items:center;margin-top:12px;padding:6px 14px;border-radius:var(--md-sys-shape-full);font:var(--md-type-label-large);color:var(--md-sys-color-primary);cursor:pointer}
|
| 26 |
+
.auth-suspended{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container);border-radius:var(--md-sys-shape-md);padding:10px 14px;font:var(--md-type-body-medium);margin-bottom:16px;text-align:start}
|
| 27 |
+
#authLogin:not(.d-none),#authForgot:not(.d-none),#authForce:not(.d-none){animation:md-fade-through var(--md-dur-m2) var(--md-ease-emph-decel)}
|
| 28 |
+
|
| 29 |
+
/* ---------- settings shell ---------- */
|
| 30 |
+
.settings-page{position:absolute;inset:0;z-index:40;display:none;flex-direction:column;background:var(--md-sys-color-surface)}
|
| 31 |
+
.settings-page.show{display:flex;animation:md-fade-in var(--md-dur-s4) var(--md-ease-standard)}
|
| 32 |
+
@keyframes md-fade-in{from{opacity:0}to{opacity:1}}
|
| 33 |
+
.sp-view{display:flex;flex-direction:column;height:100%;animation:md-shared-axis-in var(--md-dur-m2) var(--md-ease-emph-decel)}
|
| 34 |
+
.sp-hdr{display:flex;align-items:center;gap:8px;height:var(--app-header-height);padding:0 8px;flex-shrink:0;background:var(--md-sys-color-surface)}
|
| 35 |
+
.sp-hdr h5{margin:0;font:var(--md-type-title-large)}
|
| 36 |
+
.sp-body{flex:1;overflow-y:auto;padding:8px 16px 32px}
|
| 37 |
+
.sp-body>*{max-width:640px;margin-inline:auto}
|
| 38 |
+
.sp-body>.btn{display:flex}
|
| 39 |
+
|
| 40 |
+
/* list rows (M3 list items with a tonal leading icon) */
|
| 41 |
+
.sp-list-row{display:flex;align-items:center;gap:16px;min-height:64px;padding:8px 16px;border-radius:var(--md-sys-shape-lg);cursor:pointer;color:var(--md-sys-color-on-surface);margin-bottom:2px}
|
| 42 |
+
.sp-list-row>.bi:first-child{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.375rem;
|
| 43 |
+
background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);flex-shrink:0}
|
| 44 |
+
.sp-list-row span{flex:1;font:var(--md-type-body-large)}
|
| 45 |
+
.sp-list-row small{color:var(--md-sys-color-on-surface-variant);font:var(--md-type-body-small)}
|
| 46 |
+
.sp-list-row .bi.arrow{color:var(--md-sys-color-on-surface-variant);font-size:1.5rem}
|
| 47 |
+
|
| 48 |
+
/* cards + rows */
|
| 49 |
+
.sp-card{border-radius:var(--md-sys-shape-lg);padding:16px;display:flex;flex-direction:column;gap:16px;background:var(--md-sys-color-surface-container)}
|
| 50 |
+
.sp-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px}
|
| 51 |
+
.sp-row label{flex:1;font:var(--md-type-body-medium);color:var(--md-sys-color-on-surface)}
|
| 52 |
+
.sp-row .sp-inp{max-width:100%}
|
| 53 |
+
.sp-row>span{display:flex;align-items:center;gap:8px;flex-shrink:0}
|
| 54 |
+
.sp-row>.sp-inp,.sp-row>span .sp-inp{flex-shrink:1;min-width:0}
|
| 55 |
+
.u-form-title{display:flex;align-items:center;gap:8px;font:var(--md-type-label-large);color:var(--md-sys-color-primary);margin:8px 4px 12px}
|
| 56 |
+
|
| 57 |
+
/* bot profile */
|
| 58 |
+
.bp-head{display:flex;align-items:center;gap:16px;margin-bottom:16px}
|
| 59 |
+
.bp-avatar{width:88px;height:88px;border-radius:50%;background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;font-size:2.5rem}
|
| 60 |
+
.bp-avatar img{width:100%;height:100%;object-fit:cover}
|
| 61 |
+
.bp-name{font:var(--md-type-title-large)}
|
| 62 |
+
.bp-meta{font:var(--md-type-body-small);color:var(--md-sys-color-on-surface-variant);text-align:start}
|
| 63 |
+
|
| 64 |
+
/* panel users */
|
| 65 |
+
.u-card{background:var(--md-sys-color-surface-container);border-radius:var(--md-sys-shape-lg);padding:16px;margin-bottom:12px}
|
| 66 |
+
.u-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
|
| 67 |
+
.u-name{font:var(--md-type-title-medium);direction:ltr}
|
| 68 |
+
.u-badge{font:var(--md-type-label-small);padding:3px 10px;border-radius:var(--md-sys-shape-sm)}
|
| 69 |
+
.u-badge.on{background:var(--app-green-container);color:var(--app-on-green-container)}
|
| 70 |
+
.u-badge.off{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container)}
|
| 71 |
+
.u-meta{font:var(--md-type-body-small);color:var(--md-sys-color-on-surface-variant);display:flex;flex-direction:column;gap:2px;margin-bottom:12px;word-break:break-all}
|
| 72 |
+
.u-actions{display:flex;flex-wrap:wrap;gap:8px}
|
| 73 |
+
|
| 74 |
+
/* ---------- signed-in devices ---------- */
|
| 75 |
+
.dev-card{display:flex;align-items:center;gap:14px;padding:12px 8px;padding-inline:16px 8px;margin-bottom:8px;border-radius:var(--md-sys-shape-lg);
|
| 76 |
+
background:var(--md-sys-color-surface-container)}
|
| 77 |
+
.dev-card.current{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container)}
|
| 78 |
+
.dev-ic{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.5rem;flex-shrink:0;
|
| 79 |
+
background:var(--md-sys-color-surface-container-highest);color:var(--md-sys-color-primary)}
|
| 80 |
+
.dev-card.current .dev-ic{background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary)}
|
| 81 |
+
.dev-info{flex:1;min-width:0}
|
| 82 |
+
.dev-name{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;font:var(--md-type-title-medium)}
|
| 83 |
+
.dev-name>span:first-child{overflow:hidden;text-overflow:ellipsis;max-width:100%}
|
| 84 |
+
.dev-chip{font:var(--md-type-label-small);padding:2px 8px;border-radius:var(--md-sys-shape-sm);background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary)}
|
| 85 |
+
.dev-sub{font:var(--md-type-body-small);color:var(--md-sys-color-on-surface-variant);margin-top:2px}
|
| 86 |
+
.dev-card.current .dev-sub{color:inherit;opacity:.8}
|
| 87 |
+
.dev-acts{display:flex;flex-shrink:0}
|
| 88 |
+
.dev-kick{color:var(--md-sys-color-error)}
|
static/css/sidebar.css
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ==========================================================================
|
| 2 |
+
Left pane — search bar, segmented view switcher, filter chips, FAB.
|
| 3 |
+
========================================================================== */
|
| 4 |
+
.sidebar{width:var(--app-column-width);flex-shrink:0;display:flex;flex-direction:column;height:100%;position:relative;z-index:10;
|
| 5 |
+
background:var(--md-sys-color-surface-container-low);border-inline-end:1px solid var(--md-sys-color-outline-variant)}
|
| 6 |
+
|
| 7 |
+
.sidebar-header{height:var(--app-header-height);flex-shrink:0;display:flex;align-items:center;padding:0 12px}
|
| 8 |
+
.search-bar{flex:1;display:flex;align-items:center;gap:4px;height:48px;padding:0 4px;border-radius:var(--md-sys-shape-full);
|
| 9 |
+
background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface-variant);
|
| 10 |
+
transition:background var(--md-dur-s4) var(--md-ease-standard),box-shadow var(--md-dur-s4) var(--md-ease-standard)}
|
| 11 |
+
.search-bar:focus-within{background:var(--md-sys-color-surface-container-highest);box-shadow:var(--md-elev-1)}
|
| 12 |
+
.search-bar input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:var(--md-sys-color-on-surface);font:var(--md-type-body-large);padding:0 4px}
|
| 13 |
+
.search-bar input::placeholder{color:var(--md-sys-color-on-surface-variant)}
|
| 14 |
+
.search-bar .search-ico{font-size:1.5rem;margin-inline:4px 12px}
|
| 15 |
+
|
| 16 |
+
/* connection bar (ws.js) — slides open only while not fully connected */
|
| 17 |
+
.conn-status{display:flex;align-items:center;justify-content:center;gap:10px;max-height:0;overflow:hidden;opacity:0;margin:0 12px;border-radius:var(--md-sys-shape-full);
|
| 18 |
+
background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface-variant);font:var(--md-type-label-large);
|
| 19 |
+
transition:max-height var(--md-dur-m2) var(--md-ease-emph-decel),opacity var(--md-dur-s4) var(--md-ease-standard),margin var(--md-dur-m2) var(--md-ease-emph-decel)}
|
| 20 |
+
.conn-status.show{max-height:36px;opacity:1;margin-block:0 8px;padding:6px 14px}
|
| 21 |
+
.conn-status .spinner-border{--bs-spinner-width:14px;--bs-spinner-height:14px;--bs-spinner-border-width:2px;color:var(--md-sys-color-primary)}
|
| 22 |
+
|
| 23 |
+
/* view switcher = M3 segmented button */
|
| 24 |
+
.view-switcher{display:flex;padding:2px 12px 10px}
|
| 25 |
+
.view-btn{position:relative;flex:1;height:40px;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;
|
| 26 |
+
border:1px solid var(--md-sys-color-outline);color:var(--md-sys-color-on-surface);font:var(--md-type-label-large);
|
| 27 |
+
transition:background var(--md-dur-s4) var(--md-ease-standard),color var(--md-dur-s4) var(--md-ease-standard)}
|
| 28 |
+
.view-btn:first-child{border-start-start-radius:var(--md-sys-shape-full);border-end-start-radius:var(--md-sys-shape-full)}
|
| 29 |
+
.view-btn:last-child{border-start-end-radius:var(--md-sys-shape-full);border-end-end-radius:var(--md-sys-shape-full)}
|
| 30 |
+
.view-btn+.view-btn{margin-inline-start:-1px}
|
| 31 |
+
.view-btn .bi{font-size:1.125rem}
|
| 32 |
+
.view-btn::before{content:"done";font-family:'Material Symbols Rounded';font-size:18px;line-height:1;width:0;opacity:0;overflow:hidden;margin-inline-end:-8px;
|
| 33 |
+
transition:width var(--md-dur-m1) var(--md-ease-emph-decel),opacity var(--md-dur-s4) var(--md-ease-standard),margin var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 34 |
+
.view-btn.active{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container)}
|
| 35 |
+
.view-btn.active::before{width:18px;opacity:1;margin-inline-end:0}
|
| 36 |
+
.view-btn.active .bi{display:none}
|
| 37 |
+
.vb-badge{position:absolute;top:-7px;inset-inline-end:12px;min-width:18px;height:18px;padding:0 5px;border-radius:var(--md-sys-shape-full);
|
| 38 |
+
background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary);font:var(--md-type-label-small);line-height:18px;text-align:center;
|
| 39 |
+
box-shadow:0 0 0 2px var(--md-sys-color-surface-container-low);animation:md-pop-in var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 40 |
+
.view-btn:not(.active) .vb-badge{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container)}
|
| 41 |
+
|
| 42 |
+
/* folder tabs = M3 filter chips */
|
| 43 |
+
.folder-tabs{display:flex;gap:6px;padding:0 12px 10px;overflow-x:auto;scrollbar-width:none}
|
| 44 |
+
.folder-tabs::-webkit-scrollbar{display:none}
|
| 45 |
+
.ftab{display:flex;align-items:center;height:32px;padding:0 10px;border-radius:var(--md-sys-shape-sm);flex-shrink:0;white-space:nowrap;cursor:pointer;
|
| 46 |
+
border:1px solid var(--md-sys-color-outline);color:var(--md-sys-color-on-surface-variant);font:var(--md-type-label-large);
|
| 47 |
+
transition:background var(--md-dur-s4) var(--md-ease-standard),color var(--md-dur-s4) var(--md-ease-standard),border-color var(--md-dur-s4) var(--md-ease-standard)}
|
| 48 |
+
.ftab::before{content:"done";font-family:'Material Symbols Rounded';font-size:18px;line-height:1;width:0;opacity:0;overflow:hidden;
|
| 49 |
+
transition:width var(--md-dur-m1) var(--md-ease-emph-decel),opacity var(--md-dur-s4) var(--md-ease-standard),margin var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 50 |
+
.ftab.active{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);border-color:transparent}
|
| 51 |
+
.ftab.active::before{width:18px;opacity:1;margin-inline-end:4px}
|
| 52 |
+
.ftab .cnt{margin-inline-start:5px;font:var(--md-type-label-small);opacity:.75;font-variant-numeric:tabular-nums}
|
| 53 |
+
.ftab.active .cnt{opacity:1}
|
| 54 |
+
|
| 55 |
+
/* compose FAB */
|
| 56 |
+
.sidebar .fab{position:absolute;inset-inline-end:16px;bottom:16px;z-index:5}
|
| 57 |
+
|
| 58 |
+
@media(max-width:768px){
|
| 59 |
+
.sidebar{width:100%;position:absolute;inset:0;z-index:var(--app-z-sidebar);border-inline-end:0;background:var(--md-sys-color-surface);
|
| 60 |
+
transition:transform var(--md-dur-m3) var(--md-ease-emph-decel),opacity var(--md-dur-m2) var(--md-ease-standard),visibility 0s}
|
| 61 |
+
/* hiding the list is a slide + fade (shared-axis) instead of display:none */
|
| 62 |
+
.sidebar.mh{display:flex!important;transform:translateX(var(--app-slide));opacity:0;visibility:hidden;pointer-events:none;
|
| 63 |
+
transition:transform var(--md-dur-m2) var(--md-ease-emph-accel),opacity var(--md-dur-s4) var(--md-ease-accel),visibility 0s var(--md-dur-m2)}
|
| 64 |
+
}
|
static/css/topbar.css
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ==========================================================================
|
| 2 |
+
Chat top app bar + profile / group-info dialog content.
|
| 3 |
+
========================================================================== */
|
| 4 |
+
.chat-topbar{height:var(--app-header-height);flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 12px;padding-inline:8px 12px;
|
| 5 |
+
background:var(--md-sys-color-surface-container);position:relative;z-index:5}
|
| 6 |
+
|
| 7 |
+
.chat-info-container{display:flex;align-items:center;gap:12px;min-width:0;flex:1;cursor:pointer;border-radius:var(--md-sys-shape-lg);padding:4px 8px;margin-inline-start:-4px}
|
| 8 |
+
.person-avatar{width:40px;height:40px;border-radius:50%;color:rgba(255,255,255,.96);display:flex;align-items:center;justify-content:center;font:600 1rem/1 var(--md-font);flex-shrink:0;overflow:hidden;position:relative}
|
| 9 |
+
.person-avatar img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
|
| 10 |
+
.chat-info-text{min-width:0}
|
| 11 |
+
.user-title{font:var(--md-type-title-medium);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(300px,50vw);margin:0}
|
| 12 |
+
.chat-info-subtitle{font:var(--md-type-body-small);color:var(--md-sys-color-on-surface-variant);display:flex;align-items:center;gap:4px}
|
| 13 |
+
.chat-info-subtitle.pend{color:var(--md-sys-color-tertiary);animation:md-pulse 1.4s ease-in-out infinite}
|
| 14 |
+
.chat-utils{display:flex;align-items:center;gap:2px;flex-shrink:0}
|
| 15 |
+
|
| 16 |
+
/* profile dialog action row */
|
| 17 |
+
.profile-actions{display:flex;gap:8px;padding:8px 24px 24px}
|
| 18 |
+
.pa-btn{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;border:0;border-radius:var(--md-sys-shape-lg);padding:12px 4px;cursor:pointer;
|
| 19 |
+
background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);font:var(--md-type-label-medium);
|
| 20 |
+
transition:transform var(--md-dur-s3) var(--md-ease-standard),background var(--md-dur-s4) var(--md-ease-standard)}
|
| 21 |
+
.pa-btn:active{transform:scale(.96)}
|
| 22 |
+
.pa-btn .bi{font-size:1.5rem}
|
| 23 |
+
.pa-btn.danger{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container)}
|
| 24 |
+
.pa-sub{font:var(--md-type-label-small)}
|
| 25 |
+
.pa-sub.on{color:var(--app-green)}
|
| 26 |
+
.pa-sub.off{color:var(--md-sys-color-error)}
|
| 27 |
+
|
| 28 |
+
/* shared-media tabs = M3 primary tabs */
|
| 29 |
+
.pm-tabs{display:flex;border-bottom:1px solid var(--md-sys-color-outline-variant);margin:16px -24px 0}
|
| 30 |
+
.pm-tab{position:relative;flex:1;text-align:center;padding:14px 4px;font:var(--md-type-label-large);color:var(--md-sys-color-on-surface-variant);cursor:pointer;transition:color var(--md-dur-s4) var(--md-ease-standard)}
|
| 31 |
+
.pm-tab::before{content:"";position:absolute;bottom:0;inset-inline:20%;height:3px;border-radius:3px 3px 0 0;background:var(--md-sys-color-primary);transform:scaleX(0);transition:transform var(--md-dur-m1) var(--md-ease-emph-decel)}
|
| 32 |
+
.pm-tab.active{color:var(--md-sys-color-primary)}
|
| 33 |
+
.pm-tab.active::before{transform:scaleX(1)}
|
| 34 |
+
.pm-media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:12px 0;max-height:280px;overflow-y:auto}
|
| 35 |
+
.pm-media-grid.list{display:flex;flex-direction:column;gap:2px}
|
| 36 |
+
.pm-media-tile{aspect-ratio:1;border-radius:var(--md-sys-shape-sm);overflow:hidden;cursor:pointer;background:var(--md-sys-color-surface-container-highest);display:flex;align-items:center;justify-content:center;transition:transform var(--md-dur-s4) var(--md-ease-standard)}
|
| 37 |
+
.pm-media-tile:active{transform:scale(.96)}
|
| 38 |
+
.pm-media-tile img,.pm-media-tile video{width:100%;height:100%;object-fit:cover}
|
| 39 |
+
.pm-media-row{display:flex;align-items:center;gap:12px;padding:10px 8px;border-radius:var(--md-sys-shape-md);cursor:pointer;color:var(--md-sys-color-on-surface)}
|
| 40 |
+
.pm-media-row .bi{font-size:1.5rem;color:var(--md-sys-color-primary)}
|
| 41 |
+
.pm-empty{grid-column:1/-1;text-align:center;color:var(--md-sys-color-on-surface-variant);font:var(--md-type-body-medium);padding:24px 0}
|
| 42 |
+
|
| 43 |
+
/* group info */
|
| 44 |
+
.gi-header{display:flex;flex-direction:column;align-items:center;text-align:center;padding-bottom:12px}
|
| 45 |
+
.gi-desc{font:var(--md-type-body-medium);color:var(--md-sys-color-on-surface-variant);margin-top:4px;white-space:pre-wrap}
|
| 46 |
+
.gi-meta{font:var(--md-type-body-small);color:var(--md-sys-color-on-surface-variant);margin-top:4px}
|
| 47 |
+
.gi-member{display:flex;align-items:center;gap:12px;padding:8px;border-radius:var(--md-sys-shape-md)}
|
| 48 |
+
.gi-member-av{width:40px;height:40px;border-radius:50%;color:rgba(255,255,255,.96);display:flex;align-items:center;justify-content:center;font:600 .9rem/1 var(--md-font);flex-shrink:0}
|
| 49 |
+
.gi-member-name{flex:1;font:var(--md-type-body-large);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--md-sys-color-on-surface)}
|
| 50 |
+
.gi-role-badge{font:var(--md-type-label-small);padding:2px 8px;border-radius:var(--md-sys-shape-sm);background:var(--md-sys-color-surface-container-highest);color:var(--md-sys-color-on-surface-variant)}
|
| 51 |
+
.gi-role-badge.owner{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container)}
|
| 52 |
+
.gi-section-title{font:var(--md-type-label-large);color:var(--md-sys-color-primary);margin:20px 0 8px;padding:0 4px}
|
| 53 |
+
.gi-mgmt-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
|
| 54 |
+
|
| 55 |
+
@media(max-width:768px){.user-title{max-width:40vw}}
|
static/css/variables.css
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ==========================================================================
|
| 2 |
+
Material Design 3 — design tokens
|
| 3 |
+
--------------------------------------------------------------------------
|
| 4 |
+
Every colour in the app comes from a role token below (--md-sys-color-*),
|
| 5 |
+
never from a hard-coded value, so a later pass can swap the whole scheme
|
| 6 |
+
(light / dark / seed-colour personalisation) by only redefining these
|
| 7 |
+
variables. The scheme here is the dark one, generated from a blue seed
|
| 8 |
+
(#4da3ff, the same accent the panel already had).
|
| 9 |
+
========================================================================== */
|
| 10 |
+
:root{
|
| 11 |
+
color-scheme:dark;
|
| 12 |
+
|
| 13 |
+
/* ---- colour roles ---- */
|
| 14 |
+
--md-sys-color-primary:#9fcaff;
|
| 15 |
+
--md-sys-color-on-primary:#003259;
|
| 16 |
+
--md-sys-color-primary-container:#00497e;
|
| 17 |
+
--md-sys-color-on-primary-container:#d1e4ff;
|
| 18 |
+
--md-sys-color-secondary:#bcc7dc;
|
| 19 |
+
--md-sys-color-on-secondary:#263141;
|
| 20 |
+
--md-sys-color-secondary-container:#3c4858;
|
| 21 |
+
--md-sys-color-on-secondary-container:#d8e3f8;
|
| 22 |
+
--md-sys-color-tertiary:#d9bde2;
|
| 23 |
+
--md-sys-color-on-tertiary:#3c2947;
|
| 24 |
+
--md-sys-color-tertiary-container:#54405f;
|
| 25 |
+
--md-sys-color-on-tertiary-container:#f6d9ff;
|
| 26 |
+
--md-sys-color-error:#ffb4ab;
|
| 27 |
+
--md-sys-color-on-error:#690005;
|
| 28 |
+
--md-sys-color-error-container:#93000a;
|
| 29 |
+
--md-sys-color-on-error-container:#ffdad6;
|
| 30 |
+
|
| 31 |
+
--md-sys-color-surface:#10131a;
|
| 32 |
+
--md-sys-color-surface-dim:#10131a;
|
| 33 |
+
--md-sys-color-surface-bright:#363a42;
|
| 34 |
+
--md-sys-color-surface-container-lowest:#0b0e14;
|
| 35 |
+
--md-sys-color-surface-container-low:#181c24;
|
| 36 |
+
--md-sys-color-surface-container:#1c2028;
|
| 37 |
+
--md-sys-color-surface-container-high:#262b33;
|
| 38 |
+
--md-sys-color-surface-container-highest:#31363e;
|
| 39 |
+
--md-sys-color-on-surface:#e1e2e9;
|
| 40 |
+
--md-sys-color-on-surface-variant:#c3c6cf;
|
| 41 |
+
--md-sys-color-outline:#8d9199;
|
| 42 |
+
--md-sys-color-outline-variant:#43474e;
|
| 43 |
+
--md-sys-color-inverse-surface:#e1e2e9;
|
| 44 |
+
--md-sys-color-inverse-on-surface:#2e3036;
|
| 45 |
+
--md-sys-color-inverse-primary:#1a6bb2;
|
| 46 |
+
--md-sys-color-scrim:#000;
|
| 47 |
+
|
| 48 |
+
/* ---- extended (custom) colours, harmonised with the blue seed ---- */
|
| 49 |
+
--app-green:#8fd9a8;
|
| 50 |
+
--app-on-green:#003919;
|
| 51 |
+
--app-green-container:#0c4a2c;
|
| 52 |
+
--app-on-green-container:#a9f5c0;
|
| 53 |
+
--app-amber:#ffd58a;
|
| 54 |
+
--app-on-amber:#442c00;
|
| 55 |
+
--app-amber-container:#5e4100;
|
| 56 |
+
--app-on-amber-container:#ffdea8;
|
| 57 |
+
|
| 58 |
+
/* ---- shape ---- */
|
| 59 |
+
--md-sys-shape-none:0;
|
| 60 |
+
--md-sys-shape-xs:4px;
|
| 61 |
+
--md-sys-shape-sm:8px;
|
| 62 |
+
--md-sys-shape-md:12px;
|
| 63 |
+
--md-sys-shape-lg:16px;
|
| 64 |
+
--md-sys-shape-xl:28px;
|
| 65 |
+
--md-sys-shape-full:999px;
|
| 66 |
+
|
| 67 |
+
/* ---- motion ---- */
|
| 68 |
+
--md-ease-standard:cubic-bezier(.2,0,0,1);
|
| 69 |
+
--md-ease-decel:cubic-bezier(0,0,0,1);
|
| 70 |
+
--md-ease-accel:cubic-bezier(.3,0,1,1);
|
| 71 |
+
--md-ease-emph:cubic-bezier(.2,0,0,1);
|
| 72 |
+
--md-ease-emph-decel:cubic-bezier(.05,.7,.1,1);
|
| 73 |
+
--md-ease-emph-accel:cubic-bezier(.3,0,.8,.15);
|
| 74 |
+
--md-dur-s1:50ms; --md-dur-s2:100ms; --md-dur-s3:150ms; --md-dur-s4:200ms;
|
| 75 |
+
--md-dur-m1:250ms; --md-dur-m2:300ms; --md-dur-m3:350ms; --md-dur-m4:400ms;
|
| 76 |
+
--md-dur-l1:450ms; --md-dur-l2:500ms;
|
| 77 |
+
|
| 78 |
+
/* ---- state layers ---- */
|
| 79 |
+
--md-state-hover:.08;
|
| 80 |
+
--md-state-focus:.10;
|
| 81 |
+
--md-state-press:.10;
|
| 82 |
+
|
| 83 |
+
/* ---- elevation (dark scheme: soft shadow, tone does the heavy lifting) ---- */
|
| 84 |
+
--md-elev-0:none;
|
| 85 |
+
--md-elev-1:0 1px 2px rgba(0,0,0,.34),0 1px 3px 1px rgba(0,0,0,.18);
|
| 86 |
+
--md-elev-2:0 1px 2px rgba(0,0,0,.34),0 2px 6px 2px rgba(0,0,0,.18);
|
| 87 |
+
--md-elev-3:0 1px 3px rgba(0,0,0,.34),0 4px 8px 3px rgba(0,0,0,.18);
|
| 88 |
+
--md-elev-4:0 2px 3px rgba(0,0,0,.34),0 6px 10px 4px rgba(0,0,0,.18);
|
| 89 |
+
--md-elev-5:0 4px 4px rgba(0,0,0,.34),0 8px 12px 6px rgba(0,0,0,.18);
|
| 90 |
+
|
| 91 |
+
/* ---- typography (Vazirmatn carries Persian + Latin; Roboto is the Latin fallback) ---- */
|
| 92 |
+
--md-font:'Vazirmatn','Roboto',system-ui,-apple-system,'Segoe UI',sans-serif;
|
| 93 |
+
--md-type-display-small:400 2.25rem/2.75rem var(--md-font);
|
| 94 |
+
--md-type-headline-small:500 1.5rem/2rem var(--md-font);
|
| 95 |
+
--md-type-title-large:600 1.375rem/1.75rem var(--md-font);
|
| 96 |
+
--md-type-title-medium:600 1rem/1.5rem var(--md-font);
|
| 97 |
+
--md-type-title-small:600 .875rem/1.25rem var(--md-font);
|
| 98 |
+
--md-type-body-large:400 1rem/1.5rem var(--md-font);
|
| 99 |
+
--md-type-body-medium:400 .875rem/1.25rem var(--md-font);
|
| 100 |
+
--md-type-body-small:400 .75rem/1rem var(--md-font);
|
| 101 |
+
--md-type-label-large:600 .875rem/1.25rem var(--md-font);
|
| 102 |
+
--md-type-label-medium:600 .75rem/1rem var(--md-font);
|
| 103 |
+
--md-type-label-small:600 .6875rem/1rem var(--md-font);
|
| 104 |
+
|
| 105 |
+
/* ---- layout ---- */
|
| 106 |
+
--app-column-width:360px;
|
| 107 |
+
--app-header-height:64px;
|
| 108 |
+
--app-icon-btn:40px;
|
| 109 |
+
--app-avatar-row:52px;
|
| 110 |
+
--app-input-height:48px;
|
| 111 |
+
--app-slide:30%; /* page slide distance, flipped for LTR below */
|
| 112 |
+
--app-z-sidebar:20;
|
| 113 |
+
--app-z-menu:80;
|
| 114 |
+
--app-z-snackbar:300;
|
| 115 |
+
}
|
| 116 |
+
html[dir="ltr"]{--app-slide:-30%}
|
| 117 |
+
|
| 118 |
+
/* Bootstrap is still used for its modal behaviour + utilities — point its own
|
| 119 |
+
variables at the M3 roles so anything it renders inherits the scheme. */
|
| 120 |
+
:root,[data-bs-theme="dark"]{
|
| 121 |
+
--bs-body-bg:var(--md-sys-color-surface);
|
| 122 |
+
--bs-body-color:var(--md-sys-color-on-surface);
|
| 123 |
+
--bs-body-font-family:var(--md-font);
|
| 124 |
+
--bs-border-color:var(--md-sys-color-outline-variant);
|
| 125 |
+
--bs-secondary-color:var(--md-sys-color-on-surface-variant);
|
| 126 |
+
--bs-emphasis-color:var(--md-sys-color-on-surface);
|
| 127 |
+
--bs-link-color:var(--md-sys-color-primary);
|
| 128 |
+
--bs-modal-bg:var(--md-sys-color-surface-container-high);
|
| 129 |
+
--bs-modal-color:var(--md-sys-color-on-surface);
|
| 130 |
+
--bs-backdrop-bg:var(--md-sys-color-scrim);
|
| 131 |
+
--bs-backdrop-opacity:.32;
|
| 132 |
+
}
|