ghonchu_rag 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/styles.css +49 -267
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/* =====================================================
|
|
2
|
+
HARD ISOLATION — VERY IMPORTANT
|
|
3
|
+
===================================================== */
|
|
4
|
+
|
|
5
|
+
#ghonchu-widget-root {
|
|
6
|
+
all: initial;
|
|
7
|
+
position: fixed;
|
|
8
|
+
bottom: 20px;
|
|
9
|
+
right: 20px;
|
|
10
|
+
z-index: 2147483647;
|
|
11
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
#ghonchu-widget-root * {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* =====================================================
|
|
19
|
+
VARIABLES (scoped)
|
|
20
|
+
===================================================== */
|
|
21
|
+
|
|
22
|
+
#ghonchu-widget-root {
|
|
5
23
|
--ghonchu-bg-start: rgb(20, 15, 10);
|
|
6
24
|
--ghonchu-bg-end: rgb(40, 25, 15);
|
|
7
25
|
--ghonchu-amber-950: #451a03;
|
|
@@ -17,20 +35,10 @@
|
|
|
17
35
|
--ghonchu-glow: var(--ghonchu-amber-400);
|
|
18
36
|
}
|
|
19
37
|
|
|
20
|
-
/*
|
|
21
|
-
ROOT
|
|
22
|
-
=============================== */
|
|
23
|
-
#ghonchu-widget-root {
|
|
24
|
-
position: fixed;
|
|
25
|
-
bottom: 20px;
|
|
26
|
-
right: 20px;
|
|
27
|
-
z-index: 9999;
|
|
28
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/* ===============================
|
|
38
|
+
/* =====================================================
|
|
32
39
|
LAUNCHER
|
|
33
|
-
|
|
40
|
+
===================================================== */
|
|
41
|
+
|
|
34
42
|
.ghonchu-launcher {
|
|
35
43
|
width: 60px;
|
|
36
44
|
height: 60px;
|
|
@@ -53,25 +61,14 @@
|
|
|
53
61
|
}
|
|
54
62
|
}
|
|
55
63
|
|
|
56
|
-
/*
|
|
57
|
-
THEME OVERRIDES
|
|
58
|
-
=============================== */
|
|
59
|
-
.ghonchu-theme-default {
|
|
60
|
-
--ghonchu-glow: #fbbf24;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.ghonchu-theme-cyberpunk {
|
|
64
|
-
--ghonchu-glow: #00ffff;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.ghonchu-theme-professional {
|
|
68
|
-
--ghonchu-glow: #2563eb;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* ===============================
|
|
64
|
+
/* =====================================================
|
|
72
65
|
CHAT WINDOW
|
|
73
|
-
|
|
66
|
+
===================================================== */
|
|
67
|
+
|
|
74
68
|
.ghonchu-chat-window {
|
|
69
|
+
position: absolute;
|
|
70
|
+
bottom: 80px;
|
|
71
|
+
right: 0;
|
|
75
72
|
width: 380px;
|
|
76
73
|
height: 550px;
|
|
77
74
|
max-height: 85vh;
|
|
@@ -92,20 +89,21 @@
|
|
|
92
89
|
@keyframes openChat {
|
|
93
90
|
from {
|
|
94
91
|
opacity: 0;
|
|
95
|
-
transform: scale(.8) translateY(20px)
|
|
92
|
+
transform: scale(.8) translateY(20px);
|
|
96
93
|
}
|
|
97
94
|
}
|
|
98
95
|
|
|
99
96
|
@keyframes closeChat {
|
|
100
97
|
to {
|
|
101
98
|
opacity: 0;
|
|
102
|
-
transform: scale(.8) translateY(20px)
|
|
99
|
+
transform: scale(.8) translateY(20px);
|
|
103
100
|
}
|
|
104
101
|
}
|
|
105
102
|
|
|
106
|
-
/*
|
|
103
|
+
/* =====================================================
|
|
107
104
|
HEADER
|
|
108
|
-
|
|
105
|
+
===================================================== */
|
|
106
|
+
|
|
109
107
|
.ghonchu-header {
|
|
110
108
|
padding: 16px;
|
|
111
109
|
background: var(--ghonchu-glass);
|
|
@@ -119,42 +117,15 @@
|
|
|
119
117
|
-webkit-text-fill-color: transparent;
|
|
120
118
|
}
|
|
121
119
|
|
|
122
|
-
.ghonchu-controls button {
|
|
123
|
-
opacity: 0.8;
|
|
124
|
-
transition: opacity 0.2s;
|
|
125
|
-
color: var(--ghonchu-amber-400);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.ghonchu-controls button:hover {
|
|
129
|
-
opacity: 1;
|
|
130
|
-
transform: scale(1.1);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.ghonchu-status {
|
|
134
|
-
font-size: 0.9em;
|
|
135
|
-
color: var(--ghonchu-amber-200);
|
|
136
|
-
opacity: 0.9;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/* Scrollbar for history */
|
|
140
|
-
.ghonchu-history-view::-webkit-scrollbar {
|
|
141
|
-
width: 6px;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.ghonchu-history-view::-webkit-scrollbar-thumb {
|
|
145
|
-
background: var(--ghonchu-amber-600);
|
|
146
|
-
border-radius: 4px;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
120
|
.ghonchu-status {
|
|
150
|
-
font-size:
|
|
121
|
+
font-size: .9em;
|
|
151
122
|
color: var(--ghonchu-amber-200);
|
|
152
|
-
opacity: 0.9;
|
|
153
123
|
}
|
|
154
124
|
|
|
155
|
-
/*
|
|
125
|
+
/* =====================================================
|
|
156
126
|
MESSAGES
|
|
157
|
-
|
|
127
|
+
===================================================== */
|
|
128
|
+
|
|
158
129
|
.ghonchu-messages {
|
|
159
130
|
flex: 1;
|
|
160
131
|
padding: 16px;
|
|
@@ -162,158 +133,31 @@
|
|
|
162
133
|
display: flex;
|
|
163
134
|
flex-direction: column;
|
|
164
135
|
gap: 12px;
|
|
165
|
-
scroll-behavior: smooth;
|
|
166
|
-
align-items: flex-start;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/* ===============================
|
|
170
|
-
ROW
|
|
171
|
-
=============================== */
|
|
172
|
-
.ghonchu-message-wrapper {
|
|
173
|
-
display: flex;
|
|
174
|
-
max-width: 100%;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.msg-user-wrapper {
|
|
178
|
-
align-self: flex-end;
|
|
179
|
-
justify-content: flex-end;
|
|
180
136
|
}
|
|
181
137
|
|
|
182
|
-
.msg-bot-wrapper {
|
|
183
|
-
align-self: flex-start;
|
|
184
|
-
justify-content: flex-start;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/* ===============================
|
|
188
|
-
BUBBLES
|
|
189
|
-
=============================== */
|
|
190
138
|
.msg-user,
|
|
191
139
|
.msg-bot {
|
|
192
|
-
width: fit-content;
|
|
193
140
|
max-width: 75%;
|
|
194
141
|
border-radius: 16px;
|
|
195
|
-
|
|
142
|
+
padding: 12px 16px;
|
|
143
|
+
color: white;
|
|
196
144
|
}
|
|
197
145
|
|
|
198
146
|
.msg-bot {
|
|
199
147
|
background: var(--ghonchu-glass);
|
|
200
148
|
border: 1px solid var(--ghonchu-glass-border);
|
|
201
|
-
color: white;
|
|
202
149
|
}
|
|
203
150
|
|
|
204
151
|
.msg-user {
|
|
152
|
+
align-self: flex-end;
|
|
205
153
|
background: linear-gradient(to right, rgba(217, 119, 6, .2), rgba(234, 88, 12, .2));
|
|
206
154
|
border: 1px solid rgba(251, 191, 36, .3);
|
|
207
|
-
color: white;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/* ===============================
|
|
211
|
-
INNER MESSAGE
|
|
212
|
-
=============================== */
|
|
213
|
-
.ghonchu-message {
|
|
214
|
-
padding: 12px 16px;
|
|
215
|
-
width: fit-content;
|
|
216
|
-
flex: 0 0 auto;
|
|
217
|
-
animation: messagePop .2s ease;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
@keyframes messagePop {
|
|
221
|
-
from {
|
|
222
|
-
opacity: 0;
|
|
223
|
-
transform: scale(.95)
|
|
224
|
-
}
|
|
225
155
|
}
|
|
226
156
|
|
|
227
|
-
/*
|
|
228
|
-
MARKDOWN SUPPORT
|
|
229
|
-
=============================== */
|
|
230
|
-
.ghonchu-message h1,
|
|
231
|
-
.ghonchu-message h2,
|
|
232
|
-
.ghonchu-message h3 {
|
|
233
|
-
margin: 6px 0;
|
|
234
|
-
color: var(--ghonchu-amber-200);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.ghonchu-message p {
|
|
238
|
-
margin: 4px 0;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.ghonchu-message strong {
|
|
242
|
-
color: var(--ghonchu-amber-400);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.ghonchu-message ul,
|
|
246
|
-
.ghonchu-message ol {
|
|
247
|
-
padding-left: 18px;
|
|
248
|
-
margin: 4px 0;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.ghonchu-message li {
|
|
252
|
-
margin: 2px 0;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.ghonchu-message code {
|
|
256
|
-
background: rgba(0, 0, 0, .3);
|
|
257
|
-
padding: 2px 6px;
|
|
258
|
-
border-radius: 6px;
|
|
259
|
-
font-family: monospace;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.ghonchu-message pre {
|
|
263
|
-
background: #000;
|
|
264
|
-
padding: 10px;
|
|
265
|
-
border-radius: 8px;
|
|
266
|
-
overflow: auto;
|
|
267
|
-
margin: 8px 0;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.ghonchu-message a {
|
|
271
|
-
color: var(--ghonchu-amber-300);
|
|
272
|
-
text-decoration: underline;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/* ===============================
|
|
276
|
-
TYPING DOTS
|
|
277
|
-
=============================== */
|
|
278
|
-
.ghonchu-typing {
|
|
279
|
-
display: flex;
|
|
280
|
-
gap: 6px;
|
|
281
|
-
padding: 12px;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.ghonchu-typing span {
|
|
285
|
-
width: 6px;
|
|
286
|
-
height: 6px;
|
|
287
|
-
border-radius: 50%;
|
|
288
|
-
background: var(--ghonchu-amber-400);
|
|
289
|
-
animation: blink 1.4s infinite both;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
.ghonchu-typing span:nth-child(2) {
|
|
293
|
-
animation-delay: .2s
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.ghonchu-typing span:nth-child(3) {
|
|
297
|
-
animation-delay: .4s
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
@keyframes blink {
|
|
301
|
-
0% {
|
|
302
|
-
opacity: .2
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
20% {
|
|
306
|
-
opacity: 1
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
100% {
|
|
310
|
-
opacity: .2
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/* ===============================
|
|
157
|
+
/* =====================================================
|
|
315
158
|
INPUT
|
|
316
|
-
|
|
159
|
+
===================================================== */
|
|
160
|
+
|
|
317
161
|
.ghonchu-input-area {
|
|
318
162
|
padding: 12px;
|
|
319
163
|
display: flex;
|
|
@@ -331,89 +175,27 @@
|
|
|
331
175
|
outline: none;
|
|
332
176
|
}
|
|
333
177
|
|
|
334
|
-
.ghonchu-input-area input:focus {
|
|
335
|
-
border-color: var(--ghonchu-amber-600);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
178
|
.ghonchu-send {
|
|
339
179
|
width: 52px;
|
|
340
180
|
border-radius: 12px;
|
|
341
181
|
background: linear-gradient(to right, var(--ghonchu-amber-600), var(--ghonchu-orange-600));
|
|
342
182
|
border: none;
|
|
343
183
|
cursor: pointer;
|
|
344
|
-
display: flex;
|
|
345
|
-
align-items: center;
|
|
346
|
-
justify-content: center;
|
|
347
184
|
color: white;
|
|
348
185
|
}
|
|
349
186
|
|
|
350
|
-
|
|
351
|
-
filter: brightness(1.1);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
/* ===============================
|
|
187
|
+
/* =====================================================
|
|
355
188
|
MOBILE
|
|
356
|
-
|
|
189
|
+
===================================================== */
|
|
190
|
+
|
|
357
191
|
@media (max-width:600px) {
|
|
358
192
|
.ghonchu-chat-window {
|
|
359
193
|
width: 100vw;
|
|
360
194
|
height: 100vh;
|
|
361
195
|
border-radius: 0;
|
|
362
|
-
max-height: none;
|
|
363
196
|
}
|
|
364
197
|
|
|
365
198
|
#ghonchu-widget-root {
|
|
366
199
|
inset: 0;
|
|
367
200
|
}
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.msg-user-wrapper .ghonchu-avatar {
|
|
371
|
-
margin-left: 8px;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.msg-bot-wrapper .ghonchu-avatar {
|
|
375
|
-
margin-right: 8px;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
/* ===============================
|
|
379
|
-
PROFESSIONAL THEME – CODE BLOCK POLISH
|
|
380
|
-
=============================== */
|
|
381
|
-
|
|
382
|
-
.ghonchu-theme-professional .ghonchu-message pre {
|
|
383
|
-
background: #0f172a;
|
|
384
|
-
/* soft slate */
|
|
385
|
-
color: #e5e7eb;
|
|
386
|
-
padding: 14px 16px;
|
|
387
|
-
border-radius: 12px;
|
|
388
|
-
font-size: 13px;
|
|
389
|
-
line-height: 1.6;
|
|
390
|
-
overflow-x: auto;
|
|
391
|
-
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
/* Remove weird inner background */
|
|
395
|
-
.ghonchu-theme-professional .ghonchu-message pre code {
|
|
396
|
-
background: transparent;
|
|
397
|
-
padding: 0;
|
|
398
|
-
color: inherit;
|
|
399
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
/* Inline code */
|
|
403
|
-
.ghonchu-theme-professional .ghonchu-message code:not(pre code) {
|
|
404
|
-
background: #e5e7eb;
|
|
405
|
-
color: #111827;
|
|
406
|
-
padding: 2px 6px;
|
|
407
|
-
border-radius: 6px;
|
|
408
|
-
font-size: 12px;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
/* Softer scrollbar inside code */
|
|
412
|
-
.ghonchu-theme-professional .ghonchu-message pre::-webkit-scrollbar {
|
|
413
|
-
height: 6px;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
.ghonchu-theme-professional .ghonchu-message pre::-webkit-scrollbar-thumb {
|
|
417
|
-
background: rgba(255, 255, 255, .25);
|
|
418
|
-
border-radius: 4px;
|
|
419
201
|
}
|