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