Spaces:
Running
Running
Sebastiankay
commited on
Update _res/_custom.css
Browse files- _res/_custom.css +70 -8
_res/_custom.css
CHANGED
@@ -119,7 +119,6 @@ body>gradio-app.has-bg-image::before {
|
|
119 |
div.tabs>div.tab-nav>button.selected {
|
120 |
border-width: 0 !important;
|
121 |
background: var(--primary-600) !important;
|
122 |
-
color: var(--neutral-950);
|
123 |
font-weight: 600;
|
124 |
}
|
125 |
|
@@ -208,27 +207,70 @@ span.has-info+div {
|
|
208 |
height: 33px; */
|
209 |
--icon-ratio: 3/2;
|
210 |
aspect-ratio: 1;
|
211 |
-
min-width:
|
212 |
max-width: 120px;
|
|
|
|
|
|
|
213 |
|
214 |
-
|
|
|
215 |
fill: var(--text-color-by-luminance);
|
216 |
width: 70%;
|
217 |
transition: transform 0.2s ease-in-out;
|
218 |
}
|
219 |
|
220 |
-
&
|
221 |
transform: rotate(90deg) rotateX(180deg);
|
222 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
}
|
224 |
|
225 |
.switch-ratio-btn:hover {
|
226 |
-
&
|
227 |
transform: rotate(40deg);
|
228 |
}
|
229 |
|
230 |
-
&
|
231 |
-
transform: rotate(40deg)
|
232 |
}
|
233 |
}
|
234 |
|
@@ -338,6 +380,25 @@ div.gradio-container.blur-container {
|
|
338 |
pointer-events: none;
|
339 |
}
|
340 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
/* MARK: Range Input */
|
342 |
input[type=range].svelte-pc1gm4 {
|
343 |
accent-color: var(--slider-color);
|
@@ -362,7 +423,8 @@ span.svelte-1gfkn6j,
|
|
362 |
span.svelte-1gfkn6j,
|
363 |
.primary.svelte-cmf5ev,
|
364 |
label.selected.svelte-1k4wjf2.svelte-1k4wjf2.svelte-1k4wjf2,
|
365 |
-
label.selected.svelte-1mhtq7j.svelte-1mhtq7j.svelte-1mhtq7j
|
|
|
366 |
color: var(--text-color-by-luminance) !important;
|
367 |
}
|
368 |
|
|
|
119 |
div.tabs>div.tab-nav>button.selected {
|
120 |
border-width: 0 !important;
|
121 |
background: var(--primary-600) !important;
|
|
|
122 |
font-weight: 600;
|
123 |
}
|
124 |
|
|
|
207 |
height: 33px; */
|
208 |
--icon-ratio: 3/2;
|
209 |
aspect-ratio: 1;
|
210 |
+
min-width: 120px;
|
211 |
max-width: 120px;
|
212 |
+
display: flex;
|
213 |
+
justify-content: center;
|
214 |
+
align-items: center;
|
215 |
|
216 |
+
/*
|
217 |
+
& div#switch_width_height_inner {
|
218 |
fill: var(--text-color-by-luminance);
|
219 |
width: 70%;
|
220 |
transition: transform 0.2s ease-in-out;
|
221 |
}
|
222 |
|
223 |
+
& div#switch_width_height_inner.portrait {
|
224 |
transform: rotate(90deg) rotateX(180deg);
|
225 |
}
|
226 |
+
*/
|
227 |
+
|
228 |
+
& #switch_width_height_inner {
|
229 |
+
width: 100px;
|
230 |
+
height: 100px;
|
231 |
+
transition: transform 0.2s ease-in-out, width 0.3s ease-in-out, height 0.38s ease-in-out 0.1s;
|
232 |
+
border-radius: 0.4rem;
|
233 |
+
border: 4px solid var(--text-color-by-luminance);
|
234 |
+
background: transparent;
|
235 |
+
}
|
236 |
+
|
237 |
+
[data-aspect-ratio="16-9"] {
|
238 |
+
width: 90px !important;
|
239 |
+
height: 51px !important;
|
240 |
+
}
|
241 |
+
[data-aspect-ratio="9-16"] {
|
242 |
+
width: 51px !important;
|
243 |
+
height: 90px !important;
|
244 |
+
}
|
245 |
+
[data-aspect-ratio="4-3"] {
|
246 |
+
width: 90px !important;
|
247 |
+
height: 60px !important;
|
248 |
+
}
|
249 |
+
[data-aspect-ratio="3-4"] {
|
250 |
+
width: 60px !important;
|
251 |
+
height: 90px !important;
|
252 |
+
}
|
253 |
+
[data-aspect-ratio="3-2"] {
|
254 |
+
width: 90px !important;
|
255 |
+
height: 67px !important;
|
256 |
+
}
|
257 |
+
[data-aspect-ratio="2-3"] {
|
258 |
+
width: 67px !important;
|
259 |
+
height: 90px !important;
|
260 |
+
}
|
261 |
+
[data-aspect-ratio="1-1"] {
|
262 |
+
width: 70px !important;
|
263 |
+
height: 70px !important;
|
264 |
+
}
|
265 |
}
|
266 |
|
267 |
.switch-ratio-btn:hover {
|
268 |
+
& #switch_width_height_inner.querformat {
|
269 |
transform: rotate(40deg);
|
270 |
}
|
271 |
|
272 |
+
& #switch_width_height_inner.hochformat {
|
273 |
+
transform: rotate(-40deg) !important;
|
274 |
}
|
275 |
}
|
276 |
|
|
|
380 |
pointer-events: none;
|
381 |
}
|
382 |
|
383 |
+
#image_seed:has(input[disabled].svelte-pc1gm4) {
|
384 |
+
position: relative;
|
385 |
+
}
|
386 |
+
|
387 |
+
#image_seed:has(input[disabled].svelte-pc1gm4)::after {
|
388 |
+
position: absolute;
|
389 |
+
content: '';
|
390 |
+
top: 50%;
|
391 |
+
left: 50%;
|
392 |
+
transform: translate(-50%, -50%);
|
393 |
+
width: 100%;
|
394 |
+
height: 100%;
|
395 |
+
border-radius: var(--block-radius);
|
396 |
+
background: var(--block-background-fill);
|
397 |
+
opacity: 0.5;
|
398 |
+
cursor: not-allowed;
|
399 |
+
z-index: var(--layer-5);
|
400 |
+
}
|
401 |
+
|
402 |
/* MARK: Range Input */
|
403 |
input[type=range].svelte-pc1gm4 {
|
404 |
accent-color: var(--slider-color);
|
|
|
423 |
span.svelte-1gfkn6j,
|
424 |
.primary.svelte-cmf5ev,
|
425 |
label.selected.svelte-1k4wjf2.svelte-1k4wjf2.svelte-1k4wjf2,
|
426 |
+
label.selected.svelte-1mhtq7j.svelte-1mhtq7j.svelte-1mhtq7j,
|
427 |
+
div.tabs>div.tab-nav>button {
|
428 |
color: var(--text-color-by-luminance) !important;
|
429 |
}
|
430 |
|