Spaces:
Sleeping
Sleeping
Create _custom.css
Browse files- _custom.css +70 -0
_custom.css
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
body {
|
| 2 |
+
/* MARK: Toggle Button Checkbox */
|
| 3 |
+
/* INFO: gr.Checkbox elem_classes".toggle-btn" */
|
| 4 |
+
|
| 5 |
+
.toggle-btn {
|
| 6 |
+
display: flex;
|
| 7 |
+
flex-direction: column-reverse;
|
| 8 |
+
|
| 9 |
+
&>div.wrap {
|
| 10 |
+
display: none;
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
&>div:not(.wrap) {
|
| 14 |
+
margin-top: var(--spacing-lg);
|
| 15 |
+
margin-bottom: 0;
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
&>label {
|
| 19 |
+
position: relative;
|
| 20 |
+
width: 57px;
|
| 21 |
+
height: 27px;
|
| 22 |
+
display: inline-block;
|
| 23 |
+
border-radius: 13px;
|
| 24 |
+
background: var(--neutral-700);
|
| 25 |
+
box-shadow: var(--shadow-inset);
|
| 26 |
+
transition: background-color 0.3s, cursor 0.3s;
|
| 27 |
+
border: solid 0.4px var(--border-color-primary);
|
| 28 |
+
cursor: pointer;
|
| 29 |
+
|
| 30 |
+
&>input[type="checkbox"] {
|
| 31 |
+
width: 0;
|
| 32 |
+
height: 0;
|
| 33 |
+
opacity: 0;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
&>span {
|
| 37 |
+
position: absolute;
|
| 38 |
+
left: 60px;
|
| 39 |
+
height: 27px;
|
| 40 |
+
min-width: 140px;
|
| 41 |
+
line-height: 27px;
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
&>label:has(input[type="checkbox"])::after {
|
| 46 |
+
content: "";
|
| 47 |
+
position: absolute;
|
| 48 |
+
top: 3px;
|
| 49 |
+
left: 3px;
|
| 50 |
+
width: 20px;
|
| 51 |
+
height: 20px;
|
| 52 |
+
border-radius: 50%;
|
| 53 |
+
background: var(--neutral-900);
|
| 54 |
+
box-shadow: var(--shadow-inset);
|
| 55 |
+
transition: left 0.2s ease-in-out, background 0.2s ease-in-out;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
&>label:has(input[type="checkbox"]:checked)::after {
|
| 59 |
+
content: "";
|
| 60 |
+
position: absolute;
|
| 61 |
+
background: var(--neutral-900);
|
| 62 |
+
opacity: 0.8;
|
| 63 |
+
left: 32px;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
&>label:has(input[type="checkbox"]:checked) {
|
| 67 |
+
background: var(--primary-600);
|
| 68 |
+
}
|
| 69 |
+
}
|
| 70 |
+
}
|