@import "client/common.scss";@charset "UTF-8";

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {display:none;}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 25px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider .off-label {
  color:white;
  position: absolute;
  right: 4px;
  top: 4px;
  font-weight: bold;
  display:inline;
  -webkit-transition: .4s;
  transition: .4s;
}
.slider .on-label{
  position: absolute;
  left: 3px;
  top: 4px;
  display:none;
  -webkit-transition: .4s;
  transition: .4s;
  color:white;
  font-weight: bold;
}
input:checked + .slider .on-label {
  display:inline;
}
input:checked + .slider .off-label {
  display:none;
}


input:checked + .slider {
  background-color: $ColorScreenPrimary;
}

input:focus + .slider {
  box-shadow: 0 0 1px $ColorScreenPrimary;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
