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