/*这里height赋值lineHeight*/
.switch-on,
.switch-off {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 26px;
  border-radius: 13px;
  line-height: 26px;
  -webkit-tap-highlight-color: transparent;
}
.switch-on {
  border: 1px solid #fff;
  box-shadow: #fff 0 0 0 13px inset;
  transition: border 0.4s, box-shadow 0.2s, background-color 1.2s;
  background-color: #fff;
  cursor: pointer;
}
.hs-slider {
  position: absolute;
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  left: 0;
  top: 0;
}
.switch-on .hs-slider {
  left: 16px;
  transition: background-color 0.4s, left 0.2s;
}
.switch-off {
  border: 1px solid #dfdfdf;
  transition: border 0.4s, box-shadow 0.4s;
  box-shadow: #dfdfdf 0 0 0 0 inset;
  background-color: #fff;
  cursor: pointer;
}
.switch-off .hs-slider {
  left: 0;
  transition: background-color 0.4s, left 0.2s;
}
.switch-on.switch-disabled {
  opacity: .5;
  cursor: auto;
}
.switch-off.switch-disabled {
  background-color: #f0f0f0!important;
  cursor: auto;
}
