You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
First-Website/contact/contact.css

48 lines
718 B

.appearance {
position: absolute;
display: inline-block;
width: 60px;
height: 34px;
top: .7rem;
right: 1.5rem;
z-index: 4;
}
.appearance input {
opacity: 0;
width: 0;
height: 0;
}
.appearanceSlider {
position: absolute;
cursor: pointer;
border-radius: 34px;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .3s;
}
.appearanceSlider:before {
position: absolute;
border-radius: 50%;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .3s;
}
input:checked + .appearanceSlider {
background-color: #2E3747;
}
input:checked + .appearanceSlider:before {
transform: translateX(25px);
}