.wrap-check-30 .tgl {
display: none;
}
.wrap-check-30 .tgl,
.wrap-check-30 .tgl:after,
.wrap-check-30 .tgl:before,
.wrap-check-30 .tgl *,
.wrap-check-30 .tgl *:after,
.wrap-check-30 .tgl *:before,
.wrap-check-30 .tgl + .tgl-btn {
box-sizing: border-box;
}
.wrap-check-30 .tgl::-moz-selection,
.wrap-check-30 .tgl:after::-moz-selection,
.wrap-check-30 .tgl:before::-moz-selection,
.wrap-check-30 .tgl *::-moz-selection,
.wrap-check-30 .tgl *:after::-moz-selection,
.wrap-check-30 .tgl *:before::-moz-selection,
.wrap-check-30 .tgl + .tgl-btn::-moz-selection,
.wrap-check-30 .tgl::selection,
.wrap-check-30 .tgl:after::selection,
.wrap-check-30 .tgl:before::selection,
.wrap-check-30 .tgl *::selection,
.wrap-check-30 .tgl *:after::selection,
.wrap-check-30 .tgl *:before::selection,
.wrap-check-30 .tgl + .tgl-btn::selection {
background: none;
}
.wrap-check-30 .tgl + .tgl-btn {
outline: 0;
display: block;
width: 4em;
height: 2em;
position: relative;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.wrap-check-30 .tgl + .tgl-btn:after,
.wrap-check-30 .tgl + .tgl-btn:before {
position: relative;
display: block;
content: "";
width: 50%;
height: 100%;
}
.wrap-check-30 .tgl + .tgl-btn:after {
left: 0;
}
.wrap-check-30 .tgl + .tgl-btn:before {
display: none;
}
.wrap-check-30 .tgl:checked + .tgl-btn:after {
left: 50%;
}
.wrap-check-30 .tgl-skewed + .tgl-btn {
overflow: hidden;
transform: skew(-10deg);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
transition: all 0.2s ease;
font-family: sans-serif;
background:
#888;
}
.wrap-check-30 .tgl-skewed + .tgl-btn:after,
.wrap-check-30 .tgl-skewed + .tgl-btn:before {
transform: skew(10deg);
display: inline-block;
transition: all 0.2s ease;
width: 100%;
text-align: center;
position: absolute;
line-height: 2em;
font-weight: bold;
color:
#fff;
text-shadow: 0 1px 0
rgba(0, 0, 0, 0.4);
}
.wrap-check-30 .tgl-skewed + .tgl-btn:after {
left: 100%;
content: attr(data-tg-on);
}
.wrap-check-30 .tgl-skewed + .tgl-btn:before {
left: 0;
content: attr(data-tg-off);
}
.wrap-check-30 .tgl-skewed + .tgl-btn:active {
background:
#888;
}
.wrap-check-30 .tgl-skewed + .tgl-btn:active:before {
left: -10%;
}
.wrap-check-30 .tgl-skewed:checked + .tgl-btn {
background:
#86d993;
}
.wrap-check-30 .tgl-skewed:checked + .tgl-btn:before {
left: -100%;
}
.wrap-check-30 .tgl-skewed:checked + .tgl-btn:after {
left: 0;
}
.wrap-check-30 .tgl-skewed:checked + .tgl-btn:active:after {
left: 10%;
}