Commit ·
357d0cf
1
Parent(s): b853da5
Force !important on remaining panel/toolbar/legend text colors
Browse filesThe earlier rank-list fix only covered one symptom. Gradio's own
stylesheet loads after ours and wins specificity ties on bare tags
(span, li, button) throughout the right sidebar and graph toolbar,
so every text color in those areas needed !important, not just the
one the user pointed at. Also fixed a self-inflicted specificity bug:
the new ".swarm-status span" rule would have outranked
".val-running"/".val-idle" and broken the status color, so those got
qualified as ".swarm-status span.val-running" etc.
app.py
CHANGED
|
@@ -900,25 +900,25 @@ gradio-app, .gradio-container, body {
|
|
| 900 |
font-family: var(--font-head); font-size: 18px; letter-spacing: 0.16em;
|
| 901 |
color: var(--cyan); text-shadow: 0 0 16px rgba(0,229,255,0.55); margin: 0;
|
| 902 |
}
|
| 903 |
-
#skg-header p { font-family: var(--font-mono); font-size: 10px; color: var(--fog); letter-spacing: 0.05em; margin-top: 5px; }
|
| 904 |
.skg-pills { display: flex; gap: 8px; }
|
| 905 |
.skg-pill {
|
| 906 |
font-family: var(--font-mono); font-size: 9px; padding: 4px 11px; border: 1px solid var(--border);
|
| 907 |
-
border-radius: 20px; color: var(--plasma); letter-spacing: 0.1em; text-transform: uppercase;
|
| 908 |
}
|
| 909 |
|
| 910 |
.skg-panel {
|
| 911 |
background: rgba(10,18,32,0.55); border: 1px solid var(--border); border-radius: 6px;
|
| 912 |
backdrop-filter: blur(14px); padding: 13px 15px; margin-bottom: 10px;
|
| 913 |
}
|
| 914 |
-
.nd-name { font-family: var(--font-head); font-size: 14px; margin-bottom: 4px; }
|
| 915 |
-
.nd-type { font-family: var(--font-mono); font-size: 9px; color: var(--fog); letter-spacing: 0.08em; margin-bottom: 6px; }
|
| 916 |
-
.nd-info { font-family: var(--font-body); font-size: 11.5px; color: var(--ice); opacity: 0.
|
| 917 |
-
.nd-placeholder { color: var(--fog); font-style: italic; font-size: 11px; }
|
| 918 |
-
#entity-preview { font-family: var(--font-mono); font-size: 10.5px; color: var(--lime); }
|
| 919 |
|
| 920 |
.section-label {
|
| 921 |
-
font-family: var(--font-mono); font-size: 9px; color: var(--plasma); text-transform: uppercase;
|
| 922 |
letter-spacing: 0.1em; margin: 10px 0 4px;
|
| 923 |
}
|
| 924 |
.stats-grid {
|
|
@@ -926,18 +926,19 @@ gradio-app, .gradio-container, body {
|
|
| 926 |
border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 8px;
|
| 927 |
}
|
| 928 |
.stat-cell { background: rgba(10,18,32,0.75); padding: 10px; text-align: center; }
|
| 929 |
-
.stat-val { display: block; font-family: var(--font-head); font-size: 19px; color: var(--cyan); text-shadow: 0 0
|
| 930 |
-
.stat-lbl { font-family: var(--font-mono); font-size: 8px; color: var(--fog); text-transform: uppercase; letter-spacing: 0.08em; }
|
| 931 |
.algo-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(0,229,255,0.06); font-size: 11px; }
|
| 932 |
-
.algo-name { font-family: var(--font-mono); font-size: 9.5px; color: var(--fog); }
|
| 933 |
-
.algo-val { font-family: var(--font-mono); font-size: 10px; color: var(--cyan); }
|
| 934 |
.rank-list, .flag-list { list-style: none; margin: 4px 0 0; padding: 0; font-family: var(--font-mono); font-size: 10px; }
|
| 935 |
.rank-list li, .flag-list li { padding: 3px 0; color: var(--ice) !important; opacity: 1; }
|
| 936 |
-
.pathway-text { font-family: var(--font-mono); font-size: 11px; color: var(--lime); line-height: 1.6; word-break: break-word; }
|
| 937 |
|
| 938 |
-
.swarm-status { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; margin-bottom: 6px;
|
| 939 |
-
.
|
| 940 |
-
.val-
|
|
|
|
| 941 |
.conv-bar-outer { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); margin: 6px 0 10px; }
|
| 942 |
.conv-bar-inner { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--lime)); box-shadow: 0 0 10px rgba(57,255,20,0.5); transition: width 0.3s ease; }
|
| 943 |
|
|
@@ -999,18 +1000,18 @@ gradio-app, .gradio-container, body {
|
|
| 999 |
.ov-toolbar { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 5; max-width: 70%; }
|
| 1000 |
.ov-btn {
|
| 1001 |
font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.07em; text-transform: uppercase;
|
| 1002 |
-
padding: 6px 10px; border: 1px solid var(--border); background: rgba(6,13,24,0.85); color: var(--fog);
|
| 1003 |
cursor: pointer; backdrop-filter: blur(6px); border-radius: 3px; transition: all 0.15s;
|
| 1004 |
}
|
| 1005 |
-
.ov-btn:hover, .ov-btn.active { border-color: var(--cyan); color: var(--cyan); background: rgba(0,229,255,0.12); box-shadow: 0 0 10px rgba(0,229,255,0.3); }
|
| 1006 |
.legend { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 10px; flex-wrap: wrap; z-index: 5; max-width: 55%; justify-content: flex-end; }
|
| 1007 |
-
.legend-item { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 9px; color: var(--fog); }
|
| 1008 |
.legend-dot { width: 8px; height: 8px; border-radius: 2px; }
|
| 1009 |
#empty-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; z-index: 1; }
|
| 1010 |
-
#empty-state .es-icon { font-size: 44px; color: var(--cyan); text-shadow: 0 0 26px rgba(0,229,255,0.6); animation: pulseIcon 3s ease-in-out infinite; }
|
| 1011 |
@keyframes pulseIcon { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
|
| 1012 |
-
#empty-state .es-text { font-family: var(--font-mono); font-size: 12px; color: var(--fog); letter-spacing: 0.05em; }
|
| 1013 |
-
#empty-state .es-sub { font-family: var(--font-mono); font-size: 10px; color: var(--fog); opacity: 0.6; }
|
| 1014 |
|
| 1015 |
.node { cursor: pointer; }
|
| 1016 |
.node-shape { transition: fill-opacity 0.15s, stroke-width 0.15s; }
|
|
@@ -1024,8 +1025,8 @@ gradio-app, .gradio-container, body {
|
|
| 1024 |
position: fixed; z-index: 1000; background: rgba(6,13,24,0.97); border: 1px solid var(--border);
|
| 1025 |
border-radius: 4px; backdrop-filter: blur(10px); min-width: 170px; box-shadow: 0 8px 30px rgba(0,0,0,0.55);
|
| 1026 |
}
|
| 1027 |
-
.cm-item { padding: 9px 13px; font-family: var(--font-mono); font-size: 10px; color: var(--ice); cursor: pointer; letter-spacing: 0.03em; }
|
| 1028 |
-
.cm-item:hover { background: rgba(0,229,255,0.12); color: var(--cyan); }
|
| 1029 |
|
| 1030 |
#insights-output { font-family: var(--font-body) !important; }
|
| 1031 |
#insights-output h2 {
|
|
|
|
| 900 |
font-family: var(--font-head); font-size: 18px; letter-spacing: 0.16em;
|
| 901 |
color: var(--cyan); text-shadow: 0 0 16px rgba(0,229,255,0.55); margin: 0;
|
| 902 |
}
|
| 903 |
+
#skg-header p { font-family: var(--font-mono); font-size: 10px; color: var(--fog) !important; letter-spacing: 0.05em; margin-top: 5px; }
|
| 904 |
.skg-pills { display: flex; gap: 8px; }
|
| 905 |
.skg-pill {
|
| 906 |
font-family: var(--font-mono); font-size: 9px; padding: 4px 11px; border: 1px solid var(--border);
|
| 907 |
+
border-radius: 20px; color: var(--plasma) !important; letter-spacing: 0.1em; text-transform: uppercase;
|
| 908 |
}
|
| 909 |
|
| 910 |
.skg-panel {
|
| 911 |
background: rgba(10,18,32,0.55); border: 1px solid var(--border); border-radius: 6px;
|
| 912 |
backdrop-filter: blur(14px); padding: 13px 15px; margin-bottom: 10px;
|
| 913 |
}
|
| 914 |
+
.nd-name { font-family: var(--font-head); font-size: 14px; margin-bottom: 4px; color: var(--cyan) !important; }
|
| 915 |
+
.nd-type { font-family: var(--font-mono); font-size: 9px; color: var(--fog) !important; letter-spacing: 0.08em; margin-bottom: 6px; }
|
| 916 |
+
.nd-info { font-family: var(--font-body); font-size: 11.5px; color: var(--ice) !important; opacity: 0.95; line-height: 1.55; }
|
| 917 |
+
.nd-placeholder { color: var(--fog) !important; font-style: italic; font-size: 11px; }
|
| 918 |
+
#entity-preview { font-family: var(--font-mono); font-size: 10.5px; color: var(--lime) !important; }
|
| 919 |
|
| 920 |
.section-label {
|
| 921 |
+
font-family: var(--font-mono); font-size: 9px; color: var(--plasma) !important; text-transform: uppercase;
|
| 922 |
letter-spacing: 0.1em; margin: 10px 0 4px;
|
| 923 |
}
|
| 924 |
.stats-grid {
|
|
|
|
| 926 |
border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 8px;
|
| 927 |
}
|
| 928 |
.stat-cell { background: rgba(10,18,32,0.75); padding: 10px; text-align: center; }
|
| 929 |
+
.stat-val { display: block; font-family: var(--font-head); font-size: 19px; color: var(--cyan) !important; text-shadow: 0 0 6px rgba(0,229,255,0.35); }
|
| 930 |
+
.stat-lbl { font-family: var(--font-mono); font-size: 8px; color: var(--fog) !important; text-transform: uppercase; letter-spacing: 0.08em; }
|
| 931 |
.algo-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(0,229,255,0.06); font-size: 11px; }
|
| 932 |
+
.algo-name { font-family: var(--font-mono); font-size: 9.5px; color: var(--fog) !important; }
|
| 933 |
+
.algo-val { font-family: var(--font-mono); font-size: 10px; color: var(--cyan) !important; }
|
| 934 |
.rank-list, .flag-list { list-style: none; margin: 4px 0 0; padding: 0; font-family: var(--font-mono); font-size: 10px; }
|
| 935 |
.rank-list li, .flag-list li { padding: 3px 0; color: var(--ice) !important; opacity: 1; }
|
| 936 |
+
.pathway-text { font-family: var(--font-mono); font-size: 11px; color: var(--lime) !important; line-height: 1.6; word-break: break-word; }
|
| 937 |
|
| 938 |
+
.swarm-status { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; margin-bottom: 6px; }
|
| 939 |
+
.swarm-status span { color: var(--ice) !important; }
|
| 940 |
+
.swarm-status span.val-running { color: var(--lime) !important; text-shadow: 0 0 8px rgba(57,255,20,0.5); }
|
| 941 |
+
.swarm-status span.val-idle { color: var(--fog) !important; }
|
| 942 |
.conv-bar-outer { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); margin: 6px 0 10px; }
|
| 943 |
.conv-bar-inner { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--lime)); box-shadow: 0 0 10px rgba(57,255,20,0.5); transition: width 0.3s ease; }
|
| 944 |
|
|
|
|
| 1000 |
.ov-toolbar { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 5; max-width: 70%; }
|
| 1001 |
.ov-btn {
|
| 1002 |
font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.07em; text-transform: uppercase;
|
| 1003 |
+
padding: 6px 10px; border: 1px solid var(--border); background: rgba(6,13,24,0.85); color: var(--fog) !important;
|
| 1004 |
cursor: pointer; backdrop-filter: blur(6px); border-radius: 3px; transition: all 0.15s;
|
| 1005 |
}
|
| 1006 |
+
.ov-btn:hover, .ov-btn.active { border-color: var(--cyan); color: var(--cyan) !important; background: rgba(0,229,255,0.12); box-shadow: 0 0 10px rgba(0,229,255,0.3); }
|
| 1007 |
.legend { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 10px; flex-wrap: wrap; z-index: 5; max-width: 55%; justify-content: flex-end; }
|
| 1008 |
+
.legend-item { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 9px; color: var(--fog) !important; }
|
| 1009 |
.legend-dot { width: 8px; height: 8px; border-radius: 2px; }
|
| 1010 |
#empty-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; z-index: 1; }
|
| 1011 |
+
#empty-state .es-icon { font-size: 44px; color: var(--cyan) !important; text-shadow: 0 0 26px rgba(0,229,255,0.6); animation: pulseIcon 3s ease-in-out infinite; }
|
| 1012 |
@keyframes pulseIcon { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
|
| 1013 |
+
#empty-state .es-text { font-family: var(--font-mono); font-size: 12px; color: var(--fog) !important; letter-spacing: 0.05em; }
|
| 1014 |
+
#empty-state .es-sub { font-family: var(--font-mono); font-size: 10px; color: var(--fog) !important; opacity: 0.6; }
|
| 1015 |
|
| 1016 |
.node { cursor: pointer; }
|
| 1017 |
.node-shape { transition: fill-opacity 0.15s, stroke-width 0.15s; }
|
|
|
|
| 1025 |
position: fixed; z-index: 1000; background: rgba(6,13,24,0.97); border: 1px solid var(--border);
|
| 1026 |
border-radius: 4px; backdrop-filter: blur(10px); min-width: 170px; box-shadow: 0 8px 30px rgba(0,0,0,0.55);
|
| 1027 |
}
|
| 1028 |
+
.cm-item { padding: 9px 13px; font-family: var(--font-mono); font-size: 10px; color: var(--ice) !important; cursor: pointer; letter-spacing: 0.03em; }
|
| 1029 |
+
.cm-item:hover { background: rgba(0,229,255,0.12); color: var(--cyan) !important; }
|
| 1030 |
|
| 1031 |
#insights-output { font-family: var(--font-body) !important; }
|
| 1032 |
#insights-output h2 {
|