@import 'vars';

// var
// =================================================================
$switchery-bg: $color-white;
$switchery-border-color: $border-color-base; // #dfdfdf

// switchery
// =================================================================

.switchery {
  position: relative;
  box-sizing: content-box;
  display: inline-block;
  width: 45px;
  height: 24px;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: $switchery-bg;
  background-clip: content-box;
  border: 1px solid $switchery-border-color;
  border-radius: 20px;
}

.switchery > small {
  position: absolute;
  top: 0;
  width: 24px;
  height: 24px;
  background: $switchery-bg;
  border-radius: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

.switchery-small {
  width: 33px;
  height: 21px;
  border-radius: 20px;
}

.switchery-small > small {
  width: 21px;
  height: 21px;
}

.switchery-large {
  width: 66px;
  height: 36px;
  border-radius: 36px;
}

.switchery-large > small {
  width: 36px;
  height: 36px;
}
