I have created a custom checkbox for a poll, I developed on Chrome, but once I was done I was browser testing and it didnt work for firefox at all. I attached a copy of my code in a codepen. Does anyone have another way of building a custom checkbox other than before and after psuedo classes?
[1]: https://codepen.io/Edward-Developer/pen/NvRbzR
HTML
<div class="img-icon-wrapper">
<p>
<span class="wpcf7-form-control-wrap checkbox-972"><span class="wpcf7-form-
control wpcf7-checkbox wpcf7-exclusive-checkbox lori"><span
class="wpcf7-list-item first last"><label><input type="checkbox"
name="checkbox-972" value="Lori St. Louis" /> <span class="wpcf7-list-
item-label">Lori St. Louis</span></label></span></span> </span>
</p>
</div>
CSS
input:before {
position: absolute;
width: 38px;
background: #fff;
height: 38px;
content: "";
border: 5.2px solid blue;
top: 0;
}
input:before {
position: absolute;
width: 38px;
background: #fff;
height: 38px;
content: "";
border: 5.2px solid $lightBlue;
top: 0;
}
input[type="checkbox"]:checked:after {
position: relative;
width: 10px;
height: 10px;
margin-left: -5px;
margin-top: -4px;
content: "✓";
height: 41px;
width: 19px;
-webkit-transform: rotate(7deg) skew(0deg);
left: 8px;
bottom: 38px;
font-size: 65px;
}
input[type="checkbox"]:hover:checked:after {
border-color: $darkBlue;
}
input[type="checkbox"]{
margin-left:0;
}