Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,21 +59,26 @@ def query(prompt, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Ka
|
|
59 |
|
60 |
css = """
|
61 |
#app-container {
|
62 |
-
max-width:
|
63 |
-
margin
|
64 |
-
|
65 |
}
|
66 |
|
67 |
input, textarea, select {
|
68 |
background-color: #f5f5f5; /* Fondo gris claro para inputs */
|
69 |
color: #333333; /* Texto gris oscuro en inputs */
|
70 |
border: 1px solid #cccccc; /* Borde gris claro en inputs */
|
|
|
|
|
71 |
}
|
72 |
|
73 |
button {
|
74 |
background-color: #f5f5f5; /* Fondo gris claro */
|
75 |
color: #333333; /* Texto gris oscuro */
|
76 |
border: 1px solid black; /* Borde negro en botones */
|
|
|
|
|
|
|
77 |
}
|
78 |
|
79 |
button.primary {
|
@@ -95,16 +100,27 @@ h1, h2, h3, h4, h5, h6 {
|
|
95 |
}
|
96 |
|
97 |
@media (max-width: 768px) {
|
98 |
-
.button-
|
99 |
display: flex;
|
100 |
flex-direction: column;
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
102 |
}
|
103 |
}
|
104 |
|
105 |
-
|
106 |
-
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
109 |
"""
|
110 |
|
|
|
59 |
|
60 |
css = """
|
61 |
#app-container {
|
62 |
+
max-width: 100%; /* Ancho m谩ximo del contenedor en 100% del espacio disponible */
|
63 |
+
margin: 0 auto; /* Centrar el contenedor */
|
64 |
+
padding: 20px; /* Espacio interno */
|
65 |
}
|
66 |
|
67 |
input, textarea, select {
|
68 |
background-color: #f5f5f5; /* Fondo gris claro para inputs */
|
69 |
color: #333333; /* Texto gris oscuro en inputs */
|
70 |
border: 1px solid #cccccc; /* Borde gris claro en inputs */
|
71 |
+
width: 100%; /* Ancho completo del input */
|
72 |
+
box-sizing: border-box; /* Incluir el borde en el ancho total */
|
73 |
}
|
74 |
|
75 |
button {
|
76 |
background-color: #f5f5f5; /* Fondo gris claro */
|
77 |
color: #333333; /* Texto gris oscuro */
|
78 |
border: 1px solid black; /* Borde negro en botones */
|
79 |
+
width: 100%; /* Ancho completo del bot贸n */
|
80 |
+
box-sizing: border-box; /* Incluir el borde en el ancho total */
|
81 |
+
padding: 10px; /* Espacio interno en el bot贸n */
|
82 |
}
|
83 |
|
84 |
button.primary {
|
|
|
100 |
}
|
101 |
|
102 |
@media (max-width: 768px) {
|
103 |
+
.button-container {
|
104 |
display: flex;
|
105 |
flex-direction: column;
|
106 |
+
align-items: center; /* Centra el bot贸n en vista m贸vil */
|
107 |
+
}
|
108 |
+
|
109 |
+
.button-container button {
|
110 |
+
width: auto; /* Ajusta el ancho del bot贸n para m贸viles */
|
111 |
+
margin-top: 10px; /* Espacio superior para el bot贸n en m贸viles */
|
112 |
}
|
113 |
}
|
114 |
|
115 |
+
@media (min-width: 769px) {
|
116 |
+
.button-container {
|
117 |
+
display: flex;
|
118 |
+
justify-content: flex-end; /* Alinea el bot贸n a la derecha en vista de escritorio */
|
119 |
+
}
|
120 |
+
|
121 |
+
.button-container button {
|
122 |
+
width: auto; /* Ajusta el ancho del bot贸n para escritorio */
|
123 |
+
}
|
124 |
}
|
125 |
"""
|
126 |
|