Updated CSS
Browse files
app.py
CHANGED
@@ -364,8 +364,10 @@ with gr.Blocks(title="π Climate Q&A", css="style.css", theme=theme) as demo:
|
|
364 |
with gr.Column(scale=2):
|
365 |
# state = gr.State([system_template])
|
366 |
bot = gr.Chatbot(show_copy_button=True,show_label = False,elem_id="chatbot",layout = "panel",avatar_images = (None,"assets/logo4.png"))
|
367 |
-
|
368 |
-
|
|
|
|
|
369 |
|
370 |
|
371 |
with gr.Column(scale=1, variant="panel",elem_id = "right-panel"):
|
|
|
364 |
with gr.Column(scale=2):
|
365 |
# state = gr.State([system_template])
|
366 |
bot = gr.Chatbot(show_copy_button=True,show_label = False,elem_id="chatbot",layout = "panel",avatar_images = (None,"assets/logo4.png"))
|
367 |
+
|
368 |
+
with gr.Row(elem_id = "input-message"):
|
369 |
+
textbox=gr.Textbox(placeholder="Ask me anything here!",show_label=False,scale=7)
|
370 |
+
submit_button = gr.Button(">",scale = 1,elem_id = "submit-button")
|
371 |
|
372 |
|
373 |
with gr.Column(scale=1, variant="panel",elem_id = "right-panel"):
|
style.css
CHANGED
@@ -22,12 +22,22 @@
|
|
22 |
margin-top:20px;
|
23 |
padding: 15px 20px;
|
24 |
font-size: 14px;
|
25 |
-
color: #006064;
|
26 |
display: inline-block;
|
27 |
margin-bottom: 15px;
|
28 |
width: auto;
|
|
|
29 |
}
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
.tip-box-title {
|
32 |
font-weight: bold;
|
33 |
font-size: 14px;
|
@@ -167,27 +177,70 @@ label.selected{
|
|
167 |
background:none !important;
|
168 |
}
|
169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
|
171 |
-
|
172 |
-
|
173 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
}
|
175 |
|
176 |
-
div#sources-textbox{
|
177 |
-
height:calc(100vh - 190px) !important;
|
178 |
-
overflow-y: auto;
|
179 |
-
}
|
180 |
|
181 |
-
|
182 |
-
|
183 |
}
|
184 |
|
185 |
-
|
186 |
-
|
187 |
}
|
188 |
|
|
|
|
|
|
|
189 |
|
190 |
-
.
|
191 |
-
|
192 |
-
|
193 |
-
}
|
|
|
22 |
margin-top:20px;
|
23 |
padding: 15px 20px;
|
24 |
font-size: 14px;
|
|
|
25 |
display: inline-block;
|
26 |
margin-bottom: 15px;
|
27 |
width: auto;
|
28 |
+
color:black !important;
|
29 |
}
|
30 |
|
31 |
+
body.dark .warning-box * {
|
32 |
+
color:black !important;
|
33 |
+
}
|
34 |
+
|
35 |
+
|
36 |
+
body.dark .tip-box * {
|
37 |
+
color:black !important;
|
38 |
+
}
|
39 |
+
|
40 |
+
|
41 |
.tip-box-title {
|
42 |
font-weight: bold;
|
43 |
font-size: 14px;
|
|
|
177 |
background:none !important;
|
178 |
}
|
179 |
|
180 |
+
#submit-button{
|
181 |
+
padding:0px !important;
|
182 |
+
}
|
183 |
+
|
184 |
+
|
185 |
+
@media screen and (min-width: 1024px) {
|
186 |
+
div#tab-examples{
|
187 |
+
height:calc(100vh - 190px) !important;
|
188 |
+
overflow-y: auto;
|
189 |
+
}
|
190 |
+
|
191 |
+
div#sources-textbox{
|
192 |
+
height:calc(100vh - 190px) !important;
|
193 |
+
overflow-y: auto;
|
194 |
+
}
|
195 |
+
|
196 |
+
div#chatbot-row{
|
197 |
+
height:calc(100vh - 120px) !important;
|
198 |
+
}
|
199 |
+
|
200 |
+
div#chatbot{
|
201 |
+
height:calc(100vh - 220px) !important;
|
202 |
+
}
|
203 |
+
|
204 |
+
.max-height{
|
205 |
+
height:calc(100vh - 120px) !important;
|
206 |
+
overflow-y: auto;
|
207 |
+
}
|
208 |
+
}
|
209 |
+
|
210 |
+
footer {
|
211 |
+
visibility: hidden;
|
212 |
+
display:none;
|
213 |
+
}
|
214 |
+
|
215 |
|
216 |
+
@media screen and (max-width: 767px) {
|
217 |
+
/* Your mobile-specific styles go here */
|
218 |
+
|
219 |
+
div#chatbot{
|
220 |
+
height:500px !important;
|
221 |
+
}
|
222 |
+
|
223 |
+
#submit-button{
|
224 |
+
padding:0px !important;
|
225 |
+
min-width: 80px;
|
226 |
+
}
|
227 |
+
|
228 |
+
/* ... add other mobile-specific styles ... */
|
229 |
}
|
230 |
|
|
|
|
|
|
|
|
|
231 |
|
232 |
+
body.dark .card{
|
233 |
+
background-color: #374151;
|
234 |
}
|
235 |
|
236 |
+
body.dark .card-content h2{
|
237 |
+
color:#f4dbd3 !important;
|
238 |
}
|
239 |
|
240 |
+
body.dark .card-footer {
|
241 |
+
background-color: #404652;
|
242 |
+
}
|
243 |
|
244 |
+
body.dark .card-footer span {
|
245 |
+
color:white !important;
|
246 |
+
}
|
|