|
1 | | -.flex { |
2 | | - display: flex; |
3 | | -} |
| 1 | +.flex { display: flex !important; } |
4 | 2 |
|
5 | 3 | @include generate-breakpoint-prefixes { |
6 | 4 |
|
7 | | - // flex ordering |
8 | | - &flex-order-1 { |
9 | | - order: 1; |
10 | | - } |
11 | | - |
12 | | - &flex-order-2 { |
13 | | - order: 2; |
14 | | - } |
15 | | - |
16 | | - &flex-order-3 { |
17 | | - order: 3; |
18 | | - } |
| 5 | + // flex order |
| 6 | + &flex-order-1 { order: 1 !important; } |
| 7 | + &flex-order-2 { order: 2 !important; } |
| 8 | + &flex-order-3 { order: 3 !important; } |
19 | 9 |
|
20 | 10 | // flex grow properties |
21 | | - &flex-grow-1 { |
22 | | - flex-grow: 1; |
23 | | - } |
24 | | - |
25 | | - &flex-grow-2 { |
26 | | - flex-grow: 2; |
27 | | - } |
28 | | - |
29 | | - &flex-grow-3 { |
30 | | - flex-grow: 3; |
31 | | - } |
| 11 | + &flex-grow-1 { flex-grow: 1 !important; } |
| 12 | + &flex-grow-2 { flex-grow: 2 !important; } |
| 13 | + &flex-grow-3 { flex-grow: 3 !important; } |
32 | 14 |
|
33 | 15 | // flex shrink properties |
34 | | - &flex-shrink-0 { |
35 | | - flex-shrink: 0; |
36 | | - } |
| 16 | + &flex-shrink-0 { flex-shrink: 0 !important; } |
| 17 | + &flex-shrink-1 { flex-shrink: 1 !important; } |
37 | 18 |
|
38 | | - &flex-shrink-1 { |
39 | | - flex-shrink: 1; |
40 | | - } |
41 | | - |
42 | | - // directional properties |
43 | | - &flex-row { |
44 | | - flex-direction: row; |
45 | | - } |
46 | | - |
47 | | - &flex-row-reverse { |
48 | | - flex-direction: row-reverse; |
49 | | - } |
50 | | - |
51 | | - &flex-column { |
52 | | - flex-direction: column; |
53 | | - } |
54 | | - |
55 | | - &flex-column-reverse { |
56 | | - flex-direction: column-reverse; |
57 | | - } |
| 19 | + // directional properties |
| 20 | + &flex-row { flex-direction: row !important; } |
| 21 | + &flex-row-reverse { flex-direction: row-reverse !important; } |
| 22 | + &flex-column { flex-direction: column !important; } |
| 23 | + &flex-column-reverse { flex-direction: column-reverse !important; } |
58 | 24 |
|
59 | 25 | // flex wrap and nowrap |
60 | | - &flex-wrap { |
61 | | - flex-wrap: wrap !important; |
62 | | - } |
63 | | - |
64 | | - &flex-nowrap { |
65 | | - flex-wrap: nowrap !important; |
66 | | - } |
67 | | - |
68 | | - // Justify Content - Parent |
69 | | - &flex-justify-start { |
70 | | - justify-content: flex-start; |
71 | | - } |
| 26 | + &flex-wrap { flex-wrap: wrap !important; } |
| 27 | + &flex-nowrap { flex-wrap: nowrap !important; } |
72 | 28 |
|
73 | | - &flex-justify-end { |
74 | | - justify-content: flex-end; |
75 | | - } |
| 29 | + // justify content |
| 30 | + &flex-justify-start { justify-content: flex-start !important; } |
| 31 | + &flex-justify-end { justify-content: flex-end !important; } |
| 32 | + &flex-justify-center { justify-content: center !important; } |
76 | 33 |
|
77 | | - &flex-justify-center { |
78 | | - justify-content: center; |
79 | | - } |
80 | | - |
81 | | - &flex-justify-between { |
82 | | - justify-content: space-between; |
83 | | - } |
84 | | - |
85 | | - &flex-justify-around { |
86 | | - justify-content: space-around; |
87 | | - } |
88 | | - |
89 | | - |
90 | | - // Align Items - Parent |
91 | | - |
92 | | - &flex-align-start { |
93 | | - align-items: flex-start; |
94 | | - } |
95 | | - |
96 | | - &flex-align-end { |
97 | | - align-items: flex-end; |
98 | | - } |
99 | | - |
100 | | - &flex-align-center { |
101 | | - align-items: center; |
102 | | - } |
103 | | - |
104 | | - &flex-align-baseline { |
105 | | - align-items: baseline; |
106 | | - } |
| 34 | + // align items |
107 | 35 |
|
| 36 | + &flex-align-start { align-items: flex-start !important; } |
| 37 | + &flex-align-end { align-items: flex-end !important; } |
| 38 | + &flex-align-center { align-items: center !important; } |
| 39 | + &flex-align-baseline { align-items: baseline !important; } |
108 | 40 |
|
109 | 41 | } |
110 | | - |
111 | | - |
0 commit comments