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