Checkbox Style

by JQ Purfect

HTML

<div class="thumbCheckbox">
      <input type="checkbox" value="None" id="thumbCheckbox" name="check" />
      <label for="thumbCheckbox"></label>
    </div>

CSS

body {
  background: #000;
}

/* .roundedTwo */
.thumbCheckbox {
  width: 28px;
  height: 28px;
  position: relative;
  margin: 20px auto;
  background: transparent;
  /*background: linear-gradient(top, #fcfff4 0%, #dfe5d7 60%, #b3bead 100%);*/
  /* border-radius: 50px; */
  /*  box-shadow: inset 0px 0px 0px white, 0px 1px 3px rgba(0,0,0,0.5);*/
}
.thumbCheckbox label {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 0px;
  left: 0px;
  cursor: pointer;
  background: -webkit-linear-gradient(top, #222222 0%, #45484d 100%);
  background: linear-gradient(to bottom, #222222 0%, #45484d 100%);
  border-radius: 50px;
  border: 2px solid orange;
  /*box-shadow: inset 0px 1px 1px rgba(0,0,0,0.5), 0px 1px 0px rgba(255,255,255,1);*/
}
.thumbCheckbox label:after {
  content: '';
  width: 12px;
  height: 5px;
  position: absolute;
  top: 10px;
  left: 7px;
  border: 3px solid orange;
  border-top: none;
  border-right: none;
  background: transparent;
  opacity: 0;
  -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
.thumbCheckbox label:hover::after {
  opacity: 0.3;
}
.thumbCheckbox input[type=checkbox] {
  visibility: hidden;
}
.thumbCheckbox input[type=checkbox]:checked + label:after {
  opacity: 1;
}