Spaces:
Running
Running
Shell/chrome: force label spans to inherit link colour (Gradio --body-text-color hid active-item + compass text on dark fills)
Browse files- web/shell/sidebar.css +4 -0
- web/shell/spriteScene.css +2 -2
web/shell/sidebar.css
CHANGED
|
@@ -76,6 +76,10 @@ body:not(.tac-collapsed) .gradio-container { margin-left: var(--tac-w); }
|
|
| 76 |
}
|
| 77 |
.tac-sidebar .tac-nav-item:hover { background: var(--tac-bg-2); }
|
| 78 |
.tac-sidebar .tac-nav-item.active { background: var(--tac-ink); color: var(--tac-paper) !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
.tac-sidebar .tac-nav-item .tac-ico { width: 18px; text-align: center; color: var(--tac-accent); }
|
| 80 |
.tac-sidebar .tac-nav-item.active .tac-ico { color: #e8a72a; } /* amber, like the app's active world icon */
|
| 81 |
|
|
|
|
| 76 |
}
|
| 77 |
.tac-sidebar .tac-nav-item:hover { background: var(--tac-bg-2); }
|
| 78 |
.tac-sidebar .tac-nav-item.active { background: var(--tac-ink); color: var(--tac-paper) !important; }
|
| 79 |
+
/* Force the label span to inherit the link colour. A host theme (Gradio) sets
|
| 80 |
+
* span colour from --body-text-color (dark), which on the active item's dark fill
|
| 81 |
+
* would render the label invisible. The icon span keeps its own accent colour. */
|
| 82 |
+
.tac-sidebar .tac-nav-item span:not(.tac-ico) { color: inherit !important; }
|
| 83 |
.tac-sidebar .tac-nav-item .tac-ico { width: 18px; text-align: center; color: var(--tac-accent); }
|
| 84 |
.tac-sidebar .tac-nav-item.active .tac-ico { color: #e8a72a; } /* amber, like the app's active world icon */
|
| 85 |
|
web/shell/spriteScene.css
CHANGED
|
@@ -76,8 +76,8 @@
|
|
| 76 |
background: var(--mv-card); border: 1.5px solid var(--mv-ink); box-shadow: 2px 2px 0 var(--mv-ink); padding: 6px;
|
| 77 |
}
|
| 78 |
.movement-compass { display: grid; grid-template-columns: repeat(3, 18px); grid-template-rows: repeat(3, 18px); }
|
| 79 |
-
.movement-compass span { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--mv-ink-faint); }
|
| 80 |
-
.movement-compass span.on { color: var(--mv-card); background: var(--mv-ink); border-radius: 3px; }
|
| 81 |
.movement-compass-label { font-family: var(--mv-mono); font-size: 9px; letter-spacing: .08em; color: var(--mv-ink-muted); text-align: center; }
|
| 82 |
|
| 83 |
/* ── Extras list ───────────────────────────────────────────────────────────── */
|
|
|
|
| 76 |
background: var(--mv-card); border: 1.5px solid var(--mv-ink); box-shadow: 2px 2px 0 var(--mv-ink); padding: 6px;
|
| 77 |
}
|
| 78 |
.movement-compass { display: grid; grid-template-columns: repeat(3, 18px); grid-template-rows: repeat(3, 18px); }
|
| 79 |
+
.movement-compass span { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--mv-ink-faint) !important; }
|
| 80 |
+
.movement-compass span.on { color: var(--mv-card) !important; background: var(--mv-ink); border-radius: 3px; }
|
| 81 |
.movement-compass-label { font-family: var(--mv-mono); font-size: 9px; letter-spacing: .08em; color: var(--mv-ink-muted); text-align: center; }
|
| 82 |
|
| 83 |
/* ── Extras list ───────────────────────────────────────────────────────────── */
|