@nuvoui/core 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -73
- package/dist/nuvoui.css +3924 -545
- package/dist/nuvoui.css.map +1 -1
- package/dist/nuvoui.min.css +1 -1
- package/dist/nuvoui.min.css.map +1 -1
- package/package.json +1 -1
- package/src/styles/abstracts/_config.scss +18 -36
- package/src/styles/layouts/_container.scss +6 -3
- package/src/styles/layouts/_flex.scss +169 -153
- package/src/styles/layouts/_grid.scss +69 -67
- package/src/styles/mixins-map.scss +1 -913
- package/src/styles/themes/_theme.scss +96 -94
- package/src/styles/utilities/_alignment.scss +12 -10
- package/src/styles/utilities/_animations.scss +58 -1
- package/src/styles/utilities/_borders.scss +219 -193
- package/src/styles/utilities/_colors.scss +3 -3
- package/src/styles/utilities/_container-queries.scss +13 -11
- package/src/styles/utilities/_display.scss +57 -55
- package/src/styles/utilities/_media-queries.scss +22 -3
- package/src/styles/utilities/_opacity.scss +49 -43
- package/src/styles/utilities/_position.scss +76 -30
- package/src/styles/utilities/_shadows.scss +105 -99
- package/src/styles/utilities/_sizing.scss +53 -51
- package/src/styles/utilities/_spacing.scss +172 -108
- package/src/styles/utilities/_transforms.scss +221 -0
- package/src/styles/utilities/_transitions.scss +81 -75
- package/src/styles/utilities/_typography.scss +141 -67
package/package.json
CHANGED
|
@@ -116,42 +116,24 @@ $font-sizes: (
|
|
|
116
116
|
|
|
117
117
|
// Updated spacing map
|
|
118
118
|
$spacings: (
|
|
119
|
-
// 0rem
|
|
120
119
|
0: 0,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
//
|
|
126
|
-
|
|
127
|
-
//
|
|
128
|
-
|
|
129
|
-
//
|
|
130
|
-
|
|
131
|
-
//
|
|
132
|
-
|
|
133
|
-
//
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
// 4rem
|
|
140
|
-
16: rem(64),
|
|
141
|
-
// 5rem
|
|
142
|
-
20: rem(80),
|
|
143
|
-
// 6rem
|
|
144
|
-
24: rem(96),
|
|
145
|
-
// 8rem
|
|
146
|
-
32: rem(128),
|
|
147
|
-
// 10rem
|
|
148
|
-
40: rem(160),
|
|
149
|
-
// 12rem
|
|
150
|
-
48: rem(192),
|
|
151
|
-
// 14rem
|
|
152
|
-
56: rem(224),
|
|
153
|
-
// 16rem
|
|
154
|
-
64: rem(256)
|
|
155
|
-
);
|
|
120
|
+
1: 0.25rem, // 4px
|
|
121
|
+
2: 0.5rem, // 8px
|
|
122
|
+
3: 0.75rem, // 12px
|
|
123
|
+
4: 1rem, // 16px
|
|
124
|
+
5: 1.25rem, // 20px
|
|
125
|
+
6: 1.5rem, // 24px
|
|
126
|
+
8: 2rem, // 32px
|
|
127
|
+
10: 2.5rem, // 40px
|
|
128
|
+
12: 3rem, // 48px
|
|
129
|
+
16: 4rem, // 64px
|
|
130
|
+
20: 5rem, // 80px
|
|
131
|
+
24: 6rem, // 96px
|
|
132
|
+
32: 8rem, // 128px
|
|
133
|
+
40: 10rem,
|
|
134
|
+
48: 12rem,
|
|
135
|
+
56: 14rem,
|
|
136
|
+
64: 16rem,
|
|
137
|
+
) !default;
|
|
156
138
|
|
|
157
139
|
$percentages: (0, 5, 10, 20, 25, 30, 40, 50, 60, 70, 75, 80, 90, 100) !default;
|
|
@@ -51,90 +51,92 @@
|
|
|
51
51
|
/**
|
|
52
52
|
* @description Establishes a flex container.
|
|
53
53
|
*/
|
|
54
|
-
@mixin flex {display: flex;}
|
|
54
|
+
@mixin flex {& { display: flex;}}
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* @description Establishes a flex-inline container.
|
|
58
58
|
*/
|
|
59
|
-
@mixin flex-inline {display: inline-flex;}
|
|
59
|
+
@mixin flex-inline {& { display: inline-flex;}}
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* @description Sets flex-direction to row.
|
|
63
63
|
* @dependencies flex | flex-inline
|
|
64
64
|
*/
|
|
65
|
-
@mixin row {flex-direction: row;}
|
|
65
|
+
@mixin row {& { flex-direction: row;}}
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* @description Sets flex-direction to row-reverse.
|
|
69
69
|
* @dependencies flex | flex-inline
|
|
70
70
|
*/
|
|
71
|
-
@mixin row-reverse {flex-direction: row-reverse;}
|
|
71
|
+
@mixin row-reverse {& { flex-direction: row-reverse;}}
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* @description Sets flex-direction to column.
|
|
75
75
|
* @dependencies flex | flex-inline
|
|
76
76
|
*/
|
|
77
|
-
@mixin col {
|
|
77
|
+
@mixin col {
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
}
|
|
78
80
|
|
|
79
81
|
/**
|
|
80
82
|
* @description Sets flex-direction to column-reverse.
|
|
81
83
|
* @dependencies flex | flex-inline
|
|
82
84
|
*/
|
|
83
|
-
@mixin col-reverse {flex-direction: column-reverse;}
|
|
85
|
+
@mixin col-reverse {& { flex-direction: column-reverse;}}
|
|
84
86
|
|
|
85
87
|
/**
|
|
86
88
|
* @description Sets flex-wrap to wrap.
|
|
87
89
|
* @dependencies flex | flex-inline
|
|
88
90
|
*/
|
|
89
|
-
@mixin wrap {flex-wrap: wrap;}
|
|
91
|
+
@mixin wrap {& { flex-wrap: wrap;}}
|
|
90
92
|
|
|
91
93
|
/**
|
|
92
94
|
* @description Sets flex-wrap to nowrap.
|
|
93
95
|
* @dependencies flex | flex-inline
|
|
94
96
|
*/
|
|
95
|
-
@mixin nowrap {flex-wrap: nowrap;}
|
|
97
|
+
@mixin nowrap {& { flex-wrap: nowrap;}}
|
|
96
98
|
|
|
97
99
|
/**
|
|
98
100
|
* @description Sets flex-wrap to wrap-reverse
|
|
99
101
|
* @dependencies flex | flex-inline
|
|
100
102
|
*/
|
|
101
|
-
@mixin wrap-reverse {flex-wrap: wrap-reverse;}
|
|
103
|
+
@mixin wrap-reverse {& { flex-wrap: wrap-reverse;}}
|
|
102
104
|
|
|
103
105
|
/**
|
|
104
106
|
* @description Sets justify-content to flex-start
|
|
105
107
|
* @dependencies flex | flex-inline
|
|
106
108
|
*/
|
|
107
|
-
@mixin start {justify-content: flex-start;}
|
|
109
|
+
@mixin start {& { justify-content: flex-start;}}
|
|
108
110
|
|
|
109
111
|
/**
|
|
110
112
|
* @description Sets justify-content to flex-end
|
|
111
113
|
* @dependencies flex | flex-inline
|
|
112
114
|
*/
|
|
113
|
-
@mixin end {justify-content: flex-end;}
|
|
115
|
+
@mixin end {& { justify-content: flex-end;}}
|
|
114
116
|
|
|
115
117
|
/**
|
|
116
118
|
* @description Sets justify-content to center
|
|
117
119
|
* @dependencies flex | flex-inline
|
|
118
120
|
*/
|
|
119
|
-
@mixin center {justify-content: center;}
|
|
121
|
+
@mixin center {& { justify-content: center;}}
|
|
120
122
|
|
|
121
123
|
/**
|
|
122
124
|
* @description Sets justify-content to space-between
|
|
123
125
|
* @dependencies flex | flex-inline
|
|
124
126
|
*/
|
|
125
|
-
@mixin between {justify-content: space-between;}
|
|
127
|
+
@mixin between {& { justify-content: space-between;}}
|
|
126
128
|
|
|
127
129
|
/**
|
|
128
130
|
* @description Sets justify-content to space-around
|
|
129
131
|
* @dependencies flex | flex-inline
|
|
130
132
|
*/
|
|
131
|
-
@mixin around {justify-content: space-around;}
|
|
133
|
+
@mixin around {& { justify-content: space-around;}}
|
|
132
134
|
|
|
133
135
|
/**
|
|
134
136
|
* @description Sets justify-content to space-evenly
|
|
135
137
|
* @dependencies flex | flex-inline
|
|
136
138
|
*/
|
|
137
|
-
@mixin evenly {justify-content: space-evenly;}
|
|
139
|
+
@mixin evenly {& { justify-content: space-evenly;}}
|
|
138
140
|
|
|
139
141
|
// Cross Axis Alignment Mixins
|
|
140
142
|
|
|
@@ -142,31 +144,31 @@
|
|
|
142
144
|
* @description Sets align-items to flex-start - aligns items to the start of the cross axis.
|
|
143
145
|
* @dependencies flex | flex-inline
|
|
144
146
|
*/
|
|
145
|
-
@mixin x-start {align-items: flex-start;}
|
|
147
|
+
@mixin x-start {& { align-items: flex-start;}}
|
|
146
148
|
|
|
147
149
|
/**
|
|
148
150
|
* @description Sets align-items to flex-end - aligns items to the end of the cross axis.
|
|
149
151
|
* @dependencies flex | flex-inline
|
|
150
152
|
*/
|
|
151
|
-
@mixin x-end {align-items: flex-end;}
|
|
153
|
+
@mixin x-end {& { align-items: flex-end;}}
|
|
152
154
|
|
|
153
155
|
/**
|
|
154
156
|
* @description Sets align-items to center - aligns items to the center of the cross axis.
|
|
155
157
|
* @dependencies flex | flex-inline
|
|
156
158
|
*/
|
|
157
|
-
@mixin x-center {align-items: center;}
|
|
159
|
+
@mixin x-center {& { align-items: center;}}
|
|
158
160
|
|
|
159
161
|
/**
|
|
160
162
|
* @description Sets align-items to stretch - aligns items to the stretch of the cross axis.
|
|
161
163
|
* @dependencies flex | flex-inline
|
|
162
164
|
*/
|
|
163
|
-
@mixin x-stretch {align-items: stretch;}
|
|
165
|
+
@mixin x-stretch {& { align-items: stretch;}}
|
|
164
166
|
|
|
165
167
|
/**
|
|
166
168
|
* @description Sets align-items to baseline - aligns items to the baseline of the cross axis.
|
|
167
169
|
* @dependencies flex | flex-inline
|
|
168
170
|
*/
|
|
169
|
-
@mixin x-baseline {align-items: baseline;}
|
|
171
|
+
@mixin x-baseline {& { align-items: baseline;}}
|
|
170
172
|
|
|
171
173
|
// Cross Axis Content Mixins
|
|
172
174
|
|
|
@@ -174,43 +176,43 @@
|
|
|
174
176
|
* @description Sets align-content to flex-start - aligns content to the start of the cross axis.
|
|
175
177
|
* @dependencies flex | flex-inline
|
|
176
178
|
*/
|
|
177
|
-
@mixin x-content-start { align-content: flex-start; }
|
|
179
|
+
@mixin x-content-start { & { align-content: flex-start; }}
|
|
178
180
|
|
|
179
181
|
/**
|
|
180
182
|
* @description Sets align-content to flex-end - aligns content to the end of the cross axis.
|
|
181
183
|
* @dependencies flex | flex-inline
|
|
182
184
|
*/
|
|
183
|
-
@mixin x-content-end { align-content: flex-end; }
|
|
185
|
+
@mixin x-content-end { & { align-content: flex-end; }}
|
|
184
186
|
|
|
185
187
|
/**
|
|
186
188
|
* @description Sets align-content to center - aligns content to the center of the cross axis.
|
|
187
189
|
* @dependencies flex | flex-inline
|
|
188
190
|
*/
|
|
189
|
-
@mixin x-content-center { align-content: center; }
|
|
191
|
+
@mixin x-content-center { & { align-content: center; }}
|
|
190
192
|
|
|
191
193
|
/**
|
|
192
194
|
* @description Sets align-content to space-between - aligns content to the space between the cross axis.
|
|
193
195
|
* @dependencies flex | flex-inline
|
|
194
196
|
*/
|
|
195
|
-
@mixin x-content-between { align-content: space-between; }
|
|
197
|
+
@mixin x-content-between { & { align-content: space-between; }}
|
|
196
198
|
|
|
197
199
|
/**
|
|
198
200
|
* @description Sets align-content to space-around - aligns content to the space around the cross axis.
|
|
199
201
|
* @dependencies flex | flex-inline
|
|
200
202
|
*/
|
|
201
|
-
@mixin x-content-around { align-content: space-around; }
|
|
203
|
+
@mixin x-content-around { & { align-content: space-around; }}
|
|
202
204
|
|
|
203
205
|
/**
|
|
204
206
|
* @description Sets align-content to space-evenly - aligns content to the space evenly between the cross axis.
|
|
205
207
|
* @dependencies flex | flex-inline
|
|
206
208
|
*/
|
|
207
|
-
@mixin x-content-evenly { align-content: space-evenly; }
|
|
209
|
+
@mixin x-content-evenly { & { align-content: space-evenly; }}
|
|
208
210
|
|
|
209
211
|
/**
|
|
210
212
|
* @description Sets align-content to stretch - aligns content to the stretch of the cross axis.
|
|
211
213
|
* @dependencies flex | flex-inline
|
|
212
214
|
*/
|
|
213
|
-
@mixin x-content-stretch { align-content: stretch; }
|
|
215
|
+
@mixin x-content-stretch { & { align-content: stretch; }}
|
|
214
216
|
|
|
215
217
|
// Self Alignment Mixins
|
|
216
218
|
|
|
@@ -218,55 +220,55 @@
|
|
|
218
220
|
* @description Sets align-self to auto
|
|
219
221
|
* @dependencies flex | flex-inline
|
|
220
222
|
*/
|
|
221
|
-
@mixin self-auto {align-self: auto;}
|
|
223
|
+
@mixin self-auto {& { align-self: auto;}}
|
|
222
224
|
|
|
223
225
|
/**
|
|
224
226
|
* @description Sets align-self to flex-start
|
|
225
227
|
* @dependencies flex | flex-inline
|
|
226
228
|
*/
|
|
227
|
-
@mixin self-start {align-self: flex-start;}
|
|
229
|
+
@mixin self-start {& { align-self: flex-start;}}
|
|
228
230
|
|
|
229
231
|
/**
|
|
230
232
|
* @description Sets align-self to flex-end
|
|
231
233
|
* @dependencies flex | flex-inline
|
|
232
234
|
*/
|
|
233
|
-
@mixin self-end {align-self: flex-end;}
|
|
235
|
+
@mixin self-end {& { align-self: flex-end;}}
|
|
234
236
|
|
|
235
237
|
/**
|
|
236
238
|
* @description Sets align-self to center
|
|
237
239
|
* @dependencies flex | flex-inline
|
|
238
240
|
*/
|
|
239
|
-
@mixin self-center {align-self: center;}
|
|
241
|
+
@mixin self-center {& { align-self: center;}}
|
|
240
242
|
|
|
241
243
|
/**
|
|
242
244
|
* @description Sets align-self to stretch
|
|
243
245
|
* @dependencies flex | flex-inline
|
|
244
246
|
*/
|
|
245
|
-
@mixin self-stretch {align-self: stretch;}
|
|
247
|
+
@mixin self-stretch {& { align-self: stretch;}}
|
|
246
248
|
|
|
247
249
|
/**
|
|
248
250
|
* @description Sets align-self to baseline
|
|
249
251
|
* @dependencies flex | flex-inline
|
|
250
252
|
*/
|
|
251
|
-
@mixin self-baseline {align-self: baseline;}
|
|
253
|
+
@mixin self-baseline {& { align-self: baseline;}}
|
|
252
254
|
|
|
253
255
|
/**
|
|
254
256
|
* @description Sets flex-shrink to 1 - allows the item to shrink.
|
|
255
257
|
* @dependencies flex | flex-inline
|
|
256
258
|
*/
|
|
257
|
-
@mixin shrink {flex-shrink: 1;}
|
|
259
|
+
@mixin shrink {& { flex-shrink: 1;}}
|
|
258
260
|
|
|
259
261
|
/**
|
|
260
262
|
* @description Sets flex-shrink to 0 - prevents the item from shrinking.
|
|
261
263
|
* @dependencies flex | flex-inline
|
|
262
264
|
*/
|
|
263
|
-
@mixin shrink-0 {flex-shrink: 0;}
|
|
265
|
+
@mixin shrink-0 {& { flex-shrink: 0;}}
|
|
264
266
|
|
|
265
267
|
/**
|
|
266
268
|
* @description Sets flex-shrink to 2 - allows the item to shrink twice as much as the other items.
|
|
267
269
|
* @dependencies flex | flex-inline
|
|
268
270
|
*/
|
|
269
|
-
@mixin shrink-2 {flex-shrink: 2;}
|
|
271
|
+
@mixin shrink-2 {& { flex-shrink: 2;}}
|
|
270
272
|
|
|
271
273
|
|
|
272
274
|
// Flex Child Mixins
|
|
@@ -274,144 +276,158 @@
|
|
|
274
276
|
/**
|
|
275
277
|
* @description Sets flex to 0 0 100%
|
|
276
278
|
*/
|
|
277
|
-
@mixin
|
|
279
|
+
@mixin fill-full {& { flex: 0 0 100%;}}
|
|
278
280
|
|
|
279
281
|
/**
|
|
280
282
|
* @description Sets flex to 1 1 auto - allows the item to grow and shrink.
|
|
281
283
|
*/
|
|
282
|
-
@mixin
|
|
284
|
+
@mixin fill-auto {& { flex: 1 1 auto;}}
|
|
283
285
|
|
|
284
286
|
/**
|
|
285
287
|
* @description Sets flex to 1 1 0% - allows the item to grow but not shrink.
|
|
286
288
|
*/
|
|
287
|
-
@mixin grow { flex: 1 1 0%; }
|
|
289
|
+
@mixin grow { & { flex: 1 1 0%; }}
|
|
288
290
|
|
|
289
291
|
/**
|
|
290
292
|
* @description Sets flex to none - prevents the item from growing.
|
|
291
293
|
*/
|
|
292
|
-
@mixin no-grow { flex: none; }
|
|
294
|
+
@mixin no-grow { & { flex: none; }}
|
|
293
295
|
|
|
294
296
|
/**
|
|
295
297
|
* @description Sets how many columns this would take using percentage of VAR.$column-count.
|
|
296
298
|
* @param {Number} $size - The number of columns to span.
|
|
297
299
|
*/
|
|
298
|
-
@mixin
|
|
299
|
-
flex: 0 0 math.percentage(math.div($size, VAR.$column-count));
|
|
300
|
+
@mixin fill($size) {
|
|
301
|
+
& { flex: 0 0 math.percentage(math.div($size, VAR.$column-count));}
|
|
300
302
|
}
|
|
301
303
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
> .
|
|
304
|
+
@if VAR.$generate-utility-classes {
|
|
305
|
+
// Base flex container
|
|
306
|
+
.flex {
|
|
307
|
+
display: flex;
|
|
308
|
+
|
|
309
|
+
// Direction modifiers
|
|
310
|
+
&.row { flex-direction: row; }
|
|
311
|
+
&.row-reverse { flex-direction: row-reverse; }
|
|
312
|
+
&.col { flex-direction: column; }
|
|
313
|
+
&.col-reverse { flex-direction: column-reverse; }
|
|
314
|
+
|
|
315
|
+
// Wrap modifiers
|
|
316
|
+
&.wrap { flex-wrap: wrap; }
|
|
317
|
+
&.nowrap { flex-wrap: nowrap; }
|
|
318
|
+
&.wrap-reverse { flex-wrap: wrap-reverse; }
|
|
319
|
+
|
|
320
|
+
// Justify modifiers
|
|
321
|
+
&.start { justify-content: flex-start; }
|
|
322
|
+
&.end { justify-content: flex-end; }
|
|
323
|
+
&.center { justify-content: center; }
|
|
324
|
+
&.between { justify-content: space-between; }
|
|
325
|
+
&.around { justify-content: space-around; }
|
|
326
|
+
&.evenly { justify-content: space-evenly; }
|
|
327
|
+
|
|
328
|
+
// Align modifiers
|
|
329
|
+
&.x-start { align-items: flex-start; }
|
|
330
|
+
&.x-end { align-items: flex-end; }
|
|
331
|
+
&.x-center { align-items: center; }
|
|
332
|
+
&.x-baseline { align-items: baseline; }
|
|
333
|
+
&.x-stretch { align-items: stretch; }
|
|
334
|
+
|
|
335
|
+
&.x-content-start { align-content: flex-start; }
|
|
336
|
+
&.x-content-end { align-content: flex-end; }
|
|
337
|
+
&.x-content-center { align-content: center; }
|
|
338
|
+
&.x-content-between { align-content: space-between; }
|
|
339
|
+
&.x-content-around { align-content: space-around; }
|
|
340
|
+
&.x-content-evenly { align-content: space-evenly; }
|
|
341
|
+
&.x-content-stretch { align-content: stretch; }
|
|
342
|
+
|
|
343
|
+
// Child flex items (using column count)
|
|
344
|
+
> .fill-auto { @include fill-auto; }
|
|
345
|
+
> .fill-full { @include fill-full; }
|
|
346
|
+
> .grow { @include grow; }
|
|
347
|
+
> .no-grow { @include no-grow; }
|
|
348
|
+
|
|
349
|
+
> .order-first { order: -1; }
|
|
350
|
+
> .order-last { order: 9999; }
|
|
351
|
+
> .order-none { order: 0; }
|
|
352
|
+
|
|
353
|
+
> .shrink { @include shrink; }
|
|
354
|
+
> .shrink-0 { @include shrink-0; }
|
|
355
|
+
> .shrink-2 { @include shrink-2; }
|
|
356
|
+
|
|
357
|
+
> .self-end { @include self-end; }
|
|
358
|
+
> .self-start { @include self-start; }
|
|
359
|
+
> .self-center { @include self-center; }
|
|
360
|
+
> .self-stretch { @include self-stretch; }
|
|
361
|
+
> .self-baseline { @include self-baseline; }
|
|
362
|
+
> .self-auto { @include self-auto; }
|
|
363
|
+
|
|
364
|
+
@for $i from 1 through VAR.$column-count {
|
|
365
|
+
> .fill-#{$i} { @include fill($i); }
|
|
366
|
+
> .order-#{$i} { order: $i; }
|
|
367
|
+
}
|
|
356
368
|
}
|
|
357
|
-
}
|
|
358
369
|
|
|
359
|
-
@each $breakpoint, $width in VAR.$breakpoints {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
& > .
|
|
413
|
-
& > .
|
|
414
|
-
& > .
|
|
370
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
371
|
+
// Get breakpoint value using FN function
|
|
372
|
+
$bp-val: FN.get-breakpoint-value($breakpoint);
|
|
373
|
+
|
|
374
|
+
@media (min-width: #{$bp-val}) {
|
|
375
|
+
.flex {
|
|
376
|
+
// Direction
|
|
377
|
+
&.row\@#{$breakpoint} { flex-direction: row; }
|
|
378
|
+
&.row-reverse\@#{$breakpoint} { flex-direction: row-reverse; }
|
|
379
|
+
&.col\@#{$breakpoint} { flex-direction: column; }
|
|
380
|
+
&.col-reverse\@#{$breakpoint} { flex-direction: column-reverse; }
|
|
381
|
+
|
|
382
|
+
// Wrap
|
|
383
|
+
&.wrap\@#{$breakpoint} { flex-wrap: wrap; }
|
|
384
|
+
&.nowrap\@#{$breakpoint} { flex-wrap: nowrap; }
|
|
385
|
+
&.wrap-reverse\@#{$breakpoint} { flex-wrap: wrap-reverse; }
|
|
386
|
+
|
|
387
|
+
// Justify
|
|
388
|
+
&.start\@#{$breakpoint} { justify-content: flex-start; }
|
|
389
|
+
&.end\@#{$breakpoint} { justify-content: flex-end; }
|
|
390
|
+
&.center\@#{$breakpoint} { justify-content: center; }
|
|
391
|
+
&.between\@#{$breakpoint} { justify-content: space-between; }
|
|
392
|
+
&.around\@#{$breakpoint} { justify-content: space-around; }
|
|
393
|
+
&.evenly\@#{$breakpoint} { justify-content: space-evenly; }
|
|
394
|
+
|
|
395
|
+
// Align
|
|
396
|
+
&.x-start\@#{$breakpoint} { align-items: flex-start; }
|
|
397
|
+
&.x-end\@#{$breakpoint} { align-items: flex-end; }
|
|
398
|
+
&.x-center\@#{$breakpoint} { align-items: center; }
|
|
399
|
+
&.x-baseline\@#{$breakpoint} { align-items: baseline; }
|
|
400
|
+
&.x-stretch\@#{$breakpoint} { align-items: stretch; }
|
|
401
|
+
|
|
402
|
+
&.x-content-start\@#{$breakpoint} { align-content: flex-start; }
|
|
403
|
+
&.x-content-end\@#{$breakpoint} { align-content: flex-end; }
|
|
404
|
+
&.x-content-center\@#{$breakpoint} { align-content: center; }
|
|
405
|
+
&.x-content-between\@#{$breakpoint} { align-content: space-between; }
|
|
406
|
+
&.x-content-around\@#{$breakpoint} { align-content: space-around; }
|
|
407
|
+
&.x-content-evenly\@#{$breakpoint} { align-content: space-evenly; }
|
|
408
|
+
&.x-content-stretch\@#{$breakpoint} { align-content: stretch; }
|
|
409
|
+
|
|
410
|
+
// Width (using column count)
|
|
411
|
+
& > .fill-auto\@#{$breakpoint} { @include fill-auto; }
|
|
412
|
+
& > .fill-full\@#{$breakpoint} { @include fill-full; }
|
|
413
|
+
& > .grow\@#{$breakpoint} { @include grow; }
|
|
414
|
+
& > .no-grow\@#{$breakpoint} { @include no-grow; }
|
|
415
|
+
& > .order-first\@#{$breakpoint} { order: -1; }
|
|
416
|
+
& > .order-last\@#{$breakpoint} { order: 9999; }
|
|
417
|
+
& > .order-none\@#{$breakpoint} { order: 0; }
|
|
418
|
+
& > .shrink\@#{$breakpoint} { @include shrink; }
|
|
419
|
+
& > .shrink-0\@#{$breakpoint} { @include shrink-0; }
|
|
420
|
+
& > .shrink-2\@#{$breakpoint} { @include shrink-2; }
|
|
421
|
+
& > .self-end\@#{$breakpoint} { @include self-end; }
|
|
422
|
+
& > .self-start\@#{$breakpoint} { @include self-start; }
|
|
423
|
+
& > .self-center\@#{$breakpoint} { @include self-center; }
|
|
424
|
+
& > .self-stretch\@#{$breakpoint} { @include self-stretch; }
|
|
425
|
+
& > .self-baseline\@#{$breakpoint} { @include self-baseline; }
|
|
426
|
+
& > .self-auto\@#{$breakpoint} { @include self-auto; }
|
|
427
|
+
@for $i from 1 through VAR.$column-count {
|
|
428
|
+
& > .fill-#{$i}\@#{$breakpoint} { @include fill($i); }
|
|
429
|
+
& > .order-#{$i}\@#{$breakpoint} { order: $i; }
|
|
430
|
+
}
|
|
415
431
|
}
|
|
416
432
|
}
|
|
417
433
|
}
|