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