Spaces:
Running
Running
Update css.py
Browse files
css.py
CHANGED
|
@@ -13,65 +13,81 @@ LAYOUT_CSS = """
|
|
| 13 |
textarea, input, .gr-button, .gr-box, .gr-panel,
|
| 14 |
.gr-input, .gr-text-input { border-radius: 14px !important; }
|
| 15 |
|
| 16 |
-
/* ββ Cards ββ */
|
| 17 |
.input-card {
|
| 18 |
-
background:
|
| 19 |
-
border-radius:
|
| 20 |
-
border:
|
| 21 |
-
backdrop-filter: blur(
|
|
|
|
| 22 |
}
|
| 23 |
.output-card {
|
| 24 |
-
background:
|
| 25 |
-
border-radius:
|
| 26 |
-
border:
|
| 27 |
-
backdrop-filter: blur(
|
|
|
|
| 28 |
}
|
| 29 |
.viz-card {
|
| 30 |
-
background: rgba(
|
| 31 |
-
border-radius:
|
| 32 |
-
border:
|
| 33 |
-
backdrop-filter: blur(
|
|
|
|
| 34 |
}
|
| 35 |
|
| 36 |
/* ββ Text areas ββ */
|
| 37 |
.smiles-input textarea {
|
| 38 |
font-size: 11px !important; font-family: monospace !important;
|
| 39 |
border-radius: 12px !important; line-height: 1.5 !important;
|
|
|
|
| 40 |
}
|
| 41 |
.compact-text textarea {
|
| 42 |
font-size: 11px !important; font-family: monospace !important;
|
| 43 |
border-radius: 12px !important; line-height: 1.4 !important;
|
|
|
|
| 44 |
}
|
| 45 |
|
| 46 |
/* ββ Buttons ββ */
|
| 47 |
.run-btn {
|
| 48 |
border-radius: 26px !important; font-weight: 700 !important;
|
| 49 |
-
font-size:
|
| 50 |
-
box-shadow: 0 4px
|
| 51 |
transition: transform 0.15s, box-shadow 0.15s !important;
|
| 52 |
}
|
| 53 |
.run-btn:hover {
|
| 54 |
-
transform: translateY(-
|
| 55 |
-
box-shadow: 0 6px
|
| 56 |
}
|
| 57 |
.nav-btn { border-radius: 20px !important; min-width: 40px !important; }
|
| 58 |
.save-btn { border-radius: 20px !important; }
|
| 59 |
|
| 60 |
-
/* ββ Section labels ββ */
|
| 61 |
.section-label {
|
| 62 |
-
font-size:
|
| 63 |
-
text-transform: uppercase !important; letter-spacing:
|
| 64 |
-
color: #
|
|
|
|
|
|
|
| 65 |
}
|
| 66 |
|
| 67 |
/* ββ Footer ββ */
|
| 68 |
.footer-note {
|
| 69 |
-
text-align: center; font-size:
|
| 70 |
-
margin:
|
|
|
|
| 71 |
}
|
| 72 |
-
.footer-note a { color: #
|
| 73 |
-
.footer-note a:hover {
|
| 74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
"""
|
| 76 |
|
| 77 |
FULL_CSS = BUBBLES_CSS + LAYOUT_CSS
|
|
|
|
| 13 |
textarea, input, .gr-button, .gr-box, .gr-panel,
|
| 14 |
.gr-input, .gr-text-input { border-radius: 14px !important; }
|
| 15 |
|
| 16 |
+
/* ββ Cards - frosted glass ββ */
|
| 17 |
.input-card {
|
| 18 |
+
background: rgba(255,255,255,0.82) !important;
|
| 19 |
+
border-radius: 22px !important; padding: 14px 18px !important;
|
| 20 |
+
border: 2px solid rgba(255,255,255,0.6) !important;
|
| 21 |
+
backdrop-filter: blur(16px) !important;
|
| 22 |
+
box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
|
| 23 |
}
|
| 24 |
.output-card {
|
| 25 |
+
background: rgba(255,255,255,0.82) !important;
|
| 26 |
+
border-radius: 22px !important; padding: 14px 18px !important;
|
| 27 |
+
border: 2px solid rgba(255,255,255,0.6) !important;
|
| 28 |
+
backdrop-filter: blur(16px) !important;
|
| 29 |
+
box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
|
| 30 |
}
|
| 31 |
.viz-card {
|
| 32 |
+
background: rgba(255,255,255,0.82) !important;
|
| 33 |
+
border-radius: 22px !important; padding: 12px 16px !important;
|
| 34 |
+
border: 2px solid rgba(255,255,255,0.6) !important;
|
| 35 |
+
backdrop-filter: blur(16px) !important;
|
| 36 |
+
box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
|
| 37 |
}
|
| 38 |
|
| 39 |
/* ββ Text areas ββ */
|
| 40 |
.smiles-input textarea {
|
| 41 |
font-size: 11px !important; font-family: monospace !important;
|
| 42 |
border-radius: 12px !important; line-height: 1.5 !important;
|
| 43 |
+
background: rgba(255,255,255,0.92) !important;
|
| 44 |
}
|
| 45 |
.compact-text textarea {
|
| 46 |
font-size: 11px !important; font-family: monospace !important;
|
| 47 |
border-radius: 12px !important; line-height: 1.4 !important;
|
| 48 |
+
background: rgba(255,255,255,0.92) !important;
|
| 49 |
}
|
| 50 |
|
| 51 |
/* ββ Buttons ββ */
|
| 52 |
.run-btn {
|
| 53 |
border-radius: 26px !important; font-weight: 700 !important;
|
| 54 |
+
font-size: 16px !important; min-height: 48px !important;
|
| 55 |
+
box-shadow: 0 4px 18px rgba(91,127,245,0.35) !important;
|
| 56 |
transition: transform 0.15s, box-shadow 0.15s !important;
|
| 57 |
}
|
| 58 |
.run-btn:hover {
|
| 59 |
+
transform: translateY(-2px) !important;
|
| 60 |
+
box-shadow: 0 6px 24px rgba(91,127,245,0.5) !important;
|
| 61 |
}
|
| 62 |
.nav-btn { border-radius: 20px !important; min-width: 40px !important; }
|
| 63 |
.save-btn { border-radius: 20px !important; }
|
| 64 |
|
| 65 |
+
/* ββ Section labels - visible on busy background ββ */
|
| 66 |
.section-label {
|
| 67 |
+
font-size: 13px !important; font-weight: 800 !important;
|
| 68 |
+
text-transform: uppercase !important; letter-spacing: 2px !important;
|
| 69 |
+
color: #fff !important;
|
| 70 |
+
text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 3px rgba(0,0,0,0.3) !important;
|
| 71 |
+
margin: 8px 0 3px 4px !important;
|
| 72 |
}
|
| 73 |
|
| 74 |
/* ββ Footer ββ */
|
| 75 |
.footer-note {
|
| 76 |
+
text-align: center; font-size: 12px;
|
| 77 |
+
color: #fff; margin: 8px 0 4px 0; line-height: 1.5;
|
| 78 |
+
text-shadow: 0 1px 6px rgba(0,0,0,0.5);
|
| 79 |
}
|
| 80 |
+
.footer-note a { color: #fff; text-decoration: underline; font-weight: 700; }
|
| 81 |
+
.footer-note a:hover { color: #ffe066; }
|
| 82 |
|
| 83 |
+
/* ββ Gradio built-in footer ββ */
|
| 84 |
+
footer { color: rgba(255,255,255,0.6) !important; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
|
| 85 |
+
footer a { color: rgba(255,255,255,0.8) !important; }
|
| 86 |
+
|
| 87 |
+
/* ββ Labels inside cards ββ */
|
| 88 |
+
.input-card label, .output-card label, .viz-card label {
|
| 89 |
+
color: #333 !important; font-weight: 600 !important;
|
| 90 |
+
}
|
| 91 |
"""
|
| 92 |
|
| 93 |
FULL_CSS = BUBBLES_CSS + LAYOUT_CSS
|