0
|
1 // Flex variation
|
|
2 //
|
|
3 // Custom styles for additional flex alignment options.
|
|
4
|
|
5 @each $breakpoint in map-keys($grid-breakpoints) {
|
|
6 @include media-breakpoint-up($breakpoint) {
|
|
7 $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
8
|
|
9 .flex#{$infix}-row { flex-direction: row !important; }
|
|
10 .flex#{$infix}-column { flex-direction: column !important; }
|
|
11 .flex#{$infix}-row-reverse { flex-direction: row-reverse !important; }
|
|
12 .flex#{$infix}-column-reverse { flex-direction: column-reverse !important; }
|
|
13
|
|
14 .flex#{$infix}-wrap { flex-wrap: wrap !important; }
|
|
15 .flex#{$infix}-nowrap { flex-wrap: nowrap !important; }
|
|
16 .flex#{$infix}-wrap-reverse { flex-wrap: wrap-reverse !important; }
|
|
17
|
|
18 .justify-content#{$infix}-start { justify-content: flex-start !important; }
|
|
19 .justify-content#{$infix}-end { justify-content: flex-end !important; }
|
|
20 .justify-content#{$infix}-center { justify-content: center !important; }
|
|
21 .justify-content#{$infix}-between { justify-content: space-between !important; }
|
|
22 .justify-content#{$infix}-around { justify-content: space-around !important; }
|
|
23
|
|
24 .align-items#{$infix}-start { align-items: flex-start !important; }
|
|
25 .align-items#{$infix}-end { align-items: flex-end !important; }
|
|
26 .align-items#{$infix}-center { align-items: center !important; }
|
|
27 .align-items#{$infix}-baseline { align-items: baseline !important; }
|
|
28 .align-items#{$infix}-stretch { align-items: stretch !important; }
|
|
29
|
|
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
|
|
37 .align-self#{$infix}-auto { align-self: auto !important; }
|
|
38 .align-self#{$infix}-start { align-self: flex-start !important; }
|
|
39 .align-self#{$infix}-end { align-self: flex-end !important; }
|
|
40 .align-self#{$infix}-center { align-self: center !important; }
|
|
41 .align-self#{$infix}-baseline { align-self: baseline !important; }
|
|
42 .align-self#{$infix}-stretch { align-self: stretch !important; }
|
|
43 }
|
|
44 }
|