A Pen by Joe Ringenberg on CodePen.
Created
June 20, 2014 08:35
-
-
Save anonymous/e7b56267a64ee3e2470b to your computer and use it in GitHub Desktop.
A Pen by Joe Ringenberg.
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="medium" type="radio" name="a"/> | |
<input class="medium" type="radio" name="a"/> | |
<input class="medium" type="radio" name="a"/> | |
<input class="medium" type="radio" name="a"/> | |
<input class="medium" type="radio" name="a"/> |
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
@import "compass/css3"; | |
html, body { height: 100%; } | |
body { | |
color: white; | |
display:flex; | |
justify-content:center; | |
align-items:center; | |
background: white; | |
backface-visibility:hidden; | |
} | |
input[type="radio"] { | |
appearance:none; | |
margin:0 40px; | |
width: 24px; | |
height: 24px; | |
background: #eeeeee; | |
box-shadow: | |
inset 0 0 0 .4em white, | |
0 0 0 .3em; | |
border-radius: 50%; | |
transition: .2s; | |
cursor:pointer; | |
color: #363945; | |
&:hover, | |
&:checked { | |
background: #363945; | |
box-shadow: | |
inset 0 0 0 .6em white, | |
0 0 0 .3em; | |
} | |
&:checked { | |
background: #56be8e; | |
box-shadow: | |
inset 0 0 0 .4em white, | |
0 0 0 .3em #56be8e; | |
} | |
&:focus { outline: 0; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment