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