Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,14 +72,14 @@ CSS = """
|
|
| 72 |
:root {
|
| 73 |
--bg: #0a0a0f;
|
| 74 |
--surface: #12121a;
|
| 75 |
-
--surface2: #
|
| 76 |
-
--border: #
|
| 77 |
-
--accent: #
|
| 78 |
-
--accent2: #
|
| 79 |
--accent3: #6affb8;
|
| 80 |
--text: #e8e8f0;
|
| 81 |
-
--text-muted: #
|
| 82 |
-
--glow: 0 0 30px rgba(
|
| 83 |
}
|
| 84 |
|
| 85 |
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
@@ -211,13 +211,18 @@ button.primary:hover {
|
|
| 211 |
|
| 212 |
.section ul, .section ol {
|
| 213 |
padding-left: 1.4rem;
|
| 214 |
-
color:
|
| 215 |
line-height: 1.8;
|
| 216 |
font-size: 0.93rem;
|
| 217 |
}
|
| 218 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 219 |
.section p {
|
| 220 |
-
color:
|
| 221 |
line-height: 1.7;
|
| 222 |
font-size: 0.93rem;
|
| 223 |
}
|
|
@@ -285,16 +290,17 @@ def explain_code(code):
|
|
| 285 |
return f"""
|
| 286 |
<style>
|
| 287 |
:root {{
|
| 288 |
-
--bg:#0a0a0f;--surface:#12121a;--surface2:#
|
| 289 |
-
--border:#
|
| 290 |
-
--accent3:#6affb8;--text:#e8e8f0;--text-muted:#
|
| 291 |
}}
|
| 292 |
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700&family=DM+Mono&family=DM+Sans:wght@300;400&display=swap');
|
| 293 |
.section{{background:var(--surface2);border:1px solid var(--border);border-radius:14px;padding:1.4rem 1.6rem;margin-bottom:1rem;}}
|
| 294 |
.section:hover{{border-color:var(--accent);}}
|
| 295 |
-
.section h2{{font-family:'Syne',sans-serif;font-size:1rem;font-weight:700;color:
|
| 296 |
-
.section ul,.section ol{{padding-left:1.4rem;color:
|
| 297 |
-
.section
|
|
|
|
| 298 |
.output-box{{background:#0d0d15;border:1px solid var(--border);border-left:3px solid var(--accent3);border-radius:8px;padding:0.8rem 1rem;font-family:'DM Mono',monospace;font-size:0.88rem;color:var(--accent3);white-space:pre-wrap;}}
|
| 299 |
#analogy h2,#output h2{{color:var(--accent3)!important;}}
|
| 300 |
#summary h2{{color:var(--accent2)!important;}}
|
|
|
|
| 72 |
:root {
|
| 73 |
--bg: #0a0a0f;
|
| 74 |
--surface: #12121a;
|
| 75 |
+
--surface2: #1e1e2e;
|
| 76 |
+
--border: #3a3a5c;
|
| 77 |
+
--accent: #a89fff;
|
| 78 |
+
--accent2: #ff8ec4;
|
| 79 |
--accent3: #6affb8;
|
| 80 |
--text: #e8e8f0;
|
| 81 |
+
--text-muted: #aaaacc;
|
| 82 |
+
--glow: 0 0 30px rgba(168, 159, 255, 0.2);
|
| 83 |
}
|
| 84 |
|
| 85 |
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
| 211 |
|
| 212 |
.section ul, .section ol {
|
| 213 |
padding-left: 1.4rem;
|
| 214 |
+
color: #e8e8f0;
|
| 215 |
line-height: 1.8;
|
| 216 |
font-size: 0.93rem;
|
| 217 |
}
|
| 218 |
|
| 219 |
+
.section li {
|
| 220 |
+
color: #e8e8f0 !important;
|
| 221 |
+
margin-bottom: 0.3rem;
|
| 222 |
+
}
|
| 223 |
+
|
| 224 |
.section p {
|
| 225 |
+
color: #e8e8f0;
|
| 226 |
line-height: 1.7;
|
| 227 |
font-size: 0.93rem;
|
| 228 |
}
|
|
|
|
| 290 |
return f"""
|
| 291 |
<style>
|
| 292 |
:root {{
|
| 293 |
+
--bg:#0a0a0f;--surface:#12121a;--surface2:#1e1e2e;
|
| 294 |
+
--border:#3a3a5c;--accent:#a89fff;--accent2:#ff8ec4;
|
| 295 |
+
--accent3:#6affb8;--text:#e8e8f0;--text-muted:#aaaacc;
|
| 296 |
}}
|
| 297 |
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700&family=DM+Mono&family=DM+Sans:wght@300;400&display=swap');
|
| 298 |
.section{{background:var(--surface2);border:1px solid var(--border);border-radius:14px;padding:1.4rem 1.6rem;margin-bottom:1rem;}}
|
| 299 |
.section:hover{{border-color:var(--accent);}}
|
| 300 |
+
.section h2{{font-family:'Syne',sans-serif;font-size:1rem;font-weight:700;color:#a89fff;margin-bottom:0.8rem;}}
|
| 301 |
+
.section ul,.section ol{{padding-left:1.4rem;color:#e8e8f0;line-height:1.8;font-size:0.93rem;}}
|
| 302 |
+
.section li{{color:#e8e8f0 !important;margin-bottom:0.3rem;}}
|
| 303 |
+
.section p{{color:#e8e8f0;line-height:1.7;font-size:0.93rem;}}
|
| 304 |
.output-box{{background:#0d0d15;border:1px solid var(--border);border-left:3px solid var(--accent3);border-radius:8px;padding:0.8rem 1rem;font-family:'DM Mono',monospace;font-size:0.88rem;color:var(--accent3);white-space:pre-wrap;}}
|
| 305 |
#analogy h2,#output h2{{color:var(--accent3)!important;}}
|
| 306 |
#summary h2{{color:var(--accent2)!important;}}
|