Spaces:
Running
Running
File size: 884 Bytes
7f0cf80 82b391b 7f0cf80 692af3a 7f0cf80 82b391b 7f0cf80 82b391b 7f0cf80 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
.checkbox input {
height: 0;
width: 0;
display: none;
}
.checkbox span {
font-size: 0.875rem;
color: var(--colour-2);
margin-left: 4px;
}
.checkbox label:after {
content: "";
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 5px;
width: 20px;
height: 20px;
background: var(--blur-border);
border-radius: 90px;
transition: 0.33s;
}
.checkbox input + label:after,
.checkbox input:checked + label {
background: var(--colour-3);
}
.checkbox input + label,
.checkbox input:checked + label:after {
background: var(--blur-border);
}
.checkbox input:checked + label:after {
left: calc(100% - 5px - 20px);
}
@media screen and (max-width: 990px) {
.checkbox label {
width: 25px;
height: 15px;
}
.checkbox label:after {
left: 2px;
width: 10px;
height: 10px;
}
.checkbox input:checked + label:after {
left: calc(100% - 2px - 10px);
}
}
|