Spaces:
Sleeping
Sleeping
Delete styles.py
Browse files
styles.py
DELETED
|
@@ -1,259 +0,0 @@
|
|
| 1 |
-
"""
|
| 2 |
-
Custom CSS injected into the Gradio Blocks app to match the SERAPH
|
| 3 |
-
design system (dark glass UI, monospace sequence nodes, etc.).
|
| 4 |
-
"""
|
| 5 |
-
|
| 6 |
-
CUSTOM_CSS = """
|
| 7 |
-
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');
|
| 8 |
-
|
| 9 |
-
:root {
|
| 10 |
-
--bg-base: #060608;
|
| 11 |
-
--bg-surface: rgba(255, 255, 255, 0.025);
|
| 12 |
-
--bg-surface-hover: rgba(255, 255, 255, 0.05);
|
| 13 |
-
--bg-glass: rgba(10, 10, 14, 0.78);
|
| 14 |
-
--border-subtle: rgba(255, 255, 255, 0.08);
|
| 15 |
-
--border-accent: rgba(255, 255, 255, 0.22);
|
| 16 |
-
|
| 17 |
-
--text-main: #f5f5f7;
|
| 18 |
-
--text-muted: #8e8e93;
|
| 19 |
-
--text-dim: #55555a;
|
| 20 |
-
--accent-glow: rgba(255, 255, 255, 0.15);
|
| 21 |
-
--success-green: #10b981;
|
| 22 |
-
|
| 23 |
-
--color-h: #fb7185;
|
| 24 |
-
--bg-h: rgba(251, 113, 133, 0.15);
|
| 25 |
-
--color-e: #38bdf8;
|
| 26 |
-
--bg-e: rgba(56, 189, 248, 0.15);
|
| 27 |
-
--color-c: #94a3b8;
|
| 28 |
-
--bg-c: rgba(148, 163, 184, 0.15);
|
| 29 |
-
|
| 30 |
-
--font-heading: 'Space Grotesk', -apple-system, sans-serif;
|
| 31 |
-
--font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
|
| 32 |
-
--font-mono: 'JetBrains Mono', ui-monospace, monospace;
|
| 33 |
-
}
|
| 34 |
-
|
| 35 |
-
body, .gradio-container {
|
| 36 |
-
background-color: var(--bg-base) !important;
|
| 37 |
-
color: var(--text-main) !important;
|
| 38 |
-
font-family: var(--font-body) !important;
|
| 39 |
-
max-width: 900px !important;
|
| 40 |
-
margin: 0 auto !important;
|
| 41 |
-
padding: 20px !important;
|
| 42 |
-
}
|
| 43 |
-
|
| 44 |
-
/* Headers */
|
| 45 |
-
.hero-title {
|
| 46 |
-
font-family: var(--font-heading);
|
| 47 |
-
font-size: 2.2rem;
|
| 48 |
-
font-weight: 700;
|
| 49 |
-
letter-spacing: -0.03em;
|
| 50 |
-
background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
|
| 51 |
-
-webkit-background-clip: text;
|
| 52 |
-
-webkit-text-fill-color: transparent;
|
| 53 |
-
margin-bottom: 8px;
|
| 54 |
-
text-align: center;
|
| 55 |
-
}
|
| 56 |
-
|
| 57 |
-
.hero-subtitle {
|
| 58 |
-
color: var(--text-muted);
|
| 59 |
-
text-align: center;
|
| 60 |
-
font-size: 0.95rem;
|
| 61 |
-
margin-bottom: 28px;
|
| 62 |
-
}
|
| 63 |
-
|
| 64 |
-
/* Back-to-portfolio button */
|
| 65 |
-
.back-to-portfolio {
|
| 66 |
-
display: inline-flex;
|
| 67 |
-
align-items: center;
|
| 68 |
-
gap: 6px;
|
| 69 |
-
font-family: var(--font-mono);
|
| 70 |
-
font-size: 0.78rem;
|
| 71 |
-
font-weight: 500;
|
| 72 |
-
color: var(--text-muted) !important;
|
| 73 |
-
text-decoration: none !important;
|
| 74 |
-
background: rgba(255, 255, 255, 0.04);
|
| 75 |
-
border: 1px solid var(--border-subtle);
|
| 76 |
-
border-radius: 99px;
|
| 77 |
-
padding: 6px 14px;
|
| 78 |
-
transition: all 0.2s ease;
|
| 79 |
-
}
|
| 80 |
-
|
| 81 |
-
.back-to-portfolio:hover {
|
| 82 |
-
color: var(--text-main) !important;
|
| 83 |
-
border-color: var(--border-accent);
|
| 84 |
-
background: rgba(255, 255, 255, 0.08);
|
| 85 |
-
}
|
| 86 |
-
|
| 87 |
-
/* Custom Gradio Textbox & Dropdown Overrides */
|
| 88 |
-
.gradio-container textarea, .gradio-container input, .gradio-container select {
|
| 89 |
-
background: rgba(255, 255, 255, 0.03) !important;
|
| 90 |
-
border: 1px solid var(--border-subtle) !important;
|
| 91 |
-
border-radius: 12px !important;
|
| 92 |
-
color: var(--text-main) !important;
|
| 93 |
-
font-family: var(--font-mono) !important;
|
| 94 |
-
}
|
| 95 |
-
|
| 96 |
-
.gradio-container textarea:focus, .gradio-container input:focus {
|
| 97 |
-
border-color: var(--border-accent) !important;
|
| 98 |
-
box-shadow: 0 0 12px var(--accent-glow) !important;
|
| 99 |
-
}
|
| 100 |
-
|
| 101 |
-
/* Action Buttons */
|
| 102 |
-
.btn-magnetic {
|
| 103 |
-
background: #ffffff !important;
|
| 104 |
-
color: #000000 !important;
|
| 105 |
-
border-radius: 99px !important;
|
| 106 |
-
font-weight: 600 !important;
|
| 107 |
-
font-size: 0.9rem !important;
|
| 108 |
-
border: none !important;
|
| 109 |
-
padding: 12px 28px !important;
|
| 110 |
-
cursor: pointer !important;
|
| 111 |
-
transition: all 0.25s ease !important;
|
| 112 |
-
}
|
| 113 |
-
|
| 114 |
-
.btn-magnetic:hover {
|
| 115 |
-
box-shadow: 0 0 24px var(--accent-glow) !important;
|
| 116 |
-
transform: translateY(-1px);
|
| 117 |
-
}
|
| 118 |
-
|
| 119 |
-
/* Sequence Node Visualizer Grid */
|
| 120 |
-
.sequence-board {
|
| 121 |
-
background: var(--bg-surface);
|
| 122 |
-
border: 1px solid var(--border-subtle);
|
| 123 |
-
border-radius: 20px;
|
| 124 |
-
padding: 24px;
|
| 125 |
-
}
|
| 126 |
-
|
| 127 |
-
.sequence-grid {
|
| 128 |
-
display: flex;
|
| 129 |
-
flex-wrap: wrap;
|
| 130 |
-
gap: 8px;
|
| 131 |
-
justify-content: center;
|
| 132 |
-
}
|
| 133 |
-
|
| 134 |
-
.seq-node {
|
| 135 |
-
background: rgba(255, 255, 255, 0.02);
|
| 136 |
-
border: 1px solid var(--border-subtle);
|
| 137 |
-
border-radius: 10px;
|
| 138 |
-
width: 38px;
|
| 139 |
-
height: 58px;
|
| 140 |
-
display: flex;
|
| 141 |
-
flex-direction: column;
|
| 142 |
-
align-items: center;
|
| 143 |
-
justify-content: space-between;
|
| 144 |
-
padding: 6px 0;
|
| 145 |
-
user-select: none;
|
| 146 |
-
}
|
| 147 |
-
|
| 148 |
-
.seq-aa {
|
| 149 |
-
font-family: var(--font-heading);
|
| 150 |
-
font-weight: 600;
|
| 151 |
-
font-size: 1rem;
|
| 152 |
-
color: var(--text-main);
|
| 153 |
-
}
|
| 154 |
-
|
| 155 |
-
.seq-state {
|
| 156 |
-
font-family: var(--font-mono);
|
| 157 |
-
font-size: 0.68rem;
|
| 158 |
-
font-weight: 600;
|
| 159 |
-
width: 22px;
|
| 160 |
-
height: 22px;
|
| 161 |
-
display: flex;
|
| 162 |
-
align-items: center;
|
| 163 |
-
justify-content: center;
|
| 164 |
-
border-radius: 6px;
|
| 165 |
-
}
|
| 166 |
-
|
| 167 |
-
.seq-node[data-state="C"] .seq-state { background: var(--bg-c); color: var(--color-c); }
|
| 168 |
-
.seq-node[data-state="H"] .seq-state { background: var(--bg-h); color: var(--color-h); }
|
| 169 |
-
.seq-node[data-state="E"] .seq-state { background: var(--bg-e); color: var(--color-e); }
|
| 170 |
-
|
| 171 |
-
/* Board Legend */
|
| 172 |
-
.board-legend {
|
| 173 |
-
display: flex;
|
| 174 |
-
gap: 16px;
|
| 175 |
-
font-size: 0.8rem;
|
| 176 |
-
color: var(--text-muted);
|
| 177 |
-
}
|
| 178 |
-
.legend-item { display: flex; align-items: center; gap: 6px; }
|
| 179 |
-
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
|
| 180 |
-
.legend-dot.c { background: var(--color-c); }
|
| 181 |
-
.legend-dot.h { background: var(--color-h); }
|
| 182 |
-
.legend-dot.e { background: var(--color-e); }
|
| 183 |
-
|
| 184 |
-
/* Metrics & Alignment Cards */
|
| 185 |
-
.metrics-grid {
|
| 186 |
-
display: grid;
|
| 187 |
-
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 188 |
-
gap: 16px;
|
| 189 |
-
margin-bottom: 20px;
|
| 190 |
-
}
|
| 191 |
-
|
| 192 |
-
.metric-card {
|
| 193 |
-
background: var(--bg-surface);
|
| 194 |
-
border: 1px solid var(--border-subtle);
|
| 195 |
-
border-radius: 16px;
|
| 196 |
-
padding: 20px;
|
| 197 |
-
text-align: center;
|
| 198 |
-
}
|
| 199 |
-
|
| 200 |
-
.metric-card.winner {
|
| 201 |
-
border-color: var(--border-accent);
|
| 202 |
-
background: radial-gradient(circle at 50% -20%, rgba(255,255,255,0.06) 0%, var(--bg-surface) 70%);
|
| 203 |
-
}
|
| 204 |
-
|
| 205 |
-
.metric-value {
|
| 206 |
-
font-family: var(--font-heading);
|
| 207 |
-
font-size: 2.4rem;
|
| 208 |
-
font-weight: 700;
|
| 209 |
-
line-height: 1;
|
| 210 |
-
margin-bottom: 6px;
|
| 211 |
-
background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
|
| 212 |
-
-webkit-background-clip: text;
|
| 213 |
-
-webkit-text-fill-color: transparent;
|
| 214 |
-
}
|
| 215 |
-
|
| 216 |
-
.metric-label {
|
| 217 |
-
font-size: 0.75rem;
|
| 218 |
-
color: var(--text-muted);
|
| 219 |
-
text-transform: uppercase;
|
| 220 |
-
letter-spacing: 0.08em;
|
| 221 |
-
}
|
| 222 |
-
|
| 223 |
-
.alignment-card {
|
| 224 |
-
background: rgba(10, 10, 14, 0.6);
|
| 225 |
-
border: 1px solid var(--border-subtle);
|
| 226 |
-
border-radius: 16px;
|
| 227 |
-
padding: 20px;
|
| 228 |
-
overflow-x: auto;
|
| 229 |
-
}
|
| 230 |
-
|
| 231 |
-
.align-row {
|
| 232 |
-
display: flex;
|
| 233 |
-
align-items: center;
|
| 234 |
-
margin-bottom: 8px;
|
| 235 |
-
font-family: var(--font-mono);
|
| 236 |
-
}
|
| 237 |
-
|
| 238 |
-
.row-label {
|
| 239 |
-
width: 120px;
|
| 240 |
-
flex-shrink: 0;
|
| 241 |
-
font-size: 0.78rem;
|
| 242 |
-
color: var(--text-muted);
|
| 243 |
-
}
|
| 244 |
-
|
| 245 |
-
.row-seq {
|
| 246 |
-
font-size: 0.92rem;
|
| 247 |
-
letter-spacing: 3px;
|
| 248 |
-
color: var(--text-main);
|
| 249 |
-
white-space: nowrap;
|
| 250 |
-
}
|
| 251 |
-
|
| 252 |
-
.row-seq .match { color: var(--success-green); }
|
| 253 |
-
.row-seq .miss { color: #ef4444; }
|
| 254 |
-
|
| 255 |
-
@keyframes fadeIn {
|
| 256 |
-
from { opacity: 0; transform: translateY(10px); }
|
| 257 |
-
to { opacity: 1; transform: translateY(0); }
|
| 258 |
-
}
|
| 259 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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