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