Spaces:
Sleeping
Sleeping
Update static/style.css
Browse files- static/style.css +157 -113
static/style.css
CHANGED
@@ -134,14 +134,16 @@ body, html {
|
|
134 |
|
135 |
/* Chat Container */
|
136 |
.chat {
|
137 |
-
height: 100vh;
|
138 |
max-height: fit-content; /* Ensures it doesn't get too large */
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
}
|
|
|
|
|
145 |
.card {
|
146 |
height: calc(100% );
|
147 |
max-height: calc(100%);
|
@@ -221,22 +223,18 @@ input[type="text"] {
|
|
221 |
color: var(--placeholder-color);
|
222 |
}
|
223 |
|
|
|
|
|
|
|
|
|
224 |
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
border-radius: 15px !important;
|
233 |
-
background-color: var(--input-bg) !important;
|
234 |
-
border: 0 !important;
|
235 |
-
color: var(--text-color) !important;
|
236 |
-
cursor: pointer;
|
237 |
-
}
|
238 |
-
|
239 |
-
|
240 |
|
241 |
.chat{
|
242 |
margin-top: auto;
|
@@ -247,25 +245,31 @@ input[type="text"] {
|
|
247 |
overflow-y: auto;
|
248 |
white-space: nowrap;
|
249 |
}
|
|
|
250 |
.msg_card_body{
|
251 |
overflow-y: auto;
|
252 |
}
|
|
|
253 |
.card-header{
|
254 |
border-radius: 15px 15px 0 0 !important;
|
255 |
border-bottom: 0 !important;
|
256 |
}
|
|
|
257 |
.card-footer{
|
258 |
border-radius: 0 0 15px 15px !important;
|
259 |
border-top: 0 !important;
|
260 |
}
|
|
|
261 |
.container{
|
262 |
display: flex;
|
263 |
flex-direction: column;
|
264 |
height: 100vh;
|
265 |
}
|
|
|
266 |
.msg_card_body {
|
267 |
flex-grow: 1;
|
268 |
}
|
|
|
269 |
.search{
|
270 |
border-radius: 15px 0 0 15px !important;
|
271 |
background-color: rgba(0,0,0,0.3) !important;
|
@@ -276,6 +280,7 @@ border-radius: 0 0 15px 15px !important;
|
|
276 |
box-shadow:none !important;
|
277 |
outline:0px !important;
|
278 |
}
|
|
|
279 |
.type_msg{
|
280 |
background-color: rgba(0,0,0,0.3) !important;
|
281 |
border:0 !important;
|
@@ -283,10 +288,12 @@ border-radius: 0 0 15px 15px !important;
|
|
283 |
height: 60px !important;
|
284 |
overflow-y: auto;
|
285 |
}
|
286 |
-
|
|
|
287 |
box-shadow:none !important;
|
288 |
outline:0px !important;
|
289 |
}
|
|
|
290 |
.attach_btn{
|
291 |
border-radius: 15px 0 0 15px !important;
|
292 |
background-color: rgba(0,0,0,0.3) !important;
|
@@ -294,6 +301,7 @@ border-radius: 0 0 15px 15px !important;
|
|
294 |
color: white !important;
|
295 |
cursor: pointer;
|
296 |
}
|
|
|
297 |
.send_btn{
|
298 |
border-radius: 0 15px 15px 0 !important;
|
299 |
background-color: rgba(0,0,0,0.3) !important;
|
@@ -301,6 +309,7 @@ border-radius: 0 0 15px 15px !important;
|
|
301 |
color: white !important;
|
302 |
cursor: pointer;
|
303 |
}
|
|
|
304 |
.search_btn{
|
305 |
border-radius: 0 15px 15px 0 !important;
|
306 |
background-color: rgba(0,0,0,0.3) !important;
|
@@ -308,30 +317,36 @@ border-radius: 0 0 15px 15px !important;
|
|
308 |
color: white !important;
|
309 |
cursor: pointer;
|
310 |
}
|
|
|
311 |
.contacts{
|
312 |
list-style: none;
|
313 |
padding: 0;
|
314 |
}
|
|
|
315 |
.contacts li{
|
316 |
width: 100% !important;
|
317 |
padding: 5px 10px;
|
318 |
margin-bottom: 15px !important;
|
319 |
}
|
|
|
320 |
.active{
|
321 |
background-color: rgba(0,0,0,0.3);
|
322 |
}
|
|
|
323 |
.user_img{
|
324 |
height: 70px;
|
325 |
width: 70px;
|
326 |
border:1.5px solid #f5f6fa;
|
327 |
|
328 |
}
|
|
|
329 |
.user_img_msg{
|
330 |
height: 40px;
|
331 |
width: 40px;
|
332 |
border:1.5px solid #f5f6fa;
|
333 |
|
334 |
}
|
|
|
335 |
.img_cont{
|
336 |
position: relative;
|
337 |
height: 70px;
|
@@ -375,7 +390,6 @@ border-radius: 0 0 15px 15px !important;
|
|
375 |
border-radius: 25px;
|
376 |
}
|
377 |
|
378 |
-
|
379 |
.dark-mode .predictive-text {
|
380 |
background-color: rgba(0, 0, 0, 0.8) !important; /* Ensure dark background */
|
381 |
color: white !important;
|
@@ -445,99 +459,129 @@ border-radius: 0 0 15px 15px !important;
|
|
445 |
.action_menu ul li:hover {
|
446 |
background-color: rgba(0,0,0,0.2);
|
447 |
}
|
448 |
-
|
|
|
|
|
449 |
.chat {
|
450 |
-
|
451 |
-
}
|
452 |
-
.msg_card_body {
|
453 |
-
max-height: 60vh;
|
454 |
}
|
455 |
}
|
456 |
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
/*
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
padding-top: 5px;
|
478 |
-
padding-bottom: 5px;
|
479 |
-
width: 95%;
|
480 |
-
padding-left: 10px;
|
481 |
-
margin: 0 auto;
|
482 |
-
}
|
483 |
-
|
484 |
-
.card {
|
485 |
-
margin: 10px;
|
486 |
-
border-radius: 10px;
|
487 |
-
}
|
488 |
-
.card-header,
|
489 |
-
.card-footer {
|
490 |
-
padding: 10px;
|
491 |
-
}
|
492 |
-
|
493 |
-
/* Stack header elements vertically and center them */
|
494 |
-
.card-header .d-flex {
|
495 |
-
flex-direction: column;
|
496 |
-
align-items: center;
|
497 |
-
}
|
498 |
-
.user_info {
|
499 |
-
margin-left: 0;
|
500 |
-
text-align: center;
|
501 |
-
margin-bottom: 10px;
|
502 |
-
}
|
503 |
-
.user_info span{
|
504 |
-
font-size: 10px;
|
505 |
-
color: white;
|
506 |
-
}
|
507 |
-
.user_info p{
|
508 |
-
font-size: 0px;
|
509 |
-
color: rgba(255,255,255,0.6);
|
510 |
-
}
|
511 |
-
|
512 |
-
/* Adjust chat container height */
|
513 |
-
.chat {
|
514 |
-
height: 80vh;
|
515 |
-
}
|
516 |
-
.msg_card_body {
|
517 |
-
max-height: 50vh;
|
518 |
-
}
|
519 |
-
|
520 |
-
/* Reduce sizes of images for header and messages */
|
521 |
-
.img_cont,
|
522 |
-
.user_img {
|
523 |
-
height: 50px;
|
524 |
-
width: 50px;
|
525 |
-
}
|
526 |
-
.img_cont_msg,
|
527 |
-
.user_img_msg {
|
528 |
-
height: 30px;
|
529 |
-
width: 30px;
|
530 |
-
}
|
531 |
-
|
532 |
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
542 |
}
|
543 |
-
|
|
|
134 |
|
135 |
/* Chat Container */
|
136 |
.chat {
|
137 |
+
height: 100vh; /* Adjust as needed */
|
138 |
max-height: fit-content; /* Ensures it doesn't get too large */
|
139 |
+
padding-top: 5px;
|
140 |
+
padding-bottom: 5px;
|
141 |
+
width: 60%; /* Default width for desktops/laptops */
|
142 |
+
padding-left: 10px;
|
143 |
+
margin: 0 auto;
|
144 |
}
|
145 |
+
|
146 |
+
|
147 |
.card {
|
148 |
height: calc(100% );
|
149 |
max-height: calc(100%);
|
|
|
223 |
color: var(--placeholder-color);
|
224 |
}
|
225 |
|
226 |
+
a {
|
227 |
+
text-decoration: underline !important;
|
228 |
+
color: blue; /* Keeps the default link color */
|
229 |
+
}
|
230 |
|
231 |
+
.attach_btn, .send_btn, .search_btn {
|
232 |
+
border-radius: 15px !important;
|
233 |
+
background-color: var(--input-bg) !important;
|
234 |
+
border: 0 !important;
|
235 |
+
color: var(--text-color) !important;
|
236 |
+
cursor: pointer;
|
237 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
|
239 |
.chat{
|
240 |
margin-top: auto;
|
|
|
245 |
overflow-y: auto;
|
246 |
white-space: nowrap;
|
247 |
}
|
248 |
+
|
249 |
.msg_card_body{
|
250 |
overflow-y: auto;
|
251 |
}
|
252 |
+
|
253 |
.card-header{
|
254 |
border-radius: 15px 15px 0 0 !important;
|
255 |
border-bottom: 0 !important;
|
256 |
}
|
257 |
+
|
258 |
.card-footer{
|
259 |
border-radius: 0 0 15px 15px !important;
|
260 |
border-top: 0 !important;
|
261 |
}
|
262 |
+
|
263 |
.container{
|
264 |
display: flex;
|
265 |
flex-direction: column;
|
266 |
height: 100vh;
|
267 |
}
|
268 |
+
|
269 |
.msg_card_body {
|
270 |
flex-grow: 1;
|
271 |
}
|
272 |
+
|
273 |
.search{
|
274 |
border-radius: 15px 0 0 15px !important;
|
275 |
background-color: rgba(0,0,0,0.3) !important;
|
|
|
280 |
box-shadow:none !important;
|
281 |
outline:0px !important;
|
282 |
}
|
283 |
+
|
284 |
.type_msg{
|
285 |
background-color: rgba(0,0,0,0.3) !important;
|
286 |
border:0 !important;
|
|
|
288 |
height: 60px !important;
|
289 |
overflow-y: auto;
|
290 |
}
|
291 |
+
|
292 |
+
.type_msg:focus{
|
293 |
box-shadow:none !important;
|
294 |
outline:0px !important;
|
295 |
}
|
296 |
+
|
297 |
.attach_btn{
|
298 |
border-radius: 15px 0 0 15px !important;
|
299 |
background-color: rgba(0,0,0,0.3) !important;
|
|
|
301 |
color: white !important;
|
302 |
cursor: pointer;
|
303 |
}
|
304 |
+
|
305 |
.send_btn{
|
306 |
border-radius: 0 15px 15px 0 !important;
|
307 |
background-color: rgba(0,0,0,0.3) !important;
|
|
|
309 |
color: white !important;
|
310 |
cursor: pointer;
|
311 |
}
|
312 |
+
|
313 |
.search_btn{
|
314 |
border-radius: 0 15px 15px 0 !important;
|
315 |
background-color: rgba(0,0,0,0.3) !important;
|
|
|
317 |
color: white !important;
|
318 |
cursor: pointer;
|
319 |
}
|
320 |
+
|
321 |
.contacts{
|
322 |
list-style: none;
|
323 |
padding: 0;
|
324 |
}
|
325 |
+
|
326 |
.contacts li{
|
327 |
width: 100% !important;
|
328 |
padding: 5px 10px;
|
329 |
margin-bottom: 15px !important;
|
330 |
}
|
331 |
+
|
332 |
.active{
|
333 |
background-color: rgba(0,0,0,0.3);
|
334 |
}
|
335 |
+
|
336 |
.user_img{
|
337 |
height: 70px;
|
338 |
width: 70px;
|
339 |
border:1.5px solid #f5f6fa;
|
340 |
|
341 |
}
|
342 |
+
|
343 |
.user_img_msg{
|
344 |
height: 40px;
|
345 |
width: 40px;
|
346 |
border:1.5px solid #f5f6fa;
|
347 |
|
348 |
}
|
349 |
+
|
350 |
.img_cont{
|
351 |
position: relative;
|
352 |
height: 70px;
|
|
|
390 |
border-radius: 25px;
|
391 |
}
|
392 |
|
|
|
393 |
.dark-mode .predictive-text {
|
394 |
background-color: rgba(0, 0, 0, 0.8) !important; /* Ensure dark background */
|
395 |
color: white !important;
|
|
|
459 |
.action_menu ul li:hover {
|
460 |
background-color: rgba(0,0,0,0.2);
|
461 |
}
|
462 |
+
|
463 |
+
/* Media Query for Mobile Devices */
|
464 |
+
@media (max-width: 350px) {
|
465 |
.chat {
|
466 |
+
width: 100%; /* Full width on mobile devices */
|
|
|
|
|
|
|
467 |
}
|
468 |
}
|
469 |
|
470 |
+
@media (max-width: 568px) {
|
471 |
+
/* Adjust theme toggle and clear chat buttons */
|
472 |
+
|
473 |
+
|
474 |
+
.clearChat {
|
475 |
+
padding: 4px 8px; /* Reduced padding */
|
476 |
+
font-size: 12px; /* Smaller font size */
|
477 |
+
margin: 2px;
|
478 |
+
width: 80px; /* Fixed width for both buttons */
|
479 |
+
text-align: center; /* Ensure the text is centered */
|
480 |
+
}
|
481 |
+
/* Adjust overall chat container */
|
482 |
+
.chat {
|
483 |
+
height: 100vh;
|
484 |
+
max-height: 100vh; /* Full viewport height */
|
485 |
+
width: 100%; /* Full width */
|
486 |
+
|
487 |
+
padding: 5px;
|
488 |
+
margin: 0;
|
489 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
490 |
|
491 |
+
/* Adjust card container */
|
492 |
+
.card {
|
493 |
+
margin: 5px; /* Reduced margin */
|
494 |
+
border-radius: 10px; /* Softer border radius */
|
495 |
+
}
|
496 |
+
.card-header {
|
497 |
+
|
498 |
+
padding: 6px; /* Reduced padding */
|
499 |
+
}
|
500 |
+
|
501 |
+
|
502 |
+
|
503 |
+
.card-footer {
|
504 |
+
/* Let the footer shrink to its content */
|
505 |
+
/* Vertically center the text */
|
506 |
+
|
507 |
+
/* Adjust text size and spacing */
|
508 |
+
font-size: 14px; /* Use the desired smaller font size */
|
509 |
+
line-height: 1.2; /* Reduce line-height to decrease extra vertical space */
|
510 |
+
|
511 |
+
/* Reduce padding and remove extra margin */
|
512 |
+
padding: 4px 10px;
|
513 |
+
margin: 0;
|
514 |
+
}
|
515 |
+
|
516 |
+
|
517 |
+
/* Header layout adjustments: Juit logo on the left, buttons on the right */
|
518 |
+
.card-header {
|
519 |
+
display: flex;
|
520 |
+
justify-content: space-between; /* Space between logo and buttons */
|
521 |
+
align-items: center;
|
522 |
+
gap: 10px;
|
523 |
+
}
|
524 |
+
.juit-logo {
|
525 |
+
order: 1; /* Position logo on the left */
|
526 |
+
}
|
527 |
+
.header-buttons {
|
528 |
+
order: 2; /* Position buttons on the right */
|
529 |
+
display: flex;
|
530 |
+
gap: 5px;
|
531 |
+
margin-left: 10px;/* Space between the buttons */
|
532 |
+
}
|
533 |
+
.img_cont {
|
534 |
+
margin-right: 10px;
|
535 |
+
}
|
536 |
+
|
537 |
+
|
538 |
+
/* DO NOT REMOVE THESE: user_info, message area, and image scaling */
|
539 |
+
.user_info {
|
540 |
+
margin-left: 0;
|
541 |
+
text-align: center;
|
542 |
+
margin-right: 10px;
|
543 |
+
margin-bottom: 10px;
|
544 |
+
}
|
545 |
+
.user_info span {
|
546 |
+
font-size: 14px; /* Adjusted font size */
|
547 |
+
}
|
548 |
+
.user_info p {
|
549 |
+
font-size: 12px; /* Adjusted font size */
|
550 |
+
}
|
551 |
+
.msg_container,
|
552 |
+
.msg_container_send {
|
553 |
+
font-size: 13px; /* or adjust to your desired size */
|
554 |
+
line-height: 1.3; /* optional: adjust line-height if needed */
|
555 |
+
}
|
556 |
+
/* Adjust message area */
|
557 |
+
.msg_card_body {
|
558 |
+
max-height: 50vh; /* Adjusted maximum height */
|
559 |
+
}
|
560 |
+
|
561 |
+
/* Scale down images */
|
562 |
+
.img_cont,
|
563 |
+
.user_img {
|
564 |
+
height: 60px;
|
565 |
+
width: 60px;
|
566 |
+
}
|
567 |
+
.img_cont_msg,
|
568 |
+
.user_img_msg {
|
569 |
+
height: 45px;
|
570 |
+
width: 45px;
|
571 |
+
}
|
572 |
+
|
573 |
+
/* Adjust input field and other buttons */
|
574 |
+
.type_msg {
|
575 |
+
height: 50px;
|
576 |
+
font-size: 13.5px;
|
577 |
+
}
|
578 |
+
|
579 |
+
.user_info p {
|
580 |
+
display: none;
|
581 |
+
}
|
582 |
+
|
583 |
+
.btn, .attach_btn, .send_btn, .search_btn {
|
584 |
+
font-size: 12px;
|
585 |
+
padding: 5px 8px;
|
586 |
}
|
587 |
+
}
|