@nuvoui/core 1.2.4 → 1.2.6
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 +2 -2
- package/dist/nuvoui.css +27685 -22739
- 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 +7 -8
- package/src/styles/abstracts/_config.scss +87 -34
- package/src/styles/abstracts/_functions.scss +70 -37
- package/src/styles/base/_base.scss +79 -59
- package/src/styles/base/_reset.scss +11 -8
- package/src/styles/index.scss +32 -17
- package/src/styles/layouts/_container.scss +1 -2
- package/src/styles/layouts/_flex.scss +442 -154
- package/src/styles/layouts/_grid.scss +145 -75
- package/src/styles/mixins-map.scss +1085 -1
- package/src/styles/themes/_theme.scss +95 -106
- package/src/styles/utilities/_alignment.scss +40 -13
- package/src/styles/utilities/_animations.scss +361 -92
- package/src/styles/utilities/_backdrop-filters.scss +297 -0
- package/src/styles/utilities/_borders.scss +360 -159
- package/src/styles/utilities/_colors.scss +24 -34
- package/src/styles/utilities/_container-queries.scss +7 -7
- package/src/styles/utilities/_cursor.scss +10 -17
- package/src/styles/utilities/_display.scss +234 -85
- package/src/styles/utilities/_helpers.scss +5 -5
- package/src/styles/utilities/_media-queries.scss +24 -27
- package/src/styles/utilities/_opacity.scss +15 -31
- package/src/styles/utilities/_position.scss +129 -66
- package/src/styles/utilities/_shadows.scss +23 -29
- package/src/styles/utilities/_sizing.scss +270 -92
- package/src/styles/utilities/_spacing.scss +317 -169
- package/src/styles/utilities/_tooltips.scss +36 -29
- package/src/styles/utilities/_transforms.scss +243 -154
- package/src/styles/utilities/_transitions.scss +129 -75
- package/src/styles/utilities/_typography.scss +341 -127
- package/src/styles/utilities/_z-index.scss +144 -0
- package/src/styles/abstracts/_index.scss +0 -1
- package/src/styles/base/_index.scss +0 -2
- package/src/styles/layouts/_index.scss +0 -3
- package/src/styles/themes/_index.scss +0 -1
- package/src/styles/utilities/_index.scss +0 -20
|
@@ -42,33 +42,41 @@
|
|
|
42
42
|
*
|
|
43
43
|
* @see grid
|
|
44
44
|
*/
|
|
45
|
-
|
|
46
|
-
@use
|
|
47
|
-
@use
|
|
48
|
-
@use
|
|
49
|
-
@use
|
|
45
|
+
|
|
46
|
+
@use "sass:math";
|
|
47
|
+
@use "../utilities/media-queries" as MC;
|
|
48
|
+
@use "../abstracts/config" as VAR;
|
|
49
|
+
@use "../abstracts/functions" as FN;
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* @description Establishes a flex container.
|
|
53
53
|
*/
|
|
54
|
-
@mixin flex {
|
|
54
|
+
@mixin flex {
|
|
55
|
+
display: flex;
|
|
56
|
+
}
|
|
55
57
|
|
|
56
58
|
/**
|
|
57
59
|
* @description Establishes a flex-inline container.
|
|
58
60
|
*/
|
|
59
|
-
@mixin flex-inline {
|
|
61
|
+
@mixin flex-inline {
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
}
|
|
60
64
|
|
|
61
65
|
/**
|
|
62
66
|
* @description Sets flex-direction to row.
|
|
63
67
|
* @dependencies flex | flex-inline
|
|
64
68
|
*/
|
|
65
|
-
@mixin row {
|
|
69
|
+
@mixin row {
|
|
70
|
+
flex-direction: row;
|
|
71
|
+
}
|
|
66
72
|
|
|
67
73
|
/**
|
|
68
74
|
* @description Sets flex-direction to row-reverse.
|
|
69
75
|
* @dependencies flex | flex-inline
|
|
70
76
|
*/
|
|
71
|
-
@mixin row-reverse {
|
|
77
|
+
@mixin row-reverse {
|
|
78
|
+
flex-direction: row-reverse;
|
|
79
|
+
}
|
|
72
80
|
|
|
73
81
|
/**
|
|
74
82
|
* @description Sets flex-direction to column.
|
|
@@ -82,68 +90,89 @@
|
|
|
82
90
|
* @description Sets flex-direction to column-reverse.
|
|
83
91
|
* @dependencies flex | flex-inline
|
|
84
92
|
*/
|
|
85
|
-
@mixin col-reverse {
|
|
93
|
+
@mixin col-reverse {
|
|
94
|
+
flex-direction: column-reverse;
|
|
95
|
+
}
|
|
86
96
|
|
|
87
97
|
/**
|
|
88
98
|
* @description Sets flex-wrap to wrap.
|
|
89
99
|
* @dependencies flex | flex-inline
|
|
90
100
|
*/
|
|
91
|
-
@mixin wrap {
|
|
101
|
+
@mixin wrap {
|
|
102
|
+
flex-wrap: wrap;
|
|
103
|
+
}
|
|
92
104
|
|
|
93
105
|
/**
|
|
94
106
|
* @description Sets flex-wrap to nowrap.
|
|
95
107
|
* @dependencies flex | flex-inline
|
|
96
108
|
*/
|
|
97
|
-
@mixin nowrap {
|
|
109
|
+
@mixin nowrap {
|
|
110
|
+
flex-wrap: nowrap;
|
|
111
|
+
}
|
|
98
112
|
|
|
99
113
|
/**
|
|
100
114
|
* @description Sets flex-wrap to wrap-reverse
|
|
101
115
|
* @dependencies flex | flex-inline
|
|
102
116
|
*/
|
|
103
|
-
@mixin wrap-reverse {
|
|
117
|
+
@mixin wrap-reverse {
|
|
118
|
+
flex-wrap: wrap-reverse;
|
|
119
|
+
}
|
|
104
120
|
|
|
105
121
|
/**
|
|
106
122
|
* @description Sets justify-content to flex-start
|
|
107
123
|
* @dependencies flex | flex-inline
|
|
108
124
|
*/
|
|
109
|
-
@mixin start {
|
|
125
|
+
@mixin start {
|
|
126
|
+
justify-content: flex-start;
|
|
127
|
+
}
|
|
110
128
|
|
|
111
129
|
/**
|
|
112
130
|
* @description Sets justify-content to flex-end
|
|
113
131
|
* @dependencies flex | flex-inline
|
|
114
132
|
*/
|
|
115
|
-
@mixin end {
|
|
133
|
+
@mixin end {
|
|
134
|
+
justify-content: flex-end;
|
|
135
|
+
}
|
|
116
136
|
|
|
117
137
|
/**
|
|
118
138
|
* @description Sets justify-content to center
|
|
119
139
|
* @dependencies flex | flex-inline
|
|
120
140
|
*/
|
|
121
|
-
@mixin center {
|
|
122
|
-
|
|
141
|
+
@mixin center {
|
|
142
|
+
justify-content: center;
|
|
143
|
+
}
|
|
123
144
|
|
|
124
145
|
/**
|
|
125
146
|
* @description Sets justify-content to stretch
|
|
126
147
|
* @dependencies flex | flex-inline
|
|
127
148
|
*/
|
|
128
|
-
@mixin stretch {
|
|
149
|
+
@mixin stretch {
|
|
150
|
+
justify-content: stretch;
|
|
151
|
+
}
|
|
129
152
|
|
|
130
153
|
/**
|
|
131
154
|
* @description Sets justify-content to space-between
|
|
132
155
|
* @dependencies flex | flex-inline
|
|
133
156
|
*/
|
|
134
|
-
@mixin between {
|
|
157
|
+
@mixin between {
|
|
158
|
+
justify-content: space-between;
|
|
159
|
+
}
|
|
135
160
|
|
|
136
161
|
/**
|
|
137
162
|
* @description Sets justify-content to space-around
|
|
138
163
|
* @dependencies flex | flex-inline
|
|
139
164
|
*/
|
|
140
|
-
@mixin around {
|
|
165
|
+
@mixin around {
|
|
166
|
+
justify-content: space-around;
|
|
167
|
+
}
|
|
141
168
|
|
|
142
169
|
/**
|
|
143
170
|
* @description Sets justify-content to space-evenly
|
|
144
171
|
* @dependencies flex | flex-inline
|
|
145
172
|
*/
|
|
146
|
-
@mixin evenly {
|
|
173
|
+
@mixin evenly {
|
|
174
|
+
justify-content: space-evenly;
|
|
175
|
+
}
|
|
147
176
|
|
|
148
177
|
// Cross Axis Alignment Mixins
|
|
149
178
|
|
|
@@ -151,31 +180,41 @@
|
|
|
151
180
|
* @description Sets align-items to flex-start - aligns items to the start of the cross axis.
|
|
152
181
|
* @dependencies flex | flex-inline
|
|
153
182
|
*/
|
|
154
|
-
@mixin x-start {
|
|
183
|
+
@mixin x-start {
|
|
184
|
+
align-items: flex-start;
|
|
185
|
+
}
|
|
155
186
|
|
|
156
187
|
/**
|
|
157
188
|
* @description Sets align-items to flex-end - aligns items to the end of the cross axis.
|
|
158
189
|
* @dependencies flex | flex-inline
|
|
159
190
|
*/
|
|
160
|
-
@mixin x-end {
|
|
191
|
+
@mixin x-end {
|
|
192
|
+
align-items: flex-end;
|
|
193
|
+
}
|
|
161
194
|
|
|
162
195
|
/**
|
|
163
196
|
* @description Sets align-items to center - aligns items to the center of the cross axis.
|
|
164
197
|
* @dependencies flex | flex-inline
|
|
165
198
|
*/
|
|
166
|
-
@mixin x-center {
|
|
199
|
+
@mixin x-center {
|
|
200
|
+
align-items: center;
|
|
201
|
+
}
|
|
167
202
|
|
|
168
203
|
/**
|
|
169
204
|
* @description Sets align-items to stretch - aligns items to the stretch of the cross axis.
|
|
170
205
|
* @dependencies flex | flex-inline
|
|
171
206
|
*/
|
|
172
|
-
@mixin x-stretch {
|
|
207
|
+
@mixin x-stretch {
|
|
208
|
+
align-items: stretch;
|
|
209
|
+
}
|
|
173
210
|
|
|
174
211
|
/**
|
|
175
212
|
* @description Sets align-items to baseline - aligns items to the baseline of the cross axis.
|
|
176
213
|
* @dependencies flex | flex-inline
|
|
177
214
|
*/
|
|
178
|
-
@mixin x-baseline {
|
|
215
|
+
@mixin x-baseline {
|
|
216
|
+
align-items: baseline;
|
|
217
|
+
}
|
|
179
218
|
|
|
180
219
|
// Cross Axis Content Mixins
|
|
181
220
|
|
|
@@ -183,43 +222,57 @@
|
|
|
183
222
|
* @description Sets align-content to flex-start - aligns content to the start of the cross axis.
|
|
184
223
|
* @dependencies flex | flex-inline
|
|
185
224
|
*/
|
|
186
|
-
@mixin x-content-start {
|
|
225
|
+
@mixin x-content-start {
|
|
226
|
+
align-content: flex-start;
|
|
227
|
+
}
|
|
187
228
|
|
|
188
229
|
/**
|
|
189
230
|
* @description Sets align-content to flex-end - aligns content to the end of the cross axis.
|
|
190
231
|
* @dependencies flex | flex-inline
|
|
191
232
|
*/
|
|
192
|
-
@mixin x-content-end {
|
|
233
|
+
@mixin x-content-end {
|
|
234
|
+
align-content: flex-end;
|
|
235
|
+
}
|
|
193
236
|
|
|
194
237
|
/**
|
|
195
238
|
* @description Sets align-content to center - aligns content to the center of the cross axis.
|
|
196
239
|
* @dependencies flex | flex-inline
|
|
197
240
|
*/
|
|
198
|
-
@mixin x-content-center {
|
|
241
|
+
@mixin x-content-center {
|
|
242
|
+
align-content: center;
|
|
243
|
+
}
|
|
199
244
|
|
|
200
245
|
/**
|
|
201
246
|
* @description Sets align-content to space-between - aligns content to the space between the cross axis.
|
|
202
247
|
* @dependencies flex | flex-inline
|
|
203
248
|
*/
|
|
204
|
-
@mixin x-content-between {
|
|
249
|
+
@mixin x-content-between {
|
|
250
|
+
align-content: space-between;
|
|
251
|
+
}
|
|
205
252
|
|
|
206
253
|
/**
|
|
207
254
|
* @description Sets align-content to space-around - aligns content to the space around the cross axis.
|
|
208
255
|
* @dependencies flex | flex-inline
|
|
209
256
|
*/
|
|
210
|
-
@mixin x-content-around {
|
|
257
|
+
@mixin x-content-around {
|
|
258
|
+
align-content: space-around;
|
|
259
|
+
}
|
|
211
260
|
|
|
212
261
|
/**
|
|
213
262
|
* @description Sets align-content to space-evenly - aligns content to the space evenly between the cross axis.
|
|
214
263
|
* @dependencies flex | flex-inline
|
|
215
264
|
*/
|
|
216
|
-
@mixin x-content-evenly {
|
|
265
|
+
@mixin x-content-evenly {
|
|
266
|
+
align-content: space-evenly;
|
|
267
|
+
}
|
|
217
268
|
|
|
218
269
|
/**
|
|
219
270
|
* @description Sets align-content to stretch - aligns content to the stretch of the cross axis.
|
|
220
271
|
* @dependencies flex | flex-inline
|
|
221
272
|
*/
|
|
222
|
-
@mixin x-content-stretch {
|
|
273
|
+
@mixin x-content-stretch {
|
|
274
|
+
align-content: stretch;
|
|
275
|
+
}
|
|
223
276
|
|
|
224
277
|
// Self Alignment Mixins
|
|
225
278
|
|
|
@@ -227,84 +280,110 @@
|
|
|
227
280
|
* @description Sets align-self to auto
|
|
228
281
|
* @dependencies flex | flex-inline
|
|
229
282
|
*/
|
|
230
|
-
@mixin self-auto {
|
|
283
|
+
@mixin self-auto {
|
|
284
|
+
align-self: auto;
|
|
285
|
+
}
|
|
231
286
|
|
|
232
287
|
/**
|
|
233
288
|
* @description Sets align-self to flex-start
|
|
234
289
|
* @dependencies flex | flex-inline
|
|
235
290
|
*/
|
|
236
|
-
@mixin self-start {
|
|
291
|
+
@mixin self-start {
|
|
292
|
+
align-self: flex-start;
|
|
293
|
+
}
|
|
237
294
|
|
|
238
295
|
/**
|
|
239
296
|
* @description Sets align-self to flex-end
|
|
240
297
|
* @dependencies flex | flex-inline
|
|
241
298
|
*/
|
|
242
|
-
@mixin self-end {
|
|
299
|
+
@mixin self-end {
|
|
300
|
+
align-self: flex-end;
|
|
301
|
+
}
|
|
243
302
|
|
|
244
303
|
/**
|
|
245
304
|
* @description Sets align-self to center
|
|
246
305
|
* @dependencies flex | flex-inline
|
|
247
306
|
*/
|
|
248
|
-
@mixin self-center {
|
|
307
|
+
@mixin self-center {
|
|
308
|
+
align-self: center;
|
|
309
|
+
}
|
|
249
310
|
|
|
250
311
|
/**
|
|
251
312
|
* @description Sets align-self to stretch
|
|
252
313
|
* @dependencies flex | flex-inline
|
|
253
314
|
*/
|
|
254
|
-
@mixin self-stretch {
|
|
315
|
+
@mixin self-stretch {
|
|
316
|
+
align-self: stretch;
|
|
317
|
+
}
|
|
255
318
|
|
|
256
319
|
/**
|
|
257
320
|
* @description Sets align-self to baseline
|
|
258
321
|
* @dependencies flex | flex-inline
|
|
259
322
|
*/
|
|
260
|
-
@mixin self-baseline {
|
|
323
|
+
@mixin self-baseline {
|
|
324
|
+
align-self: baseline;
|
|
325
|
+
}
|
|
261
326
|
|
|
262
327
|
/**
|
|
263
328
|
* @description Sets flex-shrink to 1 - allows the item to shrink.
|
|
264
329
|
* @dependencies flex | flex-inline
|
|
265
330
|
*/
|
|
266
|
-
@mixin shrink {
|
|
331
|
+
@mixin shrink {
|
|
332
|
+
flex-shrink: 1;
|
|
333
|
+
}
|
|
267
334
|
|
|
268
335
|
/**
|
|
269
336
|
* @description Sets flex-shrink to 0 - prevents the item from shrinking.
|
|
270
337
|
* @dependencies flex | flex-inline
|
|
271
338
|
*/
|
|
272
|
-
@mixin no-shrink {
|
|
339
|
+
@mixin no-shrink {
|
|
340
|
+
flex-shrink: 0;
|
|
341
|
+
}
|
|
273
342
|
|
|
274
343
|
/**
|
|
275
344
|
* @description Sets flex-shrink to 2 - allows the item to shrink twice as much as the other items.
|
|
276
345
|
* @dependencies flex | flex-inline
|
|
277
346
|
*/
|
|
278
|
-
@mixin shrink-twice {
|
|
279
|
-
|
|
347
|
+
@mixin shrink-twice {
|
|
348
|
+
flex-shrink: 2;
|
|
349
|
+
}
|
|
280
350
|
|
|
281
351
|
// Flex Child Mixins
|
|
282
352
|
|
|
283
353
|
/**
|
|
284
354
|
* @description Sets flex to 0 0 100%
|
|
285
355
|
*/
|
|
286
|
-
@mixin fill-full {
|
|
356
|
+
@mixin fill-full {
|
|
357
|
+
flex: 0 0 100%;
|
|
358
|
+
}
|
|
287
359
|
|
|
288
360
|
/**
|
|
289
361
|
* @description Sets flex to 1 1 auto - allows the item to grow and shrink.
|
|
290
362
|
*/
|
|
291
|
-
@mixin fill-auto {
|
|
363
|
+
@mixin fill-auto {
|
|
364
|
+
flex: 1 1 auto;
|
|
365
|
+
}
|
|
292
366
|
|
|
293
367
|
/**
|
|
294
368
|
* @description Sets flex to 1 1 0% - allows the item to grow but not shrink.
|
|
295
369
|
*/
|
|
296
|
-
@mixin grow {
|
|
370
|
+
@mixin grow {
|
|
371
|
+
flex: 1 1 0%;
|
|
372
|
+
}
|
|
297
373
|
|
|
298
374
|
/**
|
|
299
375
|
* @description Sets flex to none - prevents the item from growing.
|
|
300
376
|
*/
|
|
301
|
-
@mixin no-grow {
|
|
377
|
+
@mixin no-grow {
|
|
378
|
+
flex: none;
|
|
379
|
+
}
|
|
302
380
|
|
|
303
381
|
/**
|
|
304
382
|
* @description Sets flex to 1 0 auto - allows the item to grow but not shrink.
|
|
305
383
|
*/
|
|
306
|
-
@mixin grow-only {
|
|
307
|
-
|
|
384
|
+
@mixin grow-only {
|
|
385
|
+
flex: 1 0 auto;
|
|
386
|
+
}
|
|
308
387
|
|
|
309
388
|
/**
|
|
310
389
|
* @description Sets how many columns this would take using percentage of VAR.$column-count.
|
|
@@ -316,132 +395,341 @@
|
|
|
316
395
|
|
|
317
396
|
@if VAR.$generate-utility-classes {
|
|
318
397
|
// Base flex container
|
|
319
|
-
.flex {
|
|
398
|
+
#{VAR.$parent-selector} .flex {
|
|
320
399
|
display: flex;
|
|
321
|
-
|
|
400
|
+
|
|
322
401
|
// Direction modifiers
|
|
323
|
-
&.row {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
402
|
+
&.row {
|
|
403
|
+
flex-direction: row;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
&.row-reverse {
|
|
407
|
+
flex-direction: row-reverse;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
&.col {
|
|
411
|
+
flex-direction: column;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
&.col-reverse {
|
|
415
|
+
flex-direction: column-reverse;
|
|
416
|
+
}
|
|
417
|
+
|
|
328
418
|
// Wrap modifiers
|
|
329
|
-
&.wrap {
|
|
330
|
-
|
|
331
|
-
|
|
419
|
+
&.wrap {
|
|
420
|
+
flex-wrap: wrap;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
&.nowrap {
|
|
424
|
+
flex-wrap: nowrap;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
&.wrap-reverse {
|
|
428
|
+
flex-wrap: wrap-reverse;
|
|
429
|
+
}
|
|
332
430
|
|
|
333
431
|
// Justify modifiers
|
|
334
|
-
&.start {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
&.
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
432
|
+
&.start {
|
|
433
|
+
justify-content: flex-start;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
&.end {
|
|
437
|
+
justify-content: flex-end;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
&.center {
|
|
441
|
+
justify-content: center;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
&.stretch {
|
|
445
|
+
justify-content: stretch;
|
|
446
|
+
} // todo: document
|
|
447
|
+
&.between {
|
|
448
|
+
justify-content: space-between;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
&.around {
|
|
452
|
+
justify-content: space-around;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
&.evenly {
|
|
456
|
+
justify-content: space-evenly;
|
|
457
|
+
}
|
|
458
|
+
|
|
342
459
|
// Align modifiers
|
|
343
|
-
&.x-start {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
&.x-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
&.x-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
&.x-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
460
|
+
&.x-start {
|
|
461
|
+
align-items: flex-start;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
&.x-end {
|
|
465
|
+
align-items: flex-end;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
&.x-center {
|
|
469
|
+
align-items: center;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
&.x-baseline {
|
|
473
|
+
align-items: baseline;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
&.x-stretch {
|
|
477
|
+
align-items: stretch;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
&.x-content-start {
|
|
481
|
+
align-content: flex-start;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
&.x-content-end {
|
|
485
|
+
align-content: flex-end;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
&.x-content-center {
|
|
489
|
+
align-content: center;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
&.x-content-between {
|
|
493
|
+
align-content: space-between;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
&.x-content-around {
|
|
497
|
+
align-content: space-around;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
&.x-content-evenly {
|
|
501
|
+
align-content: space-evenly;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
&.x-content-stretch {
|
|
505
|
+
align-content: stretch;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
// Child flex items (using column count)
|
|
509
|
+
> .fill-auto {
|
|
510
|
+
@include fill-auto;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
> .fill-full {
|
|
514
|
+
@include fill-full;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
> .grow {
|
|
518
|
+
@include grow;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
> .no-grow {
|
|
522
|
+
@include no-grow;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
> .order-first {
|
|
526
|
+
order: -1;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
> .order-last {
|
|
530
|
+
order: 9999;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
> .order-none {
|
|
534
|
+
order: 0;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
> .shrink {
|
|
538
|
+
@include shrink;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
> .no-shrink {
|
|
542
|
+
@include no-shrink;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
> .shrink-twice {
|
|
546
|
+
@include shrink-twice;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
> .self-end {
|
|
550
|
+
@include self-end;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
> .self-start {
|
|
554
|
+
@include self-start;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
> .self-center {
|
|
558
|
+
@include self-center;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
> .self-stretch {
|
|
562
|
+
@include self-stretch;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
> .self-baseline {
|
|
566
|
+
@include self-baseline;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
> .self-auto {
|
|
570
|
+
@include self-auto;
|
|
571
|
+
}
|
|
572
|
+
|
|
378
573
|
@for $i from 1 through VAR.$column-count {
|
|
379
|
-
> .fill-#{$i} {
|
|
380
|
-
|
|
574
|
+
> .fill-#{$i} {
|
|
575
|
+
@include fill($i);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
> .order-#{$i} {
|
|
579
|
+
order: $i;
|
|
580
|
+
}
|
|
381
581
|
}
|
|
382
582
|
}
|
|
383
583
|
|
|
384
584
|
@each $breakpoint, $width in VAR.$breakpoints {
|
|
385
585
|
// Get breakpoint value using FN function
|
|
386
586
|
$bp-val: FN.get-breakpoint-value($breakpoint);
|
|
387
|
-
|
|
587
|
+
|
|
388
588
|
@media (min-width: #{$bp-val}) {
|
|
389
|
-
.flex {
|
|
589
|
+
#{VAR.$parent-selector} .flex {
|
|
390
590
|
// Direction
|
|
391
|
-
&.row\@#{$breakpoint} {
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
&.
|
|
395
|
-
|
|
591
|
+
&.row\@#{$breakpoint} {
|
|
592
|
+
flex-direction: row;
|
|
593
|
+
}
|
|
594
|
+
&.row-reverse\@#{$breakpoint} {
|
|
595
|
+
flex-direction: row-reverse;
|
|
596
|
+
}
|
|
597
|
+
&.col\@#{$breakpoint} {
|
|
598
|
+
flex-direction: column;
|
|
599
|
+
}
|
|
600
|
+
&.col-reverse\@#{$breakpoint} {
|
|
601
|
+
flex-direction: column-reverse;
|
|
602
|
+
}
|
|
603
|
+
|
|
396
604
|
// Wrap
|
|
397
|
-
&.wrap\@#{$breakpoint} {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
605
|
+
&.wrap\@#{$breakpoint} {
|
|
606
|
+
flex-wrap: wrap;
|
|
607
|
+
}
|
|
608
|
+
&.nowrap\@#{$breakpoint} {
|
|
609
|
+
flex-wrap: nowrap;
|
|
610
|
+
}
|
|
611
|
+
&.wrap-reverse\@#{$breakpoint} {
|
|
612
|
+
flex-wrap: wrap-reverse;
|
|
613
|
+
}
|
|
614
|
+
|
|
401
615
|
// Justify
|
|
402
|
-
&.start\@#{$breakpoint} {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
&.
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
&.
|
|
616
|
+
&.start\@#{$breakpoint} {
|
|
617
|
+
justify-content: flex-start;
|
|
618
|
+
}
|
|
619
|
+
&.end\@#{$breakpoint} {
|
|
620
|
+
justify-content: flex-end;
|
|
621
|
+
}
|
|
622
|
+
&.center\@#{$breakpoint} {
|
|
623
|
+
justify-content: center;
|
|
624
|
+
}
|
|
625
|
+
&.between\@#{$breakpoint} {
|
|
626
|
+
justify-content: space-between;
|
|
627
|
+
}
|
|
628
|
+
&.stretch\@#{$breakpoint} {
|
|
629
|
+
justify-content: stretch;
|
|
630
|
+
} // todo: document
|
|
631
|
+
&.around\@#{$breakpoint} {
|
|
632
|
+
justify-content: space-around;
|
|
633
|
+
}
|
|
634
|
+
&.evenly\@#{$breakpoint} {
|
|
635
|
+
justify-content: space-evenly;
|
|
636
|
+
}
|
|
409
637
|
|
|
410
638
|
// Align
|
|
411
|
-
&.x-start\@#{$breakpoint} {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
&.x-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
&.x-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
&.x-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
&.x-
|
|
424
|
-
|
|
639
|
+
&.x-start\@#{$breakpoint} {
|
|
640
|
+
align-items: flex-start;
|
|
641
|
+
}
|
|
642
|
+
&.x-end\@#{$breakpoint} {
|
|
643
|
+
align-items: flex-end;
|
|
644
|
+
}
|
|
645
|
+
&.x-center\@#{$breakpoint} {
|
|
646
|
+
align-items: center;
|
|
647
|
+
}
|
|
648
|
+
&.x-baseline\@#{$breakpoint} {
|
|
649
|
+
align-items: baseline;
|
|
650
|
+
}
|
|
651
|
+
&.x-stretch\@#{$breakpoint} {
|
|
652
|
+
align-items: stretch;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
&.x-content-start\@#{$breakpoint} {
|
|
656
|
+
align-content: flex-start;
|
|
657
|
+
}
|
|
658
|
+
&.x-content-end\@#{$breakpoint} {
|
|
659
|
+
align-content: flex-end;
|
|
660
|
+
}
|
|
661
|
+
&.x-content-center\@#{$breakpoint} {
|
|
662
|
+
align-content: center;
|
|
663
|
+
}
|
|
664
|
+
&.x-content-between\@#{$breakpoint} {
|
|
665
|
+
align-content: space-between;
|
|
666
|
+
}
|
|
667
|
+
&.x-content-around\@#{$breakpoint} {
|
|
668
|
+
align-content: space-around;
|
|
669
|
+
}
|
|
670
|
+
&.x-content-evenly\@#{$breakpoint} {
|
|
671
|
+
align-content: space-evenly;
|
|
672
|
+
}
|
|
673
|
+
&.x-content-stretch\@#{$breakpoint} {
|
|
674
|
+
align-content: stretch;
|
|
675
|
+
}
|
|
676
|
+
|
|
425
677
|
// Width (using column count)
|
|
426
|
-
& > .fill-auto\@#{$breakpoint} {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
& > .
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
& > .
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
& > .
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
& > .
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
& > .
|
|
678
|
+
& > .fill-auto\@#{$breakpoint} {
|
|
679
|
+
@include fill-auto;
|
|
680
|
+
}
|
|
681
|
+
& > .fill-full\@#{$breakpoint} {
|
|
682
|
+
@include fill-full;
|
|
683
|
+
}
|
|
684
|
+
& > .grow\@#{$breakpoint} {
|
|
685
|
+
@include grow;
|
|
686
|
+
}
|
|
687
|
+
& > .no-grow\@#{$breakpoint} {
|
|
688
|
+
@include no-grow;
|
|
689
|
+
}
|
|
690
|
+
& > .order-first\@#{$breakpoint} {
|
|
691
|
+
order: -1;
|
|
692
|
+
}
|
|
693
|
+
& > .order-last\@#{$breakpoint} {
|
|
694
|
+
order: 9999;
|
|
695
|
+
}
|
|
696
|
+
& > .order-none\@#{$breakpoint} {
|
|
697
|
+
order: 0;
|
|
698
|
+
}
|
|
699
|
+
& > .shrink\@#{$breakpoint} {
|
|
700
|
+
@include shrink;
|
|
701
|
+
}
|
|
702
|
+
& > .no-shrink\@#{$breakpoint} {
|
|
703
|
+
@include no-shrink;
|
|
704
|
+
}
|
|
705
|
+
& > .shrink-twice\@#{$breakpoint} {
|
|
706
|
+
@include shrink-twice;
|
|
707
|
+
}
|
|
708
|
+
& > .self-end\@#{$breakpoint} {
|
|
709
|
+
@include self-end;
|
|
710
|
+
}
|
|
711
|
+
& > .self-start\@#{$breakpoint} {
|
|
712
|
+
@include self-start;
|
|
713
|
+
}
|
|
714
|
+
& > .self-center\@#{$breakpoint} {
|
|
715
|
+
@include self-center;
|
|
716
|
+
}
|
|
717
|
+
& > .self-stretch\@#{$breakpoint} {
|
|
718
|
+
@include self-stretch;
|
|
719
|
+
}
|
|
720
|
+
& > .self-baseline\@#{$breakpoint} {
|
|
721
|
+
@include self-baseline;
|
|
722
|
+
}
|
|
723
|
+
& > .self-auto\@#{$breakpoint} {
|
|
724
|
+
@include self-auto;
|
|
725
|
+
}
|
|
442
726
|
@for $i from 1 through VAR.$column-count {
|
|
443
|
-
& > .fill-#{$i}\@#{$breakpoint} {
|
|
444
|
-
|
|
727
|
+
& > .fill-#{$i}\@#{$breakpoint} {
|
|
728
|
+
@include fill($i);
|
|
729
|
+
}
|
|
730
|
+
& > .order-#{$i}\@#{$breakpoint} {
|
|
731
|
+
order: $i;
|
|
732
|
+
}
|
|
445
733
|
}
|
|
446
734
|
}
|
|
447
735
|
}
|