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