_flex.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. .flex#{$infix}-fill { flex: 1 1 auto !important; }
  16. .flex#{$infix}-grow-0 { flex-grow: 0 !important; }
  17. .flex#{$infix}-grow-1 { flex-grow: 1 !important; }
  18. .flex#{$infix}-shrink-0 { flex-shrink: 0 !important; }
  19. .flex#{$infix}-shrink-1 { flex-shrink: 1 !important; }
  20. .justify-content#{$infix}-start { justify-content: flex-start !important; }
  21. .justify-content#{$infix}-end { justify-content: flex-end !important; }
  22. .justify-content#{$infix}-center { justify-content: center !important; }
  23. .justify-content#{$infix}-between { justify-content: space-between !important; }
  24. .justify-content#{$infix}-around { justify-content: space-around !important; }
  25. .align-items#{$infix}-start { align-items: flex-start !important; }
  26. .align-items#{$infix}-end { align-items: flex-end !important; }
  27. .align-items#{$infix}-center { align-items: center !important; }
  28. .align-items#{$infix}-baseline { align-items: baseline !important; }
  29. .align-items#{$infix}-stretch { align-items: stretch !important; }
  30. .align-content#{$infix}-start { align-content: flex-start !important; }
  31. .align-content#{$infix}-end { align-content: flex-end !important; }
  32. .align-content#{$infix}-center { align-content: center !important; }
  33. .align-content#{$infix}-between { align-content: space-between !important; }
  34. .align-content#{$infix}-around { align-content: space-around !important; }
  35. .align-content#{$infix}-stretch { align-content: stretch !important; }
  36. .align-self#{$infix}-auto { align-self: auto !important; }
  37. .align-self#{$infix}-start { align-self: flex-start !important; }
  38. .align-self#{$infix}-end { align-self: flex-end !important; }
  39. .align-self#{$infix}-center { align-self: center !important; }
  40. .align-self#{$infix}-baseline { align-self: baseline !important; }
  41. .align-self#{$infix}-stretch { align-self: stretch !important; }
  42. }
  43. }