JJJJJllll
commited on
Commit
·
9c17f94
1
Parent(s):
315a90f
fix markdown dark
Browse files
app.py
CHANGED
|
@@ -73,10 +73,26 @@ with gr.Blocks(
|
|
| 73 |
theme=theme,
|
| 74 |
css="""
|
| 75 |
:root, :host, html, body {
|
| 76 |
-
color-scheme: dark !important;
|
| 77 |
background: #0b1020 !important;
|
| 78 |
color: #e7eefc !important;
|
| 79 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
.gradio-container {
|
| 81 |
background: #0b1020 !important;
|
| 82 |
}
|
|
|
|
| 73 |
theme=theme,
|
| 74 |
css="""
|
| 75 |
:root, :host, html, body {
|
| 76 |
+
color-scheme: dark !important;
|
| 77 |
background: #0b1020 !important;
|
| 78 |
color: #e7eefc !important;
|
| 79 |
}
|
| 80 |
+
|
| 81 |
+
/* 让 Gradio Markdown 永远使用深色主题 */
|
| 82 |
+
gr-markdown, gr-markdown * {
|
| 83 |
+
background: #0f1630 !important;
|
| 84 |
+
color: #e7eefc !important;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
/* 修复 Markdown 区块边框与阴影 */
|
| 88 |
+
gr-markdown .prose, .prose {
|
| 89 |
+
background: #0f1630 !important;
|
| 90 |
+
color: #e7eefc !important;
|
| 91 |
+
border: 1px solid rgba(255,255,255,0.08) !important;
|
| 92 |
+
border-radius: 12px !important;
|
| 93 |
+
box-shadow: 0 4px 24px rgba(0,0,0,0.35);
|
| 94 |
+
}``
|
| 95 |
+
|
| 96 |
.gradio-container {
|
| 97 |
background: #0b1020 !important;
|
| 98 |
}
|