@import "~element-ui/packages/theme-chalk/src/mixins/mixins";
@import "~element-ui/packages/theme-chalk/src/mixins/utils";
@import "~element-ui/packages/theme-chalk/src/common/var";

@include b(form-item) {
  @include m(compact) {
    @include b(switch) {
      margin-left: $margin;
      .el-switch__core {
        width: $--size-base;
        font-size: $--size-base;
        line-height: $line-height - 2;
        height: $line-height - 2;
        border-radius: 4px;

        &:after {
          font-size: $--size-base;
          line-height: $line-height - 4;
          height: $line-height - 4;
          width: $line-height - 4;
          border-radius: 4px;
          top: 0;
        }
      }
    }
  }
}
