Skip to content

Instantly share code, notes, and snippets.

@abbotto
Created February 2, 2017 18:20
Show Gist options
  • Save abbotto/7e064e70e023c81f56329852857b5a25 to your computer and use it in GitHub Desktop.
Save abbotto/7e064e70e023c81f56329852857b5a25 to your computer and use it in GitHub Desktop.
// Font-Awesome form controls
input[type="checkbox"],
input[type="radio"] {
visibility: hidden;
}
input[type="checkbox"] + label,
label + input[type="checkbox"] {
@extend .icon;
cursor: pointer;
&:before {
content: "\f096";
}
}
input[type="checkbox"]:checked + label,
label + input[type="checkbox"]:checked {
cursor: pointer;
&:before {
content: "\f046";
}
}
input[type="radio"] + label,
label + input[type="radio"] {
cursor: pointer;
@extend .icon;
&:before {
content: "\f10c";
}
}
input[type="radio"]:checked + label,
label + input[type="radio"]:checked {
cursor: pointer;
&:before {
content: "\f192";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment