Update app.py
Browse files
app.py
CHANGED
|
@@ -1414,37 +1414,36 @@ footer {
|
|
| 1414 |
opacity: 0.5;
|
| 1415 |
}
|
| 1416 |
|
| 1417 |
-
/* Force Gradio's
|
|
|
|
| 1418 |
.control-card .block,
|
| 1419 |
-
|
| 1420 |
-
|
| 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 |
-
/*
|
| 1430 |
-
|
| 1431 |
-
|
| 1432 |
-
|
| 1433 |
-
--secondary-background-fill: transparent !important;
|
| 1434 |
-
--component-fill: transparent !important;
|
| 1435 |
-
--input-background-fill: #1f1f2e !important;
|
| 1436 |
}
|
| 1437 |
|
| 1438 |
-
/*
|
| 1439 |
-
|
| 1440 |
-
#audio-section
|
| 1441 |
-
|
|
|
|
|
|
|
|
|
|
| 1442 |
}
|
| 1443 |
|
| 1444 |
-
/*
|
| 1445 |
-
.
|
|
|
|
| 1446 |
background: transparent !important;
|
| 1447 |
-
|
| 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(
|
| 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
|