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.6.85 0.1.6 1.6.86 0.1.7 1.6.87 0.1.8 1.6.88 0.1.9 1.6.89 0.2.0 1.6.90
ai-engine / classes / modules / chatbot-chatgpt.scss
ai-engine / classes / modules Last commit date
assistants.php 3 years ago chatbot-chatgpt.css 3 years ago chatbot-chatgpt.scss 3 years ago chatbot.php 3 years ago chatbot_chats.php 3 years ago chatbot_logs.php 3 years ago
chatbot-chatgpt.scss
624 lines
1 #mwai-chat-id {
2 --mwai-spacing: 15px;
3 --mwai-fontSize: 15px;
4 --mwai-borderRadius: 10px;
5 --mwai-fontColor: #FFFFFF;
6 --mwai-backgroundPrimaryColor: #454654;
7 --mwai-backgroundSecondaryColor: #343541;
8 --mwai-aiAvatarBackgroundColor: #10a37f;
9 --mwai-userAvatarBackgroundColor: #135ea4;
10 --mwai-headerButtonsColor: #FFFFFF;
11 --mwai-width: 460px;
12 --mwai-maxHeight: 40vh;
13
14 .mwai-open-button {
15 position: absolute;
16 right: 0;
17 bottom: 0;
18 transition: all 0.2s ease-out;
19 z-index: 9999;
20 display: flex;
21 flex-direction: column;
22 align-items: end;
23
24 .mwai-icon-text {
25 background: var(--mwai-backgroundPrimaryColor);
26 color: var(--mwai-headerButtonsColor);
27 max-width: 200px;
28 font-size: 13px;
29 margin-bottom: 15px;
30 padding: 5px 10px;
31 border-radius: 8px;
32 }
33
34 &:hover {
35 cursor: pointer;
36 filter: saturate(2.5) hue-rotate(5deg);
37 }
38 }
39
40 .mwai-content {
41 background: var(--mwai-backgroundSecondaryColor);
42 color: var(--mwai-fontColor);
43 font-size: var(--mwai-fontSize);
44 border-radius: var(--mwai-borderRadius);
45 overflow: hidden;
46 display: flex;
47 flex-direction: column;
48 }
49
50 .mwai-conversation {
51 overflow: auto;
52 }
53
54 * {
55 box-sizing: border-box;
56 }
57
58 a {
59 color: #2196f3;
60 }
61
62 h1 {
63 font-size: 200%;
64 }
65
66 h2 {
67 font-size: 160%;
68 }
69
70 h3 {
71 font-size: 140%;
72 }
73
74 h4 {
75 font-size: 120%;
76 }
77
78 pre {
79 color: var(--mwai-fontColor);
80 border-radius: var(--mwai-borderRadius);
81 padding: calc(var(--mwai-spacing) * 2 / 3) var(--mwai-spacing);
82 break-after: auto;
83 font-size: 95%;
84 font-family: system-ui;
85 background: #343541;
86
87 code {
88 padding: 0 !important;
89 font-family: system-ui;
90 background: #343541;
91 }
92 }
93
94 ol {
95 padding: 0;
96 margin: 0 0 0 20px;
97 }
98 .mwai-reply {
99 display: flex;
100 padding: var(--mwai-spacing);
101 position: relative;
102
103 .mwai-copy-button {
104 opacity: 0;
105 transition: all 0.3s ease-out;
106 width: 22px;
107 height: 22px;
108 position: absolute;
109 right: var(--mwai-spacing);
110
111 .mwai-copy-button-one {
112 position: absolute;
113 width: 16px;
114 height: 16px;
115 margin-top: 0px;
116 margin-left: 0px;
117 background: white;
118 opacity: 0.4;
119 transition: all 0.2s ease-in;
120 cursor: pointer;
121 border-radius: 2px;
122 }
123
124 .mwai-copy-button-two {
125 position: absolute;
126 width: 16px;
127 height: 16px;
128 margin-top: 6px;
129 margin-left: 6px;
130 background: white;
131 opacity: 0.6;
132 transition: all 0.2s ease-in;
133 cursor: pointer;
134 border-radius: 2px;
135 }
136
137 &:hover {
138 .mwai-copy-button-one {
139 opacity: 0.6;
140 margin-top: 0px;
141 margin-left: 6px;
142 }
143
144 .mwai-copy-button-two {
145 opacity: 1;
146 margin-top: 6px;
147 margin-left: 0px;
148 }
149 }
150
151 &.mwai-animate {
152
153 .mwai-copy-button-one {
154 opacity: 0;
155 }
156
157 .mwai-copy-button-two {
158 width: 18px;
159 height: 18px;
160 margin-top: 2px;
161 margin-left: 2px;
162 opacity: 1;
163 }
164 }
165 }
166
167 &:hover {
168 .mwai-copy-button {
169 display: block;
170 opacity: 1;
171 }
172 }
173 }
174
175 .mwai-ai, .mwai-system {
176 background: var(--mwai-backgroundPrimaryColor);
177 }
178
179 .mwai-name {
180 color: var(--mwai-fontColor);
181 margin-right: 5px;
182
183 .mwai-name-text {
184 opacity: 0.50;
185 white-space: nowrap;
186 }
187
188 .mwai-avatar {
189 margin-right: 10px;
190 width: 40px;
191 height: 40px;
192 background: var(--mwai-aiAvatarBackgroundColor);
193 display: flex;
194 align-items: center;
195 justify-content: center;
196 border-radius: 5px;
197 overflow: hidden;
198
199 img {
200 max-width: 100%;
201 max-height: 100%;
202 }
203
204 &.mwai-svg img {
205 width: 28px;
206 height: 28px;
207 filter: brightness(0) invert(1);
208 }
209 }
210 }
211
212 .mwai-user {
213
214 .mwai-name {
215
216 .mwai-avatar {
217 background: var(--mwai-userAvatarBackgroundColor);
218 }
219 }
220 }
221
222 .mwai-text {
223 flex: auto;
224
225 *:first-child {
226 margin-top: 0;
227 }
228
229 *:last-child {
230 margin-bottom: 0;
231 }
232
233 table {
234 width: 100%;
235 border: 2px solid var(--mwai-backgroundSecondaryColor);
236 border-collapse: collapse
237 }
238
239 thead {
240 background: var(--mwai-backgroundSecondaryColor);
241 }
242
243 tr, td {
244 padding: 2px 5px;
245 }
246
247 td {
248 border: 2px solid var(--mwai-backgroundSecondaryColor);
249 }
250
251 .mwai-typewriter {
252 display: inline-block;
253
254 > :first-child {
255 margin-top: 0;
256 }
257 }
258
259 >* {
260 &:first-child {
261 margin-top: 0;
262
263 }
264 &:last-child {
265 margin-bottom: 0;
266 }
267 }
268 }
269
270 .mwai-system .mwai-name {
271 display: none;
272 }
273
274 .mwai-input {
275 display: flex;
276 padding: var(--mwai-spacing);
277 border-top: 1px solid var(--mwai-backgroundPrimaryColor);
278
279 textarea {
280 background: var(--mwai-backgroundPrimaryColor);
281 color: var(--mwai-fontColor);
282 flex: auto;
283 padding: calc(var(--mwai-spacing) / 2) var(--mwai-spacing);
284 border: none;
285 border-radius: 5px;
286 font-size: var(--mwai-fontSize);
287 resize: none;
288 font-family: inherit;
289 line-height: calc(var(--mwai-spacing) * 2);
290 margin: 0;
291 overflow: hidden;
292
293 &:focus {
294 outline: none;
295 }
296
297 &::placeholder {
298 color: var(--mwai-fontColor);
299 opacity: 0.5;
300 }
301 }
302 }
303
304 .mwai-compliance {
305 opacity: 0.50;
306 margin-top: calc( -1 * var(--mwai-spacing));
307 padding: calc(var(--mwai-spacing) / 1.5) var(--mwai-spacing);
308 font-size: smaller;
309 color: var(--mwai-fontColor);
310 text-align: left;
311 }
312
313 button {
314 background: none;
315 color: var(--mwai-fontColor);
316 background-color: var(--mwai-backgroundSecondaryColor);
317 border: 1px solid var(--mwai-backgroundPrimaryColor);
318 margin-left: var(--mwai-spacing);
319 width: 90px;
320 border-radius: 5px;
321 cursor: pointer;
322 transition: all 0.2s ease-out;
323 display: flex;
324 align-items: center;
325 justify-content: center;
326
327 .mwai-timer {
328 margin-left: 5px;
329 margin-right: 5px;
330 font-size: 11px;
331 }
332
333 &:hover {
334 background: var(--mwai-backgroundPrimaryColor);
335 }
336 }
337
338 button {
339 position: relative;
340 }
341
342 button[disabled]] {
343
344 span {
345 display: none;
346 }
347
348 &::before {
349 content: '';
350 width: 18px;
351 height: 18px;
352 margin: auto;
353 border: 3px solid transparent;
354 border-top-color: var(--mwai-fontColor);
355 border-radius: 50%;
356 animation: mwai-button-spinner 1s ease infinite;
357 }
358 }
359 }
360
361 #mwai-chat-id.mwai-window {
362 position: fixed;
363 right: 30px;
364 bottom: 30px;
365 width: var(--mwai-width);
366 z-index: 9999;
367
368 .mwai-header {
369 display: none;
370 justify-content: flex-end;
371 align-items: center;
372
373 .mwai-buttons {
374 display: flex;
375 align-items: center;
376 margin-bottom: 5px;
377
378 .mwai-resize-button {
379 justify-content: center;
380 height: 32px;
381 width: 33px;
382 cursor: pointer;
383 display: flex;
384 justify-content: center;
385 align-items: center;
386 background-color: var(--mwai-backgroundSecondaryColor);
387 border-radius: var(--mwai-borderRadius);
388
389 &:before {
390 transition: all 0.2s ease-out;
391 content: ' ';
392 cursor: pointer;
393 position: absolute;
394 height: 13px;
395 width: 13px;
396 opacity: 0.75;
397 border: 2px solid var(--mwai-headerButtonsColor);
398 }
399
400 &:hover:before {
401 width: 16px;
402 height: 16px;
403 }
404 }
405
406 .mwai-close-button {
407 margin-left: 5px;
408 justify-content: center;
409 height: 32px;
410 width: 33px;
411 cursor: pointer;
412 background-color: var(--mwai-backgroundSecondaryColor);
413 border-radius: var(--mwai-borderRadius);
414
415 &:before {
416 transition: all 0.2s ease-out;
417 transform: translate(16px, 5px) rotate(45deg);
418 }
419 &:after {
420 transition: all 0.2s ease-out;
421 transform: translate(16px, 5px) rotate(-45deg);
422 }
423 }
424
425 .mwai-close-button:before, .mwai-close-button:after {
426 content: ' ';
427 cursor: pointer;
428 position: absolute;
429 height: 22px;
430 width: 2px;
431 background-color: var(--mwai-headerButtonsColor);
432 opacity: 0.75;
433 }
434
435 .mwai-close-button:hover {
436 &:before {
437 opacity: 1;
438 transform: translate(16px, 5px) rotate(135deg);
439 }
440 &:after {
441 opacity: 1;
442 transform: translate(16px, 5px) rotate(45deg);
443 }
444 }
445
446 }
447 }
448
449 .mwai-content {
450 display: none;
451 opacity: 0;
452 max-height: var(--mwai-maxHeight);
453 }
454
455 &.mwai-bottom-left {
456 bottom: 30px;
457 right: inherit;
458 left: 30px;
459
460 .mwai-open-button {
461 right: inherit;
462 left: 0;
463 }
464 }
465
466 &.mwai-top-right {
467 top: 30px;
468 bottom: inherit;
469 right: 30px;
470
471 .mwai-open-button {
472 top: 0;
473 bottom: inherit;
474 }
475 }
476
477 &.mwai-top-left {
478 top: 30px;
479 bottom: inherit;
480 right: inherit;
481 left: 30px;
482
483 .mwai-open-button {
484 top: 0;
485 bottom: inherit;
486 right: inherit;
487 left: 0;
488 }
489 }
490 }
491
492 // GALLERY
493
494 #mwai-chat-id .mwai-gallery {
495 display: grid;
496 grid-template-columns: repeat(3, 1fr);
497 grid-gap: 5px;
498
499 img {
500 width: 100%;
501 }
502 }
503
504 // FULLSCREEN & WINDOW
505
506 #mwai-chat-id.mwai-window.mwai-fullscreen {
507
508 .mwai-header {
509
510 .mwai-buttons {
511 margin-bottom: 0px;
512
513 .mwai-resize-button {
514 &:before {
515 width: 16px;
516 height: 16px;
517 }
518
519 &:hover:before {
520 width: 13px;
521 height: 13px;
522 }
523 }
524
525 .mwai-close-button {
526 margin-left: -5px;
527 }
528 }
529 }
530 }
531
532 #mwai-chat-id.mwai-fullscreen:not(.mwai-window), #mwai-chat-id.mwai-fullscreen.mwai-window.mwai-open {
533 position: fixed;
534 left: 0 !important;
535 right: 0 !important;
536 bottom: 0 !important;
537 top: 0 !important;
538 width: inherit;
539 height: inherit;
540 max-height: inherit;
541 max-width: inherit;
542 display: flex;
543 flex-direction: column;
544 margin: 0;
545 z-index: 999999;
546 background-color: var(--mwai-backgroundSecondaryColor);
547
548 .mwai-content {
549 height: 100%;
550 max-height: inherit;
551 border-radius: inherit;
552
553 .mwai-conversation {
554 flex: auto;
555 }
556 }
557 }
558
559 #mwai-chat-id.mwai-window.mwai-open {
560
561 .mwai-header {
562 display: flex;
563 }
564
565 .mwai-content {
566 display: flex;
567 transition: opacity 200ms ease-in-out 0s;
568 opacity: 1;
569 }
570
571 .mwai-open-button {
572 display: none;
573 }
574 }
575
576 @media (max-width: 760px) {
577
578 #mwai-chat-id {
579
580 &.mwai-window {
581 left: 10px;
582 right: 10px;
583 bottom: 10px;
584 width: calc(100% - 20px);
585 z-index: 9999999999;
586 }
587
588 .mwai-reply {
589 flex-direction: column;
590 }
591
592 .mwai-input {
593 flex-direction: column;
594
595 button {
596 margin: 15px 0 0 0;
597 height: 40px;
598 width: inherit;
599 }
600 }
601
602 .mwai-name {
603 margin-right: 0;
604 max-width: inherit;
605 }
606 }
607 }
608
609 @keyframes mwai-button-spinner {
610
611 from {
612 transform: rotate(0turn);
613 }
614 to {
615 transform: rotate(1turn);
616 }
617 }
618
619 // WordPress Admin Bar
620
621 .admin-bar #mwai-chat-id.mwai-fullscreen:not(.mwai-window),
622 .admin-bar #mwai-chat-id.mwai-fullscreen.mwai-window.mwai-open {
623 top: 32px;
624 }