I'm currently working on customizing CSS using JSS as my styling solution, which is proving to be a bit complex while following the w3schools tutorial.
https://www.w3schools.com/howto/howto_css_custom_checkbox.asp
HTML:
<label class="container">One
<input type="checkbox" checked="checked">
<span class="checkmark"></span>
</label>
CSS:
/* Customizes the label (the container) */
.container {
display: block;
position: relative;
padding-left: 35px;
margin-bottom: 12px;
cursor: pointer;
font-size: 22px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Hides default browser checkbox */
.container input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
/* Creates custom checkbox */
.checkmark {
position: absolute;
top: 0;
left: 0;
height: 25px;
width: 25px;
background-color: #eee;
}
/* Adds grey background color on mouse-over */
.container:hover input ~ .checkmark {
background-color: #ccc;
}
/* Provides blue background when checkbox is checked */
.container input:checked ~ .checkmark {
background-color: #2196F3;
}
/* Displays checkmark/indicator when checked */
.container input:checked ~ .checkmark:after {
display: block;
}