.previewer-loading {

  $size: 1em;

  height: $size;
  width: $size;

  .plain-loading-tag {
    $centerRadius: (0.5*$size)/1.2;
    $itemWidth: (0.35*$size)/1.2;
    $itemHeight: (0.1*$size)/1.2;
    $width: $centerRadius + $itemWidth * 2;
    $height: $width;

    width: $width;
    height: $height;
    position: relative;
    display: block;

    .plain-loading-inner {
      background-color: currentColor;
      display: inline-block;
      width: $itemWidth;
      height: $itemHeight;
      margin-top: $itemHeight / 2 * -1;
      margin-left: $centerRadius / 2;
      top: 50%;
      left: 50%;
      position: absolute;
      transform-origin: ($centerRadius / 2 * -1) ($itemHeight / 2);
      @for $i from 1 through 12 {
        &:nth-child(#{$i}) {
          transform: rotate(($i - 1) * 30deg);
          animation: plain-loading-tag 1s linear infinite #{-1 + $i / 12}s;
        }
      }
      @keyframes plain-loading-tag {
        0% {
          opacity: 1;
        }
        @for $i from 1 through 11 {
          #{$i / 12 * 100}% {
            opacity: 1 - $i / 12;
          }
        }
        100% {
          opacity: 1;
        }
      }
    }
  }
}
