@import "./card-subtitle";
@import "./card-subtitle.ios.vars";

// iOS Card Subtitle
// --------------------------------------------------

.card-subtitle-ios {
  @include padding($card-ios-subtitle-padding-top, $card-ios-subtitle-padding-end, $card-ios-subtitle-padding-bottom, $card-ios-subtitle-padding-start);

  font-size: $card-ios-subtitle-font-size;
  font-weight: $card-ios-subtitle-font-weight;
  letter-spacing: $card-ios-subtitle-letter-spacing;
  text-transform: $card-ios-subtitle-text-transform;
  color: $card-ios-subtitle-color;
}


// Generate iOS Card subtitle Colors
// --------------------------------------------------

@each $color-name, $color-value in $colors-ios {
  $color-base: ion-color($colors-ios, $color-name, base, ios);
  $color-contrast: ion-color($colors-ios, $color-name, contrast, ios);

  .card-ios-#{$color-name} {

    .card-subtitle-ios {
      color: $color-contrast;
    }

    @each $color-name, $color-value in $colors-ios {
      $color-base: ion-color($colors-ios, $color-name, base, ios);

      .card-subtitle-ios-#{$color-name} {
        color: $color-base;
      }
    }
  }

  .card-subtitle-ios-#{$color-name} {
    color: $color-base;
  }
}
