Created
March 16, 2018 12:40
-
-
Save frkosk/1e3fffb267a773314ac568ac9be0da7b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <input class="switch" type="checkbox"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| input.switch { | |
| -moz-appearance: none; | |
| -webkit-appearance: none; | |
| -o-appearance: none; | |
| position: relative; | |
| height: 20px; | |
| width: 40px; | |
| border-radius: 10px; | |
| box-shadow: inset -20px 0px 0px 1px rgba(192, 192, 192, 0.5); | |
| background-color: white; | |
| border: 1px solid rgba(192, 192, 192, 1); | |
| outline: none; | |
| -webkit-transition: 0.2s; | |
| transition: 0.2s; | |
| } | |
| input.switch:checked { | |
| box-shadow: inset 20px 0px 0px 1px rgba(33, 150, 243, 0.5); | |
| border: 1px solid rgba(33, 150, 243, 1); | |
| } | |
| input.switch::-ms-check { | |
| -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; /* IE 8 */ | |
| filter: alpha(opacity=0); /* IE 5-7 */ | |
| opacity: 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment