Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -139,29 +139,30 @@ input[type="text"], textarea {
|
|
139 |
}
|
140 |
|
141 |
/* Унификация фона и стиля Drop Image */
|
142 |
-
|
143 |
-
background-color: transparent !important;
|
144 |
-
border: 1px dashed #FFFFFF !important;
|
|
|
145 |
}
|
146 |
|
147 |
-
/*
|
148 |
-
.gr-image-upload
|
149 |
-
background-color: transparent !important;
|
150 |
-
}
|
151 |
-
|
152 |
-
/* Централизованный текст внутри Drop Image */
|
153 |
-
.gr-image-upload > .dropzone > .inner::before {
|
154 |
content: 'Drop Image Here';
|
155 |
-
color: #FFFFFF;
|
156 |
-
font-size: 1rem;
|
157 |
-
font-weight: bold;
|
158 |
-
text-align: center;
|
159 |
position: absolute;
|
160 |
top: 50%;
|
161 |
left: 50%;
|
162 |
transform: translate(-50%, -50%);
|
163 |
}
|
164 |
|
|
|
|
|
|
|
|
|
|
|
165 |
/* Выравнивание элементов */
|
166 |
.drop-image-container {
|
167 |
display: flex;
|
|
|
139 |
}
|
140 |
|
141 |
/* Унификация фона и стиля Drop Image */
|
142 |
+
gr-image-upload {
|
143 |
+
background-color: transparent !important; /* Прозрачный фон */
|
144 |
+
border: 1px dashed #FFFFFF !important; /* Белая пунктирная рамка */
|
145 |
+
position: relative; /* Для позиционирования текста */
|
146 |
}
|
147 |
|
148 |
+
/* Центрированный текст внутри Drop Image */
|
149 |
+
.gr-image-upload .dropzone::before {
|
|
|
|
|
|
|
|
|
|
|
150 |
content: 'Drop Image Here';
|
151 |
+
color: #FFFFFF; /* Белый цвет текста */
|
152 |
+
font-size: 1rem; /* Размер шрифта */
|
153 |
+
font-weight: bold; /* Жирный текст */
|
154 |
+
text-align: center; /* Выравнивание текста по центру */
|
155 |
position: absolute;
|
156 |
top: 50%;
|
157 |
left: 50%;
|
158 |
transform: translate(-50%, -50%);
|
159 |
}
|
160 |
|
161 |
+
/* Скрытие стандартной иконки загрузки */
|
162 |
+
.gr-image-upload .dropzone .file-upload {
|
163 |
+
display: none !important;
|
164 |
+
}
|
165 |
+
|
166 |
/* Выравнивание элементов */
|
167 |
.drop-image-container {
|
168 |
display: flex;
|