Spaces:
Running
Running
Sebastiankay
commited on
Commit
•
f8e211d
1
Parent(s):
54439e5
Update _res/_custom.css
Browse files- _res/_custom.css +70 -2
_res/_custom.css
CHANGED
@@ -224,8 +224,6 @@ div.tabs div.tabitem {
|
|
224 |
}
|
225 |
|
226 |
.prompt-input textarea {
|
227 |
-
font-size: 1.05rem;
|
228 |
-
color: var(--neutral-300);
|
229 |
resize: none;
|
230 |
}
|
231 |
|
@@ -500,6 +498,76 @@ div.gradio-container.blur-container {
|
|
500 |
z-index: var(--layer-5);
|
501 |
}
|
502 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
503 |
/* MARK: Range Input */
|
504 |
input[type=range].svelte-pc1gm4 {
|
505 |
accent-color: var(--slider-color);
|
|
|
224 |
}
|
225 |
|
226 |
.prompt-input textarea {
|
|
|
|
|
227 |
resize: none;
|
228 |
}
|
229 |
|
|
|
498 |
z-index: var(--layer-5);
|
499 |
}
|
500 |
|
501 |
+
/* MARK: Toggle Button Checkbox */
|
502 |
+
/* INFO: gr.Checkbox elem_classes".toggle-btn" */
|
503 |
+
|
504 |
+
.toggle-btn {
|
505 |
+
display: flex;
|
506 |
+
flex-direction: column-reverse;
|
507 |
+
|
508 |
+
&>div.wrap {
|
509 |
+
display: none;
|
510 |
+
}
|
511 |
+
|
512 |
+
&>div:not(.wrap) {
|
513 |
+
margin-top: var(--spacing-lg);
|
514 |
+
margin-bottom: 0;
|
515 |
+
}
|
516 |
+
|
517 |
+
&>label {
|
518 |
+
position: relative;
|
519 |
+
width: 57px;
|
520 |
+
height: 27px;
|
521 |
+
display: inline-block;
|
522 |
+
border-radius: 13px;
|
523 |
+
background: var(--neutral-700);
|
524 |
+
box-shadow: var(--shadow-inset);
|
525 |
+
transition: background-color 0.3s, cursor 0.3s;
|
526 |
+
border: solid 0.4px var(--border-color-primary);
|
527 |
+
cursor: pointer;
|
528 |
+
|
529 |
+
&>input[type="checkbox"] {
|
530 |
+
width: 0;
|
531 |
+
height: 0;
|
532 |
+
opacity: 0;
|
533 |
+
}
|
534 |
+
|
535 |
+
&>span {
|
536 |
+
position: absolute;
|
537 |
+
left: 60px;
|
538 |
+
height: 27px;
|
539 |
+
min-width: 140px;
|
540 |
+
line-height: 27px;
|
541 |
+
}
|
542 |
+
}
|
543 |
+
|
544 |
+
&>label:has(input[type="checkbox"])::after {
|
545 |
+
content: "";
|
546 |
+
position: absolute;
|
547 |
+
top: 3px;
|
548 |
+
left: 3px;
|
549 |
+
width: 20px;
|
550 |
+
height: 20px;
|
551 |
+
border-radius: 50%;
|
552 |
+
background: var(--neutral-900);
|
553 |
+
box-shadow: var(--shadow-inset);
|
554 |
+
transition: left 0.2s ease-in-out, background 0.2s ease-in-out;
|
555 |
+
}
|
556 |
+
|
557 |
+
&>label:has(input[type="checkbox"]:checked)::after {
|
558 |
+
content: "";
|
559 |
+
position: absolute;
|
560 |
+
background: var(--neutral-900);
|
561 |
+
opacity: 0.8;
|
562 |
+
left: 32px;
|
563 |
+
}
|
564 |
+
|
565 |
+
&>label:has(input[type="checkbox"]:checked) {
|
566 |
+
background: var(--primary-600);
|
567 |
+
}
|
568 |
+
}
|
569 |
+
|
570 |
+
|
571 |
/* MARK: Range Input */
|
572 |
input[type=range].svelte-pc1gm4 {
|
573 |
accent-color: var(--slider-color);
|