// stylelint-disable declaration-no-important

// Flex variation
//
// Custom styles for additional flex alignment options.

@each $breakpoint in map-keys($grid-breakpoints) {
  @include media-breakpoint-up($breakpoint) {
    $infix: breakpoint-infix($breakpoint, $grid-breakpoints);

    .#{$project-prefix}flex#{$infix}-row            { flex-direction: row !important; }
    .#{$project-prefix}flex#{$infix}-column         { flex-direction: column !important; }
    .#{$project-prefix}flex#{$infix}-row-reverse    { flex-direction: row-reverse !important; }
    .#{$project-prefix}flex#{$infix}-column-reverse { flex-direction: column-reverse !important; }

    .#{$project-prefix}flex#{$infix}-wrap         { flex-wrap: wrap !important; }
    .#{$project-prefix}flex#{$infix}-nowrap       { flex-wrap: nowrap !important; }
    .#{$project-prefix}flex#{$infix}-wrap-reverse { flex-wrap: wrap-reverse !important; }
    .#{$project-prefix}flex#{$infix}-fill         { flex: 1 1 auto !important; }
    .#{$project-prefix}flex#{$infix}-grow-0       { flex-grow: 0 !important; }
    .#{$project-prefix}flex#{$infix}-grow-1       { flex-grow: 1 !important; }
    .#{$project-prefix}flex#{$infix}-shrink-0     { flex-shrink: 0 !important; }
    .#{$project-prefix}flex#{$infix}-shrink-1     { flex-shrink: 1 !important; }

    .#{$project-prefix}justify-content#{$infix}-start   { justify-content: flex-start !important; }
    .#{$project-prefix}justify-content#{$infix}-end     { justify-content: flex-end !important; }
    .#{$project-prefix}justify-content#{$infix}-center  { justify-content: center !important; }
    .#{$project-prefix}justify-content#{$infix}-between { justify-content: space-between !important; }
    .#{$project-prefix}justify-content#{$infix}-around  { justify-content: space-around !important; }

    .#{$project-prefix}align-items#{$infix}-start    { align-items: flex-start !important; }
    .#{$project-prefix}align-items#{$infix}-end      { align-items: flex-end !important; }
    .#{$project-prefix}align-items#{$infix}-center   { align-items: center !important; }
    .#{$project-prefix}align-items#{$infix}-baseline { align-items: baseline !important; }
    .#{$project-prefix}align-items#{$infix}-stretch  { align-items: stretch !important; }

    .#{$project-prefix}align-content#{$infix}-start   { align-content: flex-start !important; }
    .#{$project-prefix}align-content#{$infix}-end     { align-content: flex-end !important; }
    .#{$project-prefix}align-content#{$infix}-center  { align-content: center !important; }
    .#{$project-prefix}align-content#{$infix}-between { align-content: space-between !important; }
    .#{$project-prefix}align-content#{$infix}-around  { align-content: space-around !important; }
    .#{$project-prefix}align-content#{$infix}-stretch { align-content: stretch !important; }

    .#{$project-prefix}align-self#{$infix}-auto     { align-self: auto !important; }
    .#{$project-prefix}align-self#{$infix}-start    { align-self: flex-start !important; }
    .#{$project-prefix}align-self#{$infix}-end      { align-self: flex-end !important; }
    .#{$project-prefix}align-self#{$infix}-center   { align-self: center !important; }
    .#{$project-prefix}align-self#{$infix}-baseline { align-self: baseline !important; }
    .#{$project-prefix}align-self#{$infix}-stretch  { align-self: stretch !important; }
  }
}