Commit ·
3a6975a
1
Parent(s): c6ce390
fix: lineage panel text dark with !important overrides
Browse files- app/app.py +11 -8
app/app.py
CHANGED
|
@@ -67,16 +67,19 @@ def render_lineage(provenance: dict) -> str:
|
|
| 67 |
model = html.escape(provenance.get("inference_model", provenance.get("base_model", "")))
|
| 68 |
return f"""
|
| 69 |
<style>
|
| 70 |
-
.vl-wrap {{ background:{CREAM}; border:1px solid #d9cfbd; border-radius:18px; padding:18px; color:#263322; }}
|
| 71 |
.stack {{ display:flex; height:38px; overflow:hidden; border-radius:999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); margin:12px 0 18px; }}
|
| 72 |
-
.stack div {{ color:white; font-weight:700; display:flex; align-items:center; justify-content:center; min-width:48px; }}
|
| 73 |
-
.lineage-card {{ background:white; border:1px solid #ddd2c0; border-radius:14px; padding:12px; margin-top:10px; }}
|
| 74 |
-
.card-top {{ display:flex; justify-content:space-between; gap:12px; }}
|
| 75 |
-
.
|
| 76 |
-
.
|
| 77 |
-
.
|
|
|
|
|
|
|
| 78 |
details {{ margin-top:16px; }}
|
| 79 |
-
|
|
|
|
| 80 |
</style>
|
| 81 |
<div class="vl-wrap">
|
| 82 |
<h3>Visual lineage</h3>
|
|
|
|
| 67 |
model = html.escape(provenance.get("inference_model", provenance.get("base_model", "")))
|
| 68 |
return f"""
|
| 69 |
<style>
|
| 70 |
+
.vl-wrap {{ background:{CREAM}; border:1px solid #d9cfbd; border-radius:18px; padding:18px; color:#263322 !important; }}
|
| 71 |
.stack {{ display:flex; height:38px; overflow:hidden; border-radius:999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); margin:12px 0 18px; }}
|
| 72 |
+
.stack div {{ color:white !important; font-weight:700; display:flex; align-items:center; justify-content:center; min-width:48px; }}
|
| 73 |
+
.lineage-card {{ background:white; border:1px solid #ddd2c0; border-radius:14px; padding:12px; margin-top:10px; color:#1a1a2e !important; }}
|
| 74 |
+
.card-top {{ display:flex; justify-content:space-between; gap:12px; color:#1a1a2e !important; }}
|
| 75 |
+
.card-top strong {{ color:#1a1a2e !important; }}
|
| 76 |
+
.pill {{ background:{SAGE}; color:white !important; padding:3px 10px; border-radius:999px; font-size:12px; }}
|
| 77 |
+
.muted {{ color:#4a5a3f !important; font-size:13px; margin-top:3px; }}
|
| 78 |
+
.vl-wrap h3 {{ color:#263322 !important; }}
|
| 79 |
+
.vl-wrap p {{ color:#263322 !important; }}
|
| 80 |
details {{ margin-top:16px; }}
|
| 81 |
+
summary {{ color:#263322 !important; }}
|
| 82 |
+
pre {{ white-space:pre-wrap; font-size:12px; background:#fff; padding:12px; border-radius:10px; color:#1a1a2e !important; }}
|
| 83 |
</style>
|
| 84 |
<div class="vl-wrap">
|
| 85 |
<h3>Visual lineage</h3>
|