Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -158,45 +158,58 @@ with gr.Blocks(css='''
|
|
158 |
transform: scaleX(0.9);
|
159 |
}
|
160 |
.mood-input {
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
|
|
167 |
}
|
168 |
.mood-input input {
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
}
|
179 |
.mood-input input:focus + span {
|
180 |
-
|
181 |
-
|
182 |
}
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
border-radius: inherit;
|
195 |
-
pointer-events: none;
|
196 |
-
box-shadow: inset 0 0 0 3px #fff,
|
197 |
-
0 0 0 4px #fff,
|
198 |
-
3px -3px 30px #1beabd,
|
199 |
-
-3px 3px 30px #10abff;
|
200 |
}
|
201 |
''') as demo:
|
202 |
|
|
|
158 |
transform: scaleX(0.9);
|
159 |
}
|
160 |
.mood-input {
|
161 |
+
position: relative;
|
162 |
+
font-size: 1.5em;
|
163 |
+
background: linear-gradient(21deg, #10abff, #1beabd);
|
164 |
+
padding: 3px;
|
165 |
+
display: inline-block;
|
166 |
+
border-radius: 9999em;
|
167 |
+
margin: 50px; /* Added to match your example */
|
168 |
}
|
169 |
.mood-input input {
|
170 |
+
position: relative;
|
171 |
+
display: inherit;
|
172 |
+
border-radius: inherit;
|
173 |
+
margin: 0;
|
174 |
+
border: none;
|
175 |
+
outline: none;
|
176 |
+
padding: 0 .325em;
|
177 |
+
z-index: 1;
|
178 |
+
font-family: inherit;
|
179 |
+
line-height: inherit;
|
180 |
+
color: #2e3750;
|
181 |
+
min-width: 12em; /* Adjusted to ensure consistency */
|
182 |
+
}
|
183 |
+
.mood-input span {
|
184 |
+
transform: scale(.993, .94);
|
185 |
+
transition: transform .5s, opacity .25s;
|
186 |
+
opacity: 0;
|
187 |
+
position: absolute;
|
188 |
+
z-index: 0;
|
189 |
+
margin: 4px;
|
190 |
+
left: 0;
|
191 |
+
top: 0;
|
192 |
+
right: 0;
|
193 |
+
bottom: 0;
|
194 |
+
border-radius: inherit;
|
195 |
+
pointer-events: none;
|
196 |
+
box-shadow: inset 0 0 0 3px #fff, 0 0 0 4px #fff, 3px -3px 30px #1beabd, -3px 3px 30px #10abff;
|
197 |
}
|
198 |
.mood-input input:focus + span {
|
199 |
+
opacity: 1;
|
200 |
+
transform: scale(1);
|
201 |
}
|
202 |
+
body {
|
203 |
+
text-align: center;
|
204 |
+
display: flex;
|
205 |
+
align-items: center;
|
206 |
+
justify-content: center;
|
207 |
+
height: 100%;
|
208 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
209 |
+
line-height: 1.5;
|
210 |
+
}
|
211 |
+
::placeholder {
|
212 |
+
color: #cbd0d5;
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
}
|
214 |
''') as demo:
|
215 |
|