@nuvoui/core 1.3.5 → 1.4.1

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