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.scss
249 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 | .mwai-open-button { |
| 8 | position: absolute; |
| 9 | right: 0; |
| 10 | bottom: 0; |
| 11 | transition: all 0.2s ease-out; |
| 12 | z-index: 9999; |
| 13 | |
| 14 | &:hover { |
| 15 | cursor: pointer; |
| 16 | filter: hue-rotate(100deg); |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | .mwai-content { |
| 21 | background: var(--mwai-background-color-dark); |
| 22 | color: var(--mwai-font-color); |
| 23 | font-size: 15px; |
| 24 | border-radius: var(--mwai-border-radius); |
| 25 | overflow: hidden; |
| 26 | display: flex; |
| 27 | flex-direction: column; |
| 28 | } |
| 29 | |
| 30 | .mwai-conversation { |
| 31 | overflow: auto; |
| 32 | } |
| 33 | |
| 34 | * { |
| 35 | box-sizing: border-box; |
| 36 | } |
| 37 | |
| 38 | a { |
| 39 | color: #2196f3; |
| 40 | } |
| 41 | |
| 42 | h1 { |
| 43 | font-size: 200%; |
| 44 | } |
| 45 | |
| 46 | h2 { |
| 47 | font-size: 160%; |
| 48 | } |
| 49 | |
| 50 | h3 { |
| 51 | font-size: 140%; |
| 52 | } |
| 53 | |
| 54 | h4 { |
| 55 | font-size: 120%; |
| 56 | } |
| 57 | |
| 58 | pre { |
| 59 | color: var(--mwai-font-color); |
| 60 | border-radius: var(--mwai-border-radius); |
| 61 | padding: 10px 15px; |
| 62 | break-after: auto; |
| 63 | font-size: 95%; |
| 64 | font-family: system-ui; |
| 65 | background: #343541; |
| 66 | |
| 67 | code { |
| 68 | padding: 0 !important; |
| 69 | font-family: system-ui; |
| 70 | background: #343541; |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | ol { |
| 75 | padding: 0; |
| 76 | margin: 0 0 0 20px; |
| 77 | } |
| 78 | .mwai-reply { |
| 79 | display: flex; |
| 80 | padding: 15px; |
| 81 | } |
| 82 | |
| 83 | .mwai-ai { |
| 84 | background: var(--mwai-background-color-light); |
| 85 | } |
| 86 | |
| 87 | .mwai-name { |
| 88 | color: #a0a0a0; |
| 89 | margin-right: 20px; |
| 90 | } |
| 91 | |
| 92 | .mwai-text { |
| 93 | flex: auto; |
| 94 | >* { |
| 95 | &:first-child { |
| 96 | margin-top: 0; |
| 97 | } |
| 98 | &:last-child { |
| 99 | margin-bottom: 0; |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 | .mwai-input { |
| 104 | display: flex; |
| 105 | padding: 15px; |
| 106 | border-top: 1px solid var(--mwai-background-color-light); |
| 107 | |
| 108 | textarea { |
| 109 | background: #40414f; |
| 110 | color: var(--mwai-font-color); |
| 111 | flex: auto; |
| 112 | padding: 8px 15px; |
| 113 | border: none; |
| 114 | border-radius: 5px; |
| 115 | font-size: 15px; |
| 116 | resize: none; |
| 117 | font-family: inherit; |
| 118 | line-height: 30px; |
| 119 | |
| 120 | &:focus { |
| 121 | outline: none; |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | button { |
| 126 | background: none; |
| 127 | color: var(--mwai-font-color); |
| 128 | border: 1px solid #40414f; |
| 129 | margin-left: 15px; |
| 130 | width: 80px; |
| 131 | border-radius: 5px; |
| 132 | cursor: pointer; |
| 133 | transition: all 0.2s ease-out; |
| 134 | max-height: 60px; |
| 135 | |
| 136 | &:hover { |
| 137 | background: var(--mwai-background-color-light); |
| 138 | } |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | button { |
| 143 | position: relative; |
| 144 | } |
| 145 | |
| 146 | button[disabled]] { |
| 147 | |
| 148 | span { |
| 149 | display: none; |
| 150 | } |
| 151 | |
| 152 | &::after { |
| 153 | content: ''; |
| 154 | position: absolute; |
| 155 | width: 18px; |
| 156 | height: 18px; |
| 157 | top: 0; |
| 158 | left: 0; |
| 159 | right: 0; |
| 160 | bottom: 0; |
| 161 | margin: auto; |
| 162 | border: 3px solid transparent; |
| 163 | border-top-color: var(--mwai-font-color); |
| 164 | border-radius: 50%; |
| 165 | animation: mwai-button-spinner 1s ease infinite; |
| 166 | } |
| 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 | .mwai-close-button { |
| 177 | display: none; |
| 178 | } |
| 179 | |
| 180 | .mwai-content { |
| 181 | display: flex; |
| 182 | opacity: 0; |
| 183 | max-height: 40vh; |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | #mwai-chat-id.mwai-window.mwai-open { |
| 188 | |
| 189 | .mwai-close-button { |
| 190 | display: block; |
| 191 | font-size: 50px; |
| 192 | line-height: 15px; |
| 193 | height: 40px; |
| 194 | text-align: right; |
| 195 | margin-right: 10px; |
| 196 | cursor: pointer; |
| 197 | } |
| 198 | |
| 199 | .mwai-content { |
| 200 | display: flex; |
| 201 | transition: opacity 200ms ease-in-out 0s; |
| 202 | opacity: 1; |
| 203 | } |
| 204 | |
| 205 | .mwai-open-button { |
| 206 | display: none; |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | @media (max-width: 760px) { |
| 211 | |
| 212 | #mwai-chat-id { |
| 213 | |
| 214 | &.mwai-window { |
| 215 | left: 10px; |
| 216 | right: 10px; |
| 217 | bottom: 10px; |
| 218 | width: inherit; |
| 219 | } |
| 220 | |
| 221 | .mwai-reply { |
| 222 | flex-direction: column; |
| 223 | } |
| 224 | |
| 225 | .mwai-input { |
| 226 | flex-direction: column; |
| 227 | |
| 228 | button { |
| 229 | margin: 15px 0 0 0; |
| 230 | height: 40px; |
| 231 | width: inherit; |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | .mwai-name { |
| 236 | margin-right: 0; |
| 237 | } |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | @keyframes mwai-button-spinner { |
| 242 | |
| 243 | from { |
| 244 | transform: rotate(0turn); |
| 245 | } |
| 246 | to { |
| 247 | transform: rotate(1turn); |
| 248 | } |
| 249 | } |