chatbot-chatgpt.css
3 years ago
chatbot-chatgpt.scss
3 years ago
chatbot.php
3 years ago
imagesbot.php
3 years ago
statistics.php
3 years ago
chatbot-chatgpt.css
232 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 | } |
| 174 | |
| 175 | #mwai-chat-id.mwai-window .mwai-close-button { |
| 176 | display: none; |
| 177 | } |
| 178 | |
| 179 | #mwai-chat-id.mwai-window .mwai-content { |
| 180 | display: flex; |
| 181 | opacity: 0; |
| 182 | max-height: 40vh; |
| 183 | width: 460px; |
| 184 | max-height: 40vh; |
| 185 | } |
| 186 | |
| 187 | #mwai-chat-id.mwai-window.mwai-open .mwai-close-button { |
| 188 | display: block; |
| 189 | font-size: 50px; |
| 190 | line-height: 15px; |
| 191 | height: 40px; |
| 192 | text-align: right; |
| 193 | margin-right: 10px; |
| 194 | cursor: pointer; |
| 195 | } |
| 196 | |
| 197 | #mwai-chat-id.mwai-window.mwai-open .mwai-content { |
| 198 | display: flex; |
| 199 | transition: opacity 200ms ease-in-out 0s; |
| 200 | opacity: 1; |
| 201 | } |
| 202 | |
| 203 | #mwai-chat-id.mwai-window.mwai-open .mwai-open-button { |
| 204 | display: none; |
| 205 | } |
| 206 | |
| 207 | @media (max-width: 600px) { |
| 208 | #mwai-chat-id .mwai-reply { |
| 209 | flex-direction: column; |
| 210 | } |
| 211 | #mwai-chat-id .mwai-input { |
| 212 | flex-direction: column; |
| 213 | } |
| 214 | #mwai-chat-id .mwai-input button { |
| 215 | margin: 15px 0 0 0; |
| 216 | height: 40px; |
| 217 | width: inherit; |
| 218 | } |
| 219 | #mwai-chat-id .mwai-name { |
| 220 | margin-right: 0; |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | @keyframes mwai-button-spinner { |
| 225 | from { |
| 226 | transform: rotate(0turn); |
| 227 | } |
| 228 | to { |
| 229 | transform: rotate(1turn); |
| 230 | } |
| 231 | } |
| 232 |