.toggleWrapper{
    height: 30px;

    input{
      display: none;
    }
}

.toggle {
  max-height: 0;
  max-width: 0;
  opacity: 0;
  display: inline-block;

  &:focus + label:after{
    box-shadow: inset 0 0 0px 1px $switch !important;
  }
}

.toggle + label {
  display: inline-block;
  position: relative;
  box-shadow: inset 0 0 0px 1px $switch;
  text-indent: -5000px;
  height: 30px;
  width: 50px;
  border-radius: 15px;
  background: $switchBg;
  vertical-align: middle;
}

.toggle + label:before {
  content: "";
  position: absolute;
  display: block;
  height: 30px;
  width: 30px;
  top: 0;
  left: 0;
  border-radius: 15px;
  -moz-transition: .25s ease-in-out;
  -webkit-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

.toggle + label:after {
  content: "";
  position: absolute;
  display: block;
  height: 26px;
  width: 26px;
  top: 2px;
  left: 2px;
  border-radius: 15px;
  background: $switch;
  -moz-transition: .25s ease-in-out;
  -webkit-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

.toggle:checked + label:before {
  width: 50px;
  background: $switch--active;
}

.toggle:checked + label:after {
  left: 22px;
}