Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,11 +56,28 @@ ANALYSES = [
|
|
| 56 |
]
|
| 57 |
|
| 58 |
EDITOR_CSS = """
|
| 59 |
-
#analysis-code .cm-editor
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
}
|
| 65 |
"""
|
| 66 |
|
|
@@ -69,7 +86,7 @@ DARK_MODE_HEAD = """<script>
|
|
| 69 |
(() => {
|
| 70 |
const url = new URL(window.location.href);
|
| 71 |
if (!url.searchParams.has("__theme")) {
|
| 72 |
-
url.searchParams.set("__theme", "
|
| 73 |
window.location.replace(url);
|
| 74 |
}
|
| 75 |
})();
|
|
|
|
| 56 |
]
|
| 57 |
|
| 58 |
EDITOR_CSS = """
|
| 59 |
+
#analysis-code .cm-editor {
|
| 60 |
+
background: #292d30;
|
| 61 |
+
color: #dddddd;
|
| 62 |
+
font-family: "JetBrains Mono", "Cascadia Code", "DejaVu Sans Mono", monospace;
|
| 63 |
+
font-size: 14px;
|
| 64 |
+
line-height: 1.65;
|
| 65 |
+
}
|
| 66 |
+
#analysis-code .cm-gutters {
|
| 67 |
+
background: #292d30;
|
| 68 |
+
color: #a0a0a0;
|
| 69 |
+
border-right: 1px solid #454a4e;
|
| 70 |
+
}
|
| 71 |
+
#analysis-code .cm-activeLine,
|
| 72 |
+
#analysis-code .cm-activeLineGutter {
|
| 73 |
+
background: #343a3f;
|
| 74 |
+
}
|
| 75 |
+
#analysis-code .cm-cursor {
|
| 76 |
+
border-left-color: #fda331;
|
| 77 |
+
}
|
| 78 |
+
#analysis-code .cm-selectionBackground,
|
| 79 |
+
#analysis-code .cm-content ::selection {
|
| 80 |
+
background: #46596b !important;
|
| 81 |
}
|
| 82 |
"""
|
| 83 |
|
|
|
|
| 86 |
(() => {
|
| 87 |
const url = new URL(window.location.href);
|
| 88 |
if (!url.searchParams.has("__theme")) {
|
| 89 |
+
url.searchParams.set("__theme", "dark");
|
| 90 |
window.location.replace(url);
|
| 91 |
}
|
| 92 |
})();
|