Spaces:
Sleeping
Sleeping
Deploy Myco from CI
Browse files- ui/styles.py +131 -7
ui/styles.py
CHANGED
|
@@ -7,6 +7,107 @@ APP_CSS = """
|
|
| 7 |
radial-gradient(circle at bottom right, rgba(133, 214, 159, 0.22), transparent 28rem),
|
| 8 |
linear-gradient(135deg, #10281f 0%, #214732 48%, #f6e7c8 100%);
|
| 9 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
.myco-hero {
|
| 11 |
display: flex;
|
| 12 |
gap: 1.25rem;
|
|
@@ -158,10 +259,17 @@ APP_CSS = """
|
|
| 158 |
#quest-log {
|
| 159 |
padding: 1rem;
|
| 160 |
border-radius: 20px;
|
| 161 |
-
background: rgba(255, 250, 235, 0.
|
|
|
|
| 162 |
border: 1px solid rgba(72, 108, 75, 0.18);
|
| 163 |
box-shadow: 0 12px 28px rgba(16, 40, 31, 0.12);
|
| 164 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
button.primary,
|
| 166 |
button[variant="primary"] {
|
| 167 |
font-weight: 800;
|
|
@@ -170,7 +278,7 @@ button[variant="primary"] {
|
|
| 170 |
border-radius: 28px;
|
| 171 |
padding: 1.25rem;
|
| 172 |
background: linear-gradient(135deg, rgba(21, 67, 49, 0.96), rgba(44, 94, 72, 0.92));
|
| 173 |
-
color: #f7ffe8;
|
| 174 |
box-shadow: 0 22px 60px rgba(14, 38, 29, 0.22);
|
| 175 |
}
|
| 176 |
.world-map-header h2 {
|
|
@@ -179,6 +287,17 @@ button[variant="primary"] {
|
|
| 179 |
}
|
| 180 |
.world-map-header p {
|
| 181 |
margin: 0.2rem 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
}
|
| 183 |
.achievement-row {
|
| 184 |
display: flex;
|
|
@@ -194,11 +313,11 @@ button[variant="primary"] {
|
|
| 194 |
}
|
| 195 |
.achievement.earned {
|
| 196 |
background: rgba(255, 224, 138, 0.95);
|
| 197 |
-
color: #3d2c00;
|
| 198 |
}
|
| 199 |
.achievement.pending {
|
| 200 |
background: rgba(255, 255, 255, 0.12);
|
| 201 |
-
color: #d4efcf;
|
| 202 |
}
|
| 203 |
.map-grid {
|
| 204 |
display: grid;
|
|
@@ -216,8 +335,8 @@ button[variant="primary"] {
|
|
| 216 |
border-color: rgba(214, 255, 177, 0.4);
|
| 217 |
}
|
| 218 |
.map-card.locked {
|
| 219 |
-
|
| 220 |
-
|
| 221 |
}
|
| 222 |
.map-card-top {
|
| 223 |
display: flex;
|
|
@@ -231,13 +350,18 @@ button[variant="primary"] {
|
|
| 231 |
}
|
| 232 |
.map-card p {
|
| 233 |
margin-bottom: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 234 |
}
|
| 235 |
|
| 236 |
#ai-status {
|
| 237 |
border: 1px solid rgba(74, 222, 128, 0.28);
|
| 238 |
border-radius: 18px;
|
| 239 |
background: rgba(236, 253, 245, 0.72);
|
| 240 |
-
color: #17402f;
|
| 241 |
font-weight: 800;
|
| 242 |
padding: 0.65rem 0.9rem;
|
| 243 |
}
|
|
|
|
| 7 |
radial-gradient(circle at bottom right, rgba(133, 214, 159, 0.22), transparent 28rem),
|
| 8 |
linear-gradient(135deg, #10281f 0%, #214732 48%, #f6e7c8 100%);
|
| 9 |
}
|
| 10 |
+
|
| 11 |
+
.gradio-container,
|
| 12 |
+
.gradio-container .prose,
|
| 13 |
+
.gradio-container .markdown,
|
| 14 |
+
.gradio-container label {
|
| 15 |
+
color: #173d2a !important;
|
| 16 |
+
}
|
| 17 |
+
.gradio-container h1,
|
| 18 |
+
.gradio-container h2,
|
| 19 |
+
.gradio-container h3,
|
| 20 |
+
.gradio-container h4,
|
| 21 |
+
.gradio-container p,
|
| 22 |
+
.gradio-container li,
|
| 23 |
+
.gradio-container span,
|
| 24 |
+
.gradio-container strong {
|
| 25 |
+
color: inherit;
|
| 26 |
+
}
|
| 27 |
+
.gradio-container input,
|
| 28 |
+
.gradio-container textarea,
|
| 29 |
+
.gradio-container select {
|
| 30 |
+
color: #10281f !important;
|
| 31 |
+
background: #fffdf4 !important;
|
| 32 |
+
border-color: rgba(23, 61, 42, 0.32) !important;
|
| 33 |
+
}
|
| 34 |
+
.gradio-container input::placeholder,
|
| 35 |
+
.gradio-container textarea::placeholder {
|
| 36 |
+
color: #526a5c !important;
|
| 37 |
+
opacity: 1;
|
| 38 |
+
}
|
| 39 |
+
.gradio-container input:focus,
|
| 40 |
+
.gradio-container textarea:focus,
|
| 41 |
+
.gradio-container select:focus {
|
| 42 |
+
border-color: #2f7d55;
|
| 43 |
+
box-shadow: 0 0 0 3px rgba(47, 125, 85, 0.22);
|
| 44 |
+
}
|
| 45 |
+
.gradio-container button {
|
| 46 |
+
color: #173d2a !important;
|
| 47 |
+
}
|
| 48 |
+
.gradio-container button:hover:not(:disabled) {
|
| 49 |
+
filter: brightness(0.96);
|
| 50 |
+
}
|
| 51 |
+
.gradio-container button:disabled,
|
| 52 |
+
.gradio-container button[disabled] {
|
| 53 |
+
color: #526a5c !important;
|
| 54 |
+
background: rgba(231, 235, 225, 0.88) !important;
|
| 55 |
+
opacity: 1;
|
| 56 |
+
}
|
| 57 |
+
.gradio-container button.primary,
|
| 58 |
+
.gradio-container button[variant="primary"] {
|
| 59 |
+
color: #fffdf4 !important;
|
| 60 |
+
background: #17633f !important;
|
| 61 |
+
}
|
| 62 |
+
.gradio-container [role="dialog"],
|
| 63 |
+
.gradio-container .modal,
|
| 64 |
+
.gradio-container .toast,
|
| 65 |
+
.gradio-container .tooltip {
|
| 66 |
+
color: #10281f !important;
|
| 67 |
+
background: #fffdf4 !important;
|
| 68 |
+
}
|
| 69 |
+
.gradio-container [role="alert"],
|
| 70 |
+
.gradio-container .error {
|
| 71 |
+
color: #7f1d1d !important;
|
| 72 |
+
background: #fff1f2 !important;
|
| 73 |
+
border-color: #fecdd3 !important;
|
| 74 |
+
}
|
| 75 |
+
.gradio-container .tabitem,
|
| 76 |
+
.gradio-container .form,
|
| 77 |
+
.gradio-container .block {
|
| 78 |
+
color: #173d2a !important;
|
| 79 |
+
}
|
| 80 |
+
.gradio-container .tabitem {
|
| 81 |
+
background: rgba(255, 250, 235, 0.92) !important;
|
| 82 |
+
border-radius: 0 0 22px 22px;
|
| 83 |
+
padding: 0.8rem;
|
| 84 |
+
}
|
| 85 |
+
.gradio-container .chatbot,
|
| 86 |
+
.gradio-container .message,
|
| 87 |
+
.gradio-container .bubble-wrap {
|
| 88 |
+
color: #10281f !important;
|
| 89 |
+
}
|
| 90 |
+
.gradio-container .tab-nav button,
|
| 91 |
+
.gradio-container [role="tab"] {
|
| 92 |
+
color: #173d2a !important;
|
| 93 |
+
background: rgba(255, 250, 235, 0.9) !important;
|
| 94 |
+
}
|
| 95 |
+
.gradio-container .tab-nav button.selected,
|
| 96 |
+
.gradio-container [role="tab"][aria-selected="true"] {
|
| 97 |
+
color: #fffdf4 !important;
|
| 98 |
+
background: #17633f !important;
|
| 99 |
+
}
|
| 100 |
+
.gradio-container a {
|
| 101 |
+
color: #0f5f3d !important;
|
| 102 |
+
font-weight: 700;
|
| 103 |
+
}
|
| 104 |
+
.gradio-container a:hover {
|
| 105 |
+
color: #093d28 !important;
|
| 106 |
+
}
|
| 107 |
+
.forest-scene,
|
| 108 |
+
.forest-scene * {
|
| 109 |
+
color: #f9ffe9 !important;
|
| 110 |
+
}
|
| 111 |
.myco-hero {
|
| 112 |
display: flex;
|
| 113 |
gap: 1.25rem;
|
|
|
|
| 259 |
#quest-log {
|
| 260 |
padding: 1rem;
|
| 261 |
border-radius: 20px;
|
| 262 |
+
background: rgba(255, 250, 235, 0.94);
|
| 263 |
+
color: #173d2a !important;
|
| 264 |
border: 1px solid rgba(72, 108, 75, 0.18);
|
| 265 |
box-shadow: 0 12px 28px rgba(16, 40, 31, 0.12);
|
| 266 |
}
|
| 267 |
+
#discovery-card *,
|
| 268 |
+
#mycodex *,
|
| 269 |
+
#progress-panel *,
|
| 270 |
+
#quest-log * {
|
| 271 |
+
color: #173d2a !important;
|
| 272 |
+
}
|
| 273 |
button.primary,
|
| 274 |
button[variant="primary"] {
|
| 275 |
font-weight: 800;
|
|
|
|
| 278 |
border-radius: 28px;
|
| 279 |
padding: 1.25rem;
|
| 280 |
background: linear-gradient(135deg, rgba(21, 67, 49, 0.96), rgba(44, 94, 72, 0.92));
|
| 281 |
+
color: #f7ffe8 !important;
|
| 282 |
box-shadow: 0 22px 60px rgba(14, 38, 29, 0.22);
|
| 283 |
}
|
| 284 |
.world-map-header h2 {
|
|
|
|
| 287 |
}
|
| 288 |
.world-map-header p {
|
| 289 |
margin: 0.2rem 0;
|
| 290 |
+
color: #f7ffe8 !important;
|
| 291 |
+
}
|
| 292 |
+
.world-map-panel h2,
|
| 293 |
+
.world-map-panel h3,
|
| 294 |
+
.world-map-panel p,
|
| 295 |
+
.world-map-panel span,
|
| 296 |
+
.world-map-panel strong {
|
| 297 |
+
color: #f7ffe8 !important;
|
| 298 |
+
}
|
| 299 |
+
.world-map-panel .eyebrow {
|
| 300 |
+
color: #d8ffc5 !important;
|
| 301 |
}
|
| 302 |
.achievement-row {
|
| 303 |
display: flex;
|
|
|
|
| 313 |
}
|
| 314 |
.achievement.earned {
|
| 315 |
background: rgba(255, 224, 138, 0.95);
|
| 316 |
+
color: #3d2c00 !important;
|
| 317 |
}
|
| 318 |
.achievement.pending {
|
| 319 |
background: rgba(255, 255, 255, 0.12);
|
| 320 |
+
color: #d4efcf !important;
|
| 321 |
}
|
| 322 |
.map-grid {
|
| 323 |
display: grid;
|
|
|
|
| 335 |
border-color: rgba(214, 255, 177, 0.4);
|
| 336 |
}
|
| 337 |
.map-card.locked {
|
| 338 |
+
background: rgba(17, 44, 34, 0.72);
|
| 339 |
+
filter: saturate(0.9);
|
| 340 |
}
|
| 341 |
.map-card-top {
|
| 342 |
display: flex;
|
|
|
|
| 350 |
}
|
| 351 |
.map-card p {
|
| 352 |
margin-bottom: 0;
|
| 353 |
+
color: #f7ffe8 !important;
|
| 354 |
+
}
|
| 355 |
+
.map-card strong,
|
| 356 |
+
.map-card span {
|
| 357 |
+
color: #fffdf4 !important;
|
| 358 |
}
|
| 359 |
|
| 360 |
#ai-status {
|
| 361 |
border: 1px solid rgba(74, 222, 128, 0.28);
|
| 362 |
border-radius: 18px;
|
| 363 |
background: rgba(236, 253, 245, 0.72);
|
| 364 |
+
color: #17402f !important;
|
| 365 |
font-weight: 800;
|
| 366 |
padding: 0.65rem 0.9rem;
|
| 367 |
}
|