@import "../style/var";

.fe-switch {
  position: relative;
  display: inline-block;
  box-sizing: content-box;
  width: @switch-default-width;
  height: @switch-default-height;
  background-color: @switch-default-background-color;
  border: 1px solid @switch-primary-border-color;
  border-radius: @switch-default-height;
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
  color: @switch-default-color;
  font-size: @switch-size;
  user-select: none;
  &-on {
    background-color: @nuofe;
    .fe-switch-node {
      transform: translateX(1em);
    }
  }
  &-disabled {
    cursor: not-allowed;
    opacity: @switch-disabled-opacity;
    .fe-switch-node {
      background-color: @background-color-light;
    }
  }
  &-node {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: @switch-default-height;
    height: @switch-default-height;
    background-color: @white;
    border-radius: 100%;
    box-shadow: 0 3px 1px 0 rgba(0, 0, 0, 0.05), 0 2px 2px 0 rgba(0, 0, 0, 0.1),
      0 3px 3px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.3, 1.05, 0.4, 1.05);
  }
}
.checked {
  line-height: 1em;
  display: flex;
  align-items: center;
  margin-left: 7px;
  span {
    font-size: 0.6em;
  }
}
.unChecked {
  line-height: 1em;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  span {
    margin-right: 7px;
    font-size: 0.6em;
  }
}
