_flex.scss 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // stylelint-disable declaration-no-important
  2. // Flex variation
  3. //
  4. // Custom styles for additional flex alignment options.
  5. @each $breakpoint in map-keys($grid-breakpoints) {
  6. @include media-breakpoint-up($breakpoint) {
  7. $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
  8. .flex#{$infix}-row { flex-direction: row !important; }
  9. .flex#{$infix}-column { flex-direction: column !important; }
  10. .flex#{$infix}-row-reverse { flex-direction: row-reverse !important; }
  11. .flex#{$infix}-column-reverse { flex-direction: column-reverse !important; }
  12. .flex#{$infix}-wrap { flex-wrap: wrap !important; }
  13. .flex#{$infix}-nowrap { flex-wrap: nowrap !important; }
  14. .flex#{$infix}-wrap-reverse { flex-wrap: wrap-reverse !important; }
  15. .justify-content#{$infix}-start { justify-content: flex-start !important; }
  16. .justify-content#{$infix}-end { justify-content: flex-end !important; }
  17. .justify-content#{$infix}-center { justify-content: center !important; }
  18. .justify-content#{$infix}-between { justify-content: space-between !important; }
  19. .justify-content#{$infix}-around { justify-content: space-around !important; }
  20. .align-items#{$infix}-start { align-items: flex-start !important; }
  21. .align-items#{$infix}-end { align-items: flex-end !important; }
  22. .align-items#{$infix}-center { align-items: center !important; }
  23. .align-items#{$infix}-baseline { align-items: baseline !important; }
  24. .align-items#{$infix}-stretch { align-items: stretch !important; }
  25. .align-content#{$infix}-start { align-content: flex-start !important; }
  26. .align-content#{$infix}-end { align-content: flex-end !important; }
  27. .align-content#{$infix}-center { align-content: center !important; }
  28. .align-content#{$infix}-between { align-content: space-between !important; }
  29. .align-content#{$infix}-around { align-content: space-around !important; }
  30. .align-content#{$infix}-stretch { align-content: stretch !important; }
  31. .align-self#{$infix}-auto { align-self: auto !important; }
  32. .align-self#{$infix}-start { align-self: flex-start !important; }
  33. .align-self#{$infix}-end { align-self: flex-end !important; }
  34. .align-self#{$infix}-center { align-self: center !important; }
  35. .align-self#{$infix}-baseline { align-self: baseline !important; }
  36. .align-self#{$infix}-stretch { align-self: stretch !important; }
  37. }
  38. }