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