Spaces:
Sleeping
Sleeping
TOTEM Studio commited on
Commit Β·
4ede31b
1
Parent(s): ae80831
Stage 9/10: hide legacy controls, dark score panel, responsive CSS, global dark input overrides
Browse files- #studio-actions and #path-panel hidden (display:none)
- #score-panel restyled dark: dark bg, gold header, purple buttons
- Global Gradio input/textarea/block dark overrides
- Accordion summary dark styled
- Responsive: sidebar collapses to topbar row at <900px
- Metric cards 2-col on mobile, hero stacks vertically
app.py
CHANGED
|
@@ -118,84 +118,128 @@ footer { display: none !important; }
|
|
| 118 |
cursor: pointer;
|
| 119 |
}
|
| 120 |
|
|
|
|
| 121 |
#hidden-export, #hidden-status {
|
| 122 |
-
|
| 123 |
-
margin: 0 auto 18px auto;
|
| 124 |
}
|
| 125 |
|
| 126 |
#studio-actions {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
max-width: 1180px;
|
| 128 |
-
margin:
|
| 129 |
-
padding
|
| 130 |
-
position: relative;
|
| 131 |
-
z-index: 5;
|
| 132 |
}
|
| 133 |
|
| 134 |
-
#
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
}
|
| 140 |
|
| 141 |
-
#
|
| 142 |
-
border
|
| 143 |
-
|
| 144 |
-
|
|
|
|
| 145 |
}
|
| 146 |
|
| 147 |
-
#
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
|
|
|
| 151 |
}
|
| 152 |
|
| 153 |
-
#
|
| 154 |
-
|
| 155 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
gap: 12px;
|
| 157 |
-
max-width: 760px;
|
| 158 |
}
|
| 159 |
|
| 160 |
-
#
|
| 161 |
-
#
|
|
|
|
|
|
|
|
|
|
| 162 |
border-radius: 8px !important;
|
| 163 |
-
border: 1px solid var(--studio-line) !important;
|
| 164 |
-
background: white !important;
|
| 165 |
}
|
| 166 |
|
| 167 |
-
#
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
|
|
|
|
|
|
| 171 |
}
|
| 172 |
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
|
|
|
|
|
|
|
|
|
| 177 |
}
|
| 178 |
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
background:
|
| 182 |
-
border-
|
| 183 |
-
padding: 18px;
|
| 184 |
}
|
| 185 |
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
color: var(--studio-green);
|
| 190 |
}
|
| 191 |
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
|
|
|
|
|
|
| 195 |
}
|
| 196 |
|
| 197 |
-
|
| 198 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
}
|
| 200 |
|
| 201 |
#codex-panel {
|
|
|
|
| 118 |
cursor: pointer;
|
| 119 |
}
|
| 120 |
|
| 121 |
+
/* ββ Hide legacy Gradio controls (Stage 10) βββββββββββββββββββββββββββββββ */
|
| 122 |
#hidden-export, #hidden-status {
|
| 123 |
+
display: none !important;
|
|
|
|
| 124 |
}
|
| 125 |
|
| 126 |
#studio-actions {
|
| 127 |
+
display: none !important;
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
#path-panel {
|
| 131 |
+
display: none !important;
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
/* ββ Private scoring controls β dark themed (Stage 10) βββββββββββββββββββ */
|
| 135 |
+
#score-panel {
|
| 136 |
max-width: 1180px;
|
| 137 |
+
margin: 8px auto 24px auto;
|
| 138 |
+
padding: 0 18px;
|
|
|
|
|
|
|
| 139 |
}
|
| 140 |
|
| 141 |
+
#score-panel > .label-wrap,
|
| 142 |
+
#score-panel > details > summary,
|
| 143 |
+
#score-panel summary {
|
| 144 |
+
background: rgba(13, 19, 48, 0.95) !important;
|
| 145 |
+
color: rgba(246, 241, 232, 0.9) !important;
|
| 146 |
+
border: 1px solid rgba(242, 193, 78, 0.25) !important;
|
| 147 |
+
border-radius: 10px !important;
|
| 148 |
+
font-family: var(--font-ui) !important;
|
| 149 |
+
font-size: 13px !important;
|
| 150 |
+
padding: 10px 16px !important;
|
| 151 |
}
|
| 152 |
|
| 153 |
+
#score-panel .score-card {
|
| 154 |
+
border: 1px solid rgba(242, 193, 78, 0.18);
|
| 155 |
+
background: rgba(7, 18, 45, 0.97);
|
| 156 |
+
border-radius: 10px;
|
| 157 |
+
padding: 18px;
|
| 158 |
}
|
| 159 |
|
| 160 |
+
#score-panel h3 {
|
| 161 |
+
margin: 0 0 12px 0;
|
| 162 |
+
font-size: 16px;
|
| 163 |
+
color: var(--totem-gold);
|
| 164 |
+
font-family: var(--font-display);
|
| 165 |
}
|
| 166 |
|
| 167 |
+
#score-panel button {
|
| 168 |
+
border-radius: 8px !important;
|
| 169 |
+
font-weight: 700 !important;
|
| 170 |
+
background: rgba(138, 77, 255, 0.25) !important;
|
| 171 |
+
border: 1px solid rgba(138, 77, 255, 0.5) !important;
|
| 172 |
+
color: #f6f1e8 !important;
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
#score-panel .wrap {
|
| 176 |
gap: 12px;
|
|
|
|
| 177 |
}
|
| 178 |
|
| 179 |
+
#score-panel label,
|
| 180 |
+
#score-panel .block {
|
| 181 |
+
background: rgba(7, 18, 45, 0.8) !important;
|
| 182 |
+
border-color: rgba(246, 241, 232, 0.12) !important;
|
| 183 |
+
color: rgba(246, 241, 232, 0.9) !important;
|
| 184 |
border-radius: 8px !important;
|
|
|
|
|
|
|
| 185 |
}
|
| 186 |
|
| 187 |
+
#score-panel input,
|
| 188 |
+
#score-panel textarea {
|
| 189 |
+
background: rgba(4, 8, 26, 0.9) !important;
|
| 190 |
+
color: #f6f1e8 !important;
|
| 191 |
+
border-color: rgba(242, 193, 78, 0.2) !important;
|
| 192 |
+
border-radius: 6px !important;
|
| 193 |
}
|
| 194 |
|
| 195 |
+
/* ββ Global Gradio component dark overrides (Stage 9) ββββββββββββββββββββ */
|
| 196 |
+
.gradio-container input,
|
| 197 |
+
.gradio-container textarea,
|
| 198 |
+
.gradio-container select {
|
| 199 |
+
background: rgba(4, 8, 26, 0.9) !important;
|
| 200 |
+
color: #f6f1e8 !important;
|
| 201 |
+
border-color: rgba(242, 193, 78, 0.2) !important;
|
| 202 |
}
|
| 203 |
|
| 204 |
+
.gradio-container .block,
|
| 205 |
+
.gradio-container .form {
|
| 206 |
+
background: rgba(7, 18, 45, 0.85) !important;
|
| 207 |
+
border-color: rgba(246, 241, 232, 0.1) !important;
|
|
|
|
| 208 |
}
|
| 209 |
|
| 210 |
+
.gradio-container label span,
|
| 211 |
+
.gradio-container .label-wrap span {
|
| 212 |
+
color: rgba(174, 183, 204, 0.9) !important;
|
|
|
|
| 213 |
}
|
| 214 |
|
| 215 |
+
/* ββ Accordion dark styling βββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 216 |
+
.gradio-container details summary {
|
| 217 |
+
background: rgba(13, 19, 48, 0.95) !important;
|
| 218 |
+
color: rgba(246, 241, 232, 0.9) !important;
|
| 219 |
+
border-color: rgba(242, 193, 78, 0.2) !important;
|
| 220 |
}
|
| 221 |
|
| 222 |
+
/* ββ Responsive: tighten at narrower widths (Stage 9) βββββββββββββββββββββ */
|
| 223 |
+
@media (max-width: 900px) {
|
| 224 |
+
.totem-shell {
|
| 225 |
+
grid-template-columns: 1fr !important;
|
| 226 |
+
}
|
| 227 |
+
.totem-sidebar {
|
| 228 |
+
width: 100% !important;
|
| 229 |
+
flex: none !important;
|
| 230 |
+
flex-direction: row !important;
|
| 231 |
+
align-items: center !important;
|
| 232 |
+
padding: 12px 16px !important;
|
| 233 |
+
border-right: none !important;
|
| 234 |
+
border-bottom: 1px solid rgba(242, 193, 78, 0.22) !important;
|
| 235 |
+
min-height: auto !important;
|
| 236 |
+
}
|
| 237 |
+
.totem-brand { margin-bottom: 0 !important; margin-right: 16px !important; }
|
| 238 |
+
.totem-brand-img { max-width: 80px !important; }
|
| 239 |
+
.totem-quote-card { display: none !important; }
|
| 240 |
+
.totem-metrics-grid { grid-template-columns: repeat(2, 1fr) !important; }
|
| 241 |
+
.totem-hero-content { flex-direction: column !important; }
|
| 242 |
+
.totem-hero-right { margin-top: 16px !important; }
|
| 243 |
}
|
| 244 |
|
| 245 |
#codex-panel {
|