.onoffswitch2 {
position: relative; width: 90px;
-webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoffswitch2-checkbox {
display: none;
}
.onoffswitch2-label {
display: block; overflow: hidden; cursor: pointer;
border: 2px solid #999999; border-radius: 5px;
}
.onoffswitch2-inner {
display: block; width: 200%; margin-left: -100%;
-moz-transition: margin 0.3s ease-in 0s; -webkit-transition: margin 0.3s ease-in 0s;
-o-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s;
}
.onoffswitch2-inner:before, .onoffswitch2-inner:after {
display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
font-size: 25px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
.onoffswitch2-inner:before {
content: "ON";
padding-left: 10px;
background-color: #02ff95; color: #FFFFFF;
}
.onoffswitch2-inner:after {
content: "OFF";
padding-right: 10px;
background-color: #d62222; color: black;
text-align: right;