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