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