A Pen by Tom Bremer on CodePen.
Created
November 4, 2013 22:47
-
-
Save tbremer/7310574 to your computer and use it in GitHub Desktop.
A Pen by Tom Bremer.
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
<div class="wrapper"> | |
<input id="1" type="checkbox" class="fakie_box"> | |
<label for="1" class="fakie_icon">You can write in the labels too</label> | |
</div> | |
<div class="wrapper"> | |
<input id="2" type="checkbox" class="fakie_box" checked> | |
<label for="2" class="fakie_icon"></label> | |
</div> |
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
@import url(http://weloveiconfonts.com/api/?family=fontawesome); | |
@import url(http://fonts.googleapis.com/css?family=Montserrat); | |
*{font-family: 'Montserrat';} | |
*:before{ | |
font-family: "FontAwesome"; | |
} | |
.wrapper{ | |
position: relative; | |
height: 20px; | |
margin: 10px; | |
} | |
.fakie_box{ display: none; } | |
.fakie_icon:before{ | |
display: inline-block; | |
content: "\f00c"; | |
background-color: #e5e5e5; | |
color: #d8d8d8; | |
text-shadow: 1px 1px 0px #fff, | |
-1px -1px 0px #a3a3a3; | |
width: 16px; | |
height: 16px; | |
padding: 2px; | |
margin: -4px 4px 0px 0px; | |
border: 1px solid #000; | |
border-radius: 3px; | |
vertical-align: middle; | |
} | |
input[type=checkbox]:checked + .fakie_icon:before{ | |
content: "\f00c"; | |
color: #2baad5; | |
text-shadow: 1px 1px 0px #fff, | |
-1px -1px 0px #a3a3a3; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment