icons
2 years ago
sass
2 years ago
chatgpt.css
2 years ago
messages.css
2 years ago
timeless.css
2 years ago
messages.css
1115 lines
| 1 | .mwai-messages-theme { |
| 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-bubbleColor: #0084ff; |
| 14 | --mwai-headerButtonsColor: white; |
| 15 | --mwai-conversationsBackgroundColor: white; |
| 16 | --mwai-backgroundUserColor: #0084ff; |
| 17 | --mwai-backgroundAiColor: #eee; |
| 18 | --mwai-backgroundAiSecondaryColor: #ddd; |
| 19 | --mwai-errorBackgroundColor: #6d2f2a; |
| 20 | --mwai-errorTextColor: #FFFFFF; |
| 21 | } |
| 22 | |
| 23 | .mwai-messages-theme * { |
| 24 | box-sizing: border-box; |
| 25 | } |
| 26 | |
| 27 | .mwai-messages-theme .mwai-content { |
| 28 | display: flex; |
| 29 | background: var(--mwai-backgroundPrimaryColor); |
| 30 | font-size: var(--mwai-fontSize); |
| 31 | color: var(--mwai-fontColor); |
| 32 | border-radius: var(--mwai-borderRadius); |
| 33 | flex-direction: column; |
| 34 | } |
| 35 | |
| 36 | .mwai-messages-theme .mwai-shortcuts { |
| 37 | display: flex; |
| 38 | flex-direction: column; |
| 39 | align-items: flex-end; |
| 40 | } |
| 41 | |
| 42 | .mwai-messages-theme .mwai-shortcuts .mwai-shortcut { |
| 43 | margin-bottom: 5px; |
| 44 | font-size: var(--mwai-fontSize); |
| 45 | height: inherit; |
| 46 | min-height: inherit; |
| 47 | width: inherit; |
| 48 | min-width: 90px; |
| 49 | border-radius: var(--mwai-borderRadius); |
| 50 | padding: 7px 12px; |
| 51 | cursor: pointer; |
| 52 | display: flex; |
| 53 | align-items: center; |
| 54 | justify-content: end; |
| 55 | } |
| 56 | |
| 57 | .mwai-messages-theme .mwai-shortcuts .mwai-shortcut.mwai-success { |
| 58 | background: #4caf50; |
| 59 | color: white; |
| 60 | box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.15); |
| 61 | } |
| 62 | |
| 63 | .mwai-messages-theme .mwai-shortcuts .mwai-shortcut.mwai-danger { |
| 64 | background: #f44336; |
| 65 | color: white; |
| 66 | box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.15); |
| 67 | } |
| 68 | |
| 69 | .mwai-messages-theme .mwai-shortcuts .mwai-shortcut.mwai-warning { |
| 70 | background: #ff9800; |
| 71 | color: white; |
| 72 | box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.15); |
| 73 | } |
| 74 | |
| 75 | .mwai-messages-theme .mwai-shortcuts .mwai-shortcut.mwai-info { |
| 76 | background: #2196f3; |
| 77 | color: white; |
| 78 | box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.15); |
| 79 | } |
| 80 | |
| 81 | .mwai-messages-theme .mwai-shortcuts .mwai-shortcut .mwai-icon { |
| 82 | margin-right: 5px; |
| 83 | } |
| 84 | |
| 85 | .mwai-messages-theme .mwai-shortcuts .mwai-shortcut .mwai-icon img { |
| 86 | max-height: 16px; |
| 87 | width: auto; |
| 88 | } |
| 89 | |
| 90 | .mwai-messages-theme .mwai-shortcuts .mwai-shortcut:hover { |
| 91 | filter: brightness(1.1); |
| 92 | } |
| 93 | |
| 94 | .mwai-messages-theme .mwai-blocks { |
| 95 | display: flex; |
| 96 | flex-direction: column; |
| 97 | padding: var(--mwai-spacing); |
| 98 | } |
| 99 | |
| 100 | .mwai-messages-theme .mwai-blocks .mwai-block p:first-child { |
| 101 | margin-top: 0; |
| 102 | } |
| 103 | |
| 104 | .mwai-messages-theme .mwai-blocks button { |
| 105 | cursor: pointer; |
| 106 | } |
| 107 | |
| 108 | .mwai-messages-theme .mwai-conversation { |
| 109 | display: flex; |
| 110 | flex-direction: column; |
| 111 | overflow: auto; |
| 112 | max-height: var(--mwai-maxHeight); |
| 113 | padding: var(--mwai-spacing) var(--mwai-spacing) 0; |
| 114 | } |
| 115 | |
| 116 | .mwai-messages-theme .mwai-conversation .mwai-reply { |
| 117 | margin-bottom: var(--mwai-spacing); |
| 118 | padding: 7px 12px; |
| 119 | border-radius: 15px; |
| 120 | font-size: var(--mwai-fontSize); |
| 121 | color: var(--mwai-fontColor); |
| 122 | position: relative; |
| 123 | } |
| 124 | |
| 125 | .mwai-messages-theme .mwai-conversation .mwai-reply .mwai-name, |
| 126 | .mwai-messages-theme .mwai-conversation .mwai-reply .mwai-name-text { |
| 127 | display: none; |
| 128 | } |
| 129 | |
| 130 | .mwai-messages-theme .mwai-conversation .mwai-reply * > p:first-child { |
| 131 | margin-top: 0; |
| 132 | } |
| 133 | |
| 134 | .mwai-messages-theme .mwai-conversation .mwai-reply * > p:last-child { |
| 135 | margin-bottom: 0; |
| 136 | } |
| 137 | |
| 138 | .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-ai { |
| 139 | align-self: flex-start; |
| 140 | background: var(--mwai-backgroundAiColor); |
| 141 | margin-left: 5px; |
| 142 | } |
| 143 | |
| 144 | .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-ai::before, .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-ai::after { |
| 145 | content: ""; |
| 146 | position: absolute; |
| 147 | z-index: 1; |
| 148 | bottom: 0; |
| 149 | left: -10px; |
| 150 | width: 10px; |
| 151 | height: 20px; |
| 152 | background: var(--mwai-backgroundPrimaryColor); |
| 153 | border-bottom-right-radius: 10px; |
| 154 | } |
| 155 | |
| 156 | .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-ai::before { |
| 157 | z-index: 0; |
| 158 | left: -7px; |
| 159 | height: 20px; |
| 160 | width: 20px; |
| 161 | background: var(--mwai-backgroundAiColor); |
| 162 | border-bottom-right-radius: 15px; |
| 163 | } |
| 164 | |
| 165 | .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-user { |
| 166 | align-self: flex-end; |
| 167 | background: var(--mwai-backgroundUserColor); |
| 168 | color: white; |
| 169 | margin-right: 10px; |
| 170 | } |
| 171 | |
| 172 | .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-user::before, .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-user::after { |
| 173 | content: ""; |
| 174 | position: absolute; |
| 175 | z-index: 1; |
| 176 | bottom: 0; |
| 177 | right: -10px; |
| 178 | width: 10px; |
| 179 | height: 20px; |
| 180 | background: var(--mwai-backgroundPrimaryColor); |
| 181 | border-bottom-left-radius: 10px; |
| 182 | } |
| 183 | |
| 184 | .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-user::before { |
| 185 | z-index: 0; |
| 186 | right: -10px; |
| 187 | height: 20px; |
| 188 | width: 20px; |
| 189 | background: var(--mwai-backgroundUserColor); |
| 190 | background-attachment: fixed; |
| 191 | border-bottom-left-radius: 15px; |
| 192 | } |
| 193 | |
| 194 | .mwai-messages-theme .mwai-text { |
| 195 | flex: auto; |
| 196 | } |
| 197 | |
| 198 | .mwai-messages-theme .mwai-text .mwai-image { |
| 199 | display: block; |
| 200 | max-width: 250px; |
| 201 | height: auto; |
| 202 | margin: 0 0 10px 0; |
| 203 | border-radius: var(--mwai-borderRadius); |
| 204 | } |
| 205 | |
| 206 | .mwai-messages-theme .mwai-text .mwai-filename { |
| 207 | display: flex; |
| 208 | text-decoration: none; |
| 209 | border: 1px solid var(--mwai-backgroundPrimaryColor); |
| 210 | border-radius: var(--mwai-borderRadius); |
| 211 | color: white; |
| 212 | padding: 5px 10px; |
| 213 | margin-bottom: 10px; |
| 214 | } |
| 215 | |
| 216 | .mwai-messages-theme .mwai-text > span > p > *:first-child { |
| 217 | margin-top: 0; |
| 218 | } |
| 219 | |
| 220 | .mwai-messages-theme .mwai-text a { |
| 221 | color: #2196f3; |
| 222 | } |
| 223 | |
| 224 | .mwai-messages-theme .mwai-text h1 { |
| 225 | font-size: 200%; |
| 226 | } |
| 227 | |
| 228 | .mwai-messages-theme .mwai-text h2 { |
| 229 | font-size: 160%; |
| 230 | } |
| 231 | |
| 232 | .mwai-messages-theme .mwai-text h3 { |
| 233 | font-size: 140%; |
| 234 | } |
| 235 | |
| 236 | .mwai-messages-theme .mwai-text h4 { |
| 237 | font-size: 120%; |
| 238 | } |
| 239 | |
| 240 | .mwai-messages-theme .mwai-text p { |
| 241 | font-size: var(--mwai-fontSize); |
| 242 | line-height: var(--mwai-lineHeight); |
| 243 | } |
| 244 | |
| 245 | .mwai-messages-theme .mwai-text p code { |
| 246 | background: var(--mwai-backgroundAiSecondaryColor); |
| 247 | padding: 2px 6px; |
| 248 | border-radius: 8px; |
| 249 | font-size: calc(var(--mwai-fontSize) * 0.9); |
| 250 | font-family: system-ui; |
| 251 | } |
| 252 | |
| 253 | .mwai-messages-theme .mwai-text pre { |
| 254 | color: var(--mwai-fontColor); |
| 255 | border-radius: var(--mwai-borderRadius); |
| 256 | break-after: auto; |
| 257 | white-space: pre-wrap; |
| 258 | max-width: 100%; |
| 259 | width: 100%; |
| 260 | font-family: system-ui; |
| 261 | background: var(--mwai-backgroundAiSecondaryColor); |
| 262 | padding: var(--mwai-spacing); |
| 263 | } |
| 264 | |
| 265 | .mwai-messages-theme .mwai-text pre code { |
| 266 | padding: 0 !important; |
| 267 | font-family: system-ui; |
| 268 | background: var(--mwai-backgroundAiSecondaryColor); |
| 269 | } |
| 270 | |
| 271 | .mwai-messages-theme .mwai-text ol { |
| 272 | padding: 0; |
| 273 | margin: 0 0 0 20px; |
| 274 | } |
| 275 | |
| 276 | .mwai-messages-theme .mwai-text table { |
| 277 | width: 100%; |
| 278 | border: 2px solid var(--mwai-backgroundAiSecondaryColor); |
| 279 | border-collapse: collapse; |
| 280 | } |
| 281 | |
| 282 | .mwai-messages-theme .mwai-text thead { |
| 283 | background: var(--mwai-backgroundAiSecondaryColor); |
| 284 | } |
| 285 | |
| 286 | .mwai-messages-theme .mwai-text tr, |
| 287 | .mwai-messages-theme .mwai-text td { |
| 288 | padding: 2px 5px; |
| 289 | } |
| 290 | |
| 291 | .mwai-messages-theme .mwai-text td { |
| 292 | border: 2px solid var(--mwai-backgroundAiSecondaryColor); |
| 293 | } |
| 294 | |
| 295 | .mwai-messages-theme .mwai-text .mwai-typewriter { |
| 296 | display: inline-block; |
| 297 | } |
| 298 | |
| 299 | .mwai-messages-theme .mwai-text .mwai-typewriter > :first-child { |
| 300 | margin-top: 0; |
| 301 | } |
| 302 | |
| 303 | .mwai-messages-theme .mwai-text > *:first-child { |
| 304 | margin-top: 0; |
| 305 | } |
| 306 | |
| 307 | .mwai-messages-theme .mwai-text > *:last-child { |
| 308 | margin-bottom: 0; |
| 309 | } |
| 310 | |
| 311 | .mwai-messages-theme .mwai-input { |
| 312 | display: flex; |
| 313 | align-items: center; |
| 314 | padding: var(--mwai-spacing); |
| 315 | } |
| 316 | |
| 317 | .mwai-messages-theme .mwai-input .mwai-input-text { |
| 318 | flex: auto; |
| 319 | position: relative; |
| 320 | display: flex; |
| 321 | background: var(--mwai-backgroundPrimaryColor); |
| 322 | border-radius: var(--mwai-borderRadius); |
| 323 | border: 1px solid var(--mwai-backgroundAiSecondaryColor); |
| 324 | overflow: hidden; |
| 325 | } |
| 326 | |
| 327 | .mwai-messages-theme .mwai-input .mwai-input-text.mwai-blocked img { |
| 328 | filter: grayscale(100%); |
| 329 | opacity: 0.5; |
| 330 | } |
| 331 | |
| 332 | .mwai-messages-theme .mwai-input .mwai-input-text.mwai-dragging { |
| 333 | border: 1px dashed var(--mwai-backgroundAiSecondaryColor); |
| 334 | } |
| 335 | |
| 336 | .mwai-messages-theme .mwai-input .mwai-input-text textarea { |
| 337 | background: var(--mwai-backgroundPrimaryColor); |
| 338 | color: var(--mwai-fontColor); |
| 339 | flex: auto; |
| 340 | padding: var(--mwai-spacing); |
| 341 | border: none; |
| 342 | font-size: var(--mwai-fontSize); |
| 343 | resize: none; |
| 344 | font-family: inherit; |
| 345 | margin: 0; |
| 346 | overflow: hidden; |
| 347 | min-height: inherit; |
| 348 | } |
| 349 | |
| 350 | .mwai-messages-theme .mwai-input .mwai-input-text textarea:focus { |
| 351 | outline: none; |
| 352 | box-shadow: none; |
| 353 | } |
| 354 | |
| 355 | .mwai-messages-theme .mwai-input .mwai-input-text textarea::placeholder { |
| 356 | color: var(--mwai-fontColor); |
| 357 | opacity: 0.5; |
| 358 | } |
| 359 | |
| 360 | .mwai-messages-theme .mwai-input .mwai-input-text .mwai-microphone { |
| 361 | width: 32px; |
| 362 | height: 32px; |
| 363 | } |
| 364 | |
| 365 | .mwai-messages-theme .mwai-input .mwai-input-text .mwai-microphone svg { |
| 366 | width: 32px; |
| 367 | height: 32px; |
| 368 | fill: var(--mwai-fontColor); |
| 369 | opacity: 0.5; |
| 370 | filter: grayscale(100%); |
| 371 | transition: opacity 0.3s ease-out; |
| 372 | padding: 5px 10px; |
| 373 | cursor: pointer; |
| 374 | } |
| 375 | |
| 376 | .mwai-messages-theme .mwai-input .mwai-input-text .mwai-microphone[active=true] svg { |
| 377 | opacity: 1; |
| 378 | } |
| 379 | |
| 380 | .mwai-messages-theme .mwai-input .mwai-input-text .mwai-microphone[disabled] svg { |
| 381 | opacity: 0; |
| 382 | cursor: not-allowed; |
| 383 | } |
| 384 | |
| 385 | .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon { |
| 386 | background: url("icons/white-icons.svg"); |
| 387 | background-size: 500%; |
| 388 | background-position: 0px -96px; |
| 389 | width: 32px; |
| 390 | height: 32px; |
| 391 | margin-top: calc(var(--mwai-spacing) / 2); |
| 392 | margin-left: 5px; |
| 393 | z-index: 100; |
| 394 | } |
| 395 | |
| 396 | .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-idle-add { |
| 397 | background-position: -32px -96px; |
| 398 | } |
| 399 | |
| 400 | .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-image-add { |
| 401 | background-position: -32px 0px; |
| 402 | } |
| 403 | |
| 404 | .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-image-up { |
| 405 | background-position: -64px 0px; |
| 406 | } |
| 407 | |
| 408 | .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-image-del { |
| 409 | background-position: -96px 0px; |
| 410 | } |
| 411 | |
| 412 | .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-image-ok { |
| 413 | background-position: -128px 0px; |
| 414 | } |
| 415 | |
| 416 | .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-document-add { |
| 417 | background-position: -32px -64px; |
| 418 | } |
| 419 | |
| 420 | .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-document-up { |
| 421 | background-position: -64px -64px; |
| 422 | } |
| 423 | |
| 424 | .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-document-del { |
| 425 | background-position: -96px -64px; |
| 426 | } |
| 427 | |
| 428 | .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-document-ok { |
| 429 | background-position: -128px -64px; |
| 430 | } |
| 431 | |
| 432 | .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon .mwai-file-upload-progress { |
| 433 | position: absolute; |
| 434 | font-size: 8px; |
| 435 | width: 21px; |
| 436 | top: 24px; |
| 437 | left: 23px; |
| 438 | overflow: hidden; |
| 439 | text-align: center; |
| 440 | font-weight: bold; |
| 441 | color: white; |
| 442 | } |
| 443 | |
| 444 | .mwai-messages-theme .mwai-input .mwai-input-submit { |
| 445 | width: 110px; |
| 446 | } |
| 447 | |
| 448 | .mwai-messages-theme button { |
| 449 | margin-left: var(--mwai-spacing); |
| 450 | padding: 5px 15px; |
| 451 | background-color: var(--mwai-backgroundUserColor); |
| 452 | color: white; |
| 453 | border: none; |
| 454 | border-radius: var(--mwai-borderRadius); |
| 455 | cursor: pointer; |
| 456 | height: 32px; |
| 457 | display: flex; |
| 458 | justify-content: center; |
| 459 | align-items: center; |
| 460 | } |
| 461 | |
| 462 | .mwai-messages-theme button .mwai-timer { |
| 463 | margin-left: 5px; |
| 464 | margin-right: 5px; |
| 465 | font-size: 11px; |
| 466 | } |
| 467 | |
| 468 | .mwai-messages-theme button:hover { |
| 469 | filter: brightness(1.2); |
| 470 | } |
| 471 | |
| 472 | .mwai-messages-theme button[disabled] { |
| 473 | cursor: not-allowed; |
| 474 | } |
| 475 | |
| 476 | .mwai-messages-theme button[disabled] span { |
| 477 | opacity: 0.5; |
| 478 | } |
| 479 | |
| 480 | .mwai-messages-theme button[disabled].mwai-busy span { |
| 481 | display: none; |
| 482 | } |
| 483 | |
| 484 | .mwai-messages-theme button[disabled].mwai-busy:before { |
| 485 | content: ''; |
| 486 | width: 18px; |
| 487 | height: 18px; |
| 488 | margin: auto; |
| 489 | border: 3px solid transparent; |
| 490 | border-top-color: var(--mwai-fontColor); |
| 491 | border-radius: 50%; |
| 492 | animation: mwai-button-spinner 1s ease infinite; |
| 493 | } |
| 494 | |
| 495 | .mwai-messages-theme .mwai-compliance { |
| 496 | opacity: 0.50; |
| 497 | margin-top: calc(-1 * var(--mwai-spacing)); |
| 498 | padding: calc(var(--mwai-spacing) / 1.5) var(--mwai-spacing); |
| 499 | font-size: smaller; |
| 500 | color: var(--mwai-fontColor); |
| 501 | text-align: left; |
| 502 | } |
| 503 | |
| 504 | .mwai-messages-theme .mwai-gallery { |
| 505 | display: grid; |
| 506 | grid-template-columns: repeat(3, 1fr); |
| 507 | grid-gap: 5px; |
| 508 | } |
| 509 | |
| 510 | .mwai-messages-theme .mwai-gallery img { |
| 511 | width: 100%; |
| 512 | } |
| 513 | |
| 514 | .mwai-messages-theme.mwai-discussions { |
| 515 | border-radius: var(--mwai-borderRadius); |
| 516 | background: var(--mwai-conversationsBackgroundColor); |
| 517 | color: var(--mwai-backgroundPrimaryColor); |
| 518 | overflow: hidden; |
| 519 | } |
| 520 | |
| 521 | .mwai-messages-theme.mwai-discussions * { |
| 522 | box-sizing: border-box; |
| 523 | } |
| 524 | |
| 525 | .mwai-messages-theme.mwai-discussions .mwai-header { |
| 526 | background: var(--mwai-backgroundAiSecondaryColor); |
| 527 | padding: var(--mwai-spacing); |
| 528 | display: flex; |
| 529 | justify-content: space-between; |
| 530 | align-items: center; |
| 531 | } |
| 532 | |
| 533 | .mwai-messages-theme.mwai-discussions .mwai-content { |
| 534 | background: var(--mwai-conversationsBackgroundColor); |
| 535 | list-style: none; |
| 536 | padding: 0; |
| 537 | margin: 0; |
| 538 | } |
| 539 | |
| 540 | .mwai-messages-theme.mwai-discussions .mwai-content li { |
| 541 | margin-left: calc(var(--mwai-spacing) / 2); |
| 542 | margin-right: calc(var(--mwai-spacing) / 2); |
| 543 | margin-bottom: calc(var(--mwai-spacing) / 2); |
| 544 | color: var(--mwai-conversationsTextColor); |
| 545 | font-size: 75%; |
| 546 | padding: calc(var(--mwai-spacing) / 2); |
| 547 | opacity: 0.65; |
| 548 | } |
| 549 | |
| 550 | .mwai-messages-theme.mwai-discussions .mwai-content li.mwai-active, .mwai-messages-theme.mwai-discussions .mwai-content li:hover { |
| 551 | color: var(--mwai-backgroundPrimaryColor); |
| 552 | background: var(--mwai-backgroundHeaderColor); |
| 553 | border-radius: var(--mwai-borderRadius); |
| 554 | opacity: 1; |
| 555 | cursor: pointer; |
| 556 | } |
| 557 | |
| 558 | .mwai-messages-theme.mwai-discussions .mwai-content li:first-child { |
| 559 | margin-top: calc(var(--mwai-spacing) / 2); |
| 560 | } |
| 561 | |
| 562 | .mwai-messages-theme.mwai-discussions button { |
| 563 | margin-left: 0; |
| 564 | } |
| 565 | |
| 566 | .mwai-messages-theme.mwai-transition, .mwai-messages-theme .mwai-transition { |
| 567 | opacity: 0; |
| 568 | transition: opacity 350ms ease-in-out; |
| 569 | } |
| 570 | |
| 571 | .mwai-messages-theme.mwai-transition-visible, .mwai-messages-theme .mwai-transition-visible { |
| 572 | opacity: 1; |
| 573 | } |
| 574 | |
| 575 | .mwai-messages-theme .mwai-text { |
| 576 | overflow-wrap: anywhere; |
| 577 | } |
| 578 | |
| 579 | .mwai-messages-theme .mwai-text img { |
| 580 | max-width: 100%; |
| 581 | } |
| 582 | |
| 583 | .mwai-messages-theme .mwai-text div p:first-child { |
| 584 | margin-top: 0; |
| 585 | } |
| 586 | |
| 587 | .mwai-messages-theme .mwai-text div p:last-child { |
| 588 | margin-bottom: 0; |
| 589 | } |
| 590 | |
| 591 | .mwai-messages-theme .mwai-trigger { |
| 592 | position: absolute; |
| 593 | right: 0; |
| 594 | bottom: 0; |
| 595 | transition: all 0.2s ease-out; |
| 596 | z-index: 9999; |
| 597 | display: flex; |
| 598 | flex-direction: column; |
| 599 | align-items: end; |
| 600 | } |
| 601 | |
| 602 | .mwai-messages-theme .mwai-trigger .mwai-icon-text-container { |
| 603 | display: flex; |
| 604 | flex-direction: column; |
| 605 | align-items: flex-end; |
| 606 | } |
| 607 | |
| 608 | .mwai-messages-theme .mwai-trigger .mwai-icon-text-container .mwai-icon-text { |
| 609 | background: var(--mwai-iconTextBackgroundColor); |
| 610 | color: var(--mwai-iconTextColor); |
| 611 | box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15); |
| 612 | max-width: 200px; |
| 613 | font-size: 13px; |
| 614 | margin-bottom: 15px; |
| 615 | padding: 10px 15px; |
| 616 | border-radius: 8px; |
| 617 | } |
| 618 | |
| 619 | .mwai-messages-theme .mwai-trigger .mwai-icon-text-container .mwai-icon-text-close { |
| 620 | color: var(--mwai-iconTextColor); |
| 621 | background: var(--mwai-iconTextBackgroundColor); |
| 622 | padding: 5px; |
| 623 | width: 20px; |
| 624 | height: 20px; |
| 625 | border-radius: 100%; |
| 626 | display: none; |
| 627 | justify-content: center; |
| 628 | align-items: center; |
| 629 | margin-bottom: 3px; |
| 630 | } |
| 631 | |
| 632 | .mwai-messages-theme .mwai-trigger .mwai-icon-text-container:hover { |
| 633 | cursor: pointer; |
| 634 | } |
| 635 | |
| 636 | .mwai-messages-theme .mwai-trigger .mwai-icon-text-container:hover .mwai-icon-text-close { |
| 637 | display: flex; |
| 638 | font-size: 12px; |
| 639 | } |
| 640 | |
| 641 | .mwai-messages-theme .mwai-trigger .mwai-icon-text-container:hover .mwai-icon-text-close:hover { |
| 642 | filter: brightness(1.2); |
| 643 | } |
| 644 | |
| 645 | @media (max-width: 760px) { |
| 646 | .mwai-messages-theme .mwai-trigger .mwai-icon-text-container .mwai-icon-text-close { |
| 647 | display: flex; |
| 648 | } |
| 649 | } |
| 650 | |
| 651 | .mwai-messages-theme .mwai-trigger .mwai-icon-container .mwai-icon { |
| 652 | filter: drop-shadow(0px 0px 15px rgba(0, 0, 0, 0.15)); |
| 653 | transition: all 0.2s ease-out; |
| 654 | } |
| 655 | |
| 656 | .mwai-messages-theme .mwai-trigger .mwai-icon-container .mwai-icon:hover { |
| 657 | cursor: pointer; |
| 658 | transform: scale(1.05); |
| 659 | } |
| 660 | |
| 661 | .mwai-messages-theme.mwai-window { |
| 662 | position: fixed; |
| 663 | right: 30px; |
| 664 | bottom: 30px; |
| 665 | width: var(--mwai-width); |
| 666 | z-index: 9999; |
| 667 | } |
| 668 | |
| 669 | .mwai-messages-theme.mwai-window .mwai-header { |
| 670 | display: none; |
| 671 | justify-content: flex-end; |
| 672 | align-items: center; |
| 673 | border-radius: var(--mwai-borderRadius) var(--mwai-borderRadius) 0 0; |
| 674 | background: var(--mwai-backgroundHeaderColor); |
| 675 | } |
| 676 | |
| 677 | .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons { |
| 678 | display: flex; |
| 679 | align-items: center; |
| 680 | } |
| 681 | |
| 682 | .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button { |
| 683 | justify-content: center; |
| 684 | height: 32px; |
| 685 | width: 22px; |
| 686 | cursor: pointer; |
| 687 | display: flex; |
| 688 | justify-content: center; |
| 689 | align-items: center; |
| 690 | } |
| 691 | |
| 692 | .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button:before { |
| 693 | transition: all 0.2s ease-out; |
| 694 | content: ' '; |
| 695 | cursor: pointer; |
| 696 | position: absolute; |
| 697 | height: 13px; |
| 698 | width: 13px; |
| 699 | border: 1px solid var(--mwai-headerButtonsColor); |
| 700 | } |
| 701 | |
| 702 | .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button:hover:before { |
| 703 | width: 16px; |
| 704 | height: 16px; |
| 705 | } |
| 706 | |
| 707 | .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button { |
| 708 | justify-content: center; |
| 709 | height: 32px; |
| 710 | width: 33px; |
| 711 | cursor: pointer; |
| 712 | border-radius: var(--mwai-borderRadius); |
| 713 | } |
| 714 | |
| 715 | .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:before { |
| 716 | transition: all 0.2s ease-out; |
| 717 | transform: translate(16px, 5px) rotate(45deg); |
| 718 | } |
| 719 | |
| 720 | .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:after { |
| 721 | transition: all 0.2s ease-out; |
| 722 | transform: translate(16px, 5px) rotate(-45deg); |
| 723 | } |
| 724 | |
| 725 | .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:before, .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:after { |
| 726 | content: ' '; |
| 727 | cursor: pointer; |
| 728 | position: absolute; |
| 729 | height: 22px; |
| 730 | width: 1px; |
| 731 | background-color: var(--mwai-headerButtonsColor); |
| 732 | } |
| 733 | |
| 734 | .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:hover:before { |
| 735 | opacity: 1; |
| 736 | transform: translate(16px, 5px) rotate(135deg); |
| 737 | } |
| 738 | |
| 739 | .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:hover:after { |
| 740 | opacity: 1; |
| 741 | transform: translate(16px, 5px) rotate(45deg); |
| 742 | } |
| 743 | |
| 744 | .mwai-messages-theme.mwai-window .mwai-content { |
| 745 | display: none; |
| 746 | opacity: 0; |
| 747 | max-height: var(--mwai-maxHeight); |
| 748 | border-radius: 0 0 var(--mwai-borderRadius) var(--mwai-borderRadius); |
| 749 | } |
| 750 | |
| 751 | .mwai-messages-theme.mwai-window.mwai-bottom-left { |
| 752 | bottom: 30px; |
| 753 | right: inherit; |
| 754 | left: 30px; |
| 755 | } |
| 756 | |
| 757 | .mwai-messages-theme.mwai-window.mwai-bottom-left .mwai-trigger { |
| 758 | right: inherit; |
| 759 | left: 0; |
| 760 | } |
| 761 | |
| 762 | .mwai-messages-theme.mwai-window.mwai-top-right { |
| 763 | top: 30px; |
| 764 | bottom: inherit; |
| 765 | right: 30px; |
| 766 | } |
| 767 | |
| 768 | .mwai-messages-theme.mwai-window.mwai-top-right .mwai-trigger { |
| 769 | top: 0; |
| 770 | bottom: inherit; |
| 771 | } |
| 772 | |
| 773 | .mwai-messages-theme.mwai-window.mwai-top-left { |
| 774 | top: 30px; |
| 775 | bottom: inherit; |
| 776 | right: inherit; |
| 777 | left: 30px; |
| 778 | } |
| 779 | |
| 780 | .mwai-messages-theme.mwai-window.mwai-top-left .mwai-trigger { |
| 781 | top: 0; |
| 782 | bottom: inherit; |
| 783 | right: inherit; |
| 784 | left: 0; |
| 785 | } |
| 786 | |
| 787 | .mwai-messages-theme.mwai-window.mwai-top-left .mwai-trigger, .mwai-messages-theme.mwai-window.mwai-bottom-left .mwai-trigger { |
| 788 | align-items: flex-start; |
| 789 | } |
| 790 | |
| 791 | .mwai-messages-theme.mwai-window.mwai-top-right .mwai-trigger, .mwai-messages-theme.mwai-window.mwai-top-left .mwai-trigger { |
| 792 | flex-direction: column-reverse; |
| 793 | } |
| 794 | |
| 795 | .mwai-messages-theme.mwai-window.mwai-top-right .mwai-trigger .mwai-icon-text, .mwai-messages-theme.mwai-window.mwai-top-left .mwai-trigger .mwai-icon-text { |
| 796 | margin-bottom: 0; |
| 797 | margin-top: 15px; |
| 798 | } |
| 799 | |
| 800 | .mwai-messages-theme.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons { |
| 801 | margin-bottom: 0px; |
| 802 | } |
| 803 | |
| 804 | .mwai-messages-theme.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons .mwai-resize-button:before { |
| 805 | width: 16px; |
| 806 | height: 16px; |
| 807 | } |
| 808 | |
| 809 | .mwai-messages-theme.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons .mwai-resize-button:hover:before { |
| 810 | width: 13px; |
| 811 | height: 13px; |
| 812 | } |
| 813 | |
| 814 | .mwai-messages-theme.mwai-fullscreen:not(.mwai-window), .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open { |
| 815 | position: fixed; |
| 816 | left: 0 !important; |
| 817 | right: 0 !important; |
| 818 | bottom: 0 !important; |
| 819 | top: 0 !important; |
| 820 | width: inherit; |
| 821 | height: inherit; |
| 822 | max-height: inherit; |
| 823 | max-width: inherit; |
| 824 | display: flex; |
| 825 | flex-direction: column; |
| 826 | margin: 0; |
| 827 | z-index: 999999; |
| 828 | background-color: var(--mwai-backgroundSecondaryColor); |
| 829 | } |
| 830 | |
| 831 | .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-header, .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-header { |
| 832 | border-radius: 0; |
| 833 | } |
| 834 | |
| 835 | .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-content, .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-content { |
| 836 | height: 100%; |
| 837 | max-height: inherit; |
| 838 | border-radius: 0; |
| 839 | } |
| 840 | |
| 841 | .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-content .mwai-conversation, .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-content .mwai-conversation { |
| 842 | flex: auto; |
| 843 | max-height: none; |
| 844 | } |
| 845 | |
| 846 | .mwai-messages-theme.mwai-window.mwai-open .mwai-header { |
| 847 | display: flex; |
| 848 | } |
| 849 | |
| 850 | .mwai-messages-theme.mwai-window.mwai-open .mwai-content { |
| 851 | display: flex; |
| 852 | transition: opacity 200ms ease-in-out 0s; |
| 853 | opacity: 1; |
| 854 | } |
| 855 | |
| 856 | .mwai-messages-theme.mwai-window.mwai-open .mwai-trigger { |
| 857 | display: none; |
| 858 | } |
| 859 | |
| 860 | .mwai-messages-theme .mwai-error { |
| 861 | margin: var(--mwai-spacing); |
| 862 | color: white; |
| 863 | background: rgba(180, 55, 55, 0.55); |
| 864 | padding: var(--mwai-spacing); |
| 865 | border-radius: var(--mwai-borderRadius); |
| 866 | } |
| 867 | |
| 868 | .mwai-messages-theme .mwai-error:hover { |
| 869 | cursor: pointer; |
| 870 | background: rgba(180, 44, 44, 0.85); |
| 871 | } |
| 872 | |
| 873 | .mwai-messages-theme.mwai-bubble .mwai-icon-container { |
| 874 | background: var(--mwai-bubbleColor); |
| 875 | width: 60px; |
| 876 | height: 60px; |
| 877 | border-radius: 100%; |
| 878 | transition: all 0.2s ease-out; |
| 879 | display: flex; |
| 880 | justify-content: center; |
| 881 | align-items: center; |
| 882 | } |
| 883 | |
| 884 | .mwai-messages-theme.mwai-bubble .mwai-icon-container .mwai-icon { |
| 885 | max-width: 50%; |
| 886 | max-height: 50%; |
| 887 | filter: none; |
| 888 | } |
| 889 | |
| 890 | .mwai-messages-theme.mwai-bubble .mwai-icon-container .mwai-icon:hover { |
| 891 | transform: none; |
| 892 | } |
| 893 | |
| 894 | .mwai-messages-theme.mwai-bubble .mwai-icon-container .mwai-emoji { |
| 895 | font-size: 30px !important; |
| 896 | } |
| 897 | |
| 898 | .mwai-messages-theme.mwai-bubble .mwai-icon-container:hover { |
| 899 | cursor: pointer; |
| 900 | filter: brightness(1.1); |
| 901 | } |
| 902 | |
| 903 | @media (max-width: 760px) { |
| 904 | .mwai-messages-theme.mwai-window.mwai-open { |
| 905 | position: fixed; |
| 906 | left: 0 !important; |
| 907 | right: 0 !important; |
| 908 | bottom: 0 !important; |
| 909 | top: 0 !important; |
| 910 | width: inherit; |
| 911 | height: inherit; |
| 912 | max-height: inherit; |
| 913 | max-width: inherit; |
| 914 | display: flex; |
| 915 | flex-direction: column; |
| 916 | margin: 0; |
| 917 | z-index: 999999; |
| 918 | background-color: var(--mwai-backgroundSecondaryColor); |
| 919 | } |
| 920 | .mwai-messages-theme.mwai-window.mwai-open .mwai-header { |
| 921 | border-radius: 0; |
| 922 | } |
| 923 | .mwai-messages-theme.mwai-window.mwai-open .mwai-content { |
| 924 | height: 100%; |
| 925 | max-height: inherit; |
| 926 | border-radius: 0; |
| 927 | } |
| 928 | .mwai-messages-theme.mwai-window.mwai-open .mwai-content .mwai-conversation { |
| 929 | flex: auto; |
| 930 | max-height: none; |
| 931 | } |
| 932 | .mwai-messages-theme.mwai-window.mwai-open .mwai-input { |
| 933 | flex-direction: column; |
| 934 | } |
| 935 | .mwai-messages-theme.mwai-window.mwai-open .mwai-input button { |
| 936 | font-size: 16px; |
| 937 | margin-left: 0; |
| 938 | width: 100%; |
| 939 | } |
| 940 | .mwai-messages-theme.mwai-window.mwai-open .mwai-input .mwai-input-text { |
| 941 | width: 100%; |
| 942 | } |
| 943 | .mwai-messages-theme.mwai-window.mwai-open .mwai-input .mwai-input-text input, .mwai-messages-theme.mwai-window.mwai-open .mwai-input .mwai-input-text textarea { |
| 944 | font-size: 16px; |
| 945 | } |
| 946 | .mwai-messages-theme.mwai-window.mwai-open .mwai-content { |
| 947 | display: flex; |
| 948 | transition: opacity 200ms ease-in-out 0s; |
| 949 | opacity: 1; |
| 950 | height: 100%; |
| 951 | max-height: inherit; |
| 952 | } |
| 953 | .mwai-messages-theme.mwai-window.mwai-open .mwai-content .mwai-conversation { |
| 954 | flex: auto; |
| 955 | max-height: none; |
| 956 | } |
| 957 | .mwai-messages-theme.mwai-window.mwai-open .mwai-resize-button { |
| 958 | display: none !important; |
| 959 | } |
| 960 | .mwai-messages-theme.mwai-window.mwai-open .mwai-trigger { |
| 961 | display: none; |
| 962 | } |
| 963 | } |
| 964 | |
| 965 | @keyframes mwai-button-spinner { |
| 966 | from { |
| 967 | transform: rotate(0turn); |
| 968 | } |
| 969 | to { |
| 970 | transform: rotate(1turn); |
| 971 | } |
| 972 | } |
| 973 | |
| 974 | .mwai-messages-theme .admin-bar .mwai-fullscreen:not(.mwai-window), |
| 975 | .mwai-messages-theme .admin-bar .mwai-fullscreen.mwai-window.mwai-open { |
| 976 | top: 32px; |
| 977 | } |
| 978 | |
| 979 | .mwai-messages-theme pre code.hljs { |
| 980 | display: block; |
| 981 | overflow-x: auto; |
| 982 | padding: 1em; |
| 983 | } |
| 984 | |
| 985 | .mwai-messages-theme code.hljs { |
| 986 | padding: 3px 5px; |
| 987 | } |
| 988 | |
| 989 | .mwai-messages-theme .hljs { |
| 990 | color: #333; |
| 991 | background: #f0f0f0; |
| 992 | } |
| 993 | |
| 994 | .mwai-messages-theme .hljs-subst { |
| 995 | color: #333; |
| 996 | } |
| 997 | |
| 998 | .mwai-messages-theme .hljs-comment { |
| 999 | color: #888; |
| 1000 | } |
| 1001 | |
| 1002 | .mwai-messages-theme .hljs-attr, .mwai-messages-theme .hljs-doctag, .mwai-messages-theme .hljs-keyword, .mwai-messages-theme .hljs-meta .hljs-keyword, .mwai-messages-theme .hljs-section, .mwai-messages-theme .hljs-selector-tag { |
| 1003 | color: #0077cc; |
| 1004 | } |
| 1005 | |
| 1006 | .mwai-messages-theme .hljs-attribute { |
| 1007 | color: #aa3377; |
| 1008 | } |
| 1009 | |
| 1010 | .mwai-messages-theme .hljs-name, .mwai-messages-theme .hljs-number, .mwai-messages-theme .hljs-quote, .mwai-messages-theme .hljs-selector-id, .mwai-messages-theme .hljs-template-tag, .mwai-messages-theme .hljs-type { |
| 1011 | color: #c18401; |
| 1012 | } |
| 1013 | |
| 1014 | .mwai-messages-theme .hljs-selector-class { |
| 1015 | color: #0077cc; |
| 1016 | } |
| 1017 | |
| 1018 | .mwai-messages-theme .hljs-link, .mwai-messages-theme .hljs-regexp, .mwai-messages-theme .hljs-selector-attr, .mwai-messages-theme .hljs-string, .mwai-messages-theme .hljs-symbol, .mwai-messages-theme .hljs-template-variable, .mwai-messages-theme .hljs-variable { |
| 1019 | color: #689700; |
| 1020 | } |
| 1021 | |
| 1022 | .mwai-messages-theme .hljs-meta, .mwai-messages-theme .hljs-selector-pseudo { |
| 1023 | color: #0077cc; |
| 1024 | } |
| 1025 | |
| 1026 | .mwai-messages-theme .hljs-built_in, .mwai-messages-theme .hljs-literal, .mwai-messages-theme .hljs-title { |
| 1027 | color: #c18401; |
| 1028 | } |
| 1029 | |
| 1030 | .mwai-messages-theme .hljs-bullet, .mwai-messages-theme .hljs-code { |
| 1031 | color: #555; |
| 1032 | } |
| 1033 | |
| 1034 | .mwai-messages-theme .hljs-meta .hljs-string { |
| 1035 | color: #689700; |
| 1036 | } |
| 1037 | |
| 1038 | .mwai-messages-theme .hljs-deletion { |
| 1039 | color: #b71c1c; |
| 1040 | } |
| 1041 | |
| 1042 | .mwai-messages-theme .hljs-addition { |
| 1043 | color: #1b5e20; |
| 1044 | } |
| 1045 | |
| 1046 | .mwai-messages-theme .hljs-emphasis { |
| 1047 | font-style: italic; |
| 1048 | } |
| 1049 | |
| 1050 | .mwai-messages-theme .hljs-strong { |
| 1051 | font-weight: 700; |
| 1052 | } |
| 1053 | |
| 1054 | .mwai-messages-theme .mwai-reply-actions { |
| 1055 | position: absolute; |
| 1056 | border-radius: 5px; |
| 1057 | top: 10px; |
| 1058 | right: 10px; |
| 1059 | display: flex; |
| 1060 | align-items: center; |
| 1061 | padding: 2px 2px; |
| 1062 | z-index: 100; |
| 1063 | background: var(--mwai-backgroundPrimaryColor); |
| 1064 | box-shadow: 0 0 8px rgba(0, 0, 0, 0.25); |
| 1065 | z-index: 100; |
| 1066 | } |
| 1067 | |
| 1068 | .mwai-messages-theme .mwai-reply-actions .mwai-copy-button { |
| 1069 | fill: var(--mwai-fontColor); |
| 1070 | padding: 3px 5px; |
| 1071 | width: 24px; |
| 1072 | height: 24px; |
| 1073 | background: var(--mwai-backgroundPrimaryColor); |
| 1074 | cursor: pointer; |
| 1075 | border-radius: 5px; |
| 1076 | } |
| 1077 | |
| 1078 | .mwai-messages-theme .mwai-reply-actions .mwai-copy-button:hover { |
| 1079 | filter: brightness(1.2); |
| 1080 | } |
| 1081 | |
| 1082 | .mwai-messages-theme .mwai-reply-actions.mwai-hidden { |
| 1083 | opacity: 0; |
| 1084 | } |
| 1085 | |
| 1086 | .mwai-messages-theme .mwai-reply-actions { |
| 1087 | top: 5px; |
| 1088 | } |
| 1089 | |
| 1090 | .mwai-messages-theme .mwai-reply-actions .mwai-copy-button { |
| 1091 | padding-top: 4px; |
| 1092 | } |
| 1093 | |
| 1094 | .mwai-messages-theme .mwai-reply-actions .mwai-copy-button:hover { |
| 1095 | fill: var(--mwai-backgroundPrimaryColor); |
| 1096 | background: var(--mwai-backgroundUserColor); |
| 1097 | } |
| 1098 | |
| 1099 | @media (max-width: 760px) { |
| 1100 | .mwai-messages-theme.mwai-window { |
| 1101 | width: calc(100% - 40px); |
| 1102 | z-index: 9999999999; |
| 1103 | } |
| 1104 | .mwai-messages-theme .mwai-input { |
| 1105 | flex-direction: column; |
| 1106 | } |
| 1107 | .mwai-messages-theme .mwai-input .mwai-input-text { |
| 1108 | width: 100%; |
| 1109 | } |
| 1110 | .mwai-messages-theme .mwai-input .mwai-input-submit { |
| 1111 | width: 100%; |
| 1112 | margin: 15px 0 0 0; |
| 1113 | } |
| 1114 | } |
| 1115 |