Spaces:
Sleeping
Sleeping
Update static/style.css
Browse files- static/style.css +390 -463
static/style.css
CHANGED
@@ -1,541 +1,468 @@
|
|
1 |
body, html {
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
}
|
8 |
:root {
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
}
|
21 |
.light-mode {
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
background-image: linear-gradient(to right, #74ebd5 0%, #9face6 100%)!important;
|
35 |
-
color: var(--text-color) !important;
|
36 |
-
}
|
37 |
-
|
38 |
|
39 |
-
|
40 |
-
|
41 |
-
/* Theme Toggle Button */
|
42 |
-
#themeToggle {
|
43 |
-
position: absolute;
|
44 |
-
right: 15px;
|
45 |
-
margin-right: 0.5rem;
|
46 |
-
top: 10px;
|
47 |
-
font-size: 14px;
|
48 |
-
padding: 5px 10px;
|
49 |
-
border-radius: 5px;
|
50 |
-
cursor: pointer;
|
51 |
-
transition: all 0.3s ease-in-out;
|
52 |
}
|
|
|
53 |
.dark-mode {
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
}
|
69 |
.dark-mode .msg_container {
|
70 |
-
|
71 |
-
|
72 |
}
|
73 |
-
|
74 |
.dark-mode .msg_container_send {
|
75 |
-
|
76 |
-
|
77 |
}
|
78 |
.dark-mode .type_msg::placeholder {
|
79 |
-
|
80 |
}
|
81 |
-
|
82 |
-
/* Dark Mode - Light button */
|
83 |
.dark-mode #themeToggle {
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
}
|
88 |
-
|
89 |
-
/* Light Mode - Dark button */
|
90 |
.light-mode #themeToggle {
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
}
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
.light-mode .user_info span,
|
99 |
.light-mode .user_info p {
|
100 |
-
|
101 |
}
|
102 |
-
|
103 |
.light-mode .type_msg {
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
}
|
108 |
-
|
109 |
-
/* Placeholder text */
|
110 |
-
.light-mode .type_msg::placeholder {
|
111 |
-
color: var(--placeholder-color) !important;
|
112 |
-
}
|
113 |
-
|
114 |
-
/* Chat container */
|
115 |
-
.light-mode .card {
|
116 |
-
background-color: var(--card-bg) !important;
|
117 |
-
border: 1px solid var(--border-color);
|
118 |
-
}
|
119 |
-
|
120 |
-
.light-mode .msg_container {
|
121 |
-
background-color: var(--msg-bg) !important;
|
122 |
-
color: #fff !important; /* White text for better contrast */
|
123 |
}
|
124 |
-
|
125 |
-
.light-mode .msg_container_send {
|
126 |
-
background-color: var(--msg-send-bg) !important;
|
127 |
-
color: #fff !important;
|
128 |
-
}
|
129 |
-
|
130 |
::placeholder {
|
131 |
-
|
132 |
-
|
133 |
}
|
134 |
|
135 |
/* Chat Container */
|
136 |
.chat {
|
137 |
-
|
138 |
-
|
139 |
}
|
140 |
.card {
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
}
|
149 |
-
|
150 |
-
/* Message Box */
|
151 |
.msg_card_body {
|
152 |
-
|
153 |
-
|
154 |
-
overflow-y: auto; /* Enable scrolling */
|
155 |
}
|
156 |
|
157 |
-
|
158 |
/* Predictive Text */
|
159 |
.predictive-text {
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
}
|
174 |
-
|
175 |
.predictive-text p {
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
}
|
182 |
-
|
183 |
.predictive-text p:hover {
|
184 |
-
|
185 |
}
|
186 |
-
|
187 |
.predictive-text p:not(:last-child) {
|
188 |
-
|
189 |
}
|
190 |
|
191 |
/* Input Fields */
|
192 |
input[type="text"] {
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
}
|
203 |
-
|
204 |
::placeholder {
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
}
|
210 |
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
color: blue; /* Keeps the default link color */
|
216 |
-
}
|
217 |
-
|
218 |
-
.attach_btn, .send_btn, .search_btn {
|
219 |
-
border-radius: 15px !important;
|
220 |
-
background-color: var(--input-bg) !important;
|
221 |
-
border: 0 !important;
|
222 |
-
color: var(--text-color) !important;
|
223 |
-
cursor: pointer;
|
224 |
-
}
|
225 |
-
|
226 |
-
/* User Info */
|
227 |
-
.user_info span {
|
228 |
-
font-size: 20px;
|
229 |
-
color: var(--text-color);
|
230 |
-
}
|
231 |
-
|
232 |
-
.user_info p {
|
233 |
-
font-size: 10px;
|
234 |
-
color: rgba(255, 255, 255, 0.6);
|
235 |
-
}
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
.chat{
|
240 |
-
margin-top: auto;
|
241 |
-
margin-bottom: auto;
|
242 |
}
|
243 |
-
.
|
244 |
-
|
245 |
-
|
246 |
-
|
|
|
|
|
247 |
}
|
248 |
-
|
249 |
-
|
|
|
|
|
|
|
250 |
}
|
251 |
-
.
|
252 |
-
|
253 |
-
|
254 |
}
|
255 |
-
|
256 |
-
|
257 |
-
|
|
|
258 |
}
|
259 |
-
.
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
}
|
264 |
.msg_card_body {
|
265 |
-
|
266 |
-
}
|
267 |
-
.search{
|
268 |
-
border-radius: 15px 0 0 15px !important;
|
269 |
-
background-color: rgba(0,0,0,0.3) !important;
|
270 |
-
border:0 !important;
|
271 |
-
color:white !important;
|
272 |
-
}
|
273 |
-
.search:focus{
|
274 |
-
box-shadow:none !important;
|
275 |
-
outline:0px !important;
|
276 |
-
}
|
277 |
-
.type_msg{
|
278 |
-
background-color: rgba(0,0,0,0.3) !important;
|
279 |
-
border:0 !important;
|
280 |
-
color:white !important;
|
281 |
-
height: 60px !important;
|
282 |
-
overflow-y: auto;
|
283 |
-
}
|
284 |
-
.type_msg:focus{
|
285 |
-
box-shadow:none !important;
|
286 |
-
outline:0px !important;
|
287 |
-
}
|
288 |
-
.attach_btn{
|
289 |
-
border-radius: 15px 0 0 15px !important;
|
290 |
-
background-color: rgba(0,0,0,0.3) !important;
|
291 |
-
border:0 !important;
|
292 |
-
color: white !important;
|
293 |
-
cursor: pointer;
|
294 |
-
}
|
295 |
-
.send_btn{
|
296 |
-
border-radius: 0 15px 15px 0 !important;
|
297 |
-
background-color: rgba(0,0,0,0.3) !important;
|
298 |
-
border:0 !important;
|
299 |
-
color: white !important;
|
300 |
-
cursor: pointer;
|
301 |
-
}
|
302 |
-
.search_btn{
|
303 |
-
border-radius: 0 15px 15px 0 !important;
|
304 |
-
background-color: rgba(0,0,0,0.3) !important;
|
305 |
-
border:0 !important;
|
306 |
-
color: white !important;
|
307 |
-
cursor: pointer;
|
308 |
-
}
|
309 |
-
.contacts{
|
310 |
-
list-style: none;
|
311 |
-
padding: 0;
|
312 |
-
}
|
313 |
-
.contacts li{
|
314 |
-
width: 100% !important;
|
315 |
-
padding: 5px 10px;
|
316 |
-
margin-bottom: 15px !important;
|
317 |
-
}
|
318 |
-
.active{
|
319 |
-
background-color: rgba(0,0,0,0.3);
|
320 |
-
}
|
321 |
-
.user_img{
|
322 |
-
height: 70px;
|
323 |
-
width: 70px;
|
324 |
-
border:1.5px solid #f5f6fa;
|
325 |
-
|
326 |
}
|
327 |
-
.
|
328 |
-
|
329 |
-
|
330 |
-
border:1.5px solid #f5f6fa;
|
331 |
-
|
332 |
}
|
333 |
-
.
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
}
|
342 |
-
.
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
}
|
355 |
-
.
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
.
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
381 |
}
|
382 |
-
|
383 |
-
|
384 |
.dark-mode .predictive-text {
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
}
|
389 |
-
|
390 |
.dark-mode .predictive-text p {
|
391 |
-
|
392 |
-
|
393 |
}
|
394 |
-
|
395 |
.dark-mode .predictive-text p:hover {
|
396 |
-
|
397 |
}
|
398 |
.msg_container_send {
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
}
|
442 |
-
|
443 |
.action_menu ul li {
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
}
|
449 |
-
|
450 |
.action_menu ul li:hover {
|
451 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
452 |
}
|
453 |
-
|
454 |
-
|
455 |
-
height: 75vh; /* Smaller on mobile */
|
456 |
-
}
|
457 |
-
.msg_card_body {
|
458 |
-
max-height: 60vh;
|
459 |
-
}
|
460 |
}
|
461 |
|
462 |
-
.predefined-text a {
|
463 |
-
color: #0a66c2; /* LinkedIn blue */
|
464 |
-
text-decoration: none;
|
465 |
-
font-weight: bold;
|
466 |
-
margin-right: 10px;
|
467 |
-
}
|
468 |
-
|
469 |
-
.predefined-text a i {
|
470 |
-
margin-right: 5px;
|
471 |
-
}
|
472 |
-
|
473 |
-
.predefined-text a:hover {
|
474 |
-
text-decoration: underline;
|
475 |
-
}
|
476 |
/* Mobile Adaptability Enhancements */
|
477 |
@media (max-width: 576px) {
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
}
|
493 |
-
.user_info {
|
494 |
-
margin-left: 0;
|
495 |
-
text-align: center;
|
496 |
-
margin-bottom: 10px;
|
497 |
-
}
|
498 |
-
/* Center the button container */
|
499 |
-
.d-flex.flex-column.align-items-end.ml-auto {
|
500 |
-
margin: 0 auto;
|
501 |
-
}
|
502 |
-
|
503 |
-
/* Adjust chat container height */
|
504 |
-
.chat {
|
505 |
-
height: 80vh;
|
506 |
-
}
|
507 |
-
.msg_card_body {
|
508 |
-
max-height: 50vh;
|
509 |
-
}
|
510 |
-
|
511 |
-
/* Reduce sizes of images for header and messages */
|
512 |
-
.img_cont,
|
513 |
-
.user_img {
|
514 |
-
height: 50px;
|
515 |
-
width: 50px;
|
516 |
-
}
|
517 |
-
.img_cont_msg,
|
518 |
-
.user_img_msg {
|
519 |
-
height: 30px;
|
520 |
-
width: 30px;
|
521 |
-
}
|
522 |
-
|
523 |
-
/* Adjust text sizes for header info */
|
524 |
-
.user_info span {
|
525 |
-
font-size: 16px;
|
526 |
-
}
|
527 |
-
.user_info p {
|
528 |
-
font-size: 8px;
|
529 |
-
}
|
530 |
-
|
531 |
-
/* Adjust input field and button sizes */
|
532 |
-
.type_msg {
|
533 |
-
height: 50px;
|
534 |
-
font-size: 14px;
|
535 |
-
}
|
536 |
-
.btn {
|
537 |
-
font-size: 12px;
|
538 |
-
padding: 5px 8px;
|
539 |
-
}
|
540 |
}
|
541 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
body, html {
|
2 |
+
height: 100%;
|
3 |
+
margin: 0;
|
4 |
+
background: var(--bg-color);
|
5 |
+
background: linear-gradient(to right, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
|
6 |
+
color: var(--text-color);
|
7 |
}
|
8 |
:root {
|
9 |
+
--bg-color: rgb(44, 47, 59);
|
10 |
+
--gradient-start: rgb(38, 51, 61);
|
11 |
+
--gradient-mid: rgb(50, 55, 65);
|
12 |
+
--gradient-end: rgb(33, 33, 78);
|
13 |
+
--card-bg: rgba(0, 0, 0, 0.4);
|
14 |
+
--text-color: white;
|
15 |
+
--msg-bg: rgb(82, 172, 255);
|
16 |
+
--msg-send-bg: #58cc71;
|
17 |
+
--placeholder-color: #ccc;
|
18 |
+
--input-bg: rgba(0,0,0,0.3);
|
19 |
+
--border-color: white;
|
20 |
}
|
21 |
.light-mode {
|
22 |
+
--bg-color: #e6e6e6;
|
23 |
+
--gradient-start: #dcdcdc;
|
24 |
+
--gradient-mid: #e6e6e6;
|
25 |
+
--gradient-end: #cfcfcf;
|
26 |
+
--card-bg: rgba(255, 255, 255, 0.95);
|
27 |
+
--text-color: #222;
|
28 |
+
--msg-bg: #3498db;
|
29 |
+
--msg-send-bg: #2ecc71;
|
30 |
+
--placeholder-color: #666;
|
31 |
+
--input-bg: rgba(255, 255, 255, 0.85);
|
32 |
+
--border-color: #444;
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
+
background-image: linear-gradient(to right, #74ebd5 0%, #9face6 100%)!important;
|
35 |
+
color: var(--text-color) !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
}
|
37 |
+
|
38 |
.dark-mode {
|
39 |
+
--bg-color: #1a1a1a;
|
40 |
+
--gradient-start: #2c2f36;
|
41 |
+
--gradient-mid: #343a40;
|
42 |
+
--gradient-end: #23272a;
|
43 |
+
--card-bg: rgba(0, 0, 0, 0.6);
|
44 |
+
--text-color: #f8f8f8;
|
45 |
+
--msg-bg: #3498db;
|
46 |
+
--msg-send-bg: #2ecc71;
|
47 |
+
--placeholder-color: #bbb;
|
48 |
+
--input-bg: rgba(0,0,0,0.5);
|
49 |
+
--border-color: #777;
|
50 |
+
|
51 |
+
background-image: linear-gradient(to top, #09203f 0%, #537895 100%)!important;
|
52 |
+
color: var(--text-color) !important;
|
53 |
}
|
54 |
.dark-mode .msg_container {
|
55 |
+
background-color: var(--msg-bg) !important;
|
56 |
+
color: #000000 !important;
|
57 |
}
|
|
|
58 |
.dark-mode .msg_container_send {
|
59 |
+
background-color: var(--msg-send-bg) !important;
|
60 |
+
color: #000000 !important;
|
61 |
}
|
62 |
.dark-mode .type_msg::placeholder {
|
63 |
+
color: rgba(255, 255, 255, 0.7) !important;
|
64 |
}
|
|
|
|
|
65 |
.dark-mode #themeToggle {
|
66 |
+
background-color: #ddd !important;
|
67 |
+
color: black !important;
|
68 |
+
border: 1px solid #333 !important;
|
69 |
}
|
|
|
|
|
70 |
.light-mode #themeToggle {
|
71 |
+
background-color: #333 !important;
|
72 |
+
color: white !important;
|
73 |
+
border: 1px solid #000 !important;
|
74 |
}
|
|
|
|
|
|
|
75 |
.light-mode .user_info span,
|
76 |
.light-mode .user_info p {
|
77 |
+
color: var(--text-color) !important;
|
78 |
}
|
|
|
79 |
.light-mode .type_msg {
|
80 |
+
background-color: var(--input-bg) !important;
|
81 |
+
color: var(--text-color) !important;
|
82 |
+
border: 1px solid var(--border-color) !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
::placeholder {
|
85 |
+
color: var(--placeholder-color);
|
86 |
+
opacity: 1;
|
87 |
}
|
88 |
|
89 |
/* Chat Container */
|
90 |
.chat {
|
91 |
+
height: 90vh;
|
92 |
+
max-height: 700px;
|
93 |
}
|
94 |
.card {
|
95 |
+
height: calc(100%);
|
96 |
+
max-height: calc(100%);
|
97 |
+
overflow: hidden;
|
98 |
+
position: relative;
|
99 |
+
background-color: var(--card-bg) !important;
|
100 |
+
border-radius: 15px !important;
|
|
|
101 |
}
|
|
|
|
|
102 |
.msg_card_body {
|
103 |
+
max-height: 70vh;
|
104 |
+
overflow-y: auto;
|
|
|
105 |
}
|
106 |
|
|
|
107 |
/* Predictive Text */
|
108 |
.predictive-text {
|
109 |
+
position: absolute;
|
110 |
+
background-color: var(--input-bg);
|
111 |
+
border: 1px solid var(--border-color);
|
112 |
+
border-radius: 10px;
|
113 |
+
padding: 5px;
|
114 |
+
z-index: 999;
|
115 |
+
cursor: pointer;
|
116 |
+
max-height: 150px;
|
117 |
+
overflow-y: auto;
|
118 |
+
width: calc(100% - 22px);
|
119 |
+
bottom: 65px;
|
120 |
+
left: 10px;
|
121 |
+
color: var(--text-color);
|
122 |
}
|
|
|
123 |
.predictive-text p {
|
124 |
+
margin: 5px 0;
|
125 |
+
padding: 5px;
|
126 |
+
cursor: pointer;
|
127 |
+
transition: background-color 0.3s;
|
128 |
+
border-radius: 5px;
|
129 |
}
|
|
|
130 |
.predictive-text p:hover {
|
131 |
+
background-color: rgba(255, 255, 255, 0.2);
|
132 |
}
|
|
|
133 |
.predictive-text p:not(:last-child) {
|
134 |
+
border-bottom: 1px solid #555;
|
135 |
}
|
136 |
|
137 |
/* Input Fields */
|
138 |
input[type="text"] {
|
139 |
+
white-space: normal;
|
140 |
+
overflow-wrap: break-word;
|
141 |
+
word-wrap: break-word;
|
142 |
+
width: 100%;
|
143 |
+
padding: 10px;
|
144 |
+
height: auto;
|
145 |
+
background-color: var(--input-bg) !important;
|
146 |
+
color: var(--text-color) !important;
|
147 |
+
border: 0 !important;
|
148 |
}
|
|
|
149 |
::placeholder {
|
150 |
+
white-space: normal;
|
151 |
+
overflow-wrap: break-word;
|
152 |
+
word-wrap: break-word;
|
153 |
+
color: var(--placeholder-color);
|
154 |
}
|
155 |
|
156 |
+
/* Button styles */
|
157 |
+
a {
|
158 |
+
text-decoration: underline !important;
|
159 |
+
color: blue;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
}
|
161 |
+
.attach_btn, .send_btn, .search_btn {
|
162 |
+
border-radius: 15px !important;
|
163 |
+
background-color: var(--input-bg) !important;
|
164 |
+
border: 0 !important;
|
165 |
+
color: var(--text-color) !important;
|
166 |
+
cursor: pointer;
|
167 |
}
|
168 |
+
|
169 |
+
/* User Info */
|
170 |
+
.user_info span {
|
171 |
+
font-size: 20px;
|
172 |
+
color: var(--text-color);
|
173 |
}
|
174 |
+
.user_info p {
|
175 |
+
font-size: 10px;
|
176 |
+
color: rgba(255, 255, 255, 0.6);
|
177 |
}
|
178 |
+
|
179 |
+
.chat {
|
180 |
+
margin-top: auto;
|
181 |
+
margin-bottom: auto;
|
182 |
}
|
183 |
+
.contacts_body {
|
184 |
+
padding: 0.75rem 0 !important;
|
185 |
+
overflow-y: auto;
|
186 |
+
white-space: nowrap;
|
187 |
}
|
188 |
.msg_card_body {
|
189 |
+
overflow-y: auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
}
|
191 |
+
.card-header {
|
192 |
+
border-radius: 15px 15px 0 0 !important;
|
193 |
+
border-bottom: 0 !important;
|
|
|
|
|
194 |
}
|
195 |
+
.card-footer {
|
196 |
+
border-radius: 0 0 15px 15px !important;
|
197 |
+
border-top: 0 !important;
|
198 |
+
}
|
199 |
+
.container {
|
200 |
+
display: flex;
|
201 |
+
flex-direction: column;
|
202 |
+
height: 100vh;
|
203 |
+
}
|
204 |
+
.msg_card_body {
|
205 |
+
flex-grow: 1;
|
206 |
+
}
|
207 |
+
.search {
|
208 |
+
border-radius: 15px 0 0 15px !important;
|
209 |
+
background-color: rgba(0,0,0,0.3) !important;
|
210 |
+
border: 0 !important;
|
211 |
+
color: white !important;
|
212 |
+
}
|
213 |
+
.search:focus {
|
214 |
+
box-shadow: none !important;
|
215 |
+
outline: 0px !important;
|
216 |
+
}
|
217 |
+
.type_msg {
|
218 |
+
background-color: rgba(0,0,0,0.3) !important;
|
219 |
+
border: 0 !important;
|
220 |
+
color: white !important;
|
221 |
+
height: 60px !important;
|
222 |
+
overflow-y: auto;
|
223 |
+
}
|
224 |
+
.type_msg:focus {
|
225 |
+
box-shadow: none !important;
|
226 |
+
outline: 0px !important;
|
227 |
+
}
|
228 |
+
.attach_btn {
|
229 |
+
border-radius: 15px 0 0 15px !important;
|
230 |
+
background-color: rgba(0,0,0,0.3) !important;
|
231 |
+
border: 0 !important;
|
232 |
+
color: white !important;
|
233 |
+
cursor: pointer;
|
234 |
+
}
|
235 |
+
.send_btn {
|
236 |
+
border-radius: 0 15px 15px 0 !important;
|
237 |
+
background-color: rgba(0,0,0,0.3) !important;
|
238 |
+
border: 0 !important;
|
239 |
+
color: white !important;
|
240 |
+
cursor: pointer;
|
241 |
+
}
|
242 |
+
.search_btn {
|
243 |
+
border-radius: 0 15px 15px 0 !important;
|
244 |
+
background-color: rgba(0,0,0,0.3) !important;
|
245 |
+
border: 0 !important;
|
246 |
+
color: white !important;
|
247 |
+
cursor: pointer;
|
248 |
+
}
|
249 |
+
.contacts {
|
250 |
+
list-style: none;
|
251 |
+
padding: 0;
|
252 |
+
}
|
253 |
+
.contacts li {
|
254 |
+
width: 100% !important;
|
255 |
+
padding: 5px 10px;
|
256 |
+
margin-bottom: 15px !important;
|
257 |
+
}
|
258 |
+
.active {
|
259 |
+
background-color: rgba(0,0,0,0.3);
|
260 |
+
}
|
261 |
+
.user_img {
|
262 |
+
height: 70px;
|
263 |
+
width: 70px;
|
264 |
+
border: 1.5px solid #f5f6fa;
|
265 |
+
}
|
266 |
+
.user_img_msg {
|
267 |
+
height: 40px;
|
268 |
+
width: 40px;
|
269 |
+
border: 1.5px solid #f5f6fa;
|
270 |
+
}
|
271 |
+
.img_cont {
|
272 |
+
position: relative;
|
273 |
+
height: 70px;
|
274 |
+
width: 70px;
|
275 |
+
}
|
276 |
+
.img_cont_msg {
|
277 |
+
height: 40px;
|
278 |
+
width: 40px;
|
279 |
+
}
|
280 |
+
.online_icon {
|
281 |
+
position: absolute;
|
282 |
+
height: 15px;
|
283 |
+
width: 15px;
|
284 |
+
background-color: #4cd137;
|
285 |
+
border-radius: 50%;
|
286 |
+
bottom: 0.2em;
|
287 |
+
right: 0.4em;
|
288 |
+
border: 1.5px solid white;
|
289 |
+
}
|
290 |
+
.offline {
|
291 |
+
background-color: #c23616 !important;
|
292 |
+
}
|
293 |
+
.user_info {
|
294 |
+
margin-top: auto;
|
295 |
+
margin-bottom: auto;
|
296 |
+
margin-left: 15px;
|
297 |
+
}
|
298 |
+
.user_info span {
|
299 |
+
font-size: 20px;
|
300 |
+
color: white;
|
301 |
+
}
|
302 |
+
.user_info p {
|
303 |
+
font-size: 10px;
|
304 |
+
color: rgba(255,255,255,0.6);
|
305 |
+
}
|
306 |
+
.video_cam {
|
307 |
+
margin-left: 50px;
|
308 |
+
margin-top: 5px;
|
309 |
+
}
|
310 |
+
.video_cam span {
|
311 |
+
color: white;
|
312 |
+
font-size: 20px;
|
313 |
+
cursor: pointer;
|
314 |
+
margin-right: 20px;
|
315 |
+
}
|
316 |
+
.msg_container {
|
317 |
+
background-color: var(--msg-bg);
|
318 |
+
padding: 10px;
|
319 |
+
border-radius: 25px;
|
320 |
}
|
|
|
|
|
321 |
.dark-mode .predictive-text {
|
322 |
+
background-color: rgba(0, 0, 0, 0.8) !important;
|
323 |
+
color: white !important;
|
324 |
+
border: 1px solid var(--border-color) !important;
|
325 |
}
|
|
|
326 |
.dark-mode .predictive-text p {
|
327 |
+
background-color: transparent !important;
|
328 |
+
color: white !important;
|
329 |
}
|
|
|
330 |
.dark-mode .predictive-text p:hover {
|
331 |
+
background-color: rgba(255, 255, 255, 0.2) !important;
|
332 |
}
|
333 |
.msg_container_send {
|
334 |
+
background-color: var(--msg-send-bg);
|
335 |
+
padding: 10px;
|
336 |
+
border-radius: 25px;
|
337 |
+
margin-right: 10px;
|
338 |
+
padding-left: 20px;
|
339 |
+
padding-right: 20px;
|
340 |
+
}
|
341 |
+
.msg_time {
|
342 |
+
position: absolute;
|
343 |
+
left: 0;
|
344 |
+
bottom: -15px;
|
345 |
+
color: rgba(255,255,255,0.5);
|
346 |
+
font-size: 10px;
|
347 |
+
}
|
348 |
+
.msg_time_send {
|
349 |
+
position: absolute;
|
350 |
+
right: 0;
|
351 |
+
bottom: -15px;
|
352 |
+
color: rgba(255,255,255,0.5);
|
353 |
+
font-size: 10px;
|
354 |
+
}
|
355 |
+
.msg_head {
|
356 |
+
position: relative;
|
357 |
+
}
|
358 |
+
#action_menu_btn {
|
359 |
+
position: absolute;
|
360 |
+
right: 10px;
|
361 |
+
top: 10px;
|
362 |
+
color: white;
|
363 |
+
cursor: pointer;
|
364 |
+
font-size: 20px;
|
365 |
+
}
|
366 |
+
.action_menu {
|
367 |
+
z-index: 1;
|
368 |
+
position: absolute;
|
369 |
+
padding: 15px 0;
|
370 |
+
background-color: var(--input-bg);
|
371 |
+
color: var(--text-color);
|
372 |
+
border-radius: 15px;
|
373 |
+
top: 30px;
|
374 |
+
right: 15px;
|
375 |
+
display: none;
|
376 |
}
|
|
|
377 |
.action_menu ul li {
|
378 |
+
width: 100%;
|
379 |
+
padding: 10px 15px;
|
380 |
+
margin-bottom: 5px;
|
381 |
+
cursor: pointer;
|
382 |
}
|
|
|
383 |
.action_menu ul li:hover {
|
384 |
+
background-color: rgba(0,0,0,0.2);
|
385 |
+
}
|
386 |
+
.predefined-text a {
|
387 |
+
color: #0a66c2;
|
388 |
+
text-decoration: none;
|
389 |
+
font-weight: bold;
|
390 |
+
margin-right: 10px;
|
391 |
+
}
|
392 |
+
.predefined-text a i {
|
393 |
+
margin-right: 5px;
|
394 |
}
|
395 |
+
.predefined-text a:hover {
|
396 |
+
text-decoration: underline;
|
|
|
|
|
|
|
|
|
|
|
397 |
}
|
398 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
399 |
/* Mobile Adaptability Enhancements */
|
400 |
@media (max-width: 576px) {
|
401 |
+
/* Adjust overall card spacing and sizing */
|
402 |
+
.card {
|
403 |
+
margin: 10px;
|
404 |
+
border-radius: 10px;
|
405 |
+
}
|
406 |
+
.card-header,
|
407 |
+
.card-footer {
|
408 |
+
padding: 10px;
|
409 |
+
}
|
410 |
+
|
411 |
+
/* Stack header elements vertically and center them */
|
412 |
+
.card-header .d-flex {
|
413 |
+
flex-direction: column;
|
414 |
+
align-items: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
415 |
}
|
416 |
+
.user_info {
|
417 |
+
margin-left: 0;
|
418 |
+
text-align: center;
|
419 |
+
margin-bottom: 10px;
|
420 |
+
}
|
421 |
+
/* Center the button container */
|
422 |
+
.d-flex.flex-column.align-items-end.ml-auto {
|
423 |
+
margin: 0 auto;
|
424 |
+
}
|
425 |
+
|
426 |
+
/* Adjust chat container height */
|
427 |
+
.chat {
|
428 |
+
height: 80vh;
|
429 |
+
}
|
430 |
+
.msg_card_body {
|
431 |
+
max-height: 50vh;
|
432 |
+
}
|
433 |
+
|
434 |
+
/* Reduce sizes of images for header and messages */
|
435 |
+
.img_cont,
|
436 |
+
.user_img {
|
437 |
+
height: 50px;
|
438 |
+
width: 50px;
|
439 |
+
}
|
440 |
+
.img_cont_msg,
|
441 |
+
.user_img_msg {
|
442 |
+
height: 30px;
|
443 |
+
width: 30px;
|
444 |
+
}
|
445 |
+
|
446 |
+
/* Adjust text sizes for header info */
|
447 |
+
.user_info span {
|
448 |
+
font-size: 18px;
|
449 |
+
}
|
450 |
+
.user_info p {
|
451 |
+
font-size: 10px;
|
452 |
+
}
|
453 |
+
|
454 |
+
/* Adjust input field and button sizes */
|
455 |
+
.type_msg {
|
456 |
+
height: 50px;
|
457 |
+
font-size: 14px;
|
458 |
+
}
|
459 |
+
.btn {
|
460 |
+
font-size: 12px;
|
461 |
+
padding: 5px 8px;
|
462 |
+
}
|
463 |
+
|
464 |
+
/* Adjust predictive text positioning on mobile */
|
465 |
+
.predictive-text {
|
466 |
+
bottom: 55px;
|
467 |
+
}
|
468 |
+
}
|