@import '../variables/default.scss';
@import '../mixins/index.scss';

$component: '.at-switch';

#{$component} {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  background-color: $color-bg;

  &__container {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    position: relative;
    flex: 2;
    background-color: $color-bg;
  }

  &__switch {
    display: inline-block;
  }

  &__mask {
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: $zindex-form;
  }

  /* modifiers */
  &--disabled {
    #{$component}__switch {
      opacity: $opacity-disabled;
    }

    #{$component}__mask {
      display: block;
    }
  }

  &--without-border {
    &::after {
      border: none;
    }
  }
}

#{$component}-list-item {
  .at-list__item-extra {
    font-size: 0;
  }
}
