andito HF Staff commited on
Commit
6b4e338
·
verified ·
1 Parent(s): 3e61468

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -21
app.py CHANGED
@@ -1414,37 +1414,36 @@ footer {
1414
  opacity: 0.5;
1415
  }
1416
 
1417
- /* Force Gradio's internal blocks and forms to be transparent */
 
1418
  .control-card .block,
1419
- .control-card .form,
1420
- .control-card .gr-form,
1421
- #audio-section .block,
1422
- #audio-section .form,
1423
- #audio-section .gr-form {
1424
  background: transparent !important;
1425
  border: none !important;
1426
  box-shadow: none !important;
1427
  }
1428
 
1429
- /* Override Gradio's CSS variables for inner containers */
1430
- .control-card,
1431
- #audio-section {
1432
- --block-background-fill: transparent !important;
1433
- --secondary-background-fill: transparent !important;
1434
- --component-fill: transparent !important;
1435
- --input-background-fill: #1f1f2e !important;
1436
  }
1437
 
1438
- /* Remove double-border effect on grouped items */
1439
- .control-card > div,
1440
- #audio-section > div {
1441
- border: none !important;
 
 
 
1442
  }
1443
 
1444
- /* Make HTML components transparent */
1445
- .gradio-html {
 
1446
  background: transparent !important;
1447
- padding: 0 !important;
1448
  }
1449
 
1450
  /* Hidden pose state (keep in DOM for JS) */
@@ -2094,7 +2093,7 @@ with gr.Blocks(
2094
  {KEYBOARD_VIZ_HTML_INLINE}
2095
  """
2096
 
2097
- keyboard_html = gr.HTML(container=False)
2098
  demo.load(get_keyboard_html, inputs=[], outputs=keyboard_html)
2099
 
2100
  # Quick actions
 
1414
  opacity: 0.5;
1415
  }
1416
 
1417
+ /* Force transparency on Gradio's inner wrappers */
1418
+ .control-card .styler,
1419
  .control-card .block,
1420
+ #audio-section .styler,
1421
+ #audio-section .block {
 
 
 
1422
  background: transparent !important;
1423
  border: none !important;
1424
  box-shadow: none !important;
1425
  }
1426
 
1427
+ /* More specific targeting for the wrapper divs */
1428
+ #audio-section > .styler > .block {
1429
+ background: transparent !important;
1430
+ padding: 0 !important;
 
 
 
1431
  }
1432
 
1433
+ /* Target the html-container wrapper that has padding class */
1434
+ #audio-section .html-container,
1435
+ #audio-section .html-container.padding,
1436
+ .control-card .html-container,
1437
+ .control-card .html-container.padding {
1438
+ background: transparent !important;
1439
+ padding: 0 !important;
1440
  }
1441
 
1442
+ /* Target all nested divs inside control cards except our custom elements */
1443
+ .control-card div:not(.key):not(.gauge-bar):not(.gauge-fill):not([style*="background"]),
1444
+ #audio-section div:not([style*="background"]) {
1445
  background: transparent !important;
1446
+ border: none !important;
1447
  }
1448
 
1449
  /* Hidden pose state (keep in DOM for JS) */
 
2093
  {KEYBOARD_VIZ_HTML_INLINE}
2094
  """
2095
 
2096
+ keyboard_html = gr.HTML()
2097
  demo.load(get_keyboard_html, inputs=[], outputs=keyboard_html)
2098
 
2099
  # Quick actions