PluginProbe
Echo Knowledge Base – Documentation, FAQs, Chat & Smart Search / trunk
Echo Knowledge Base – Documentation, FAQs, Chat & Smart Search vtrunk
17.214.0 17.213.1 17.212.0 17.211.0 17.210.0 17.200.0 11.0.0 12.0.0 13.10.0 14.0.0 15.0.0 16.011.0 16.20.0 17.0.1 17.0.4 17.1.0 17.1.2 17.111.0 17.3.0 17.4.0 trunk
echo-knowledge-base / css / admin-help-chat.css

admin-help-chat.css in Echo Knowledge Base – Documentation, FAQs, Chat & Smart Search trunk, at css/admin-help-chat.css

494 lines 9.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Admin Help Chat Styles
3 * Simple AI chat widget for admin users
4 */
5 #epkb-admin-help-chat-root {
6 position: fixed;
7 bottom: 20px;
8 right: 20px;
9 z-index: 9999;
10 }
11
12 .epkb-help-chat-button {
13 background: #2271B1;
14 color: white;
15 border: none;
16 padding: 12px 20px;
17 border-radius: 25px;
18 cursor: pointer;
19 font-size: 14px;
20 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
21 display: flex;
22 align-items: center;
23 gap: 8px;
24 position: relative;
25 }
26 .epkb-help-chat-button:hover {
27 background: #135E96;
28 }
29 .epkb-help-chat-button.epkb-help-chat-button--pulse {
30 animation: epkb-pulse 2s infinite;
31 }
32
33 .epkb-help-chat-intro {
34 position: absolute;
35 bottom: 65px;
36 right: 0;
37 background: white;
38 border: 1px solid #DDDDDD;
39 border-radius: 8px;
40 padding: 12px 16px;
41 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
42 max-width: 280px;
43 animation: epkb-slide-up 0.3s ease-out;
44 }
45 .epkb-help-chat-intro::after {
46 content: "";
47 position: absolute;
48 bottom: -8px;
49 right: 30px;
50 width: 0;
51 height: 0;
52 border-left: 8px solid transparent;
53 border-right: 8px solid transparent;
54 border-top: 8px solid white;
55 }
56 .epkb-help-chat-intro::before {
57 content: "";
58 position: absolute;
59 bottom: -9px;
60 right: 30px;
61 width: 0;
62 height: 0;
63 border-left: 8px solid transparent;
64 border-right: 8px solid transparent;
65 border-top: 8px solid #DDDDDD;
66 }
67 .epkb-help-chat-intro .epkb-help-chat-intro__text {
68 color: #333333;
69 font-size: 13px;
70 line-height: 1.4;
71 margin-bottom: 8px;
72 }
73 .epkb-help-chat-intro .epkb-help-chat-intro__text strong {
74 color: #2271B1;
75 }
76 .epkb-help-chat-intro .epkb-help-chat-intro__dismiss {
77 background: none;
78 border: none;
79 color: #999999;
80 font-size: 11px;
81 cursor: pointer;
82 padding: 0;
83 text-decoration: underline;
84 }
85 .epkb-help-chat-intro .epkb-help-chat-intro__dismiss:hover {
86 color: #666666;
87 }
88
89 .epkb-help-chat-window {
90 position: absolute;
91 bottom: 60px;
92 right: 0;
93 width: 450px;
94 height: 600px;
95 background: white;
96 border-radius: 12px;
97 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
98 display: flex;
99 flex-direction: column;
100 overflow: hidden;
101 }
102 @media (max-height: 768px) {
103 .epkb-help-chat-window {
104 height: 500px;
105 }
106 }
107 @media (max-width: 600px) {
108 .epkb-help-chat-window {
109 width: 350px;
110 }
111 }
112
113 .epkb-help-chat-header {
114 background: #2271B1;
115 color: white;
116 padding: 15px;
117 display: flex;
118 justify-content: space-between;
119 align-items: center;
120 }
121
122 .epkb-help-chat-header-title {
123 display: flex;
124 align-items: center;
125 gap: 8px;
126 }
127
128 .epkb-help-chat-header-actions {
129 display: flex;
130 align-items: center;
131 gap: 8px;
132 }
133
134 .epkb-help-chat-beta-badge {
135 background: #FF3333;
136 color: white;
137 font-size: 10px;
138 font-weight: bold;
139 padding: 3px 7px;
140 border-radius: 4px;
141 text-transform: uppercase;
142 letter-spacing: 0.5px;
143 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
144 }
145
146 .epkb-help-chat-clear,
147 .epkb-help-chat-close {
148 background: none;
149 border: none;
150 color: white;
151 cursor: pointer;
152 font-size: 20px;
153 padding: 0;
154 width: 28px;
155 height: 28px;
156 display: flex;
157 align-items: center;
158 justify-content: center;
159 border-radius: 4px;
160 transition: background-color 0.2s;
161 }
162 .epkb-help-chat-clear:hover,
163 .epkb-help-chat-close:hover {
164 background: rgba(255, 255, 255, 0.2);
165 }
166 .epkb-help-chat-clear:disabled,
167 .epkb-help-chat-close:disabled {
168 opacity: 0.5;
169 cursor: not-allowed;
170 }
171
172 .epkb-help-chat-messages {
173 flex: 1;
174 overflow-y: auto;
175 padding: 15px;
176 background: #F5F5F5;
177 }
178
179 .epkb-help-chat-message {
180 margin-bottom: 12px;
181 }
182 .epkb-help-chat-message--user {
183 text-align: right;
184 }
185 .epkb-help-chat-message--user .epkb-message-bubble {
186 background: #2271B1;
187 color: white;
188 margin-left: auto;
189 }
190 .epkb-help-chat-message--assistant .epkb-message-bubble {
191 background: white;
192 color: #333333;
193 }
194
195 .epkb-message-bubble {
196 display: inline-block;
197 padding: 10px 14px;
198 border-radius: 12px;
199 max-width: 80%;
200 word-wrap: break-word;
201 }
202 .epkb-message-bubble p {
203 margin: 0 0 0.5em 0;
204 line-height: 1.4;
205 }
206 .epkb-message-bubble p:last-child {
207 margin-bottom: 0;
208 }
209 .epkb-message-bubble p:last-of-type strong {
210 font-weight: 600;
211 }
212 .epkb-message-bubble strong {
213 font-weight: 600;
214 color: inherit;
215 }
216
217 .epkb-help-chat-input {
218 display: flex;
219 padding: 15px;
220 background: white;
221 border-top: 1px solid #DDDDDD;
222 }
223 .epkb-help-chat-input input {
224 flex: 1;
225 padding: 8px 12px;
226 border: 1px solid #DDDDDD;
227 border-radius: 20px;
228 outline: none;
229 }
230 .epkb-help-chat-input button {
231 margin-left: 8px;
232 background: #2271B1;
233 color: white;
234 border: none;
235 padding: 8px 16px;
236 border-radius: 20px;
237 cursor: pointer;
238 }
239 .epkb-help-chat-input button:disabled {
240 opacity: 0.5;
241 cursor: not-allowed;
242 }
243
244 .epkb-help-typing {
245 padding: 10px 14px;
246 background: white;
247 border-radius: 12px;
248 display: inline-block;
249 }
250 .epkb-help-typing span {
251 display: inline-block;
252 width: 8px;
253 height: 8px;
254 border-radius: 50%;
255 background: #999999;
256 margin: 0 2px;
257 animation: epkb-typing 1.4s infinite;
258 }
259 .epkb-help-typing span:nth-child(2) {
260 animation-delay: 0.2s;
261 }
262 .epkb-help-typing span:nth-child(3) {
263 animation-delay: 0.4s;
264 }
265
266 @keyframes epkb-typing {
267 0%, 60%, 100% {
268 opacity: 0.3;
269 }
270 30% {
271 opacity: 1;
272 }
273 }
274 @keyframes epkb-pulse {
275 0% {
276 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
277 }
278 50% {
279 box-shadow: 0 2px 15px rgba(34, 113, 177, 0.6);
280 }
281 100% {
282 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
283 }
284 }
285 @keyframes epkb-slide-up {
286 from {
287 opacity: 0;
288 transform: translateY(10px);
289 }
290 to {
291 opacity: 1;
292 transform: translateY(0);
293 }
294 }
295 .epkb-help-chat-human-wrapper {
296 padding: 10px 15px;
297 background: #F9F9F9;
298 border-top: 1px solid #DDDDDD;
299 text-align: center;
300 }
301
302 .epkb-help-chat-human-button {
303 background: white;
304 color: #2271B1;
305 border: 1px solid #2271B1;
306 padding: 8px 16px;
307 border-radius: 20px;
308 cursor: pointer;
309 font-size: 13px;
310 transition: all 0.2s ease;
311 }
312 .epkb-help-chat-human-button:hover {
313 background: #2271B1;
314 color: white;
315 }
316
317 .epkb-help-chat-dialog-overlay {
318 position: fixed;
319 top: 0;
320 left: 0;
321 right: 0;
322 bottom: 0;
323 background: rgba(0, 0, 0, 0.5);
324 display: flex;
325 align-items: center;
326 justify-content: center;
327 z-index: 10000;
328 animation: epkb-fade-in 0.2s ease;
329 }
330
331 .epkb-help-chat-dialog {
332 background: white;
333 border-radius: 12px;
334 box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
335 width: 500px;
336 max-width: 90%;
337 max-height: 80vh;
338 display: flex;
339 flex-direction: column;
340 animation: epkb-scale-in 0.3s ease;
341 }
342
343 .epkb-help-chat-dialog-header {
344 padding: 20px;
345 border-bottom: 1px solid #DDDDDD;
346 display: flex;
347 justify-content: space-between;
348 align-items: center;
349 }
350 .epkb-help-chat-dialog-header h3 {
351 margin: 0;
352 font-size: 18px;
353 color: #333333;
354 }
355
356 .epkb-help-chat-dialog-close {
357 background: none;
358 border: none;
359 color: #999999;
360 font-size: 24px;
361 cursor: pointer;
362 padding: 0;
363 width: 30px;
364 height: 30px;
365 display: flex;
366 align-items: center;
367 justify-content: center;
368 }
369 .epkb-help-chat-dialog-close:hover {
370 color: #666666;
371 }
372
373 .epkb-help-chat-dialog-body {
374 padding: 20px;
375 overflow-y: auto;
376 flex: 1;
377 }
378
379 .epkb-help-chat-dialog-intro {
380 background: #F0F8FF;
381 border-left: 3px solid #2271B1;
382 padding: 12px 15px;
383 margin-bottom: 20px;
384 font-size: 14px;
385 line-height: 1.5;
386 color: #333333;
387 }
388
389 .epkb-help-chat-field {
390 margin-bottom: 20px;
391 }
392 .epkb-help-chat-field label {
393 display: block;
394 margin-bottom: 8px;
395 font-weight: 500;
396 color: #333333;
397 font-size: 14px;
398 }
399 .epkb-help-chat-field input,
400 .epkb-help-chat-field textarea {
401 width: 100%;
402 padding: 10px 12px;
403 border: 1px solid #DDDDDD;
404 border-radius: 6px;
405 font-size: 14px;
406 }
407 .epkb-help-chat-field input:focus,
408 .epkb-help-chat-field textarea:focus {
409 outline: none;
410 border-color: #2271B1;
411 box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.2);
412 }
413 .epkb-help-chat-field input[readonly],
414 .epkb-help-chat-field textarea[readonly] {
415 background: #F5F5F5;
416 color: #666666;
417 cursor: not-allowed;
418 }
419 .epkb-help-chat-field textarea {
420 resize: vertical;
421 min-height: 100px;
422 font-family: inherit;
423 }
424
425 .epkb-required {
426 color: #D63638;
427 }
428
429 .epkb-help-chat-field-note {
430 font-size: 12px;
431 color: #666666;
432 font-style: italic;
433 margin-top: -10px;
434 margin-bottom: 15px;
435 }
436
437 .epkb-help-chat-dialog-footer {
438 padding: 20px;
439 border-top: 1px solid #DDDDDD;
440 display: flex;
441 justify-content: flex-end;
442 gap: 10px;
443 }
444
445 .epkb-help-chat-dialog-cancel,
446 .epkb-help-chat-dialog-submit {
447 padding: 10px 20px;
448 border-radius: 6px;
449 font-size: 14px;
450 cursor: pointer;
451 transition: all 0.2s ease;
452 border: none;
453 }
454
455 .epkb-help-chat-dialog-cancel {
456 background: white;
457 color: #666666;
458 border: 1px solid #DDDDDD;
459 }
460 .epkb-help-chat-dialog-cancel:hover {
461 background: #F5F5F5;
462 }
463
464 .epkb-help-chat-dialog-submit {
465 background: #2271B1;
466 color: white;
467 }
468 .epkb-help-chat-dialog-submit:hover {
469 background: #135E96;
470 }
471 .epkb-help-chat-dialog-submit:disabled {
472 opacity: 0.5;
473 cursor: not-allowed;
474 }
475
476 @keyframes epkb-fade-in {
477 from {
478 opacity: 0;
479 }
480 to {
481 opacity: 1;
482 }
483 }
484 @keyframes epkb-scale-in {
485 from {
486 opacity: 0;
487 transform: scale(0.9);
488 }
489 to {
490 opacity: 1;
491 transform: scale(1);
492 }
493 }
494