Force ink text on dial and script insets (fix invisible white-on-light text)
Browse files
src/midnight_static/gradio_app.py
CHANGED
|
@@ -1038,6 +1038,37 @@ gradio-app,
|
|
| 1038 |
0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.96); }
|
| 1039 |
50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
|
| 1040 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1041 |
"""
|
| 1042 |
|
| 1043 |
|
|
|
|
| 1038 |
0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.96); }
|
| 1039 |
50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
|
| 1040 |
}
|
| 1041 |
+
|
| 1042 |
+
/* ============================================================
|
| 1043 |
+
LEGIBILITY HARDENING
|
| 1044 |
+
The dial glass and the script paper are LIGHT insets inside the dark
|
| 1045 |
+
walnut room. Gradio paints HTML text with --body-text-color, which we set
|
| 1046 |
+
to cream for the dark chrome — that cream leaked onto these light surfaces
|
| 1047 |
+
and made the frequencies, station line, and script text invisible. Force
|
| 1048 |
+
ink on those surfaces with !important (Gradio's variable rule wins
|
| 1049 |
+
otherwise), then re-assert the few accent colors so they survive.
|
| 1050 |
+
============================================================ */
|
| 1051 |
+
.ms-dial,
|
| 1052 |
+
.ms-dial div,
|
| 1053 |
+
.ms-dial span,
|
| 1054 |
+
.ms-script,
|
| 1055 |
+
.ms-script p,
|
| 1056 |
+
.ms-script div,
|
| 1057 |
+
.ms-script span,
|
| 1058 |
+
.ms-script strong {
|
| 1059 |
+
color: #21170f !important;
|
| 1060 |
+
}
|
| 1061 |
+
|
| 1062 |
+
/* Accent colors re-asserted after the blanket ink rule above. */
|
| 1063 |
+
.ms-frequency span.is-tuned { color: #8a2114 !important; }
|
| 1064 |
+
.ms-station strong { color: var(--ms-red) !important; }
|
| 1065 |
+
.ms-scanner { color: var(--ms-red) !important; }
|
| 1066 |
+
.ms-script-title,
|
| 1067 |
+
.ms-line-who,
|
| 1068 |
+
.ms-script-cast-row strong { color: #5a1d10 !important; }
|
| 1069 |
+
.ms-script-logline { color: #4a3320 !important; }
|
| 1070 |
+
.ms-scene-sfx { color: #8a5a2c !important; }
|
| 1071 |
+
.ms-line-delivery { color: #9a6a34 !important; }
|
| 1072 |
"""
|
| 1073 |
|
| 1074 |
|