Created
March 21, 2017 09:16
-
-
Save bUxEE/967172b59f176978c0c6509f0851e2d0 to your computer and use it in GitHub Desktop.
Gravity forms fontawesome checkbox css
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
/* checkboxes */ | |
.checkboxer>.gfield_label { | |
display: inline-block !important; | |
padding-left: 15px !important; | |
width: calc(100% - 30px) !important; | |
float: right; | |
} | |
.gfield_checkbox, .gfield_checkbox li, .ginput_container_checkbox { | |
width: auto !important; | |
display: inline-block; | |
margin: 0 !important; | |
} | |
.gfield_checkbox li label { | |
width: 30px !important; | |
height: 30px !important; | |
} | |
.gform_wrapper .gfield_checkbox li label { | |
max-width: 100% !important; | |
} | |
.gfield_checkbox li label:before { | |
content: ""; | |
font-family: Fontawesome; | |
display: block; | |
position: absolute; | |
z-index: 1; | |
-webkit-transition: all 100ms; | |
transition: all 100ms; | |
width: 30px !important; | |
height: 30px !important; | |
color: #5cb85c; | |
border: 1px solid #333; | |
border-radius: 3px; | |
-moz-border-radius: 3px; | |
-webkit-border-radius: 3px; | |
font-size: 24px; | |
line-height: 30px; | |
text-align: center; | |
} | |
.gform_wrapper input[type="checkbox"] { | |
opacity: 0; | |
outline: none; | |
z-index: 100; | |
width: 30px !important; | |
height: 30px !important; | |
top: 0; | |
left: 0; | |
margin: 0 !important; | |
padding: 0 !important; | |
position: absolute; | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
appearance: none; | |
cursor: pointer; | |
border: 1px solid #333; | |
} | |
.gform_wrapper input[type="checkbox"] + label { | |
cursor: pointer; | |
color: white; | |
background: white; | |
} | |
.gform_wrapper input[type="checkbox"]:checked + label:before { | |
content: "\f00c"; | |
font-family: Fontawesome; | |
display: block; | |
position: absolute; | |
z-index: 1; | |
-webkit-transition: all 100ms; | |
transition: all 100ms; | |
width: 30px !important; | |
height: 30px !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment