Spaces:
Running on Zero
Running on Zero
UI: glass v3 — glow z-index:-1, .gradio-container z-index:1 for stacking, duplicate #input-panel deduped
Browse files
app.py
CHANGED
|
@@ -682,7 +682,7 @@ GLASS_CSS = """
|
|
| 682 |
border-radius: 50% !important;
|
| 683 |
filter: blur(140px) !important;
|
| 684 |
pointer-events: none !important;
|
| 685 |
-
z-index:
|
| 686 |
}
|
| 687 |
#glow-teal {
|
| 688 |
width: 600px !important; height: 600px !important;
|
|
@@ -695,10 +695,12 @@ GLASS_CSS = """
|
|
| 695 |
background: rgba(168, 85, 247, 0.15) !important;
|
| 696 |
}
|
| 697 |
|
| 698 |
-
/* ── BACKGROUND — dark navy ── */
|
| 699 |
.gradio-container {
|
| 700 |
background: #0a0e1a !important;
|
| 701 |
min-height: 100vh !important;
|
|
|
|
|
|
|
| 702 |
}
|
| 703 |
|
| 704 |
/* ── GLASS PANELS — NO backdrop-filter (breaks dropdowns) ── */
|
|
@@ -709,6 +711,13 @@ GLASS_CSS = """
|
|
| 709 |
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
|
| 710 |
padding: 24px !important;
|
| 711 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 712 |
|
| 713 |
/* ── SECTION LABELS — uppercase teal ── */
|
| 714 |
.glass-label {
|
|
@@ -859,7 +868,7 @@ button.secondary:hover {
|
|
| 859 |
|
| 860 |
/* ── GLASS CONTAINER for input column ── */
|
| 861 |
#input-panel {
|
| 862 |
-
background: rgba(15, 20, 35, 0.
|
| 863 |
border: 1px solid rgba(255, 255, 255, 0.10) !important;
|
| 864 |
border-radius: 16px !important;
|
| 865 |
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
|
|
@@ -889,7 +898,7 @@ button.secondary:hover {
|
|
| 889 |
|
| 890 |
with gr.Blocks(delete_cache=(3600, 10800)) as demo:
|
| 891 |
# ── AMBIENT GLOW BLOBS — fixed behind everything ──
|
| 892 |
-
gr.HTML("<div id='glow-teal'></div><div id='glow-purple'></div>"
|
| 893 |
|
| 894 |
# ── TITLE & SUBTITLE — float freely ──
|
| 895 |
gr.HTML("<div class='glass-title'>Wan 2.2 I2V 14B Lightning — NSFW</div>")
|
|
|
|
| 682 |
border-radius: 50% !important;
|
| 683 |
filter: blur(140px) !important;
|
| 684 |
pointer-events: none !important;
|
| 685 |
+
z-index: -1 !important;
|
| 686 |
}
|
| 687 |
#glow-teal {
|
| 688 |
width: 600px !important; height: 600px !important;
|
|
|
|
| 695 |
background: rgba(168, 85, 247, 0.15) !important;
|
| 696 |
}
|
| 697 |
|
| 698 |
+
/* ── BACKGROUND — dark navy, position relative for glow stacking ── */
|
| 699 |
.gradio-container {
|
| 700 |
background: #0a0e1a !important;
|
| 701 |
min-height: 100vh !important;
|
| 702 |
+
position: relative !important;
|
| 703 |
+
z-index: 1 !important;
|
| 704 |
}
|
| 705 |
|
| 706 |
/* ── GLASS PANELS — NO backdrop-filter (breaks dropdowns) ── */
|
|
|
|
| 711 |
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
|
| 712 |
padding: 24px !important;
|
| 713 |
}
|
| 714 |
+
#input-panel {
|
| 715 |
+
background: rgba(15, 20, 35, 0.60) !important;
|
| 716 |
+
border: 1px solid rgba(255, 255, 255, 0.10) !important;
|
| 717 |
+
border-radius: 16px !important;
|
| 718 |
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
|
| 719 |
+
padding: 28px !important;
|
| 720 |
+
}
|
| 721 |
|
| 722 |
/* ── SECTION LABELS — uppercase teal ── */
|
| 723 |
.glass-label {
|
|
|
|
| 868 |
|
| 869 |
/* ── GLASS CONTAINER for input column ── */
|
| 870 |
#input-panel {
|
| 871 |
+
background: rgba(15, 20, 35, 0.60) !important;
|
| 872 |
border: 1px solid rgba(255, 255, 255, 0.10) !important;
|
| 873 |
border-radius: 16px !important;
|
| 874 |
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
|
|
|
|
| 898 |
|
| 899 |
with gr.Blocks(delete_cache=(3600, 10800)) as demo:
|
| 900 |
# ── AMBIENT GLOW BLOBS — fixed behind everything ──
|
| 901 |
+
gr.HTML("<div id='glow-teal'></div><div id='glow-purple'></div>")
|
| 902 |
|
| 903 |
# ── TITLE & SUBTITLE — float freely ──
|
| 904 |
gr.HTML("<div class='glass-title'>Wan 2.2 I2V 14B Lightning — NSFW</div>")
|