Update static/style.css
Browse files- static/style.css +78 -5
static/style.css
CHANGED
@@ -12,6 +12,7 @@
|
|
12 |
--visual_green: #d7d9ae;
|
13 |
--aqua: #689d6a;
|
14 |
}
|
|
|
15 |
.dark {
|
16 |
--bg0: #32302f;
|
17 |
--bg1: #3c3836;
|
@@ -27,17 +28,32 @@
|
|
27 |
}
|
28 |
|
29 |
/* Base Styling */
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
body {
|
31 |
background-color: var(--bg0);
|
32 |
color: var(--fg0);
|
33 |
}
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
background-color: var(--bg1);
|
36 |
color: var(--fg0);
|
37 |
}
|
|
|
38 |
input::placeholder {
|
39 |
color: var(--fg1);
|
40 |
}
|
|
|
41 |
button {
|
42 |
background-color: var(--blue) !important;
|
43 |
color: var(--fg1) !important;
|
@@ -47,6 +63,7 @@ button {
|
|
47 |
transition: background-color 0.3s;
|
48 |
border: none;
|
49 |
}
|
|
|
50 |
button:hover {
|
51 |
background-color: var(--purple) !important;
|
52 |
color: var(--fg0) !important;
|
@@ -61,12 +78,15 @@ button:hover {
|
|
61 |
flex-direction: column;
|
62 |
gap: 1rem;
|
63 |
}
|
|
|
64 |
#configPanel > h2 {
|
65 |
text-align: center;
|
66 |
}
|
|
|
67 |
#configPanel .grid {
|
68 |
justify-items: center;
|
69 |
}
|
|
|
70 |
.model-zone {
|
71 |
display: flex;
|
72 |
flex-direction: column;
|
@@ -80,14 +100,17 @@ button:hover {
|
|
80 |
#configPanel.minimal .options {
|
81 |
display: none !important;
|
82 |
}
|
|
|
83 |
#configPanel.minimal .model-name {
|
84 |
display: inline-block;
|
85 |
font-weight: bold;
|
86 |
margin-top: 0.25rem;
|
87 |
}
|
|
|
88 |
#configPanel.minimal .loader {
|
89 |
display: none;
|
90 |
}
|
|
|
91 |
#configPanel.minimal .model-zone.loading .loader {
|
92 |
display: flex;
|
93 |
justify-content: center;
|
@@ -99,12 +122,15 @@ button:hover {
|
|
99 |
#configPanel.expanded .model-dropdown {
|
100 |
display: block;
|
101 |
}
|
|
|
102 |
#configPanel.expanded .model-name {
|
103 |
display: none;
|
104 |
}
|
|
|
105 |
#configPanel.expanded .loader {
|
106 |
display: none;
|
107 |
}
|
|
|
108 |
#configPanel.expanded .model-zone.loading .loader {
|
109 |
display: flex;
|
110 |
justify-content: center;
|
@@ -119,6 +145,7 @@ button:hover {
|
|
119 |
border-radius: 0.5rem;
|
120 |
cursor: pointer;
|
121 |
}
|
|
|
122 |
.options {
|
123 |
position: absolute;
|
124 |
top: 100%;
|
@@ -134,14 +161,17 @@ button:hover {
|
|
134 |
overflow-y: auto;
|
135 |
display: none;
|
136 |
}
|
|
|
137 |
.options.show {
|
138 |
display: block;
|
139 |
}
|
|
|
140 |
.options div {
|
141 |
padding: 0.5rem;
|
142 |
text-align: center;
|
143 |
cursor: pointer;
|
144 |
}
|
|
|
145 |
.options div:hover {
|
146 |
background-color: var(--blue);
|
147 |
color: var(--fg1);
|
@@ -152,15 +182,18 @@ button:hover {
|
|
152 |
.options::-webkit-scrollbar {
|
153 |
width: 8px;
|
154 |
}
|
|
|
155 |
.options::-webkit-scrollbar-track {
|
156 |
background-color: var(--bg-statusline1);
|
157 |
border-radius: 0.25rem;
|
158 |
}
|
|
|
159 |
.options::-webkit-scrollbar-thumb {
|
160 |
background-color: #665c54;
|
161 |
border-radius: 4px;
|
162 |
border: 2px solid var(--bg-statusline1);
|
163 |
}
|
|
|
164 |
.options::-webkit-scrollbar-thumb:hover {
|
165 |
background-color: #7c6f64;
|
166 |
}
|
@@ -174,6 +207,7 @@ button:hover {
|
|
174 |
gap: 4px;
|
175 |
margin-top: 4px;
|
176 |
}
|
|
|
177 |
.dot {
|
178 |
width: 8px;
|
179 |
height: 8px;
|
@@ -181,12 +215,15 @@ button:hover {
|
|
181 |
border-radius: 50%;
|
182 |
animation: bounce 1.4s infinite ease-in-out both;
|
183 |
}
|
|
|
184 |
.dot:nth-child(2) {
|
185 |
animation-delay: 0.15s;
|
186 |
}
|
|
|
187 |
.dot:nth-child(3) {
|
188 |
animation-delay: 0.3s;
|
189 |
}
|
|
|
190 |
@keyframes bounce {
|
191 |
0%, 80%, 100% { transform: scale(0); }
|
192 |
40% { transform: scale(1); }
|
@@ -200,13 +237,49 @@ footer {
|
|
200 |
color: var(--fg1);
|
201 |
opacity: 0.7;
|
202 |
}
|
203 |
-
|
|
|
204 |
#chatContainer {
|
205 |
-
|
206 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
}
|
208 |
|
209 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
white-space: pre-wrap;
|
211 |
word-break: break-word;
|
212 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
--visual_green: #d7d9ae;
|
13 |
--aqua: #689d6a;
|
14 |
}
|
15 |
+
|
16 |
.dark {
|
17 |
--bg0: #32302f;
|
18 |
--bg1: #3c3836;
|
|
|
28 |
}
|
29 |
|
30 |
/* Base Styling */
|
31 |
+
html, body {
|
32 |
+
height: 100%;
|
33 |
+
margin: 0;
|
34 |
+
overflow: hidden;
|
35 |
+
}
|
36 |
+
|
37 |
body {
|
38 |
background-color: var(--bg0);
|
39 |
color: var(--fg0);
|
40 |
}
|
41 |
+
|
42 |
+
body > .main-container {
|
43 |
+
display: flex;
|
44 |
+
flex-direction: column;
|
45 |
+
height: 100vh;
|
46 |
+
}
|
47 |
+
|
48 |
+
input, button {
|
49 |
background-color: var(--bg1);
|
50 |
color: var(--fg0);
|
51 |
}
|
52 |
+
|
53 |
input::placeholder {
|
54 |
color: var(--fg1);
|
55 |
}
|
56 |
+
|
57 |
button {
|
58 |
background-color: var(--blue) !important;
|
59 |
color: var(--fg1) !important;
|
|
|
63 |
transition: background-color 0.3s;
|
64 |
border: none;
|
65 |
}
|
66 |
+
|
67 |
button:hover {
|
68 |
background-color: var(--purple) !important;
|
69 |
color: var(--fg0) !important;
|
|
|
78 |
flex-direction: column;
|
79 |
gap: 1rem;
|
80 |
}
|
81 |
+
|
82 |
#configPanel > h2 {
|
83 |
text-align: center;
|
84 |
}
|
85 |
+
|
86 |
#configPanel .grid {
|
87 |
justify-items: center;
|
88 |
}
|
89 |
+
|
90 |
.model-zone {
|
91 |
display: flex;
|
92 |
flex-direction: column;
|
|
|
100 |
#configPanel.minimal .options {
|
101 |
display: none !important;
|
102 |
}
|
103 |
+
|
104 |
#configPanel.minimal .model-name {
|
105 |
display: inline-block;
|
106 |
font-weight: bold;
|
107 |
margin-top: 0.25rem;
|
108 |
}
|
109 |
+
|
110 |
#configPanel.minimal .loader {
|
111 |
display: none;
|
112 |
}
|
113 |
+
|
114 |
#configPanel.minimal .model-zone.loading .loader {
|
115 |
display: flex;
|
116 |
justify-content: center;
|
|
|
122 |
#configPanel.expanded .model-dropdown {
|
123 |
display: block;
|
124 |
}
|
125 |
+
|
126 |
#configPanel.expanded .model-name {
|
127 |
display: none;
|
128 |
}
|
129 |
+
|
130 |
#configPanel.expanded .loader {
|
131 |
display: none;
|
132 |
}
|
133 |
+
|
134 |
#configPanel.expanded .model-zone.loading .loader {
|
135 |
display: flex;
|
136 |
justify-content: center;
|
|
|
145 |
border-radius: 0.5rem;
|
146 |
cursor: pointer;
|
147 |
}
|
148 |
+
|
149 |
.options {
|
150 |
position: absolute;
|
151 |
top: 100%;
|
|
|
161 |
overflow-y: auto;
|
162 |
display: none;
|
163 |
}
|
164 |
+
|
165 |
.options.show {
|
166 |
display: block;
|
167 |
}
|
168 |
+
|
169 |
.options div {
|
170 |
padding: 0.5rem;
|
171 |
text-align: center;
|
172 |
cursor: pointer;
|
173 |
}
|
174 |
+
|
175 |
.options div:hover {
|
176 |
background-color: var(--blue);
|
177 |
color: var(--fg1);
|
|
|
182 |
.options::-webkit-scrollbar {
|
183 |
width: 8px;
|
184 |
}
|
185 |
+
|
186 |
.options::-webkit-scrollbar-track {
|
187 |
background-color: var(--bg-statusline1);
|
188 |
border-radius: 0.25rem;
|
189 |
}
|
190 |
+
|
191 |
.options::-webkit-scrollbar-thumb {
|
192 |
background-color: #665c54;
|
193 |
border-radius: 4px;
|
194 |
border: 2px solid var(--bg-statusline1);
|
195 |
}
|
196 |
+
|
197 |
.options::-webkit-scrollbar-thumb:hover {
|
198 |
background-color: #7c6f64;
|
199 |
}
|
|
|
207 |
gap: 4px;
|
208 |
margin-top: 4px;
|
209 |
}
|
210 |
+
|
211 |
.dot {
|
212 |
width: 8px;
|
213 |
height: 8px;
|
|
|
215 |
border-radius: 50%;
|
216 |
animation: bounce 1.4s infinite ease-in-out both;
|
217 |
}
|
218 |
+
|
219 |
.dot:nth-child(2) {
|
220 |
animation-delay: 0.15s;
|
221 |
}
|
222 |
+
|
223 |
.dot:nth-child(3) {
|
224 |
animation-delay: 0.3s;
|
225 |
}
|
226 |
+
|
227 |
@keyframes bounce {
|
228 |
0%, 80%, 100% { transform: scale(0); }
|
229 |
40% { transform: scale(1); }
|
|
|
237 |
color: var(--fg1);
|
238 |
opacity: 0.7;
|
239 |
}
|
240 |
+
|
241 |
+
/* Chat Scrollable Container */
|
242 |
#chatContainer {
|
243 |
+
flex: 1;
|
244 |
+
overflow-y: auto;
|
245 |
+
padding: 1rem;
|
246 |
+
background-color: var(--bg1);
|
247 |
+
border-radius: 0.5rem;
|
248 |
+
display: flex;
|
249 |
+
flex-direction: column;
|
250 |
+
gap: 1rem;
|
251 |
+
height: 100%;
|
252 |
}
|
253 |
|
254 |
+
/* Message Alignment */
|
255 |
+
.message-wrapper {
|
256 |
+
display: flex;
|
257 |
+
width: 100%;
|
258 |
+
}
|
259 |
+
|
260 |
+
.message-wrapper.user {
|
261 |
+
justify-content: flex-end;
|
262 |
+
}
|
263 |
+
|
264 |
+
.message-wrapper.bot {
|
265 |
+
justify-content: flex-start;
|
266 |
+
}
|
267 |
+
|
268 |
+
.message-bubble {
|
269 |
+
max-width: 80%;
|
270 |
+
padding: 0.75rem 1rem;
|
271 |
+
border-radius: 0.5rem;
|
272 |
+
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
|
273 |
white-space: pre-wrap;
|
274 |
word-break: break-word;
|
275 |
}
|
276 |
+
|
277 |
+
.user .message-bubble {
|
278 |
+
background-color: var(--blue);
|
279 |
+
color: var(--fg0);
|
280 |
+
}
|
281 |
+
|
282 |
+
.bot .message-bubble {
|
283 |
+
background-color: var(--green);
|
284 |
+
color: var(--fg0);
|
285 |
+
}
|