chatbot-chatgpt.css
3 years ago
chatbot-chatgpt.scss
3 years ago
chatbot.php
3 years ago
contentaware.php
3 years ago
imagesbot.php
3 years ago
chatbot-chatgpt.css
337 lines
| 1 | #mwai-chat-id { |
| 2 | --mwai-background-color-dark: #343541; |
| 3 | --mwai-background-color-light: #454654; |
| 4 | --mwai-font-color: white; |
| 5 | --mwai-border-radius: 10px; |
| 6 | } |
| 7 | |
| 8 | #mwai-chat-id .mwai-open-button { |
| 9 | position: absolute; |
| 10 | right: 0; |
| 11 | bottom: 0; |
| 12 | transition: all 0.2s ease-out; |
| 13 | z-index: 9999; |
| 14 | } |
| 15 | |
| 16 | #mwai-chat-id .mwai-open-button:hover { |
| 17 | cursor: pointer; |
| 18 | filter: hue-rotate(100deg); |
| 19 | } |
| 20 | |
| 21 | #mwai-chat-id .mwai-content { |
| 22 | background: var(--mwai-background-color-dark); |
| 23 | color: var(--mwai-font-color); |
| 24 | font-size: 15px; |
| 25 | border-radius: var(--mwai-border-radius); |
| 26 | overflow: hidden; |
| 27 | display: flex; |
| 28 | flex-direction: column; |
| 29 | } |
| 30 | |
| 31 | #mwai-chat-id .mwai-conversation { |
| 32 | overflow: auto; |
| 33 | } |
| 34 | |
| 35 | #mwai-chat-id * { |
| 36 | box-sizing: border-box; |
| 37 | } |
| 38 | |
| 39 | #mwai-chat-id a { |
| 40 | color: #2196f3; |
| 41 | } |
| 42 | |
| 43 | #mwai-chat-id h1 { |
| 44 | font-size: 200%; |
| 45 | } |
| 46 | |
| 47 | #mwai-chat-id h2 { |
| 48 | font-size: 160%; |
| 49 | } |
| 50 | |
| 51 | #mwai-chat-id h3 { |
| 52 | font-size: 140%; |
| 53 | } |
| 54 | |
| 55 | #mwai-chat-id h4 { |
| 56 | font-size: 120%; |
| 57 | } |
| 58 | |
| 59 | #mwai-chat-id pre { |
| 60 | color: var(--mwai-font-color); |
| 61 | border-radius: var(--mwai-border-radius); |
| 62 | padding: 10px 15px; |
| 63 | break-after: auto; |
| 64 | font-size: 95%; |
| 65 | font-family: system-ui; |
| 66 | background: #343541; |
| 67 | } |
| 68 | |
| 69 | #mwai-chat-id pre code { |
| 70 | padding: 0 !important; |
| 71 | font-family: system-ui; |
| 72 | background: #343541; |
| 73 | } |
| 74 | |
| 75 | #mwai-chat-id ol { |
| 76 | padding: 0; |
| 77 | margin: 0 0 0 20px; |
| 78 | } |
| 79 | |
| 80 | #mwai-chat-id .mwai-reply { |
| 81 | display: flex; |
| 82 | padding: 15px; |
| 83 | } |
| 84 | |
| 85 | #mwai-chat-id .mwai-ai { |
| 86 | background: var(--mwai-background-color-light); |
| 87 | } |
| 88 | |
| 89 | #mwai-chat-id .mwai-name { |
| 90 | color: #a0a0a0; |
| 91 | margin-right: 20px; |
| 92 | } |
| 93 | |
| 94 | #mwai-chat-id .mwai-text { |
| 95 | flex: auto; |
| 96 | } |
| 97 | |
| 98 | #mwai-chat-id .mwai-text > *:first-child { |
| 99 | margin-top: 0; |
| 100 | } |
| 101 | |
| 102 | #mwai-chat-id .mwai-text > *:last-child { |
| 103 | margin-bottom: 0; |
| 104 | } |
| 105 | |
| 106 | #mwai-chat-id .mwai-input { |
| 107 | display: flex; |
| 108 | padding: 15px; |
| 109 | border-top: 1px solid var(--mwai-background-color-light); |
| 110 | } |
| 111 | |
| 112 | #mwai-chat-id .mwai-input textarea { |
| 113 | background: #40414f; |
| 114 | color: var(--mwai-font-color); |
| 115 | flex: auto; |
| 116 | padding: 8px 15px; |
| 117 | border: none; |
| 118 | border-radius: 5px; |
| 119 | font-size: 15px; |
| 120 | resize: none; |
| 121 | font-family: inherit; |
| 122 | line-height: 30px; |
| 123 | } |
| 124 | |
| 125 | #mwai-chat-id .mwai-input textarea:focus { |
| 126 | outline: none; |
| 127 | } |
| 128 | |
| 129 | #mwai-chat-id .mwai-input button { |
| 130 | background: none; |
| 131 | color: var(--mwai-font-color); |
| 132 | border: 1px solid #40414f; |
| 133 | margin-left: 15px; |
| 134 | width: 80px; |
| 135 | border-radius: 5px; |
| 136 | cursor: pointer; |
| 137 | transition: all 0.2s ease-out; |
| 138 | max-height: 60px; |
| 139 | } |
| 140 | |
| 141 | #mwai-chat-id .mwai-input button:hover { |
| 142 | background: var(--mwai-background-color-light); |
| 143 | } |
| 144 | |
| 145 | #mwai-chat-id button { |
| 146 | position: relative; |
| 147 | } |
| 148 | |
| 149 | #mwai-chat-id button[disabled] span { |
| 150 | display: none; |
| 151 | } |
| 152 | |
| 153 | #mwai-chat-id button[disabled]::after { |
| 154 | content: ''; |
| 155 | position: absolute; |
| 156 | width: 18px; |
| 157 | height: 18px; |
| 158 | top: 0; |
| 159 | left: 0; |
| 160 | right: 0; |
| 161 | bottom: 0; |
| 162 | margin: auto; |
| 163 | border: 3px solid transparent; |
| 164 | border-top-color: var(--mwai-font-color); |
| 165 | border-radius: 50%; |
| 166 | animation: mwai-button-spinner 1s ease infinite; |
| 167 | } |
| 168 | |
| 169 | #mwai-chat-id.mwai-window { |
| 170 | position: fixed; |
| 171 | right: 30px; |
| 172 | bottom: 30px; |
| 173 | width: 460px; |
| 174 | z-index: 9999; |
| 175 | } |
| 176 | |
| 177 | #mwai-chat-id.mwai-window .mwai-header { |
| 178 | display: none; |
| 179 | justify-content: flex-end; |
| 180 | align-items: center; |
| 181 | } |
| 182 | |
| 183 | #mwai-chat-id.mwai-window .mwai-header .mwai-resize-button { |
| 184 | justify-content: center; |
| 185 | height: 40px; |
| 186 | width: 36px; |
| 187 | cursor: pointer; |
| 188 | display: flex; |
| 189 | justify-content: center; |
| 190 | align-items: center; |
| 191 | } |
| 192 | |
| 193 | #mwai-chat-id.mwai-window .mwai-header .mwai-resize-button:before { |
| 194 | transition: all 0.2s ease-out; |
| 195 | content: ' '; |
| 196 | cursor: pointer; |
| 197 | position: absolute; |
| 198 | height: 15px; |
| 199 | width: 15px; |
| 200 | opacity: 0.75; |
| 201 | border: 2px solid var(--mwai-font-color); |
| 202 | } |
| 203 | |
| 204 | #mwai-chat-id.mwai-window .mwai-header .mwai-resize-button:hover:before { |
| 205 | width: 20px; |
| 206 | height: 20px; |
| 207 | } |
| 208 | |
| 209 | #mwai-chat-id.mwai-window .mwai-header .mwai-close-button { |
| 210 | justify-content: center; |
| 211 | height: 40px; |
| 212 | width: 35px; |
| 213 | cursor: pointer; |
| 214 | } |
| 215 | |
| 216 | #mwai-chat-id.mwai-window .mwai-header .mwai-close-button:before, #mwai-chat-id.mwai-window .mwai-header .mwai-close-button:after { |
| 217 | content: ' '; |
| 218 | cursor: pointer; |
| 219 | position: absolute; |
| 220 | height: 30px; |
| 221 | width: 2px; |
| 222 | background-color: var(--mwai-font-color); |
| 223 | opacity: 0.75; |
| 224 | } |
| 225 | |
| 226 | #mwai-chat-id.mwai-window .mwai-header .mwai-close-button:before { |
| 227 | transition: all 0.2s ease-out; |
| 228 | transform: translate(16px, 5px) rotate(45deg); |
| 229 | } |
| 230 | |
| 231 | #mwai-chat-id.mwai-window .mwai-header .mwai-close-button:after { |
| 232 | transition: all 0.2s ease-out; |
| 233 | transform: translate(16px, 5px) rotate(-45deg); |
| 234 | } |
| 235 | |
| 236 | #mwai-chat-id.mwai-window .mwai-header .mwai-close-button:hover:before { |
| 237 | opacity: 1; |
| 238 | transform: translate(16px, 5px) rotate(135deg); |
| 239 | } |
| 240 | |
| 241 | #mwai-chat-id.mwai-window .mwai-header .mwai-close-button:hover:after { |
| 242 | opacity: 1; |
| 243 | transform: translate(16px, 5px) rotate(45deg); |
| 244 | } |
| 245 | |
| 246 | #mwai-chat-id.mwai-window .mwai-content { |
| 247 | display: flex; |
| 248 | opacity: 0; |
| 249 | max-height: 40vh; |
| 250 | } |
| 251 | |
| 252 | #mwai-chat-id.mwai-window.mwai-fullscreen .mwai-resize-button:before { |
| 253 | width: 20px; |
| 254 | height: 20px; |
| 255 | } |
| 256 | |
| 257 | #mwai-chat-id.mwai-window.mwai-fullscreen .mwai-resize-button:hover:before { |
| 258 | width: 15px; |
| 259 | height: 15px; |
| 260 | } |
| 261 | |
| 262 | #mwai-chat-id.mwai-fullscreen:not(.mwai-window), #mwai-chat-id.mwai-fullscreen.mwai-window.mwai-open { |
| 263 | position: fixed; |
| 264 | left: 0; |
| 265 | right: 0; |
| 266 | bottom: 0; |
| 267 | top: 0; |
| 268 | width: inherit; |
| 269 | height: inherit; |
| 270 | max-height: inherit; |
| 271 | max-width: inherit; |
| 272 | display: flex; |
| 273 | flex-direction: column; |
| 274 | margin: 0; |
| 275 | } |
| 276 | |
| 277 | #mwai-chat-id.mwai-fullscreen:not(.mwai-window) .mwai-content, #mwai-chat-id.mwai-fullscreen.mwai-window.mwai-open .mwai-content { |
| 278 | height: 100%; |
| 279 | max-height: inherit; |
| 280 | border-radius: inherit; |
| 281 | } |
| 282 | |
| 283 | #mwai-chat-id.mwai-fullscreen:not(.mwai-window) .mwai-content .mwai-conversation, #mwai-chat-id.mwai-fullscreen.mwai-window.mwai-open .mwai-content .mwai-conversation { |
| 284 | flex: auto; |
| 285 | } |
| 286 | |
| 287 | #mwai-chat-id.mwai-window.mwai-open .mwai-header { |
| 288 | display: flex; |
| 289 | } |
| 290 | |
| 291 | #mwai-chat-id.mwai-window.mwai-open .mwai-content { |
| 292 | display: flex; |
| 293 | transition: opacity 200ms ease-in-out 0s; |
| 294 | opacity: 1; |
| 295 | } |
| 296 | |
| 297 | #mwai-chat-id.mwai-window.mwai-open .mwai-open-button { |
| 298 | display: none; |
| 299 | } |
| 300 | |
| 301 | @media (max-width: 760px) { |
| 302 | #mwai-chat-id.mwai-window { |
| 303 | left: 10px; |
| 304 | right: 10px; |
| 305 | bottom: 10px; |
| 306 | width: inherit; |
| 307 | } |
| 308 | #mwai-chat-id .mwai-reply { |
| 309 | flex-direction: column; |
| 310 | } |
| 311 | #mwai-chat-id .mwai-input { |
| 312 | flex-direction: column; |
| 313 | } |
| 314 | #mwai-chat-id .mwai-input button { |
| 315 | margin: 15px 0 0 0; |
| 316 | height: 40px; |
| 317 | width: inherit; |
| 318 | } |
| 319 | #mwai-chat-id .mwai-name { |
| 320 | margin-right: 0; |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | @keyframes mwai-button-spinner { |
| 325 | from { |
| 326 | transform: rotate(0turn); |
| 327 | } |
| 328 | to { |
| 329 | transform: rotate(1turn); |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | .admin-bar #mwai-chat-id.mwai-fullscreen:not(.mwai-window), |
| 334 | .admin-bar #mwai-chat-id.mwai-fullscreen.mwai-window.mwai-open { |
| 335 | top: 32px; |
| 336 | } |
| 337 |