Last active
September 22, 2017 23:59
-
-
Save betoarpi/863a0250df4ad29d5256979aea5abd65 to your computer and use it in GitHub Desktop.
Recomended styles for improving checkboxes
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
.checkbox { | |
label { | |
position: relative; | |
&:before { | |
content: 0; | |
display: block; | |
font-family: 'FontAwesome'; | |
font-size: 0; | |
line-height: 0; | |
text-rendering: auto; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
position: absolute; | |
top: 0; | |
left: 0; | |
} | |
} | |
input { | |
//estilos aquí | |
} | |
input:checked + label { | |
&:before { | |
content: "\f14a"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment