Created
February 2, 2017 18:20
-
-
Save abbotto/7e064e70e023c81f56329852857b5a25 to your computer and use it in GitHub Desktop.
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
// 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