@import './common/var.css';

$van-checkbox-size: 20px;

.van-checkbox {
  overflow: hidden;
  user-select: none;

  &__icon,
  &__label {
    display: inline-block;
    vertical-align: middle;
    line-height: $van-checkbox-size;
  }

  &__icon {
    font-size: 12px;
    color: transparent;
    text-align: center;
    border: 1px solid #aaa;
    width: $van-checkbox-size;
    height: $van-checkbox-size;
    box-sizing: border-box;
  }

  &__label {
    margin-left: 10px;
  }

  &--round {
    border-radius: 100%;
  }

  &--checked {
    color: #fff;
    border-color: $green;
    background-color: $green;
  }

  &--disabled {
    color: $background-color;
    border-color: $gray-light;
    background-color: currentColor;
  }

  &--disabled&--checked {
    border-color: $gray-light;
    background-color: $gray-light;
  }
}
