Update static/style.css
Browse files- static/style.css +75 -40
static/style.css
CHANGED
@@ -25,6 +25,8 @@
|
|
25 |
--visual_green: #a9b665;
|
26 |
--aqua: #8ec07c;
|
27 |
}
|
|
|
|
|
28 |
body {
|
29 |
background-color: var(--bg0);
|
30 |
color: var(--fg0);
|
@@ -49,12 +51,74 @@ button:hover {
|
|
49 |
background-color: var(--purple) !important;
|
50 |
color: var(--fg0) !important;
|
51 |
}
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
55 |
overflow: visible;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
text-align: center;
|
57 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
.options {
|
59 |
position: absolute;
|
60 |
top: 100%;
|
@@ -68,15 +132,13 @@ button:hover {
|
|
68 |
border-radius: 0.5rem;
|
69 |
max-height: 15rem;
|
70 |
overflow-y: auto;
|
71 |
-
scrollbar-width: thin;
|
72 |
-
scrollbar-color: #665c54 var(--bg-statusline1);
|
73 |
display: none;
|
74 |
}
|
75 |
.options.show {
|
76 |
display: block;
|
77 |
}
|
78 |
.options div {
|
79 |
-
padding: 0.5rem
|
80 |
text-align: center;
|
81 |
cursor: pointer;
|
82 |
}
|
@@ -85,6 +147,8 @@ button:hover {
|
|
85 |
color: var(--fg1);
|
86 |
font-weight: 600;
|
87 |
}
|
|
|
|
|
88 |
.options::-webkit-scrollbar {
|
89 |
width: 8px;
|
90 |
}
|
@@ -100,37 +164,13 @@ button:hover {
|
|
100 |
.options::-webkit-scrollbar-thumb:hover {
|
101 |
background-color: #7c6f64;
|
102 |
}
|
103 |
-
|
104 |
-
|
105 |
-
max-height: 1000px;
|
106 |
-
overflow: visible;
|
107 |
-
transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.5s ease;
|
108 |
-
display: flex;
|
109 |
-
flex-direction: column;
|
110 |
-
gap: 1rem;
|
111 |
-
}
|
112 |
-
#configPanel.minimal .model-grid {
|
113 |
-
display: grid;
|
114 |
-
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
115 |
-
gap: 1rem;
|
116 |
-
}
|
117 |
-
#configPanel.minimal .dropdown,
|
118 |
-
#configPanel.minimal label {
|
119 |
-
display: none;
|
120 |
-
}
|
121 |
-
#configPanel.minimal .model-name,
|
122 |
-
#configPanel.minimal .loader {
|
123 |
-
display: block;
|
124 |
-
}
|
125 |
-
#configPanel.expanded .model-name,
|
126 |
-
#configPanel.expanded .loader {
|
127 |
-
display: none;
|
128 |
-
}
|
129 |
-
/* Align loading animation */
|
130 |
.loader {
|
131 |
display: flex;
|
132 |
justify-content: center;
|
133 |
align-items: center;
|
|
|
134 |
gap: 4px;
|
135 |
margin-top: 4px;
|
136 |
}
|
@@ -151,12 +191,7 @@ button:hover {
|
|
151 |
0%, 80%, 100% { transform: scale(0); }
|
152 |
40% { transform: scale(1); }
|
153 |
}
|
154 |
-
|
155 |
-
display: flex;
|
156 |
-
flex-direction: column;
|
157 |
-
align-items: center;
|
158 |
-
text-align: center;
|
159 |
-
}
|
160 |
/* Footer */
|
161 |
footer {
|
162 |
margin-top: 1rem;
|
@@ -165,7 +200,7 @@ footer {
|
|
165 |
color: var(--fg1);
|
166 |
opacity: 0.7;
|
167 |
}
|
168 |
-
/* Chat
|
169 |
#chatContainer {
|
170 |
position: relative;
|
171 |
z-index: 0;
|
|
|
25 |
--visual_green: #a9b665;
|
26 |
--aqua: #8ec07c;
|
27 |
}
|
28 |
+
|
29 |
+
/* Base Styling */
|
30 |
body {
|
31 |
background-color: var(--bg0);
|
32 |
color: var(--fg0);
|
|
|
51 |
background-color: var(--purple) !important;
|
52 |
color: var(--fg0) !important;
|
53 |
}
|
54 |
+
|
55 |
+
/* Config Panel Layout */
|
56 |
+
#configPanel {
|
57 |
+
max-height: 1000px;
|
58 |
overflow: visible;
|
59 |
+
transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.5s ease;
|
60 |
+
display: flex;
|
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;
|
73 |
+
align-items: center;
|
74 |
text-align: center;
|
75 |
}
|
76 |
+
|
77 |
+
/* Minimal View */
|
78 |
+
#configPanel.minimal .model-label,
|
79 |
+
#configPanel.minimal .model-dropdown,
|
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;
|
94 |
+
margin-top: 0.5rem;
|
95 |
+
}
|
96 |
+
|
97 |
+
/* Expanded View */
|
98 |
+
#configPanel.expanded .model-label,
|
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;
|
111 |
+
margin-top: 0.5rem;
|
112 |
+
}
|
113 |
+
|
114 |
+
/* Dropdown */
|
115 |
+
.model-dropdown {
|
116 |
+
position: relative;
|
117 |
+
background-color: var(--bg-statusline1);
|
118 |
+
padding: 0.5rem;
|
119 |
+
border-radius: 0.5rem;
|
120 |
+
cursor: pointer;
|
121 |
+
}
|
122 |
.options {
|
123 |
position: absolute;
|
124 |
top: 100%;
|
|
|
132 |
border-radius: 0.5rem;
|
133 |
max-height: 15rem;
|
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 |
}
|
|
|
147 |
color: var(--fg1);
|
148 |
font-weight: 600;
|
149 |
}
|
150 |
+
|
151 |
+
/* Scrollbar WebKit */
|
152 |
.options::-webkit-scrollbar {
|
153 |
width: 8px;
|
154 |
}
|
|
|
164 |
.options::-webkit-scrollbar-thumb:hover {
|
165 |
background-color: #7c6f64;
|
166 |
}
|
167 |
+
|
168 |
+
/* Loader */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
.loader {
|
170 |
display: flex;
|
171 |
justify-content: center;
|
172 |
align-items: center;
|
173 |
+
flex-direction: row;
|
174 |
gap: 4px;
|
175 |
margin-top: 4px;
|
176 |
}
|
|
|
191 |
0%, 80%, 100% { transform: scale(0); }
|
192 |
40% { transform: scale(1); }
|
193 |
}
|
194 |
+
|
|
|
|
|
|
|
|
|
|
|
195 |
/* Footer */
|
196 |
footer {
|
197 |
margin-top: 1rem;
|
|
|
200 |
color: var(--fg1);
|
201 |
opacity: 0.7;
|
202 |
}
|
203 |
+
/* Chat */
|
204 |
#chatContainer {
|
205 |
position: relative;
|
206 |
z-index: 0;
|