Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 22, 2014 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devdays/51f7e0909b155518296c to your computer and use it in GitHub Desktop.
Save devdays/51f7e0909b155518296c to your computer and use it in GitHub Desktop.
Single Page App - checkbox
input[type="radio"],
input[type="checkbox"] {
display:none;
}
input[type="radio"] + span:before,
input[type="checkbox"] + span:before {
font-family: 'FontAwesome';
padding-right: 3px;
font-size: 20px;
}
input[type="radio"] + span:before {
content: "\f10c"; /* circle-blank */
}
input[type="radio"]:checked + span:before {
content: "\f111"; /* circle */
}
input[type="checkbox"] + span:before {
content: "\f096"; /* check-empty */
}
input[type="checkbox"]:checked + span:before {
content: "\f046"; /* check */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment