@import '../../src/style/tools.css';

.bx-switch-box {
  display: flex;
  position: relative;
}

.bx-switch {
  position: relative;
  box-sizing: border-box;
  width: 51px;
  height: 31px;
  outline: 0;
  border-radius: 40px;
  background: var(--switch-bg-color);
  appearance: none;
  background-clip: content-box;
  border: 2px solid var(--switch-bg-color);
}

.bx-switch:checked {
  box-sizing: border-box;
  background: var(--switch-check-color);
  border: none;

  & + .bx-switch-circle {
    transform: translateX(21px);
  }
}

/* 圆圈 */
.bx-switch-circle {
  position: absolute;
  top: 1px;
  left: 0;
  width: 27px;
  height: 27px;
  border-radius: 9999px;
  background-color: var(--switch-default--color);
  box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid var(--switch-bg-color);
  transition: transform 0.35s cubic-bezier(0.4, 0.4, 0.25, 1.35);
  background-clip: padding-box;
}
