Spaces:
Running
Running
Fixes CSS color rules that look bad in dark mode
#1
by
aliabid94
HF staff
- opened
app.py
CHANGED
@@ -89,12 +89,10 @@ custom_css = """
|
|
89 |
.header h1 {
|
90 |
font-size: 2.5rem !important;
|
91 |
font-weight: 700 !important;
|
92 |
-
color: #1a5276 !important;
|
93 |
margin-bottom: 0.5rem !important;
|
94 |
}
|
95 |
.header p {
|
96 |
font-size: 1.2rem !important;
|
97 |
-
color: #34495e !important;
|
98 |
}
|
99 |
.chatbot-container {
|
100 |
border-radius: 10px !important;
|
@@ -121,10 +119,8 @@ custom_css = """
|
|
121 |
margin-top: 2rem;
|
122 |
text-align: center;
|
123 |
font-size: 0.9rem;
|
124 |
-
color: #7f8c8d;
|
125 |
}
|
126 |
.parameters-section {
|
127 |
-
background-color: #f8f9fa !important;
|
128 |
padding: 1rem !important;
|
129 |
border-radius: 8px !important;
|
130 |
margin-bottom: 1rem !important;
|
@@ -138,6 +134,20 @@ custom_css = """
|
|
138 |
.right-panel {
|
139 |
padding-left: 1rem !important;
|
140 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
"""
|
142 |
|
143 |
# Create the Gradio interface with a modern, professional design
|
|
|
89 |
.header h1 {
|
90 |
font-size: 2.5rem !important;
|
91 |
font-weight: 700 !important;
|
|
|
92 |
margin-bottom: 0.5rem !important;
|
93 |
}
|
94 |
.header p {
|
95 |
font-size: 1.2rem !important;
|
|
|
96 |
}
|
97 |
.chatbot-container {
|
98 |
border-radius: 10px !important;
|
|
|
119 |
margin-top: 2rem;
|
120 |
text-align: center;
|
121 |
font-size: 0.9rem;
|
|
|
122 |
}
|
123 |
.parameters-section {
|
|
|
124 |
padding: 1rem !important;
|
125 |
border-radius: 8px !important;
|
126 |
margin-bottom: 1rem !important;
|
|
|
134 |
.right-panel {
|
135 |
padding-left: 1rem !important;
|
136 |
}
|
137 |
+
@media (prefers-color-scheme: light) {
|
138 |
+
.parameters-section {
|
139 |
+
background-color: #f8f9fa !important;
|
140 |
+
}
|
141 |
+
.footer {
|
142 |
+
color: #7f8c8d;
|
143 |
+
}
|
144 |
+
.header p {
|
145 |
+
color: #34495e !important;
|
146 |
+
}
|
147 |
+
.header h1 {
|
148 |
+
color: #1a5276 !important;
|
149 |
+
}
|
150 |
+
}
|
151 |
"""
|
152 |
|
153 |
# Create the Gradio interface with a modern, professional design
|