$grey: rgb(211, 211, 211);
$white: #fff;

.switch-checkbox {
  height: 0;
  width: 0;
  visibility: hidden;
}

.switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 50px;
  height: 25px;
  background: $grey;
  border-radius: 50px;
  position: relative;
  transition: background-color .2s;

  .switch-button {
    content: '';
    position: absolute;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 22px;
    transition: 0.2s;
    background: $white;
    box-shadow: 0
  }
}

.switch-checkbox:checked+.switch-label {
  .switch-button {
    left: calc(100% - 2px);
    transform: translateX(-100%);
  }
}

.switch-label :active {
  .switch-button {
    width: 60 px;
  }
}
