@mixin suiLoader ($size: 1em, $color: inherit) {
  &::after {
    content: "";
    animation: sui-a-loader--spin 500ms infinite linear;
    border: rem(2) solid;
    border-right-color: transparent;
    border-top-color: transparent;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: .5em;
    margin-left: -.5em;
    margin-top: -.5em;
    z-index: 1;
    width: $size;
    height: $size;
    font-size: $size;
    color: $color;

    @content;
  }
}
