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