Skip to content

Instantly share code, notes, and snippets.

@bulbul84
Created June 1, 2016 07:59
Show Gist options
  • Save bulbul84/bbe0d40f93da37c8c82a66b87205fe87 to your computer and use it in GitHub Desktop.
Save bulbul84/bbe0d40f93da37c8c82a66b87205fe87 to your computer and use it in GitHub Desktop.
<div data-id="76957390" class="toggle-btn small domain_autorenew autorenew ">
<input type="checkbox" id="tog_AutoRenew_domain_76957390_0">
<label for="tog_AutoRenew_domain_76957390_0">Auto-Renew</label>
</div>
.toggle-btn.small {
font-size: 0.625em;
height: 200px;
margin: 0 auto;
min-width: 4.4em;
padding-top: 70px;
width: 200px;
}
.toggle-btn {
display: inline-block;
height: 4.375em;
overflow: hidden;
position: relative;
white-space: nowrap;
width: 7.5em;
}
*::-moz-placeholder {
color: #bfbfbf;
opacity: 1;
}
.your-cart ul {
list-style: outside none none;
}
.toggle-btn input[type="checkbox"] {
position: absolute;
top: -20px;
}
input[type="checkbox"], input[type="radio"] {
padding: 0;
}
.toggle-btn {
white-space: nowrap;
}
.toggle-btn.small label::before {
display: block;
height: 2.4em;
margin-left: -2.2em;
width: 4.4em;
}
.toggle-btn label::before {
background: #e7e8e9 none repeat scroll 0 0;
border-radius: 2.1875em;
content: "";
height: 4.375em;
left: 50%;
margin-left: -3.75em;
position: absolute;
top: 0;
width: 7.5em;
}
.toggle-btn.small label::after {
height: 1.8em;
left: 50%;
margin-left: -1.75em;
top: 0.3em;
width: 1.8em;
}
.toggle-btn label::after {
background: #fff none repeat scroll 0 0;
border-radius: 2.1875em;
content: "";
height: 3.125em;
left: 0.625em;
position: absolute;
top: 0.625em;
transition: all 150ms ease 0s;
width: 3.125em;
}
.toggle-btn.small label {
background: transparent none repeat scroll 0 0;
border-radius: 0;
height: auto;
padding-top: 2.4em;
text-align: center;
width: auto;
}
.toggle-btn label {
cursor: pointer;
display: block;
font-variant: small-caps;
position: relative;
text-transform: uppercase;
transition: all 150ms ease 0s;
width: 7.5em;
}
.toggle-btn.small input[type="checkbox"]:checked + label::before, .toggle-btn input[type="checkbox"]:checked + label::before {
background-color: #8cc1c1;
}
.toggle-btn.small input[type="checkbox"]:checked + label::before, .toggle-btn input[type="checkbox"]:checked + label::before {
background-color: #8cc1c1;
}
.toggle-btn.small label::before {
display: block;
height: 2.4em;
margin-left: -2.2em;
width: 4.4em;
}
.toggle-btn label::before {
background: #e7e8e9 none repeat scroll 0 0;
border-radius: 2.1875em;
content: "";
height: 4.375em;
left: 50%;
margin-left: -3.75em;
position: absolute;
top: 0;
width: 7.5em;
}
.toggle-btn.small input[type="checkbox"]:checked + label::after {
background: #fff none repeat scroll 0 0;
left: 50%;
margin-left: 0;
}
.toggle-btn input[type="checkbox"]:checked + label::after {
left: 3.675em;
}
.toggle-btn.small label::after {
height: 1.8em;
left: 50%;
margin-left: -1.75em;
top: 0.3em;
width: 1.8em;
}
.toggle-btn label::after {
background: #fff none repeat scroll 0 0;
border-radius: 2.1875em;
content: "";
height: 3.125em;
left: 0.625em;
position: absolute;
top: 0.625em;
transition: all 150ms ease 0s;
width: 3.125em;
}
.toggle-btn.small input[type="checkbox"]:checked + label {
color: #8cc1c1;
}
.toggle-btn.small label {
background: transparent none repeat scroll 0 0;
border-radius: 0;
height: auto;
padding-top: 2.4em;
text-align: center;
width: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment