/*------------------------------------*\
    # FLOAT
\*------------------------------------*/

$gs-display-switch-breakpoint-names: $gel-breakpoint-names !default;

@mixin floats($suffix: null) {
    $breakpoint-suffix: '';

    @if $suffix != null {
        $breakpoint-suffix: \@#{$suffix};
    }

    .gs-u-fl#{$breakpoint-suffix} {
        float: left !important;
    }

    .gs-u-fr#{$breakpoint-suffix} {
        float: right !important;
    }

    .gs-u-fn#{$breakpoint-suffix} {
        float: none !important;
    }
}

// Output the unsuffixed version
@include floats();

@if $enhanced {
    @each $breakpoint in $gs-display-switch-breakpoint-names {
        $breakpoint-name: nth($breakpoint, 1);

        @include mq($from: '#{$gel-grid-breakpoint-namespace}#{$breakpoint}') {
            @include floats($breakpoint-name);
        }
    }
}
