ChatGPT.module.css
3 years ago
ChatGPT.module.scss
3 years ago
iOSDark.module.css
3 years ago
iOSDark.module.scss
3 years ago
ChatGPT.module.css
597 lines
| 1 | .mwai-chat { |
| 2 | --mwai-spacing: 15px; |
| 3 | --mwai-fontSize: 15px; |
| 4 | --mwai-lineHeight: 1.5; |
| 5 | --mwai-borderRadius: 10px; |
| 6 | --mwai-fontColor: #FFFFFF; |
| 7 | --mwai-backgroundPrimaryColor: #454654; |
| 8 | --mwai-backgroundSecondaryColor: #343541; |
| 9 | --mwai-userAvatarBackgroundColor: #135ea4; |
| 10 | --mwai-headerButtonsColor: #FFFFFF; |
| 11 | --mwai-width: 460px; |
| 12 | --mwai-maxHeight: 40vh; |
| 13 | } |
| 14 | |
| 15 | .mwai-chat .mwai-open-button { |
| 16 | position: absolute; |
| 17 | right: 0; |
| 18 | bottom: 0; |
| 19 | transition: all 0.2s ease-out; |
| 20 | z-index: 9999; |
| 21 | display: flex; |
| 22 | flex-direction: column; |
| 23 | align-items: end; |
| 24 | } |
| 25 | |
| 26 | .mwai-chat .mwai-open-button .mwai-icon-text { |
| 27 | background: var(--mwai-backgroundPrimaryColor); |
| 28 | color: var(--mwai-headerButtonsColor); |
| 29 | max-width: 200px; |
| 30 | font-size: 13px; |
| 31 | margin-bottom: 15px; |
| 32 | padding: 5px 10px; |
| 33 | border-radius: 8px; |
| 34 | } |
| 35 | |
| 36 | .mwai-chat .mwai-open-button:hover { |
| 37 | cursor: pointer; |
| 38 | filter: saturate(2.5) hue-rotate(5deg); |
| 39 | } |
| 40 | |
| 41 | .mwai-chat .mwai-content { |
| 42 | background: var(--mwai-backgroundSecondaryColor); |
| 43 | color: var(--mwai-fontColor); |
| 44 | font-size: var(--mwai-fontSize); |
| 45 | border-radius: var(--mwai-borderRadius); |
| 46 | overflow: hidden; |
| 47 | display: flex; |
| 48 | flex-direction: column; |
| 49 | } |
| 50 | |
| 51 | .mwai-chat .mwai-conversation { |
| 52 | overflow: auto; |
| 53 | } |
| 54 | |
| 55 | .mwai-chat * { |
| 56 | box-sizing: border-box; |
| 57 | } |
| 58 | |
| 59 | .mwai-chat .mwai-reply { |
| 60 | display: flex; |
| 61 | padding: var(--mwai-spacing); |
| 62 | position: relative; |
| 63 | line-height: var(--mwai-lineHeight); |
| 64 | } |
| 65 | |
| 66 | .mwai-chat .mwai-reply .mwai-copy-button { |
| 67 | opacity: 0; |
| 68 | transition: all 0.3s ease-out; |
| 69 | width: 22px; |
| 70 | height: 22px; |
| 71 | position: absolute; |
| 72 | right: var(--mwai-spacing); |
| 73 | } |
| 74 | |
| 75 | .mwai-chat .mwai-reply .mwai-copy-button .mwai-copy-button-one { |
| 76 | position: absolute; |
| 77 | width: 16px; |
| 78 | height: 16px; |
| 79 | margin-top: 0px; |
| 80 | margin-left: 0px; |
| 81 | background: white; |
| 82 | opacity: 0.4; |
| 83 | transition: all 0.2s ease-in; |
| 84 | cursor: pointer; |
| 85 | border-radius: 2px; |
| 86 | } |
| 87 | |
| 88 | .mwai-chat .mwai-reply .mwai-copy-button .mwai-copy-button-two { |
| 89 | position: absolute; |
| 90 | width: 16px; |
| 91 | height: 16px; |
| 92 | margin-top: 6px; |
| 93 | margin-left: 6px; |
| 94 | background: white; |
| 95 | opacity: 0.6; |
| 96 | transition: all 0.2s ease-in; |
| 97 | cursor: pointer; |
| 98 | border-radius: 2px; |
| 99 | } |
| 100 | |
| 101 | .mwai-chat .mwai-reply .mwai-copy-button:hover .mwai-copy-button-one { |
| 102 | opacity: 0.6; |
| 103 | margin-top: 0px; |
| 104 | margin-left: 6px; |
| 105 | } |
| 106 | |
| 107 | .mwai-chat .mwai-reply .mwai-copy-button:hover .mwai-copy-button-two { |
| 108 | opacity: 1; |
| 109 | margin-top: 6px; |
| 110 | margin-left: 0px; |
| 111 | } |
| 112 | |
| 113 | .mwai-chat .mwai-reply .mwai-copy-button.mwai-animate .mwai-copy-button-one { |
| 114 | opacity: 0; |
| 115 | } |
| 116 | |
| 117 | .mwai-chat .mwai-reply .mwai-copy-button.mwai-animate .mwai-copy-button-two { |
| 118 | width: 18px; |
| 119 | height: 18px; |
| 120 | margin-top: 2px; |
| 121 | margin-left: 2px; |
| 122 | opacity: 1; |
| 123 | } |
| 124 | |
| 125 | .mwai-chat .mwai-reply:hover .mwai-copy-button { |
| 126 | display: block; |
| 127 | opacity: 1; |
| 128 | } |
| 129 | |
| 130 | .mwai-chat .mwai-ai, .mwai-chat .mwai-system { |
| 131 | background: var(--mwai-backgroundPrimaryColor); |
| 132 | } |
| 133 | |
| 134 | .mwai-chat .mwai-name { |
| 135 | color: var(--mwai-fontColor); |
| 136 | margin-right: 5px; |
| 137 | } |
| 138 | |
| 139 | .mwai-chat .mwai-name .mwai-name-text { |
| 140 | opacity: 0.50; |
| 141 | white-space: nowrap; |
| 142 | } |
| 143 | |
| 144 | .mwai-chat .mwai-name .mwai-avatar { |
| 145 | margin-right: 10px; |
| 146 | width: 40px; |
| 147 | height: 40px; |
| 148 | display: flex; |
| 149 | align-items: center; |
| 150 | justify-content: center; |
| 151 | border-radius: 5px; |
| 152 | overflow: hidden; |
| 153 | } |
| 154 | |
| 155 | .mwai-chat .mwai-name .mwai-avatar img { |
| 156 | max-width: 100%; |
| 157 | max-height: 100%; |
| 158 | } |
| 159 | |
| 160 | .mwai-chat .mwai-name .mwai-avatar.mwai-svg img { |
| 161 | width: 28px; |
| 162 | height: 28px; |
| 163 | filter: brightness(0) invert(1); |
| 164 | } |
| 165 | |
| 166 | .mwai-chat .mwai-user .mwai-name .mwai-avatar { |
| 167 | background: var(--mwai-userAvatarBackgroundColor); |
| 168 | } |
| 169 | |
| 170 | .mwai-chat .mwai-text { |
| 171 | flex: auto; |
| 172 | } |
| 173 | |
| 174 | .mwai-chat .mwai-text *:first-child { |
| 175 | margin-top: 0; |
| 176 | } |
| 177 | |
| 178 | .mwai-chat .mwai-text *:last-child { |
| 179 | margin-bottom: 0; |
| 180 | } |
| 181 | |
| 182 | .mwai-chat .mwai-text a { |
| 183 | color: #2196f3; |
| 184 | } |
| 185 | |
| 186 | .mwai-chat .mwai-text h1 { |
| 187 | font-size: 200%; |
| 188 | } |
| 189 | |
| 190 | .mwai-chat .mwai-text h2 { |
| 191 | font-size: 160%; |
| 192 | } |
| 193 | |
| 194 | .mwai-chat .mwai-text h3 { |
| 195 | font-size: 140%; |
| 196 | } |
| 197 | |
| 198 | .mwai-chat .mwai-text h4 { |
| 199 | font-size: 120%; |
| 200 | } |
| 201 | |
| 202 | .mwai-chat .mwai-text p { |
| 203 | font-size: var(--mwai-fontSize); |
| 204 | line-height: var(--mwai-lineHeight); |
| 205 | } |
| 206 | |
| 207 | .mwai-chat .mwai-text p code { |
| 208 | background: var(--mwai-backgroundSecondaryColor); |
| 209 | padding: 2px 6px; |
| 210 | border-radius: 8px; |
| 211 | font-size: 90%; |
| 212 | font-family: system-ui; |
| 213 | } |
| 214 | |
| 215 | .mwai-chat .mwai-text pre { |
| 216 | color: var(--mwai-fontColor); |
| 217 | border-radius: var(--mwai-borderRadius); |
| 218 | padding: calc(var(--mwai-spacing) * 2 / 3) var(--mwai-spacing); |
| 219 | break-after: auto; |
| 220 | font-size: 95%; |
| 221 | max-width: 100%; |
| 222 | width: 100%; |
| 223 | font-family: system-ui; |
| 224 | background: #343541; |
| 225 | } |
| 226 | |
| 227 | .mwai-chat .mwai-text pre code { |
| 228 | padding: 0 !important; |
| 229 | font-family: system-ui; |
| 230 | background: #343541; |
| 231 | } |
| 232 | |
| 233 | .mwai-chat .mwai-text ol { |
| 234 | padding: 0; |
| 235 | margin: 0 0 0 20px; |
| 236 | } |
| 237 | |
| 238 | .mwai-chat .mwai-text table { |
| 239 | width: 100%; |
| 240 | border: 2px solid var(--mwai-backgroundSecondaryColor); |
| 241 | border-collapse: collapse; |
| 242 | } |
| 243 | |
| 244 | .mwai-chat .mwai-text thead { |
| 245 | background: var(--mwai-backgroundSecondaryColor); |
| 246 | } |
| 247 | |
| 248 | .mwai-chat .mwai-text tr, .mwai-chat .mwai-text td { |
| 249 | padding: 2px 5px; |
| 250 | } |
| 251 | |
| 252 | .mwai-chat .mwai-text td { |
| 253 | border: 2px solid var(--mwai-backgroundSecondaryColor); |
| 254 | } |
| 255 | |
| 256 | .mwai-chat .mwai-text .mwai-typewriter { |
| 257 | display: inline-block; |
| 258 | } |
| 259 | |
| 260 | .mwai-chat .mwai-text .mwai-typewriter > :first-child { |
| 261 | margin-top: 0; |
| 262 | } |
| 263 | |
| 264 | .mwai-chat .mwai-text > *:first-child { |
| 265 | margin-top: 0; |
| 266 | } |
| 267 | |
| 268 | .mwai-chat .mwai-text > *:last-child { |
| 269 | margin-bottom: 0; |
| 270 | } |
| 271 | |
| 272 | .mwai-chat .mwai-system .mwai-name { |
| 273 | display: none; |
| 274 | } |
| 275 | |
| 276 | .mwai-chat .mwai-input { |
| 277 | display: flex; |
| 278 | padding: var(--mwai-spacing); |
| 279 | border-top: 1px solid var(--mwai-backgroundPrimaryColor); |
| 280 | } |
| 281 | |
| 282 | .mwai-chat .mwai-input textarea { |
| 283 | background: var(--mwai-backgroundPrimaryColor); |
| 284 | color: var(--mwai-fontColor); |
| 285 | flex: auto; |
| 286 | padding: calc(var(--mwai-spacing) / 2) var(--mwai-spacing); |
| 287 | border: none; |
| 288 | border-radius: 5px; |
| 289 | font-size: var(--mwai-fontSize); |
| 290 | resize: none; |
| 291 | font-family: inherit; |
| 292 | line-height: calc(var(--mwai-spacing) * 2); |
| 293 | margin: 0; |
| 294 | overflow: hidden; |
| 295 | } |
| 296 | |
| 297 | .mwai-chat .mwai-input textarea:focus { |
| 298 | outline: none; |
| 299 | } |
| 300 | |
| 301 | .mwai-chat .mwai-input textarea::placeholder { |
| 302 | color: var(--mwai-fontColor); |
| 303 | opacity: 0.5; |
| 304 | } |
| 305 | |
| 306 | .mwai-chat .mwai-compliance { |
| 307 | opacity: 0.50; |
| 308 | margin-top: calc( -1 * var(--mwai-spacing)); |
| 309 | padding: calc(var(--mwai-spacing) / 1.5) var(--mwai-spacing); |
| 310 | font-size: smaller; |
| 311 | color: var(--mwai-fontColor); |
| 312 | text-align: left; |
| 313 | } |
| 314 | |
| 315 | .mwai-chat button { |
| 316 | background: none; |
| 317 | color: var(--mwai-fontColor); |
| 318 | background-color: var(--mwai-backgroundSecondaryColor); |
| 319 | border: 1px solid var(--mwai-backgroundPrimaryColor); |
| 320 | margin-left: var(--mwai-spacing); |
| 321 | width: 90px; |
| 322 | border-radius: 5px; |
| 323 | cursor: pointer; |
| 324 | transition: all 0.2s ease-out; |
| 325 | display: flex; |
| 326 | align-items: center; |
| 327 | justify-content: center; |
| 328 | font-size: 90%; |
| 329 | } |
| 330 | |
| 331 | .mwai-chat button .mwai-timer { |
| 332 | margin-left: 5px; |
| 333 | margin-right: 5px; |
| 334 | font-size: 11px; |
| 335 | } |
| 336 | |
| 337 | .mwai-chat button:hover { |
| 338 | background: var(--mwai-backgroundPrimaryColor); |
| 339 | } |
| 340 | |
| 341 | .mwai-chat button { |
| 342 | position: relative; |
| 343 | } |
| 344 | |
| 345 | .mwai-chat button[disabled] span { |
| 346 | display: none; |
| 347 | } |
| 348 | |
| 349 | .mwai-chat button[disabled]::before { |
| 350 | content: ''; |
| 351 | width: 18px; |
| 352 | height: 18px; |
| 353 | margin: auto; |
| 354 | border: 3px solid transparent; |
| 355 | border-top-color: var(--mwai-fontColor); |
| 356 | border-radius: 50%; |
| 357 | animation: mwai-button-spinner 1s ease infinite; |
| 358 | } |
| 359 | |
| 360 | .mwai-chat.mwai-window { |
| 361 | position: fixed; |
| 362 | right: 30px; |
| 363 | bottom: 30px; |
| 364 | width: var(--mwai-width); |
| 365 | z-index: 9999; |
| 366 | } |
| 367 | |
| 368 | .mwai-chat.mwai-window .mwai-header { |
| 369 | display: none; |
| 370 | justify-content: flex-end; |
| 371 | align-items: center; |
| 372 | } |
| 373 | |
| 374 | .mwai-chat.mwai-window .mwai-header .mwai-buttons { |
| 375 | display: flex; |
| 376 | align-items: center; |
| 377 | margin-bottom: 5px; |
| 378 | } |
| 379 | |
| 380 | .mwai-chat.mwai-window .mwai-header .mwai-buttons .mwai-resize-button { |
| 381 | justify-content: center; |
| 382 | height: 32px; |
| 383 | width: 33px; |
| 384 | cursor: pointer; |
| 385 | display: flex; |
| 386 | justify-content: center; |
| 387 | align-items: center; |
| 388 | background-color: var(--mwai-backgroundSecondaryColor); |
| 389 | border-radius: var(--mwai-borderRadius); |
| 390 | } |
| 391 | |
| 392 | .mwai-chat.mwai-window .mwai-header .mwai-buttons .mwai-resize-button:before { |
| 393 | transition: all 0.2s ease-out; |
| 394 | content: ' '; |
| 395 | cursor: pointer; |
| 396 | position: absolute; |
| 397 | height: 13px; |
| 398 | width: 13px; |
| 399 | opacity: 0.75; |
| 400 | border: 2px solid var(--mwai-headerButtonsColor); |
| 401 | } |
| 402 | |
| 403 | .mwai-chat.mwai-window .mwai-header .mwai-buttons .mwai-resize-button:hover:before { |
| 404 | width: 16px; |
| 405 | height: 16px; |
| 406 | } |
| 407 | |
| 408 | .mwai-chat.mwai-window .mwai-header .mwai-buttons .mwai-close-button { |
| 409 | margin-left: 5px; |
| 410 | justify-content: center; |
| 411 | height: 32px; |
| 412 | width: 33px; |
| 413 | cursor: pointer; |
| 414 | background-color: var(--mwai-backgroundSecondaryColor); |
| 415 | border-radius: var(--mwai-borderRadius); |
| 416 | } |
| 417 | |
| 418 | .mwai-chat.mwai-window .mwai-header .mwai-buttons .mwai-close-button:before { |
| 419 | transition: all 0.2s ease-out; |
| 420 | transform: translate(16px, 5px) rotate(45deg); |
| 421 | } |
| 422 | |
| 423 | .mwai-chat.mwai-window .mwai-header .mwai-buttons .mwai-close-button:after { |
| 424 | transition: all 0.2s ease-out; |
| 425 | transform: translate(16px, 5px) rotate(-45deg); |
| 426 | } |
| 427 | |
| 428 | .mwai-chat.mwai-window .mwai-header .mwai-buttons .mwai-close-button:before, .mwai-chat.mwai-window .mwai-header .mwai-buttons .mwai-close-button:after { |
| 429 | content: ' '; |
| 430 | cursor: pointer; |
| 431 | position: absolute; |
| 432 | height: 22px; |
| 433 | width: 2px; |
| 434 | background-color: var(--mwai-headerButtonsColor); |
| 435 | opacity: 0.75; |
| 436 | } |
| 437 | |
| 438 | .mwai-chat.mwai-window .mwai-header .mwai-buttons .mwai-close-button:hover:before { |
| 439 | opacity: 1; |
| 440 | transform: translate(16px, 5px) rotate(135deg); |
| 441 | } |
| 442 | |
| 443 | .mwai-chat.mwai-window .mwai-header .mwai-buttons .mwai-close-button:hover:after { |
| 444 | opacity: 1; |
| 445 | transform: translate(16px, 5px) rotate(45deg); |
| 446 | } |
| 447 | |
| 448 | .mwai-chat.mwai-window .mwai-content { |
| 449 | display: none; |
| 450 | opacity: 0; |
| 451 | max-height: var(--mwai-maxHeight); |
| 452 | } |
| 453 | |
| 454 | .mwai-chat.mwai-window.mwai-bottom-left { |
| 455 | bottom: 30px; |
| 456 | right: inherit; |
| 457 | left: 30px; |
| 458 | } |
| 459 | |
| 460 | .mwai-chat.mwai-window.mwai-bottom-left .mwai-open-button { |
| 461 | right: inherit; |
| 462 | left: 0; |
| 463 | } |
| 464 | |
| 465 | .mwai-chat.mwai-window.mwai-top-right { |
| 466 | top: 30px; |
| 467 | bottom: inherit; |
| 468 | right: 30px; |
| 469 | } |
| 470 | |
| 471 | .mwai-chat.mwai-window.mwai-top-right .mwai-open-button { |
| 472 | top: 0; |
| 473 | bottom: inherit; |
| 474 | } |
| 475 | |
| 476 | .mwai-chat.mwai-window.mwai-top-left { |
| 477 | top: 30px; |
| 478 | bottom: inherit; |
| 479 | right: inherit; |
| 480 | left: 30px; |
| 481 | } |
| 482 | |
| 483 | .mwai-chat.mwai-window.mwai-top-left .mwai-open-button { |
| 484 | top: 0; |
| 485 | bottom: inherit; |
| 486 | right: inherit; |
| 487 | left: 0; |
| 488 | } |
| 489 | |
| 490 | .mwai-chat .mwai-gallery { |
| 491 | display: grid; |
| 492 | grid-template-columns: repeat(3, 1fr); |
| 493 | grid-gap: 5px; |
| 494 | } |
| 495 | |
| 496 | .mwai-chat .mwai-gallery img { |
| 497 | width: 100%; |
| 498 | } |
| 499 | |
| 500 | .mwai-chat.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons { |
| 501 | margin-bottom: 0px; |
| 502 | } |
| 503 | |
| 504 | .mwai-chat.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons .mwai-resize-button:before { |
| 505 | width: 16px; |
| 506 | height: 16px; |
| 507 | } |
| 508 | |
| 509 | .mwai-chat.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons .mwai-resize-button:hover:before { |
| 510 | width: 13px; |
| 511 | height: 13px; |
| 512 | } |
| 513 | |
| 514 | .mwai-chat.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons .mwai-close-button { |
| 515 | margin-left: -5px; |
| 516 | } |
| 517 | |
| 518 | .mwai-chat.mwai-fullscreen:not(.mwai-window), .mwai-chat.mwai-fullscreen.mwai-window.mwai-open { |
| 519 | position: fixed; |
| 520 | left: 0 !important; |
| 521 | right: 0 !important; |
| 522 | bottom: 0 !important; |
| 523 | top: 0 !important; |
| 524 | width: inherit; |
| 525 | height: inherit; |
| 526 | max-height: inherit; |
| 527 | max-width: inherit; |
| 528 | display: flex; |
| 529 | flex-direction: column; |
| 530 | margin: 0; |
| 531 | z-index: 999999; |
| 532 | background-color: var(--mwai-backgroundSecondaryColor); |
| 533 | } |
| 534 | |
| 535 | .mwai-chat.mwai-fullscreen:not(.mwai-window) .mwai-content, .mwai-chat.mwai-fullscreen.mwai-window.mwai-open .mwai-content { |
| 536 | height: 100%; |
| 537 | max-height: inherit; |
| 538 | border-radius: inherit; |
| 539 | } |
| 540 | |
| 541 | .mwai-chat.mwai-fullscreen:not(.mwai-window) .mwai-content .mwai-conversation, .mwai-chat.mwai-fullscreen.mwai-window.mwai-open .mwai-content .mwai-conversation { |
| 542 | flex: auto; |
| 543 | } |
| 544 | |
| 545 | .mwai-chat.mwai-window.mwai-open .mwai-header { |
| 546 | display: flex; |
| 547 | } |
| 548 | |
| 549 | .mwai-chat.mwai-window.mwai-open .mwai-content { |
| 550 | display: flex; |
| 551 | transition: opacity 200ms ease-in-out 0s; |
| 552 | opacity: 1; |
| 553 | } |
| 554 | |
| 555 | .mwai-chat.mwai-window.mwai-open .mwai-open-button { |
| 556 | display: none; |
| 557 | } |
| 558 | |
| 559 | @media (max-width: 760px) { |
| 560 | .mwai-chat.mwai-window { |
| 561 | left: 10px; |
| 562 | right: 10px; |
| 563 | bottom: 10px; |
| 564 | width: calc(100% - 20px); |
| 565 | z-index: 9999999999; |
| 566 | } |
| 567 | .mwai-chat .mwai-reply { |
| 568 | flex-direction: column; |
| 569 | } |
| 570 | .mwai-chat .mwai-input { |
| 571 | flex-direction: column; |
| 572 | } |
| 573 | .mwai-chat .mwai-input button { |
| 574 | margin: 15px 0 0 0; |
| 575 | height: 40px; |
| 576 | width: inherit; |
| 577 | } |
| 578 | .mwai-chat .mwai-name { |
| 579 | margin-right: 0; |
| 580 | max-width: inherit; |
| 581 | } |
| 582 | } |
| 583 | |
| 584 | @keyframes mwai-button-spinner { |
| 585 | from { |
| 586 | transform: rotate(0turn); |
| 587 | } |
| 588 | to { |
| 589 | transform: rotate(1turn); |
| 590 | } |
| 591 | } |
| 592 | |
| 593 | .admin-bar .mwai-chat.mwai-fullscreen:not(.mwai-window), |
| 594 | .admin-bar .mwai-chat.mwai-fullscreen.mwai-window.mwai-open { |
| 595 | top: 32px; |
| 596 | } |
| 597 |