Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -211,7 +211,7 @@ body {
|
|
| 211 |
border: 1px solid #3b4252;
|
| 212 |
background-color: #2d343f;
|
| 213 |
border-radius: 4px;
|
| 214 |
-
margin:
|
| 215 |
max-width: 100%;
|
| 216 |
box-sizing: border-box;
|
| 217 |
}
|
|
@@ -221,7 +221,7 @@ body {
|
|
| 221 |
color: #7f8184;
|
| 222 |
border: 1px solid #3b4252;
|
| 223 |
border-radius: 4px;
|
| 224 |
-
margin-
|
| 225 |
width: 100%;
|
| 226 |
box-sizing: border-box;
|
| 227 |
transition: margin 0.2s ease;
|
|
@@ -248,7 +248,7 @@ body {
|
|
| 248 |
padding: 10px 20px;
|
| 249 |
background-color: #2d3d4f;
|
| 250 |
border-top: 1px solid #5b6270;
|
| 251 |
-
max-height:
|
| 252 |
overflow: hidden;
|
| 253 |
transition: max-height 0.2s ease;
|
| 254 |
}
|
|
@@ -267,17 +267,25 @@ body {
|
|
| 267 |
box-sizing: border-box;
|
| 268 |
}
|
| 269 |
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 279 |
}
|
| 280 |
}
|
|
|
|
| 281 |
"""
|
| 282 |
|
| 283 |
with gr.Blocks(css=custom_css) as demo:
|
|
|
|
| 211 |
border: 1px solid #3b4252;
|
| 212 |
background-color: #2d343f;
|
| 213 |
border-radius: 4px;
|
| 214 |
+
margin: 10px;
|
| 215 |
max-width: 100%;
|
| 216 |
box-sizing: border-box;
|
| 217 |
}
|
|
|
|
| 221 |
color: #7f8184;
|
| 222 |
border: 1px solid #3b4252;
|
| 223 |
border-radius: 4px;
|
| 224 |
+
margin-top: 20px;
|
| 225 |
width: 100%;
|
| 226 |
box-sizing: border-box;
|
| 227 |
transition: margin 0.2s ease;
|
|
|
|
| 248 |
padding: 10px 20px;
|
| 249 |
background-color: #2d3d4f;
|
| 250 |
border-top: 1px solid #5b6270;
|
| 251 |
+
max-height: 0;
|
| 252 |
overflow: hidden;
|
| 253 |
transition: max-height 0.2s ease;
|
| 254 |
}
|
|
|
|
| 267 |
box-sizing: border-box;
|
| 268 |
}
|
| 269 |
|
| 270 |
+
.custom_grid {
|
| 271 |
+
display: grid;
|
| 272 |
+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
| 273 |
+
gap: 10px;
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
+
.custom_image_grid {
|
| 277 |
+
display: grid;
|
| 278 |
+
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
| 279 |
+
gap: 10px;
|
| 280 |
+
margin-top: 10px;
|
| 281 |
+
}
|
| 282 |
+
|
| 283 |
+
@media (max-width: 768px) {
|
| 284 |
+
.custom_grid, .custom_image_grid {
|
| 285 |
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
| 286 |
}
|
| 287 |
}
|
| 288 |
+
|
| 289 |
"""
|
| 290 |
|
| 291 |
with gr.Blocks(css=custom_css) as demo:
|