/**
 * @license
 * Copyright Logo Yazılım. All Rights Reserved.
 *
 * Save to the extent permitted by law, you may not use, copy, modify,
 * distribute or create derivative works of this material or any part
 * of it without the prior written consent of Logo Yazılım.
 * Any reproduction of this material must contain this notice.
 */

#{get("root")} {
  .icon-right {
    @extend %icon, %icon-medium, %icon-medium-right, %icon-right;

    &.outline {
      @extend %icon-right-outline;
    }
  }

  .icon-left {
    @extend %icon, %icon-medium, %icon-medium-left;
  }

  @each $size, $map in get("size") {
    .icon-left.#{$size} {
      @extend %icon-#{$size}, %icon-#{$size}-left;
    }

    .icon-right.#{$size} {
      @extend %icon-#{$size}, %icon-#{$size}-right;
    }
  }

  .icon, [class^='#{get("icon.prefix")}'], [class*=' #{get("icon.prefix")}'] {
    @extend %icon, %icon-medium;

    &.icon-left {
      @extend %icon-medium-left;
    }

    &.icon-right {
      @extend %icon-medium-right;
    }
  }

  @each $size, $map in get("size") {
    .#{$size}[class*='#{get("icon.prefix")}'] {
      @extend %icon-#{$size};

      &.icon-left.#{$size} {
        @extend %icon-#{$size}-left;
      }

      &.icon-right.#{$size} {
        @extend %icon-#{$size}-right;
      }
    }
  }
}
