@import "../themes/ionic.globals";
@import "../themes/ionic.mixins";

// Float Elements
// --------------------------------------------------
// Creates float attributes based on screen size

@each $breakpoint in map-keys($screen-breakpoints) {
  $infix: breakpoint-infix($breakpoint, $screen-breakpoints);

  @include media-breakpoint-up($breakpoint, $screen-breakpoints) {
    // Provide `[float-{bp}]` attributes for floating the element based
    // on the breakpoint
    [float#{$infix}-left] {
      @include float(left, !important);
    }

    [float#{$infix}-right] {
      @include float(right, !important);
    }

    [float#{$infix}-start] {
      @include float(start, !important);
    }

    [float#{$infix}-end] {
      @include float(end, !important);
    }
  }
}
