.CheckBox {
  width: 1.2em;
  height: 1.2em;
  padding: 0.4em;
  display: block;
  position: relative;
}

.CheckBox > input[type="checkbox"] {
  vertical-align: text-top;
  position: absolute;
  visibility: hidden;
}

.CheckBox > input[type="checkbox"] + span {
  position: absolute;
  display: inline-block;
  vertical-align: middle;
  width: 1.2em;
  height: 1.2em;
  transition: 0.1s ease;
}

.CheckBox > input[type="checkbox"] + span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  background-color: #FAFAFA;
  border: 1px solid #A0A0A0;
  border-radius: 3px;
  box-sizing: border-box;
}

.CheckBox > input[type="checkbox"]:checked + span::before {
}

.CheckBox > input[type="checkbox"] + span::after {
  transition: 0.5s ease;
}

.CheckBox > input[type="checkbox"]:disabled {
  opacity: 0.5;
}

.CheckBox > input[type="checkbox"]:disabled + span::before {
  border: 1px solid #E0E0E0;
}

.CheckBox > input[type="checkbox"]:checked + span::after {
  content: '';
  position: absolute;
  height: 0.6em;
  width: 0.3em;
  left: 0.4em;
  top: 0.15em;
  color: #A0A0A0;
  border: solid;
  border-width: 0 0.15em 0.15em 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.CheckBox > input[type="checkbox"]:indeterminate + span::after {
  content: '';
  position: absolute;
  height: auto;
  width: auto;
  left: 4px;
  right: 4px;
  top: 4px;
  bottom: 4px;
  border: none;
  color: white;
  background-color: #A0A0A0;
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
}


