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