Skip to content

Instantly share code, notes, and snippets.

@betoarpi
Last active September 22, 2017 23:59
Show Gist options
  • Save betoarpi/863a0250df4ad29d5256979aea5abd65 to your computer and use it in GitHub Desktop.
Save betoarpi/863a0250df4ad29d5256979aea5abd65 to your computer and use it in GitHub Desktop.
Recomended styles for improving checkboxes
.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