davda54 commited on
Commit
4620936
·
verified ·
1 Parent(s): 34574db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -1
app.py CHANGED
@@ -434,13 +434,45 @@ custom_css = """
434
  .light-shadow {
435
  box-shadow: 0 1px 4px 0 rgb(0 0 0 / 0.1) !important;
436
  }
437
- .no-style-textbox input {
 
 
 
 
 
 
 
 
 
438
  border: none !important;
439
  box-shadow: none !important;
440
  padding: 0 !important;
441
  background: transparent !important;
442
  outline: none !important;
443
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
444
  """
445
 
446
  # Create Gradio interface
 
434
  .light-shadow {
435
  box-shadow: 0 1px 4px 0 rgb(0 0 0 / 0.1) !important;
436
  }
437
+ /* Target the textbox container */
438
+ .no-style-textbox {
439
+ border: none !important;
440
+ box-shadow: none !important;
441
+ background: transparent !important;
442
+ }
443
+
444
+ /* Target both input and textarea elements */
445
+ .no-style-textbox input,
446
+ .no-style-textbox textarea {
447
  border: none !important;
448
  box-shadow: none !important;
449
  padding: 0 !important;
450
  background: transparent !important;
451
  outline: none !important;
452
  }
453
+
454
+ /* Target the Gradio textbox wrapper */
455
+ .no-style-textbox .gr-textbox {
456
+ border: none !important;
457
+ box-shadow: none !important;
458
+ background: transparent !important;
459
+ }
460
+
461
+ /* Target focus states */
462
+ .no-style-textbox input:focus,
463
+ .no-style-textbox textarea:focus {
464
+ border: none !important;
465
+ box-shadow: none !important;
466
+ outline: none !important;
467
+ }
468
+
469
+ /* Additional targeting for stubborn Gradio elements */
470
+ .no-style-textbox .gr-form,
471
+ .no-style-textbox .gr-input {
472
+ border: none !important;
473
+ box-shadow: none !important;
474
+ background: transparent !important;
475
+ }
476
  """
477
 
478
  # Create Gradio interface