PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 1.5
MxChat – AI Chatbot & Content Generation for WordPress v1.5
3.2.21 3.2.20 3.2.19 3.2.18 3.2.17 3.2.16 3.2.15 3.2.14 3.2.12 3.2.13 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 3.2.6 3.2.5 3.2.4 3.2.3 3.2.2 3.2.1 2.0.3 2.0.4 2.0.5 2.0.6 All 152 releases
mxchat-basic / css / chat-style.css

chat-style.css in MxChat – AI Chatbot & Content Generation for WordPress 1.5, at css/chat-style.css

851 lines 17.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 #mxchat-chatbot .chat-toolbar {
2 display: flex;
3 gap: 10px;
4 padding: 8px;
5 border-top: 1px solid #e5e5e5;
6 background: none;
7 }
8
9 #mxchat-chatbot .toolbar-btn {
10 background: none;
11 border: none;
12 padding: 0px;
13 cursor: pointer;
14 width: 20px;
15 height: 20px;
16 display: flex;
17 align-items: center;
18 justify-content: center;
19 opacity: 0.6;
20 transition: opacity 0.2s;
21 margin: 0;
22 min-width: 0;
23 box-shadow: none;
24 }
25
26 #mxchat-chatbot .toolbar-btn svg {
27 width: 100%;
28 height: 100%;
29 fill: transparent;
30 }
31
32 #mxchat-chatbot .toolbar-btn:hover {
33 opacity: 1;
34 background: none;
35 border: none;
36 box-shadow: none;
37 }
38
39 #mxchat-chatbot .toolbar-btn:disabled {
40 opacity: 0.3;
41 cursor: not-allowed;
42 background: none;
43 border: none;
44 }
45
46 #mxchat-chatbot .spinner {
47 animation: rotate 2s linear infinite;
48 width: 20px;
49 height: 20px;
50 }
51
52 #mxchat-chatbot .spinner circle {
53 stroke: #212121;
54 stroke-linecap: round;
55 animation: dash 1.5s ease-in-out infinite;
56 }
57
58 @keyframes rotate {
59 100% {
60 transform: rotate(360deg);
61 }
62 }
63
64 @keyframes dash {
65 0% {
66 stroke-dasharray: 1, 150;
67 stroke-dashoffset: 0;
68 }
69 50% {
70 stroke-dasharray: 90, 150;
71 stroke-dashoffset: -35;
72 }
73 100% {
74 stroke-dasharray: 90, 150;
75 stroke-dashoffset: -124;
76 }
77 }
78
79
80
81
82 .mxchat-code-block-container {
83 position: relative;
84 margin: 20px 0;
85 font-family: monospace;
86 }
87
88 .chatbot-title-container {
89 display: flex;
90 align-items: center;
91 justify-content: space-between;
92 width: 100%;
93 }
94
95 .chat-mode-indicator {
96 font-size: 12px;
97 margin-right: 8px;
98 padding: 4px 8px;
99 border-radius: 12px;
100 background: rgba(255, 255, 255, 0.2);
101 color: #ffffff;
102 }
103
104 #mxchat-chatbot #chat-container #chat-box .agent-message {
105 text-align: left;
106 float: left;
107 clear: both;
108 border: 1px solid rgba(226, 232, 255, .2);
109 border-radius: 0 18px 18px;
110 background: #212121;
111 color: #fff;
112 overflow-x: hidden;
113 margin-bottom: 15px;
114 padding: 10px;
115 display: inline-block;
116 max-width: 85%;
117 font-size: 14px;
118 line-height: 24px;
119 box-shadow: -2px 2px rgba(250, 115, 230, 0.6), -4px 4px rgba(120, 115, 245, 0.6);
120 }
121
122 .mxchat-code-block {
123 background-color: #212121;
124 color: #fff;
125 padding: 15px;
126 border-radius: 5px;
127 white-space: pre-wrap; /* Maintain formatting */
128 overflow: auto; /* Enable scrolling for long content */
129 font-family: monospace;
130 }
131
132 .mxchat-code-block code {
133 display: block;
134 white-space: pre-wrap;
135 }
136
137 /* Copy button styling */
138 .mxchat-copy-button {
139 position: absolute;
140 top: 10px;
141 right: 10px;
142 background-color: #0073aa;
143 color: #ffffff;
144 border: none;
145 border-radius: 5px;
146 padding: 5px 15px;
147 font-size: 12px;
148 font-weight: bold;
149 cursor: pointer;
150 transition: background-color 0.3s ease, transform 0.2s ease;
151 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
152 z-index: 10; /* Ensure the button is on top */
153 }
154
155 .mxchat-copy-button:hover {
156 background-color: #005177;
157 transform: translateY(-1px);
158 }
159
160 .mxchat-copy-button:active {
161 transform: translateY(1px);
162 }
163
164 .mxchat-image-gallery {
165 display: flex;
166 flex-wrap: wrap;
167 gap: 10px;
168 justify-content: center;
169 }
170
171 .mxchat-image-item {
172 text-align: center;
173 overflow: hidden;
174 word-wrap: break-word;
175 }
176
177 .mxchat-image-title {
178 display: block;
179 font-size: 14px;
180 color: inherit;
181 white-space: nowrap;
182 overflow: hidden;
183 text-overflow: ellipsis;
184 max-width: 100%;
185 }
186
187 .mxchat-image-link {
188 text-decoration: none;
189 }
190
191 .mxchat-image-thumbnail {
192 max-width: 100%;
193 height: auto;
194 border-radius: 5px;
195 transition: transform 0.3s;
196 }
197
198 .mxchat-image-thumbnail:hover {
199 transform: scale(1.05);
200 }
201 .mxchat-generated-image {
202 max-width: 100%;
203 height: auto;
204 border-radius: 0 0 8px 8px;
205 }
206
207
208 /* MxChat Product Card Styling */
209 .mxchat-product-card {
210 display: flex;
211 flex-direction: column;
212 align-items: center;
213 margin: 10px 0;
214 padding: 10px;
215 border-radius: 5px;
216 background-color: inherit;
217 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
218 }
219
220 .mxchat-product-card img.mxchat-product-image {
221 max-width: 100%;
222 height: auto;
223 margin-bottom: 5px;
224 border-radius: 4px;
225 }
226
227 .mxchat-product-card h3.mxchat-product-name {
228 font-size: 16px;
229 font-weight: bold;
230 margin: 5px 0;
231 text-align: center;
232 color: inherit;
233 }
234
235 .mxchat-product-card .mxchat-product-price {
236 color: inherit;
237 font-weight: bold;
238 margin-bottom: 5px;
239 }
240
241 .mxchat-product-card .mxchat-product-description {
242 font-size: 14px;
243 text-align: center;
244 margin-bottom: 10px;
245 color: inherit;
246 }
247
248 .mxchat-product-card .mxchat-add-to-cart-button {
249 background-color: #0071a1;
250 color: #fff;
251 padding: 8px 12px;
252 border: none;
253 cursor: pointer;
254 border-radius: 3px;
255 transition: background-color 0.3s ease;
256 }
257
258 .mxchat-product-card .mxchat-add-to-cart-button:hover {
259 background-color: #005f87;
260 }
261
262
263
264
265
266 #mxchat-popular-questions {
267 padding: 10px;
268 }
269
270 .mxchat-popular-questions-title {
271 font-size: 14px;
272 line-height: 24px;
273 font-weight: bold;
274 color: #212121;
275 margin-bottom: 10px;
276 }
277
278 .mxchat-popular-questions-container {
279 position: relative; /* Make it the parent for positioning */
280 display: flex;
281 flex-direction: column;
282 max-height: 200px;
283 overflow-y: auto;
284 padding-right: 10px;
285 padding-bottom: 10px;
286 scrollbar-width: thin; /* For Firefox */
287 scrollbar-color: #212121 #f1f1f1; /* Thumb and track colors */
288 }
289
290
291 /* Styling the scrollbar for WebKit browsers (Chrome, Safari, etc.) */
292 .mxchat-popular-questions-container::-webkit-scrollbar {
293 width: 8px;
294 }
295
296 .mxchat-popular-questions-container::-webkit-scrollbar-track {
297 background: #f1f1f1;
298 border-radius: 4px;
299 }
300
301 .mxchat-popular-questions-container::-webkit-scrollbar-thumb {
302 background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1);
303 border-radius: 4px;
304 }
305
306 .mxchat-popular-questions-container::-webkit-scrollbar-thumb:hover {
307 background: linear-gradient(135deg, #d164ce, #6568d8, #2daeb8);
308 }
309
310 /* For Firefox */
311 .mxchat-popular-questions-container {
312 scrollbar-width: thin; /* Makes the scrollbar thinner */
313 scrollbar-color: #212121 #f1f1f1; /* Thumb color and track color */
314 }
315
316 /* For Edge and other modern browsers */
317 .mxchat-popular-questions-container {
318 -ms-overflow-style: none; /* Removes the default scrollbars for Edge */
319 scrollbar-gutter: stable; /* Prevent layout shifting */
320 }
321
322 /* For a more uniform cross-browser look */
323 .mxchat-popular-questions-container {
324 overflow: auto;
325 overscroll-behavior: contain;
326 }
327
328 .mxchat-popular-question {
329 padding: 12px 20px;
330 background-color: #f5f5f5; /* Darker background for better contrast */
331 border: 1px solid #bbb; /* Darker border for better visibility */
332 border-radius: 8px;
333 color: #212121;
334 font-size: 14px;
335 line-height: 24px;
336 cursor: pointer;
337 text-align: left;
338 transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
339 margin-bottom: 10px;
340 }
341
342 .mxchat-popular-question:hover {
343 background-color: #eaeaea; /* Slightly darker on hover */
344 border-color: #999; /* Darker border on hover */
345 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Slightly darker shadow on hover */
346 color: #212121;
347 }
348
349 .mxchat-popular-question:focus {
350 outline: none;
351 background-color: #e0e0e0; /* Darker background on focus */
352 border-color: #777; /* More prominent focus border */
353 box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.5); /* Subtle focus ring */
354 color: #212121;
355 }
356
357 .mxchat-popular-question:active {
358 background-color: #d8d8d8; /* Darker pressed background */
359 border-color: #666; /* Darker border when pressed */
360 box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15); /* Slightly darker pressed effect */
361 color: #212121;
362 }
363
364
365 #widget_icon, #widget_icon_2, #widget_icon_3, #widget_icon_5, #widget_icon_4, #widget_icon_6, #widget_icon_7 {
366 padding: 10px;
367 }
368
369 #widget_icon_10 {
370 fill: #fff;
371 }
372
373 .invisible {
374 display: none;
375 opacity: 0;
376 pointer-events: none;
377 }
378
379 #mxchat-chatbot {
380 background: #fff;
381 }
382
383 #mxchat-chatbot-wrapper .chatbot-footer .privacy-notice {
384 font-size: 12px;
385 margin: 0;
386 color: #71717a;
387 }
388
389 #mxchat-chatbot-wrapper .chatbot-footer .privacy-notice a {
390 color: #0073aa; /* You can specify the color for the link */
391 text-decoration: underline;
392 font-size: 12px;
393 }
394
395 #mxchat-chatbot #chat-container #input-container #send-button, .copy-btn {
396 transition: background-color .3s;
397 color: #fff;
398 font-size: 1rem;
399 cursor: pointer;
400 font-weight: 700;
401 margin-bottom: 10px;
402 }
403
404 #mxchat-chatbot {
405 max-width: 800px;
406 overflow: hidden;
407 position: relative;
408 display: flex;
409 flex-direction: column;
410 height: 500px;
411 box-sizing: border-box;
412 flex-grow: 1;
413 }
414
415 #chat-container {
416 display: flex;
417 flex-direction: column;
418 height: 100%;
419 }
420
421 #chat-box {
422 flex-grow: 1;
423 overflow-y: auto;
424 padding: 10px;
425 margin-bottom: 0;
426 font-size: 1rem;
427 }
428
429 #chat-box::-webkit-scrollbar {
430 width: 5px;
431 }
432
433 #chat-box::-webkit-scrollbar-thumb {
434 background-color: #212121;
435 border-radius: 20px;
436 }
437
438 .bot-message, .user-message {
439 margin-bottom: 15px;
440 padding: 10px;
441 display: inline-block;
442 max-width: 85%;
443 box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
444 font-size: 14px;
445 line-height: 24px;
446 }
447
448 .user-message {
449 background: #fff;
450 color: #212121;
451 text-align: left;
452 float: right;
453 clear: both;
454 border-radius: 18px 0 18px 18px;
455 border: solid 1px #212121;
456 word-wrap: break-word;
457 }
458
459 #mxchat-chatbot #chat-container #chat-box .bot-message {
460 text-align: left;
461 float: left;
462 clear: both;
463 border: 1px solid rgba(226, 232, 255, .2);
464 border-radius: 0 18px 18px;
465 background: #212121;
466 color: #fff;
467 overflow-x: hidden;
468 }
469
470 #mxchat-chatbot-wrapper {
471 box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
472 border-radius: 10px;
473 display: flex;
474 flex-direction: column;
475 height: 100%;
476 width: 100%;
477 }
478
479 #mxchat-chatbot #chat-container #input-container {
480 position: relative;
481 display: flex;
482 align-items: center;
483 padding-right: 40px;
484 border: 1px solid #ccc;
485 border-radius: 10px;
486 margin: 10px;
487 }
488
489 #mxchat-chatbot #chat-container #input-container #chat-input {
490 flex-grow: 1;
491 color: #212121;
492 line-height: 24px;
493 background: 0 0;
494 margin-bottom: 0px;
495 width: 100%;
496 min-height: 20px;
497 max-height: 400px;
498 resize: none;
499 overflow-y: auto;
500 font-size: 16px;
501 border: none;
502 border-radius: 5px;
503 box-sizing: border-box;
504 padding: 0.4em 0.5em;
505 outline: none;
506 }
507
508 /* Styling the scrollbar for WebKit browsers (Chrome, Safari, etc.) */
509 #chat-input::-webkit-scrollbar {
510 width: 8px; /* Set the scrollbar width */
511 }
512
513 #chat-input::-webkit-scrollbar-track {
514 background: #f1f1f1; /* Scrollbar track background */
515 border-radius: 4px; /* Round the corners */
516 }
517
518 #chat-input::-webkit-scrollbar-thumb {
519 background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1); /* Gradient scrollbar thumb */
520 border-radius: 4px; /* Round the corners */
521 }
522
523 #chat-input::-webkit-scrollbar-thumb:hover {
524 background: linear-gradient(135deg, #d164ce, #6568d8, #2daeb8); /* Hover effect */
525 }
526
527 /* Optional: Ensure consistent styling for other modern browsers using scrollbars */
528 #chat-input {
529 scrollbar-width: thin; /* For Firefox: sets scrollbar width to thin */
530 scrollbar-color: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1) #f1f1f1; /* For Firefox: color for thumb and track */
531 }
532
533
534 #mxchat-chatbot #chat-container #input-container #send-button {
535 position:absolute;
536 right: 10px;
537 top: 50%;
538 transform: translateY(-50%);
539 border: none;
540 border-radius: 50%;
541 width: 30px;
542 height: 30px;
543 display: flex;
544 align-items: center;
545 justify-content: center;
546 background: 0 0!important;
547 padding: 5px;
548 margin: 0px 0px 0px 0px;
549 }
550
551 #mxchat-chatbot #chat-container #input-container #send-button .fa-paper-plane {
552 font-size: 1.3rem;
553 }
554
555 #send-button:hover, .copy-btn:hover {
556 opacity: .8;
557 }
558
559 #mxchat-chatbot:after {
560 content: "";
561 display: table;
562 clear: both;
563 }
564
565 pre {
566 background-color: #000;
567 border: 1px solid #ddd;
568 border-radius: 20px;
569 border-left: 3px solid #9e7aff;
570 color: #fff;
571 page-break-inside: avoid;
572 font-family: monospace;
573 font-size: 15px;
574 line-height: 1.6;
575 margin-bottom: 1.6em;
576 max-width: 100%;
577 overflow: auto;
578 padding: 1em 1.5em;
579 display: block;
580 word-wrap: break-word;
581 }
582
583 .copy-btn {
584 padding: 10px 20px;
585 border: none;
586 border-radius: 4px;
587 background-color: #9e7aff;
588 }
589
590 #floating-chatbot {
591 position: fixed;
592 bottom: 25px;
593 right: 25px;
594 width: 375px;
595 height: 625px;
596 box-shadow: 0 0 10px rgba(0, 0, 0, .25);
597 border-radius: 20px;
598 overflow: hidden;
599 display: flex;
600 z-index: 100000;
601 transition: transform .3s ease-in-out, opacity .3s ease-in-out;
602 transform: translateY(20%);
603 opacity: 0;
604 pointer-events: none;
605 }
606
607 #floating-chatbot.visible {
608 transform: translateY(0);
609 opacity: 1;
610 pointer-events: auto;
611 }
612
613 #floating-chatbot-button.hidden, .exit-chat span {
614 display: none!important;
615 }
616
617 .visible {
618 display: flex;
619 }
620
621 #floating-chatbot-button {
622 transition: opacity 1s ease-in-out;
623 font-size: 1.25rem;
624 position: fixed;
625 bottom: 30px;
626 right: 25px;
627 background-color: #212121;
628 color: #fff;
629 width: 60px;
630 height: 60px;
631 border-radius: 50%;
632 box-shadow: 0 4px 8px rgba(0, 0, 0, .2)!important;
633 justify-content: center;
634 align-items: center;
635 cursor: pointer;
636 transition: .3s;
637 z-index: 100000;
638 display: flex;
639 }
640
641 #floating-chatbot-button img {
642 max-width: 100%;
643 max-height: 100%;
644 width: auto;
645 height: auto;
646 }
647
648 #mxchat-chatbot-wrapper.active+#floating-chatbot-button {
649 bottom: 530px;
650 width: 100%;
651 }
652
653 .chatbot-close-button {
654 position: absolute;
655 top: 5px;
656 right: 5px;
657 border: none;
658 background: 0 0;
659 cursor: pointer;
660 font-size: 20px;
661 color: #f0f0f1;
662 }
663
664 .chatbot-top-bar {
665 background: #212121;
666 }
667
668 #mxchat-chatbot-wrapper .chatbot-top-bar {
669 cursor: pointer;
670 color: #fff;
671 padding: 10px;
672 border-top-left-radius: 10px;
673 border-top-right-radius: 10px;
674 display: flex;
675 justify-content: space-between;
676 align-items: baseline;
677 }
678
679 #mxchat-chatbot-wrapper .chatbot-top-bar .chatbot-title {
680 font-size: 16px;
681 line-height: 25px;
682 padding: 10px;
683 margin: 0;
684 font-family: 'Plus Jakarta Sans', sans-serif;
685 font-weight: bold;
686 }
687
688 #mxchat-chatbot-wrapper .chatbot-top-bar .chatbot-title span {
689 font-weight: 700;
690 }
691
692 #mxchat-chatbot-wrapper .chatbot-top-bar button.exit-chat {
693 background: 0 0;
694 border: none;
695 opacity: .8;
696 }
697
698 .exit-chat {
699 border: none;
700 background: 0 0;
701 cursor: pointer;
702 display: flex;
703 align-items: center;
704 justify-content: center;
705 padding: 5px;
706 margin-left: auto;
707 }
708
709 .exit-chat svg {
710 fill: white;
711 width: 24px;
712 height: 24px;
713 transform: rotate(270deg);
714 }
715
716 #mxchat-chatbot-wrapper .chatbot-footer {
717 text-align: center;
718 padding-bottom: 10px;
719 font-size: .85em;
720 }
721
722 #mxchat-chatbot-wrapper .chatbot-footer .powered-by {
723 text-decoration: none;
724 color: inherit;
725 font-weight: 700;
726 }
727
728 #mxchat-chatbot-wrapper .chatbot-footer .powered-by span {
729 text-decoration: underline;
730 }
731
732 .thinking-dots-container {
733 display: flex;
734 justify-content: center;
735 align-items: center;
736 overflow: hidden;
737 height: 20px; /* Adjust as needed */
738 }
739
740 .thinking-dots {
741 display: flex;
742 justify-content: center;
743 align-items: center;
744 height: 90%;
745 }
746
747 .dot {
748 height: 8px;
749 width: 8px;
750 margin: 0 3px;
751 background-color: #fff;
752 border-radius: 50%;
753 display: inline-block;
754 animation: bounce 1.4s ease-in-out infinite both;
755 }
756
757 .dot:first-child {
758 animation-delay: -.32s;
759 }
760
761 .dot:nth-child(2) {
762 animation-delay: -.16s;
763 }
764
765 @keyframes bounce {
766 0%, 100%, 80% {
767 transform: scale(1);
768 }
769 40% {
770 transform: scale(1.5);
771 }
772 }
773
774
775
776 #pre-chat-message {
777 position: fixed;
778 bottom: 85px;
779 right: 30px;
780 background-color: #fff;
781 color: #212121;
782 padding: 10px;
783 box-shadow: 0px 0px 10px rgba(150, 150, 150, 0.3);
784 border-radius: 5px;
785 z-index: 1000;
786 cursor: pointer;
787 max-width: 325px;
788 font-size: 14px;
789 display: none;
790 background: #fff;
791 margin-bottom: 10px;
792 }
793
794 #pre-chat-message .close-pre-chat-message {
795 position: absolute;
796 top: -6px;
797 right: -6px;
798 background-color: #ccc;
799 border: none;
800 color: #212121;
801 font-size: 14px;
802 cursor: pointer;
803 border-radius: 50%;
804 width: 20px;
805 height: 20px;
806 display: flex;
807 align-items: center;
808 justify-content: center;
809 padding: 0;
810 line-height: 1;
811 display: flex; /* Show the close button on hover */
812 }
813
814
815
816 @media (max-width: 550px) {
817
818 #pre-chat-message {
819 bottom: 70px; /* Adjust this value as needed */
820 right: 15px; /* Adjust this value as needed */
821 }
822
823 #chat-input {
824 width: calc(100% - 70px);
825 }
826 .bot-message, .user-message {
827 padding: 10px;
828 max-width: 95%;
829 }
830 #floating-chatbot-button {
831 bottom: 15px;
832 right: 10px;
833 }
834 #floating-chatbot {
835 width: 100vw;
836 height: calc(var(--vh, 1vh) * 100);
837 margin: 0;
838 padding: 0;
839 position: fixed;
840 bottom: 0;
841 top: 0;
842 left: 0;
843 right: 0;
844 border-radius: 0;
845 }
846 #mxchat-chatbot-wrapper .chatbot-top-bar {
847 border-top-left-radius: 0;
848 border-top-right-radius: 0;
849 }
850 }
851