Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -211,45 +211,43 @@ class CustomTheme(gr.themes.Base):
|
|
211 |
)
|
212 |
|
213 |
css = """
|
214 |
-
|
215 |
-
html, body {
|
216 |
-
margin: 0;
|
217 |
-
padding: 0;
|
218 |
background-color: #191a1e !important;
|
219 |
-
|
220 |
-
|
|
|
|
|
|
|
221 |
}
|
222 |
|
223 |
-
/*
|
224 |
.gradio-container, .gr-app {
|
225 |
background-color: #191a1e !important;
|
226 |
-
display: flex;
|
227 |
-
flex-direction: column;
|
228 |
-
min-height: 100vh; /* тянем на всю высоту окна */
|
229 |
-
width: 100%;
|
230 |
}
|
231 |
|
232 |
-
/*
|
233 |
-
.gr-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
}
|
238 |
|
239 |
-
/*
|
240 |
.gr-row {
|
241 |
display: flex;
|
242 |
flex-wrap: wrap;
|
243 |
gap: 20px;
|
|
|
244 |
}
|
245 |
|
246 |
-
/* Колонки также адаптивны */
|
247 |
.gr-column {
|
248 |
-
flex: 1 1
|
249 |
min-width: 300px;
|
|
|
|
|
|
|
250 |
}
|
251 |
|
252 |
-
/* Кнопка */
|
253 |
.generate-button {
|
254 |
background-color: #5271FF !important;
|
255 |
color: #FFFFFF !important;
|
@@ -260,7 +258,7 @@ html, body {
|
|
260 |
border-radius: 0.3em !important;
|
261 |
}
|
262 |
|
263 |
-
/* Примеры
|
264 |
.gr-examples {
|
265 |
display: flex !important;
|
266 |
flex-wrap: wrap !important;
|
@@ -269,13 +267,11 @@ html, body {
|
|
269 |
align-items: center !important;
|
270 |
}
|
271 |
|
272 |
-
/* Пример одной картинки */
|
273 |
.gr-examples img {
|
274 |
max-height: 64px;
|
275 |
object-fit: contain;
|
276 |
}
|
277 |
|
278 |
-
/* Скрываем футер */
|
279 |
footer {
|
280 |
display: none !important;
|
281 |
}
|
|
|
211 |
)
|
212 |
|
213 |
css = """
|
214 |
+
:root, html, body, #root, #__next, body > div, body > div > div, body > div > div > div {
|
|
|
|
|
|
|
215 |
background-color: #191a1e !important;
|
216 |
+
margin: 0 !important;
|
217 |
+
padding: 0 !important;
|
218 |
+
border: none !important;
|
219 |
+
width: 100% !important;
|
220 |
+
min-height: 100%;
|
221 |
}
|
222 |
|
223 |
+
/* Контейнер приложения */
|
224 |
.gradio-container, .gr-app {
|
225 |
background-color: #191a1e !important;
|
|
|
|
|
|
|
|
|
226 |
}
|
227 |
|
228 |
+
/* Уменьшаем контейнеры с картинками */
|
229 |
+
.gr-image img {
|
230 |
+
max-width: 300px !important;
|
231 |
+
max-height: 300px !important;
|
232 |
+
object-fit: contain;
|
233 |
}
|
234 |
|
235 |
+
/* Адаптивная верстка */
|
236 |
.gr-row {
|
237 |
display: flex;
|
238 |
flex-wrap: wrap;
|
239 |
gap: 20px;
|
240 |
+
align-items: flex-start;
|
241 |
}
|
242 |
|
|
|
243 |
.gr-column {
|
244 |
+
flex: 1 1 auto;
|
245 |
min-width: 300px;
|
246 |
+
display: flex;
|
247 |
+
flex-direction: column;
|
248 |
+
gap: 10px;
|
249 |
}
|
250 |
|
|
|
251 |
.generate-button {
|
252 |
background-color: #5271FF !important;
|
253 |
color: #FFFFFF !important;
|
|
|
258 |
border-radius: 0.3em !important;
|
259 |
}
|
260 |
|
261 |
+
/* Примеры внизу адаптивно */
|
262 |
.gr-examples {
|
263 |
display: flex !important;
|
264 |
flex-wrap: wrap !important;
|
|
|
267 |
align-items: center !important;
|
268 |
}
|
269 |
|
|
|
270 |
.gr-examples img {
|
271 |
max-height: 64px;
|
272 |
object-fit: contain;
|
273 |
}
|
274 |
|
|
|
275 |
footer {
|
276 |
display: none !important;
|
277 |
}
|