// 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);

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

    .flex#{$infix}-wrap         { -webkit-flex-wrap: wrap !important; -ms-flex-wrap: wrap !important; flex-wrap: wrap !important; }
    .flex#{$infix}-nowrap       { -webkit-flex-wrap: nowrap !important; -ms-flex-wrap: none !important; flex-wrap: nowrap !important; }
    .flex#{$infix}-wrap-reverse { -webkit-flex-wrap: wrap-reverse !important; -ms-flex-wrap: wrap-reverse !important; flex-wrap: wrap-reverse !important; }
    .flex#{$infix}-fill         { -webkit-flex: 1 1 auto !important; -ms-flex: 1 1 auto !important; flex: 1 1 auto !important; }
    .flex#{$infix}-grow-0       { -webkit-flex-grow: 0 !important; -ms-flex-positive: 0 !important; flex-grow: 0 !important; }
    .flex#{$infix}-grow-1       { -webkit-flex-grow: 1 !important; -ms-flex-positive: 1 !important; flex-grow: 1 !important; }
    .flex#{$infix}-shrink-0     { -ms-flex-negative: 0 !important; flex-shrink: 0 !important; }
    .flex#{$infix}-shrink-1     { -ms-flex-negative: 1 !important; flex-shrink: 1 !important; }

    .justify-content#{$infix}-start   { -webkit-justify-content: flex-start !important; -ms-flex-pack: start !important; justify-content: flex-start !important; }
    .justify-content#{$infix}-end     { -webkit-justify-content: flex-end !important; -ms-flex-pack: end !important; justify-content: flex-end !important; }
    .justify-content#{$infix}-center  { -webkit-justify-content: center !important; -ms-flex-pack: center !important; justify-content: center !important; }
    .justify-content#{$infix}-between { -webkit-justify-content: space-between !important; -ms-flex-pack: justify !important; justify-content: space-between !important; }
    .justify-content#{$infix}-around  { -webkit-justify-content: space-around !important; -ms-flex-pack: distribute !important; justify-content: space-around !important; }

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

    .align-content#{$infix}-start   { -ms-flex-line-pack: start !important; align-content: flex-start !important; }
    .align-content#{$infix}-end     { -ms-flex-line-pack: end !important; align-content: flex-end !important; }
    .align-content#{$infix}-center  { -ms-flex-line-pack: center !important; align-content: center !important; }
    .align-content#{$infix}-between { -ms-flex-line-pack: justify !important; align-content: space-between !important; }
    .align-content#{$infix}-around  { -ms-flex-line-pack: distribute !important; align-content: space-around !important; }
    .align-content#{$infix}-stretch { -ms-flex-line-pack: stretch !important; align-content: stretch !important; }

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