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
745 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 textarea { |
| 273 | background: var(--mwai-backgroundPrimaryColor); |
| 274 | color: var(--mwai-fontColor); |
| 275 | flex: auto; |
| 276 | padding: var(--mwai-spacing); |
| 277 | border: none; |
| 278 | border-radius: var(--mwai-borderRadius); |
| 279 | font-size: var(--mwai-fontSize); |
| 280 | resize: none; |
| 281 | font-family: inherit; |
| 282 | margin: 0; |
| 283 | overflow: hidden; |
| 284 | } |
| 285 | |
| 286 | .mwai-chat .mwai-input textarea:focus { |
| 287 | outline: none; |
| 288 | box-shadow: none; |
| 289 | } |
| 290 | |
| 291 | .mwai-chat .mwai-input textarea::placeholder { |
| 292 | color: var(--mwai-fontColor); |
| 293 | opacity: 0.5; |
| 294 | } |
| 295 | |
| 296 | .mwai-chat button { |
| 297 | background: none; |
| 298 | color: var(--mwai-fontColor); |
| 299 | background-color: var(--mwai-backgroundSecondaryColor); |
| 300 | border: 1px solid var(--mwai-backgroundPrimaryColor); |
| 301 | margin-left: var(--mwai-spacing); |
| 302 | width: 90px; |
| 303 | border-radius: 5px; |
| 304 | cursor: pointer; |
| 305 | transition: all 0.2s ease-out; |
| 306 | display: flex; |
| 307 | align-items: center; |
| 308 | justify-content: center; |
| 309 | font-size: 90%; |
| 310 | position: relative; |
| 311 | } |
| 312 | |
| 313 | .mwai-chat button .mwai-timer { |
| 314 | margin-left: 5px; |
| 315 | margin-right: 5px; |
| 316 | font-size: 11px; |
| 317 | } |
| 318 | |
| 319 | .mwai-chat button:hover { |
| 320 | background: var(--mwai-backgroundPrimaryColor); |
| 321 | } |
| 322 | |
| 323 | .mwai-chat button[disabled] span { |
| 324 | display: none; |
| 325 | } |
| 326 | |
| 327 | .mwai-chat button[disabled]::before { |
| 328 | content: ''; |
| 329 | width: 18px; |
| 330 | height: 18px; |
| 331 | margin: auto; |
| 332 | border: 3px solid transparent; |
| 333 | border-top-color: var(--mwai-fontColor); |
| 334 | border-radius: 50%; |
| 335 | animation: mwai-button-spinner 1s ease infinite; |
| 336 | } |
| 337 | |
| 338 | .mwai-chat .mwai-compliance { |
| 339 | opacity: 0.50; |
| 340 | margin-top: calc( -1 * var(--mwai-spacing)); |
| 341 | padding: calc(var(--mwai-spacing) / 1.5) var(--mwai-spacing); |
| 342 | font-size: smaller; |
| 343 | color: var(--mwai-fontColor); |
| 344 | text-align: left; |
| 345 | } |
| 346 | |
| 347 | .mwai-chat .mwai-gallery { |
| 348 | display: grid; |
| 349 | grid-template-columns: repeat(3, 1fr); |
| 350 | grid-gap: 5px; |
| 351 | } |
| 352 | |
| 353 | .mwai-chat .mwai-gallery img { |
| 354 | width: 100%; |
| 355 | } |
| 356 | |
| 357 | .mwai-open-button { |
| 358 | position: absolute; |
| 359 | right: 0; |
| 360 | bottom: 0; |
| 361 | transition: all 0.2s ease-out; |
| 362 | z-index: 9999; |
| 363 | display: flex; |
| 364 | flex-direction: column; |
| 365 | align-items: end; |
| 366 | } |
| 367 | |
| 368 | .mwai-open-button .mwai-icon-text { |
| 369 | background: var(--mwai-iconTextBackgroundColor); |
| 370 | color: var(--mwai-iconTextColor); |
| 371 | max-width: 200px; |
| 372 | font-size: 13px; |
| 373 | margin-bottom: 15px; |
| 374 | padding: 5px 10px; |
| 375 | border-radius: 8px; |
| 376 | } |
| 377 | |
| 378 | .mwai-open-button:hover { |
| 379 | cursor: pointer; |
| 380 | filter: saturate(2.5) hue-rotate(5deg); |
| 381 | } |
| 382 | |
| 383 | .mwai-window { |
| 384 | position: fixed; |
| 385 | right: 30px; |
| 386 | bottom: 30px; |
| 387 | width: var(--mwai-width); |
| 388 | z-index: 9999; |
| 389 | } |
| 390 | |
| 391 | .mwai-window .mwai-header { |
| 392 | display: none; |
| 393 | justify-content: flex-end; |
| 394 | align-items: center; |
| 395 | border-radius: var(--mwai-borderRadius) var(--mwai-borderRadius) 0 0; |
| 396 | background: var(--mwai-backgroundHeaderColor); |
| 397 | } |
| 398 | |
| 399 | .mwai-window .mwai-header .mwai-buttons { |
| 400 | display: flex; |
| 401 | align-items: center; |
| 402 | } |
| 403 | |
| 404 | .mwai-window .mwai-header .mwai-buttons .mwai-resize-button { |
| 405 | justify-content: center; |
| 406 | height: 32px; |
| 407 | width: 22px; |
| 408 | cursor: pointer; |
| 409 | display: flex; |
| 410 | justify-content: center; |
| 411 | align-items: center; |
| 412 | } |
| 413 | |
| 414 | .mwai-window .mwai-header .mwai-buttons .mwai-resize-button:before { |
| 415 | transition: all 0.2s ease-out; |
| 416 | content: ' '; |
| 417 | cursor: pointer; |
| 418 | position: absolute; |
| 419 | height: 13px; |
| 420 | width: 13px; |
| 421 | border: 1px solid var(--mwai-headerButtonsColor); |
| 422 | } |
| 423 | |
| 424 | .mwai-window .mwai-header .mwai-buttons .mwai-resize-button:hover:before { |
| 425 | width: 16px; |
| 426 | height: 16px; |
| 427 | } |
| 428 | |
| 429 | .mwai-window .mwai-header .mwai-buttons .mwai-close-button { |
| 430 | justify-content: center; |
| 431 | height: 32px; |
| 432 | width: 33px; |
| 433 | cursor: pointer; |
| 434 | border-radius: var(--mwai-borderRadius); |
| 435 | } |
| 436 | |
| 437 | .mwai-window .mwai-header .mwai-buttons .mwai-close-button:before { |
| 438 | transition: all 0.2s ease-out; |
| 439 | transform: translate(16px, 5px) rotate(45deg); |
| 440 | } |
| 441 | |
| 442 | .mwai-window .mwai-header .mwai-buttons .mwai-close-button:after { |
| 443 | transition: all 0.2s ease-out; |
| 444 | transform: translate(16px, 5px) rotate(-45deg); |
| 445 | } |
| 446 | |
| 447 | .mwai-window .mwai-header .mwai-buttons .mwai-close-button:before, .mwai-window .mwai-header .mwai-buttons .mwai-close-button:after { |
| 448 | content: ' '; |
| 449 | cursor: pointer; |
| 450 | position: absolute; |
| 451 | height: 22px; |
| 452 | width: 1px; |
| 453 | background-color: var(--mwai-headerButtonsColor); |
| 454 | } |
| 455 | |
| 456 | .mwai-window .mwai-header .mwai-buttons .mwai-close-button:hover:before { |
| 457 | opacity: 1; |
| 458 | transform: translate(16px, 5px) rotate(135deg); |
| 459 | } |
| 460 | |
| 461 | .mwai-window .mwai-header .mwai-buttons .mwai-close-button:hover:after { |
| 462 | opacity: 1; |
| 463 | transform: translate(16px, 5px) rotate(45deg); |
| 464 | } |
| 465 | |
| 466 | .mwai-window .mwai-content { |
| 467 | display: none; |
| 468 | opacity: 0; |
| 469 | max-height: var(--mwai-maxHeight); |
| 470 | border-radius: 0 0 var(--mwai-borderRadius) var(--mwai-borderRadius); |
| 471 | overflow: hidden; |
| 472 | } |
| 473 | |
| 474 | .mwai-window.mwai-bottom-left { |
| 475 | bottom: 30px; |
| 476 | right: inherit; |
| 477 | left: 30px; |
| 478 | } |
| 479 | |
| 480 | .mwai-window.mwai-bottom-left .mwai-open-button { |
| 481 | right: inherit; |
| 482 | left: 0; |
| 483 | } |
| 484 | |
| 485 | .mwai-window.mwai-top-right { |
| 486 | top: 30px; |
| 487 | bottom: inherit; |
| 488 | right: 30px; |
| 489 | } |
| 490 | |
| 491 | .mwai-window.mwai-top-right .mwai-open-button { |
| 492 | top: 0; |
| 493 | bottom: inherit; |
| 494 | } |
| 495 | |
| 496 | .mwai-window.mwai-top-left { |
| 497 | top: 30px; |
| 498 | bottom: inherit; |
| 499 | right: inherit; |
| 500 | left: 30px; |
| 501 | } |
| 502 | |
| 503 | .mwai-window.mwai-top-left .mwai-open-button { |
| 504 | top: 0; |
| 505 | bottom: inherit; |
| 506 | right: inherit; |
| 507 | left: 0; |
| 508 | } |
| 509 | |
| 510 | .mwai-window.mwai-fullscreen .mwai-header .mwai-buttons { |
| 511 | margin-bottom: 0px; |
| 512 | } |
| 513 | |
| 514 | .mwai-window.mwai-fullscreen .mwai-header .mwai-buttons .mwai-resize-button:before { |
| 515 | width: 16px; |
| 516 | height: 16px; |
| 517 | } |
| 518 | |
| 519 | .mwai-window.mwai-fullscreen .mwai-header .mwai-buttons .mwai-resize-button:hover:before { |
| 520 | width: 13px; |
| 521 | height: 13px; |
| 522 | } |
| 523 | |
| 524 | .mwai-fullscreen:not(.mwai-window), .mwai-fullscreen.mwai-window.mwai-open { |
| 525 | position: fixed; |
| 526 | left: 0 !important; |
| 527 | right: 0 !important; |
| 528 | bottom: 0 !important; |
| 529 | top: 0 !important; |
| 530 | width: inherit; |
| 531 | height: inherit; |
| 532 | max-height: inherit; |
| 533 | max-width: inherit; |
| 534 | display: flex; |
| 535 | flex-direction: column; |
| 536 | margin: 0; |
| 537 | z-index: 999999; |
| 538 | background-color: var(--mwai-backgroundSecondaryColor); |
| 539 | } |
| 540 | |
| 541 | .mwai-fullscreen:not(.mwai-window) .mwai-content, .mwai-fullscreen.mwai-window.mwai-open .mwai-content { |
| 542 | height: 100%; |
| 543 | max-height: inherit; |
| 544 | } |
| 545 | |
| 546 | .mwai-fullscreen:not(.mwai-window) .mwai-content .mwai-conversation, .mwai-fullscreen.mwai-window.mwai-open .mwai-content .mwai-conversation { |
| 547 | flex: auto; |
| 548 | max-height: none; |
| 549 | } |
| 550 | |
| 551 | .mwai-window.mwai-open .mwai-header { |
| 552 | display: flex; |
| 553 | } |
| 554 | |
| 555 | .mwai-window.mwai-open .mwai-content { |
| 556 | display: flex; |
| 557 | transition: opacity 200ms ease-in-out 0s; |
| 558 | opacity: 1; |
| 559 | } |
| 560 | |
| 561 | .mwai-window.mwai-open .mwai-open-button { |
| 562 | display: none; |
| 563 | } |
| 564 | |
| 565 | @keyframes mwai-button-spinner { |
| 566 | from { |
| 567 | transform: rotate(0turn); |
| 568 | } |
| 569 | to { |
| 570 | transform: rotate(1turn); |
| 571 | } |
| 572 | } |
| 573 | |
| 574 | .admin-bar .mwai-fullscreen:not(.mwai-window), |
| 575 | .admin-bar .mwai-fullscreen.mwai-window.mwai-open { |
| 576 | top: 32px; |
| 577 | } |
| 578 | |
| 579 | @media (max-width: 760px) { |
| 580 | .mwai-chat.mwai-window { |
| 581 | left: 10px; |
| 582 | right: 10px; |
| 583 | bottom: 10px; |
| 584 | width: calc(100% - 20px); |
| 585 | z-index: 9999999999; |
| 586 | } |
| 587 | .mwai-chat .mwai-reply { |
| 588 | flex-direction: column; |
| 589 | } |
| 590 | .mwai-chat .mwai-input { |
| 591 | flex-direction: column; |
| 592 | } |
| 593 | } |
| 594 | |
| 595 | .mwai-copy-button { |
| 596 | opacity: 0; |
| 597 | transition: all 0.3s ease-out; |
| 598 | width: 22px; |
| 599 | height: 22px; |
| 600 | position: absolute; |
| 601 | right: var(--mwai-spacing); |
| 602 | } |
| 603 | |
| 604 | .mwai-copy-button .mwai-copy-button-one { |
| 605 | position: absolute; |
| 606 | width: 16px; |
| 607 | height: 16px; |
| 608 | margin-top: 0px; |
| 609 | margin-left: 0px; |
| 610 | background: white; |
| 611 | opacity: 0.4; |
| 612 | transition: all 0.2s ease-in; |
| 613 | cursor: pointer; |
| 614 | border-radius: 2px; |
| 615 | } |
| 616 | |
| 617 | .mwai-copy-button .mwai-copy-button-two { |
| 618 | position: absolute; |
| 619 | width: 16px; |
| 620 | height: 16px; |
| 621 | margin-top: 6px; |
| 622 | margin-left: 6px; |
| 623 | background: white; |
| 624 | opacity: 0.6; |
| 625 | transition: all 0.2s ease-in; |
| 626 | cursor: pointer; |
| 627 | border-radius: 2px; |
| 628 | } |
| 629 | |
| 630 | .mwai-copy-button:hover .mwai-copy-button-one { |
| 631 | opacity: 0.6; |
| 632 | margin-top: 0px; |
| 633 | margin-left: 6px; |
| 634 | } |
| 635 | |
| 636 | .mwai-copy-button:hover .mwai-copy-button-two { |
| 637 | opacity: 1; |
| 638 | margin-top: 6px; |
| 639 | margin-left: 0px; |
| 640 | } |
| 641 | |
| 642 | .mwai-copy-button.mwai-animate .mwai-copy-button-one { |
| 643 | opacity: 0; |
| 644 | } |
| 645 | |
| 646 | .mwai-copy-button.mwai-animate .mwai-copy-button-two { |
| 647 | width: 18px; |
| 648 | height: 18px; |
| 649 | margin-top: 2px; |
| 650 | margin-left: 2px; |
| 651 | opacity: 1; |
| 652 | } |
| 653 | |
| 654 | .mwai-chat .mwai-reply:hover .mwai-copy-button { |
| 655 | display: block; |
| 656 | opacity: 1; |
| 657 | } |
| 658 | |
| 659 | .mwai-chat pre code.hljs { |
| 660 | display: block; |
| 661 | overflow-x: auto; |
| 662 | padding: 1em; |
| 663 | } |
| 664 | |
| 665 | .mwai-chat code.hljs { |
| 666 | padding: 3px 5px; |
| 667 | } |
| 668 | |
| 669 | .mwai-chat .hljs { |
| 670 | color: #fff; |
| 671 | background: #1c1b1b; |
| 672 | } |
| 673 | |
| 674 | .mwai-chat .hljs-subst { |
| 675 | color: #fff; |
| 676 | } |
| 677 | |
| 678 | .mwai-chat .hljs-comment { |
| 679 | color: #999; |
| 680 | } |
| 681 | |
| 682 | .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 { |
| 683 | color: #88aece; |
| 684 | } |
| 685 | |
| 686 | .mwai-chat .hljs-attribute { |
| 687 | color: #c59bc1; |
| 688 | } |
| 689 | |
| 690 | .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 { |
| 691 | color: #f08d49; |
| 692 | } |
| 693 | |
| 694 | .mwai-chat .hljs-selector-class { |
| 695 | color: #88aece; |
| 696 | } |
| 697 | |
| 698 | .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 { |
| 699 | color: #b5bd68; |
| 700 | } |
| 701 | |
| 702 | .mwai-chat .hljs-meta, .mwai-chat .hljs-selector-pseudo { |
| 703 | color: #88aece; |
| 704 | } |
| 705 | |
| 706 | .mwai-chat .hljs-built_in, .mwai-chat .hljs-literal, .mwai-chat .hljs-title { |
| 707 | color: #f08d49; |
| 708 | } |
| 709 | |
| 710 | .mwai-chat .hljs-bullet, .mwai-chat .hljs-code { |
| 711 | color: #ccc; |
| 712 | } |
| 713 | |
| 714 | .mwai-chat .hljs-meta .hljs-string { |
| 715 | color: #b5bd68; |
| 716 | } |
| 717 | |
| 718 | .mwai-chat .hljs-deletion { |
| 719 | color: #de7176; |
| 720 | } |
| 721 | |
| 722 | .mwai-chat .hljs-addition { |
| 723 | color: #76c490; |
| 724 | } |
| 725 | |
| 726 | .mwai-chat .hljs-emphasis { |
| 727 | font-style: italic; |
| 728 | } |
| 729 | |
| 730 | .mwai-chat .hljs-strong { |
| 731 | font-weight: 700; |
| 732 | } |
| 733 | |
| 734 | @media (max-width: 760px) { |
| 735 | .mwai-chat .mwai-input button { |
| 736 | margin: 15px 0 0 0; |
| 737 | height: 40px; |
| 738 | width: inherit; |
| 739 | } |
| 740 | .mwai-chat .mwai-name { |
| 741 | margin-right: 0; |
| 742 | max-width: inherit; |
| 743 | } |
| 744 | } |
| 745 |