Created
December 2, 2013 11:07
-
-
Save aNd1coder/7748029 to your computer and use it in GitHub Desktop.
radio custom style for webkit
This file contains 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[type='radio'] { | |
-webkit-appearance: none; | |
-webkit-user-select: none; | |
border-radius: 100%; | |
border: 1px solid #BABABA; | |
display: inline-block; | |
height: 16px; | |
position: relative; | |
top: 3px; | |
width: 16px; | |
cursor: pointer; | |
&:active { border: 1px solid #5c5c5c; } | |
&:checked::before { | |
background: #666; | |
border-radius: 16px; | |
content: '\20'; | |
display: inline-block; | |
font-size: 13px; | |
font-weight: bold; | |
height: 8px; | |
left: 0; | |
top: 0; | |
margin: 3px 0 0 3px; | |
position: absolute; | |
vertical-align: top; | |
width: 8px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment