Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -211,31 +211,48 @@ class CustomTheme(gr.themes.Base):
|
|
211 |
)
|
212 |
|
213 |
css = """
|
|
|
214 |
*, *::before, *::after {
|
215 |
box-sizing: border-box;
|
216 |
}
|
217 |
|
|
|
218 |
html, body {
|
219 |
background-color: #191a1e !important;
|
220 |
margin: 0 !important;
|
221 |
padding: 0 !important;
|
222 |
-
height: 100vh;
|
223 |
width: 100vw;
|
224 |
-
|
|
|
225 |
}
|
226 |
|
227 |
-
|
|
|
228 |
background-color: #191a1e !important;
|
|
|
|
|
|
|
|
|
229 |
height: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
width: 100%;
|
|
|
231 |
overflow: hidden;
|
232 |
}
|
233 |
|
234 |
-
|
|
|
|
|
235 |
background-color: #191a1e !important;
|
236 |
border: none !important;
|
237 |
}
|
238 |
|
|
|
239 |
.generate-button {
|
240 |
background-color: #5271FF !important;
|
241 |
color: #FFFFFF !important;
|
@@ -246,6 +263,7 @@ html, body {
|
|
246 |
border-radius: 0.3em;
|
247 |
}
|
248 |
|
|
|
249 |
footer {
|
250 |
visibility: hidden;
|
251 |
height: 0;
|
|
|
211 |
)
|
212 |
|
213 |
css = """
|
214 |
+
/* Универсальный сброс стилей */
|
215 |
*, *::before, *::after {
|
216 |
box-sizing: border-box;
|
217 |
}
|
218 |
|
219 |
+
/* Задаём фон и убираем отступы для html и body */
|
220 |
html, body {
|
221 |
background-color: #191a1e !important;
|
222 |
margin: 0 !important;
|
223 |
padding: 0 !important;
|
|
|
224 |
width: 100vw;
|
225 |
+
height: 100vh;
|
226 |
+
overflow: hidden;
|
227 |
}
|
228 |
|
229 |
+
/* Перекрываем потенциальные обёртки Hugging Face */
|
230 |
+
#root, #__next, body > div, body > div > div {
|
231 |
background-color: #191a1e !important;
|
232 |
+
margin: 0 !important;
|
233 |
+
padding: 0 !important;
|
234 |
+
border: none !important;
|
235 |
+
width: 100%;
|
236 |
height: 100%;
|
237 |
+
overflow: hidden;
|
238 |
+
}
|
239 |
+
|
240 |
+
/* Основные контейнеры Gradio */
|
241 |
+
.gradio-container, .gr-app {
|
242 |
+
background-color: #191a1e !important;
|
243 |
width: 100%;
|
244 |
+
height: 100%;
|
245 |
overflow: hidden;
|
246 |
}
|
247 |
|
248 |
+
/* Все внутренние блоки Gradio */
|
249 |
+
.gr-block, .gr-row, .gr-column, .gr-box,
|
250 |
+
.gr-examples, .gr-examples .gr-box, .gr-examples .gr-card {
|
251 |
background-color: #191a1e !important;
|
252 |
border: none !important;
|
253 |
}
|
254 |
|
255 |
+
/* Стиль кнопки */
|
256 |
.generate-button {
|
257 |
background-color: #5271FF !important;
|
258 |
color: #FFFFFF !important;
|
|
|
263 |
border-radius: 0.3em;
|
264 |
}
|
265 |
|
266 |
+
/* Скрываем footer */
|
267 |
footer {
|
268 |
visibility: hidden;
|
269 |
height: 0;
|