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