/* === Toggle === */
.toggle {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  box-sizing: border-box;
  align-self: center;
  user-select: none;

  input[type="checkbox"] {
    display: none;
  }
  input[disabled] ~ .toggle-icon {
    pointer-events: none;
  }
}
.toggle-icon {
  z-index: 0;
  margin: 0;
  padding: 0;
  appearance: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: 300ms;
  box-sizing: border-box;
  display: block;
  cursor: pointer;
  &:before, &:after {
    content: '';
  }
  &:after {
    background: #fff;
    position: absolute;
    z-index: 2;
    transform: translateX(0px);
    transition-duration: 300ms;
  }
}
& when (@includeIosTheme) {
  @import url('./toggle-ios.less');
}
& when (@includeMdTheme) {
  @import url('./toggle-md.less');
}
