jdesiree commited on
Commit
89d98dc
·
verified ·
1 Parent(s): a005d70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +45 -11
app.py CHANGED
@@ -317,22 +317,42 @@ custom_css = """
317
  /* Import Oswald font - Google Fonts */
318
  @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
319
 
320
- /* Force light mode */
 
 
 
 
 
321
  @media (prefers-color-scheme: dark) {
322
- .gradio-container-5-42-0 {
323
  color-scheme: light !important;
324
  }
325
 
326
- /* Target the specific Svelte chat placeholder */
327
- .placeholder-content.svelte-9pi8y1[role="complementary"] {
328
- background-color: #d9d1ce !important;
329
- border: 1pt solid #59524f !important;
330
  }
331
 
332
- /* Additional fallback selectors */
333
- div[role="complementary"] {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
334
  background-color: #d9d1ce !important;
335
- border: 1pt solid #59524f !important;
 
336
  }
337
  }
338
 
@@ -351,6 +371,7 @@ html, body {
351
  color: #120f0e !important;
352
  padding-top: 0 !important;
353
  margin-top: 0 !important;
 
354
  }
355
 
356
  /* Apply Oswald globally */
@@ -375,18 +396,31 @@ html, body {
375
  padding: 0;
376
  }
377
 
378
- /* Chat container and chatbot styling */
379
  .chat-container,
380
  .gradio-container-5-42-0 .gradio-chatbot,
381
  .gradio-container-5-42-0 #main-chatbot,
382
  .gradio-container-5-42-0 .gradio-chatbot > div,
383
  .gradio-container-5-42-0 .gradio-chatbot .scroll-hide,
384
- .gradio-container-5-42-0 .gradio-chatbot .overflow-y-auto {
 
 
 
 
385
  background-color: #d9d1ce !important;
 
386
  border: 1pt solid #59524f !important;
387
  border-radius: 6px !important;
388
  padding: 20px !important;
389
  min-height: 900px;
 
 
 
 
 
 
 
 
390
  }
391
 
392
  /* Message styling */
 
317
  /* Import Oswald font - Google Fonts */
318
  @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
319
 
320
+ /* Force light mode at root level */
321
+ :root {
322
+ color-scheme: light !important;
323
+ }
324
+
325
+ /* Override ALL dark mode media queries */
326
  @media (prefers-color-scheme: dark) {
327
+ * {
328
  color-scheme: light !important;
329
  }
330
 
331
+ html, body {
332
+ background-color: rgb(240, 236, 230) !important;
333
+ color: #120f0e !important;
 
334
  }
335
 
336
+ .gradio-container-5-42-0 {
337
+ color-scheme: light !important;
338
+ background-color: rgb(240, 236, 230) !important;
339
+ }
340
+
341
+ /* Target ALL possible chat elements in dark mode */
342
+ .placeholder-content,
343
+ .placeholder-content.svelte-9pi8y1,
344
+ .placeholder-content.svelte-9pi8y1[role="complementary"],
345
+ div[role="complementary"],
346
+ .gradio-chatbot,
347
+ .gradio-chatbot *,
348
+ .chatbot,
349
+ [data-testid="chatbot"],
350
+ [data-testid="chatbot"] *,
351
+ .scroll-hide,
352
+ .overflow-y-auto {
353
  background-color: #d9d1ce !important;
354
+ background: #d9d1ce !important;
355
+ color: #120f0e !important;
356
  }
357
  }
358
 
 
371
  color: #120f0e !important;
372
  padding-top: 0 !important;
373
  margin-top: 0 !important;
374
+ color-scheme: light !important;
375
  }
376
 
377
  /* Apply Oswald globally */
 
396
  padding: 0;
397
  }
398
 
399
+ /* AGGRESSIVE chat styling - target everything */
400
  .chat-container,
401
  .gradio-container-5-42-0 .gradio-chatbot,
402
  .gradio-container-5-42-0 #main-chatbot,
403
  .gradio-container-5-42-0 .gradio-chatbot > div,
404
  .gradio-container-5-42-0 .gradio-chatbot .scroll-hide,
405
+ .gradio-container-5-42-0 .gradio-chatbot .overflow-y-auto,
406
+ .placeholder-content,
407
+ .placeholder-content.svelte-9pi8y1,
408
+ .placeholder-content.svelte-9pi8y1[role="complementary"],
409
+ div[role="complementary"] {
410
  background-color: #d9d1ce !important;
411
+ background: #d9d1ce !important;
412
  border: 1pt solid #59524f !important;
413
  border-radius: 6px !important;
414
  padding: 20px !important;
415
  min-height: 900px;
416
+ color: #120f0e !important;
417
+ }
418
+
419
+ /* Force all nested elements */
420
+ .gradio-container-5-42-0 .gradio-chatbot *:not(.message) {
421
+ background-color: #d9d1ce !important;
422
+ background: #d9d1ce !important;
423
+ color: #120f0e !important;
424
  }
425
 
426
  /* Message styling */