_common.scss
870 lines
| 1 | // main: chatgpt.scss, messages.scss |
| 2 | |
| 3 | @mixin file-upload-icon-sprites { |
| 4 | $icon-size: 32px; |
| 5 | |
| 6 | &.mwai-idle-add { |
| 7 | background-position: -1 * $icon-size -3 * $icon-size; |
| 8 | } |
| 9 | |
| 10 | &.mwai-image-add { |
| 11 | background-position: -1 * $icon-size -0 * $icon-size; |
| 12 | } |
| 13 | |
| 14 | &.mwai-image-up { |
| 15 | background-position: -2 * $icon-size -0 * $icon-size; |
| 16 | } |
| 17 | |
| 18 | &.mwai-image-del { |
| 19 | background-position: -3 * $icon-size -0 * $icon-size; |
| 20 | } |
| 21 | |
| 22 | &.mwai-image-ok { |
| 23 | background-position: -4 * $icon-size -0 * $icon-size; |
| 24 | } |
| 25 | |
| 26 | &.mwai-document-add { |
| 27 | background-position: -1 * $icon-size -2 * $icon-size; |
| 28 | } |
| 29 | |
| 30 | &.mwai-document-up { |
| 31 | background-position: -2 * $icon-size -2 * $icon-size; |
| 32 | } |
| 33 | |
| 34 | &.mwai-document-del { |
| 35 | background-position: -3 * $icon-size -2 * $icon-size; |
| 36 | } |
| 37 | |
| 38 | &.mwai-document-ok { |
| 39 | background-position: -4 * $icon-size -2 * $icon-size; |
| 40 | } |
| 41 | |
| 42 | .mwai-file-upload-progress { |
| 43 | position: absolute; |
| 44 | font-size: 8px; |
| 45 | width: 21px; |
| 46 | top: 24px; |
| 47 | left: 23px; |
| 48 | overflow: hidden; |
| 49 | text-align: center; |
| 50 | font-weight: bold; |
| 51 | color: white; |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | @mixin microphone { |
| 56 | |
| 57 | display: flex; |
| 58 | justify-content: center; |
| 59 | align-items: center; |
| 60 | |
| 61 | svg { |
| 62 | opacity: 0.5; |
| 63 | filter: grayscale(100%); |
| 64 | transition: opacity 0.3s ease-out; |
| 65 | cursor: pointer; |
| 66 | } |
| 67 | |
| 68 | &[active=true]=true] svg { |
| 69 | opacity: 1; |
| 70 | } |
| 71 | |
| 72 | &[disabled]] svg { |
| 73 | opacity: 0; |
| 74 | cursor: not-allowed; |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | @mixin fullscreen-window { |
| 79 | position: fixed; |
| 80 | left: 0 !important; |
| 81 | right: 0 !important; |
| 82 | bottom: 0 !important; |
| 83 | top: 0 !important; |
| 84 | width: 100%; |
| 85 | height: 100%; |
| 86 | max-height: 100%; |
| 87 | max-width: 100%; |
| 88 | display: flex; |
| 89 | flex-direction: column; |
| 90 | margin: 0; |
| 91 | z-index: 999999; |
| 92 | background-color: var(--mwai-backgroundSecondaryColor); |
| 93 | |
| 94 | .mwai-header { |
| 95 | border-radius: 0; |
| 96 | } |
| 97 | |
| 98 | .mwai-content { |
| 99 | height: 100%; |
| 100 | max-height: inherit; |
| 101 | border-radius: 0; |
| 102 | |
| 103 | .mwai-conversation { |
| 104 | flex: auto; |
| 105 | max-height: none; |
| 106 | } |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | @mixin common-styles { |
| 111 | |
| 112 | // Transitions |
| 113 | |
| 114 | &.mwai-transition, .mwai-transition { |
| 115 | opacity: 0; |
| 116 | transition: opacity 350ms ease-in-out; |
| 117 | } |
| 118 | |
| 119 | &.mwai-transition-visible, .mwai-transition-visible { |
| 120 | opacity: 1; |
| 121 | } |
| 122 | |
| 123 | .mwai-text { |
| 124 | overflow-wrap: anywhere; |
| 125 | |
| 126 | img { |
| 127 | max-width: 100%; |
| 128 | } |
| 129 | |
| 130 | div { |
| 131 | p:first-child { |
| 132 | margin-top: 0; |
| 133 | } |
| 134 | p:last-child { |
| 135 | margin-bottom: 0; |
| 136 | } |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | // The icon when the chat window is closed. |
| 141 | |
| 142 | .mwai-trigger { |
| 143 | position: absolute; |
| 144 | right: 0; |
| 145 | bottom: 0; |
| 146 | transition: all 0.2s ease-out; |
| 147 | z-index: 9999; |
| 148 | display: flex; |
| 149 | flex-direction: column; |
| 150 | align-items: end; |
| 151 | |
| 152 | .mwai-icon-text-container { |
| 153 | display: flex; |
| 154 | flex-direction: column; |
| 155 | align-items: flex-end; |
| 156 | |
| 157 | .mwai-icon-text { |
| 158 | background: var(--mwai-iconTextBackgroundColor); |
| 159 | color: var(--mwai-iconTextColor); |
| 160 | box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15); |
| 161 | max-width: 200px; |
| 162 | font-size: 13px; |
| 163 | margin-bottom: 15px; |
| 164 | padding: 10px 15px; |
| 165 | border-radius: 8px; |
| 166 | } |
| 167 | |
| 168 | .mwai-icon-text-close { |
| 169 | color: var(--mwai-iconTextColor); |
| 170 | background: var(--mwai-iconTextBackgroundColor); |
| 171 | padding: 5px; |
| 172 | width: 20px; |
| 173 | height: 20px; |
| 174 | border-radius: 100%; |
| 175 | display: none; |
| 176 | justify-content: center; |
| 177 | align-items: center; |
| 178 | margin-bottom: 3px; |
| 179 | } |
| 180 | |
| 181 | &:hover { |
| 182 | cursor: pointer; |
| 183 | |
| 184 | .mwai-icon-text-close { |
| 185 | display: flex; |
| 186 | font-size: 12px; |
| 187 | |
| 188 | &:hover { |
| 189 | filter: brightness(1.2); |
| 190 | } |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | @media (max-width: 760px) { |
| 195 | .mwai-icon-text-close { |
| 196 | display: flex; |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | } |
| 201 | |
| 202 | .mwai-icon-container { |
| 203 | |
| 204 | .mwai-icon { |
| 205 | filter: drop-shadow(0px 0px 15px rgba(0, 0, 0, 0.15)); |
| 206 | transition: all 0.2s ease-out; |
| 207 | |
| 208 | &:hover { |
| 209 | cursor: pointer; |
| 210 | transform: scale(1.05); |
| 211 | } |
| 212 | } |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | // Handle the chat window and fullscreen. |
| 217 | // Let's keep this common for all themes. |
| 218 | |
| 219 | &.mwai-window { |
| 220 | position: fixed; |
| 221 | right: 30px; |
| 222 | bottom: 30px; |
| 223 | width: var(--mwai-width); |
| 224 | z-index: 9999; |
| 225 | |
| 226 | .mwai-header { |
| 227 | display: none; |
| 228 | justify-content: flex-end; |
| 229 | align-items: center; |
| 230 | border-radius: var(--mwai-borderRadius) var(--mwai-borderRadius) 0 0; |
| 231 | background: var(--mwai-backgroundHeaderColor); |
| 232 | |
| 233 | .mwai-buttons { |
| 234 | display: flex; |
| 235 | align-items: center; |
| 236 | |
| 237 | .mwai-resize-button { |
| 238 | justify-content: center; |
| 239 | height: 32px; |
| 240 | width: 22px; |
| 241 | cursor: pointer; |
| 242 | display: flex; |
| 243 | justify-content: center; |
| 244 | align-items: center; |
| 245 | |
| 246 | &:before { |
| 247 | transition: all 0.2s ease-out; |
| 248 | content: ' '; |
| 249 | cursor: pointer; |
| 250 | position: absolute; |
| 251 | height: 13px; |
| 252 | width: 13px; |
| 253 | border: 1px solid var(--mwai-headerButtonsColor); |
| 254 | } |
| 255 | |
| 256 | &:hover:before { |
| 257 | width: 16px; |
| 258 | height: 16px; |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | .mwai-close-button { |
| 263 | justify-content: center; |
| 264 | height: 32px; |
| 265 | width: 33px; |
| 266 | cursor: pointer; |
| 267 | border-radius: var(--mwai-borderRadius); |
| 268 | |
| 269 | &:before { |
| 270 | transition: all 0.2s ease-out; |
| 271 | transform: translate(16px, 5px) rotate(45deg); |
| 272 | } |
| 273 | &:after { |
| 274 | transition: all 0.2s ease-out; |
| 275 | transform: translate(16px, 5px) rotate(-45deg); |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | .mwai-close-button:before, .mwai-close-button:after { |
| 280 | content: ' '; |
| 281 | cursor: pointer; |
| 282 | position: absolute; |
| 283 | height: 22px; |
| 284 | width: 1px; |
| 285 | background-color: var(--mwai-headerButtonsColor); |
| 286 | } |
| 287 | |
| 288 | .mwai-close-button:hover { |
| 289 | &:before { |
| 290 | opacity: 1; |
| 291 | transform: translate(16px, 5px) rotate(135deg); |
| 292 | } |
| 293 | &:after { |
| 294 | opacity: 1; |
| 295 | transform: translate(16px, 5px) rotate(45deg); |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | .mwai-content { |
| 303 | display: none; |
| 304 | opacity: 0; |
| 305 | max-height: var(--mwai-maxHeight); |
| 306 | border-radius: 0 0 var(--mwai-borderRadius) var(--mwai-borderRadius); |
| 307 | } |
| 308 | |
| 309 | &.mwai-bottom-left { |
| 310 | bottom: 30px; |
| 311 | right: inherit; |
| 312 | left: 30px; |
| 313 | |
| 314 | .mwai-trigger { |
| 315 | right: inherit; |
| 316 | left: 0; |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | &.mwai-top-right { |
| 321 | top: 30px; |
| 322 | bottom: inherit; |
| 323 | right: 30px; |
| 324 | |
| 325 | .mwai-trigger { |
| 326 | top: 0; |
| 327 | bottom: inherit; |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | &.mwai-top-left { |
| 332 | top: 30px; |
| 333 | bottom: inherit; |
| 334 | right: inherit; |
| 335 | left: 30px; |
| 336 | |
| 337 | .mwai-trigger { |
| 338 | top: 0; |
| 339 | bottom: inherit; |
| 340 | right: inherit; |
| 341 | left: 0; |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | &.mwai-top-left, &.mwai-bottom-left { |
| 346 | |
| 347 | .mwai-trigger { |
| 348 | align-items: flex-start; |
| 349 | } |
| 350 | } |
| 351 | |
| 352 | &.mwai-top-right, &.mwai-top-left { |
| 353 | |
| 354 | .mwai-trigger { |
| 355 | flex-direction: column-reverse; |
| 356 | |
| 357 | .mwai-icon-text { |
| 358 | margin-bottom: 0; |
| 359 | margin-top: 15px; |
| 360 | } |
| 361 | } |
| 362 | } |
| 363 | } |
| 364 | |
| 365 | // Popup chat is fullscreen |
| 366 | |
| 367 | &.mwai-window.mwai-fullscreen { |
| 368 | |
| 369 | .mwai-header { |
| 370 | |
| 371 | .mwai-buttons { |
| 372 | margin-bottom: 0px; |
| 373 | |
| 374 | .mwai-resize-button { |
| 375 | &:before { |
| 376 | width: 16px; |
| 377 | height: 16px; |
| 378 | } |
| 379 | |
| 380 | &:hover:before { |
| 381 | width: 13px; |
| 382 | height: 13px; |
| 383 | } |
| 384 | } |
| 385 | } |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | // Standard chat is fullscreen |
| 390 | |
| 391 | &.mwai-fullscreen:not(.mwai-window), &.mwai-fullscreen.mwai-window.mwai-open { |
| 392 | @include fullscreen-window; |
| 393 | } |
| 394 | |
| 395 | // Popup chat is open |
| 396 | |
| 397 | &.mwai-window.mwai-open { |
| 398 | |
| 399 | .mwai-header { |
| 400 | display: flex; |
| 401 | } |
| 402 | |
| 403 | .mwai-content { |
| 404 | display: flex; |
| 405 | transition: opacity 200ms ease-in-out 0s; |
| 406 | opacity: 1; |
| 407 | } |
| 408 | |
| 409 | .mwai-trigger { |
| 410 | display: none; |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | .mwai-error { |
| 415 | margin: var(--mwai-spacing); |
| 416 | color: white; |
| 417 | background: rgba(180, 55, 55, 0.55); |
| 418 | padding: var(--mwai-spacing); |
| 419 | border-radius: var(--mwai-borderRadius); |
| 420 | |
| 421 | &:hover { |
| 422 | cursor: pointer; |
| 423 | background: rgba(180, 44, 44, 0.85); |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | &.mwai-bubble .mwai-icon-container { |
| 428 | background: var(--mwai-bubbleColor); |
| 429 | width: 60px; |
| 430 | height: 60px; |
| 431 | border-radius: 100%; |
| 432 | transition: all 0.2s ease-out; |
| 433 | display: flex; |
| 434 | justify-content: center; |
| 435 | align-items: center; |
| 436 | |
| 437 | .mwai-icon { |
| 438 | max-width: 50%; |
| 439 | max-height: 50%; |
| 440 | filter: none; |
| 441 | |
| 442 | &:hover { |
| 443 | transform: none; |
| 444 | } |
| 445 | } |
| 446 | |
| 447 | .mwai-emoji { |
| 448 | font-size: 30px !important; |
| 449 | } |
| 450 | |
| 451 | &:hover { |
| 452 | cursor: pointer; |
| 453 | filter: brightness(1.1); |
| 454 | } |
| 455 | } |
| 456 | |
| 457 | @media (max-width: 760px) { |
| 458 | &.mwai-window.mwai-open { |
| 459 | @include fullscreen-window; |
| 460 | |
| 461 | .mwai-input { |
| 462 | flex-direction: column; |
| 463 | |
| 464 | button { |
| 465 | font-size: 16px; |
| 466 | margin-left: 0; |
| 467 | width: 100%; |
| 468 | } |
| 469 | |
| 470 | .mwai-input-text { |
| 471 | //margin-bottom: var(--mwai-spacing); |
| 472 | width: 100%; |
| 473 | |
| 474 | // This is to avoid iOS from zooming in when focusing on an input field. |
| 475 | input, textarea { |
| 476 | font-size: 16px; |
| 477 | } |
| 478 | } |
| 479 | } |
| 480 | |
| 481 | .mwai-content { |
| 482 | display: flex; |
| 483 | transition: opacity 200ms ease-in-out 0s; |
| 484 | opacity: 1; |
| 485 | height: 100%; |
| 486 | max-height: inherit; |
| 487 | |
| 488 | .mwai-conversation { |
| 489 | flex: auto; |
| 490 | max-height: none; |
| 491 | } |
| 492 | } |
| 493 | |
| 494 | .mwai-resize-button { |
| 495 | display: none !important; |
| 496 | } |
| 497 | |
| 498 | .mwai-trigger { |
| 499 | display: none; |
| 500 | } |
| 501 | } |
| 502 | } |
| 503 | |
| 504 | // Keyframes for buttons |
| 505 | |
| 506 | @keyframes mwai-button-spinner { |
| 507 | |
| 508 | from { |
| 509 | transform: rotate(0turn); |
| 510 | } |
| 511 | to { |
| 512 | transform: rotate(1turn); |
| 513 | } |
| 514 | } |
| 515 | |
| 516 | // Safari-specific fix for spinner cleanup |
| 517 | button:not(.mwai-busy):before { |
| 518 | content: none !important; |
| 519 | display: none !important; |
| 520 | animation: none !important; |
| 521 | } |
| 522 | |
| 523 | // WordPress Admin Bar |
| 524 | |
| 525 | .admin-bar .mwai-fullscreen:not(.mwai-window), |
| 526 | .admin-bar .mwai-fullscreen.mwai-window.mwai-open { |
| 527 | top: 32px; |
| 528 | } |
| 529 | } |
| 530 | |
| 531 | @mixin code-dark { |
| 532 | |
| 533 | pre code.hljs { |
| 534 | display: block; |
| 535 | overflow-x: auto; |
| 536 | padding: 1em; |
| 537 | } |
| 538 | |
| 539 | code.hljs { |
| 540 | padding: 3px 5px; |
| 541 | } |
| 542 | |
| 543 | .hljs { |
| 544 | color: #fff; |
| 545 | |
| 546 | &-subst { |
| 547 | color: #fff; |
| 548 | } |
| 549 | |
| 550 | &-comment { |
| 551 | color: #999; |
| 552 | } |
| 553 | |
| 554 | &-attr, |
| 555 | &-doctag, |
| 556 | &-keyword, |
| 557 | &-meta .hljs-keyword, |
| 558 | &-section, |
| 559 | &-selector-tag { |
| 560 | color: #88aece; |
| 561 | } |
| 562 | |
| 563 | &-attribute { |
| 564 | color: #c59bc1; |
| 565 | } |
| 566 | |
| 567 | &-name, |
| 568 | &-number, |
| 569 | &-quote, |
| 570 | &-selector-id, |
| 571 | &-template-tag, |
| 572 | &-type { |
| 573 | color: #f08d49; |
| 574 | } |
| 575 | |
| 576 | &-selector-class { |
| 577 | color: #88aece; |
| 578 | } |
| 579 | |
| 580 | &-link, |
| 581 | &-regexp, |
| 582 | &-selector-attr, |
| 583 | &-string, |
| 584 | &-symbol, |
| 585 | &-template-variable, |
| 586 | &-variable { |
| 587 | color: #b5bd68; |
| 588 | } |
| 589 | |
| 590 | &-meta, |
| 591 | &-selector-pseudo { |
| 592 | color: #88aece; |
| 593 | } |
| 594 | |
| 595 | &-built_in, |
| 596 | &-literal, |
| 597 | &-title { |
| 598 | color: #f08d49; |
| 599 | } |
| 600 | |
| 601 | &-bullet, |
| 602 | &-code { |
| 603 | color: #ccc; |
| 604 | } |
| 605 | |
| 606 | &-meta .hljs-string { |
| 607 | color: #b5bd68; |
| 608 | } |
| 609 | |
| 610 | &-deletion { |
| 611 | color: #de7176; |
| 612 | } |
| 613 | |
| 614 | &-addition { |
| 615 | color: #76c490; |
| 616 | } |
| 617 | |
| 618 | &-emphasis { |
| 619 | font-style: italic; |
| 620 | } |
| 621 | |
| 622 | &-strong { |
| 623 | font-weight: 700; |
| 624 | } |
| 625 | } |
| 626 | } |
| 627 | |
| 628 | @mixin code-light { |
| 629 | |
| 630 | pre code.hljs { |
| 631 | display: block; |
| 632 | overflow-x: auto; |
| 633 | padding: 1em; |
| 634 | } |
| 635 | |
| 636 | code.hljs { |
| 637 | padding: 3px 5px; |
| 638 | } |
| 639 | |
| 640 | .hljs { |
| 641 | color: #333; |
| 642 | background: #f0f0f0; |
| 643 | |
| 644 | &-subst { |
| 645 | color: #333; |
| 646 | } |
| 647 | |
| 648 | &-comment { |
| 649 | color: #888; |
| 650 | } |
| 651 | |
| 652 | &-attr, |
| 653 | &-doctag, |
| 654 | &-keyword, |
| 655 | &-meta .hljs-keyword, |
| 656 | &-section, |
| 657 | &-selector-tag { |
| 658 | color: #0077cc; |
| 659 | } |
| 660 | |
| 661 | &-attribute { |
| 662 | color: #aa3377; |
| 663 | } |
| 664 | |
| 665 | &-name, |
| 666 | &-number, |
| 667 | &-quote, |
| 668 | &-selector-id, |
| 669 | &-template-tag, |
| 670 | &-type { |
| 671 | color: #c18401; |
| 672 | } |
| 673 | |
| 674 | &-selector-class { |
| 675 | color: #0077cc; |
| 676 | } |
| 677 | |
| 678 | &-link, |
| 679 | &-regexp, |
| 680 | &-selector-attr, |
| 681 | &-string, |
| 682 | &-symbol, |
| 683 | &-template-variable, |
| 684 | &-variable { |
| 685 | color: #689700; |
| 686 | } |
| 687 | |
| 688 | &-meta, |
| 689 | &-selector-pseudo { |
| 690 | color: #0077cc; |
| 691 | } |
| 692 | |
| 693 | &-built_in, |
| 694 | &-literal, |
| 695 | &-title { |
| 696 | color: #c18401; |
| 697 | } |
| 698 | |
| 699 | &-bullet, |
| 700 | &-code { |
| 701 | color: #555; |
| 702 | } |
| 703 | |
| 704 | &-meta .hljs-string { |
| 705 | color: #689700; |
| 706 | } |
| 707 | |
| 708 | &-deletion { |
| 709 | color: #b71c1c; |
| 710 | } |
| 711 | |
| 712 | &-addition { |
| 713 | color: #1b5e20; |
| 714 | } |
| 715 | |
| 716 | &-emphasis { |
| 717 | font-style: italic; |
| 718 | } |
| 719 | |
| 720 | &-strong { |
| 721 | font-weight: 700; |
| 722 | } |
| 723 | } |
| 724 | } |
| 725 | |
| 726 | @mixin reply-actions { |
| 727 | .mwai-reply-actions { |
| 728 | position: absolute; |
| 729 | border-radius: 5px; |
| 730 | top: 10px; |
| 731 | right: 10px; |
| 732 | display: flex; |
| 733 | align-items: center; |
| 734 | padding: 2px 2px; |
| 735 | z-index: 100; |
| 736 | background: var(--mwai-backgroundPrimaryColor); |
| 737 | box-shadow: 0 0 8px rgba(0, 0, 0, 0.25); |
| 738 | z-index: 100; |
| 739 | |
| 740 | .mwai-copy-button { |
| 741 | fill: var(--mwai-fontColor); |
| 742 | padding: 3px 5px; |
| 743 | width: 24px; |
| 744 | height: 24px; |
| 745 | background: var(--mwai-backgroundPrimaryColor); |
| 746 | cursor: pointer; |
| 747 | border-radius: 5px; |
| 748 | |
| 749 | &:hover { |
| 750 | filter: brightness(1.2); |
| 751 | } |
| 752 | } |
| 753 | |
| 754 | &.mwai-hidden { |
| 755 | opacity: 0; |
| 756 | } |
| 757 | } |
| 758 | } |
| 759 | |
| 760 | @mixin realtime { |
| 761 | .mwai-realtime { |
| 762 | padding: var(--mwai-spacing); |
| 763 | |
| 764 | .mwai-visualizer { |
| 765 | display: flex; |
| 766 | justify-content: center; |
| 767 | align-items: center; |
| 768 | |
| 769 | hr { |
| 770 | width: 100px; |
| 771 | margin-right: var(--mwai-spacing); |
| 772 | margin-left: var(--mwai-spacing); |
| 773 | border: 1px solid var(--mwai-backgroundPrimaryColor); |
| 774 | } |
| 775 | |
| 776 | .mwai-animation { |
| 777 | background: var(--mwai-backgroundPrimaryColor); |
| 778 | } |
| 779 | } |
| 780 | |
| 781 | .mwai-controls { |
| 782 | display: flex; |
| 783 | justify-content: center; |
| 784 | align-items: center; |
| 785 | margin-bottom: var(--mwai-spacing); |
| 786 | |
| 787 | > * + * { |
| 788 | margin-left: 10px; |
| 789 | } |
| 790 | |
| 791 | button { |
| 792 | border-radius: 100%; |
| 793 | width: 50px; |
| 794 | height: 50px; |
| 795 | margin: 5px; |
| 796 | padding: 5px; |
| 797 | display: flex; |
| 798 | align-items: center; |
| 799 | justify-content: center; |
| 800 | color: var(--mwai-fontColor); |
| 801 | border: 2px solid var(--mwai-backgroundPrimaryColor); |
| 802 | background: none; |
| 803 | cursor: pointer; |
| 804 | transition: all 0.2s ease-out; |
| 805 | min-width: inherit; |
| 806 | max-width: inherit; |
| 807 | |
| 808 | &:hover:not(:disabled) { |
| 809 | background: var(--mwai-backgroundPrimaryColor); |
| 810 | } |
| 811 | |
| 812 | &:disabled { |
| 813 | opacity: 0.5; |
| 814 | cursor: not-allowed; |
| 815 | background: none; |
| 816 | } |
| 817 | |
| 818 | &.mwai-active { |
| 819 | border: 2px solid var(--mwai-fontColor); |
| 820 | } |
| 821 | } |
| 822 | } |
| 823 | |
| 824 | .mwai-last-transcript { |
| 825 | margin: var(--mwai-spacing); |
| 826 | margin-top: 0; |
| 827 | border: 2px solid var(--mwai-backgroundPrimaryColor); |
| 828 | padding: calc(var(--mwai-spacing) / 2); |
| 829 | border-radius: var(--mwai-borderRadius); |
| 830 | display: flex; |
| 831 | justify-content: center; |
| 832 | font-size: 80%; |
| 833 | } |
| 834 | |
| 835 | .mwai-statistics { |
| 836 | display: grid; |
| 837 | grid-template-columns: 1fr 1fr 1fr; |
| 838 | grid-row-gap: 10px; |
| 839 | font-size: 14px; |
| 840 | |
| 841 | div { |
| 842 | display: flex; |
| 843 | flex-direction: column; |
| 844 | align-items: center; |
| 845 | } |
| 846 | |
| 847 | label { |
| 848 | font-size: 11px; |
| 849 | opacity: 0.5; |
| 850 | text-transform: uppercase; |
| 851 | } |
| 852 | } |
| 853 | |
| 854 | .mwai-options { |
| 855 | margin-top: var(--mwai-spacing); |
| 856 | display: flex; |
| 857 | align-items: center; |
| 858 | |
| 859 | .mwai-option { |
| 860 | cursor: pointer; |
| 861 | opacity: 0.5; |
| 862 | margin-right: 2px; |
| 863 | |
| 864 | &.mwai-active { |
| 865 | opacity: 1; |
| 866 | } |
| 867 | } |
| 868 | } |
| 869 | } |
| 870 | } |