@nuvoui/core 1.2.0 → 1.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuvoui/core",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "NuvoUI is a human-friendly SCSS framework designed for simplicity, and modern responsive designs.",
5
5
  "author": {
6
6
  "name": "AALA IT Solutions",
@@ -27,7 +27,10 @@
27
27
  @include container-padding(1rem);
28
28
  }
29
29
 
30
- // Container classes
31
- .container {
32
- @include container;
30
+
31
+ @if VAR.$generate-utility-classes {
32
+ // Container classes
33
+ .container {
34
+ @include container;
35
+ }
33
36
  }
@@ -299,119 +299,121 @@
299
299
  flex: 0 0 math.percentage(math.div($size, VAR.$column-count));
300
300
  }
301
301
 
302
- // Base flex container
303
- .flex {
304
- display: flex;
305
-
306
- // Direction modifiers
307
- &.row { flex-direction: row; }
308
- &.row-reverse { flex-direction: row-reverse; }
309
- &.col { flex-direction: column; }
310
- &.col-reverse { flex-direction: column-reverse; }
311
-
312
- // Wrap modifiers
313
- &.wrap { flex-wrap: wrap; }
314
- &.nowrap { flex-wrap: nowrap; }
315
- &.wrap-reverse { flex-wrap: wrap-reverse; }
316
-
317
- // Justify modifiers
318
- &.start { justify-content: flex-start; }
319
- &.end { justify-content: flex-end; }
320
- &.center { justify-content: center; }
321
- &.between { justify-content: space-between; }
322
- &.around { justify-content: space-around; }
323
- &.evenly { justify-content: space-evenly; }
324
-
325
- // Align modifiers
326
- &.x-start { align-items: flex-start; }
327
- &.x-end { align-items: flex-end; }
328
- &.x-center { align-items: center; }
329
- &.x-baseline { align-items: baseline; }
330
- &.x-stretch { align-items: stretch; }
331
-
332
- &.x-content-start { align-content: flex-start; }
333
- &.x-content-end { align-content: flex-end; }
334
- &.x-content-center { align-content: center; }
335
- &.x-content-between { align-content: space-between; }
336
- &.x-content-around { align-content: space-around; }
337
- &.x-content-evenly { align-content: space-evenly; }
338
- &.x-content-stretch { align-content: stretch; }
339
-
340
- // Child flex items (using column count)
341
- > .w-auto { @include f-w-auto; }
342
- > .w-full { @include f-w-full; }
343
- > .grow { @include grow; }
344
- > .no-grow { @include no-grow; }
345
-
346
- > .order-first { order: -1; }
347
- > .order-last { order: 9999; }
348
- > .order-none { order: 0; }
349
-
350
- > .shrink { @include shrink; }
351
- > .shrink-0 { @include shrink-0; }
352
- > .shrink-2 { @include shrink-2; }
353
- @for $i from 1 through VAR.$column-count {
354
- > .w-#{$i} { @include w-col($i); }
355
- > .order-#{$i} { order: $i; }
302
+ @if VAR.$generate-utility-classes {
303
+ // Base flex container
304
+ .flex {
305
+ display: flex;
306
+
307
+ // Direction modifiers
308
+ &.row { flex-direction: row; }
309
+ &.row-reverse { flex-direction: row-reverse; }
310
+ &.col { flex-direction: column; }
311
+ &.col-reverse { flex-direction: column-reverse; }
312
+
313
+ // Wrap modifiers
314
+ &.wrap { flex-wrap: wrap; }
315
+ &.nowrap { flex-wrap: nowrap; }
316
+ &.wrap-reverse { flex-wrap: wrap-reverse; }
317
+
318
+ // Justify modifiers
319
+ &.start { justify-content: flex-start; }
320
+ &.end { justify-content: flex-end; }
321
+ &.center { justify-content: center; }
322
+ &.between { justify-content: space-between; }
323
+ &.around { justify-content: space-around; }
324
+ &.evenly { justify-content: space-evenly; }
325
+
326
+ // Align modifiers
327
+ &.x-start { align-items: flex-start; }
328
+ &.x-end { align-items: flex-end; }
329
+ &.x-center { align-items: center; }
330
+ &.x-baseline { align-items: baseline; }
331
+ &.x-stretch { align-items: stretch; }
332
+
333
+ &.x-content-start { align-content: flex-start; }
334
+ &.x-content-end { align-content: flex-end; }
335
+ &.x-content-center { align-content: center; }
336
+ &.x-content-between { align-content: space-between; }
337
+ &.x-content-around { align-content: space-around; }
338
+ &.x-content-evenly { align-content: space-evenly; }
339
+ &.x-content-stretch { align-content: stretch; }
340
+
341
+ // Child flex items (using column count)
342
+ > .w-auto { @include f-w-auto; }
343
+ > .w-full { @include f-w-full; }
344
+ > .grow { @include grow; }
345
+ > .no-grow { @include no-grow; }
346
+
347
+ > .order-first { order: -1; }
348
+ > .order-last { order: 9999; }
349
+ > .order-none { order: 0; }
350
+
351
+ > .shrink { @include shrink; }
352
+ > .shrink-0 { @include shrink-0; }
353
+ > .shrink-2 { @include shrink-2; }
354
+ @for $i from 1 through VAR.$column-count {
355
+ > .w-#{$i} { @include w-col($i); }
356
+ > .order-#{$i} { order: $i; }
357
+ }
356
358
  }
357
- }
358
359
 
359
- @each $breakpoint, $width in VAR.$breakpoints {
360
- // Get breakpoint value using FN function
361
- $bp-val: FN.get-breakpoint-value($breakpoint);
362
-
363
- @media (min-width: #{$bp-val}) {
364
- .flex {
365
- // Direction
366
- &.row\@#{$breakpoint} { flex-direction: row; }
367
- &.row-reverse\@#{$breakpoint} { flex-direction: row-reverse; }
368
- &.col\@#{$breakpoint} { flex-direction: column; }
369
- &.col-reverse\@#{$breakpoint} { flex-direction: column-reverse; }
370
-
371
- // Wrap
372
- &.wrap\@#{$breakpoint} { flex-wrap: wrap; }
373
- &.nowrap\@#{$breakpoint} { flex-wrap: nowrap; }
374
- &.wrap-reverse\@#{$breakpoint} { flex-wrap: wrap-reverse; }
375
-
376
- // Justify
377
- &.start\@#{$breakpoint} { justify-content: flex-start; }
378
- &.end\@#{$breakpoint} { justify-content: flex-end; }
379
- &.center\@#{$breakpoint} { justify-content: center; }
380
- &.between\@#{$breakpoint} { justify-content: space-between; }
381
- &.around\@#{$breakpoint} { justify-content: space-around; }
382
- &.evenly\@#{$breakpoint} { justify-content: space-evenly; }
383
-
384
- // Align
385
- &.x-start\@#{$breakpoint} { align-items: flex-start; }
386
- &.x-end\@#{$breakpoint} { align-items: flex-end; }
387
- &.x-center\@#{$breakpoint} { align-items: center; }
388
- &.x-baseline\@#{$breakpoint} { align-items: baseline; }
389
- &.x-stretch\@#{$breakpoint} { align-items: stretch; }
390
-
391
- &.x-content-start\@#{$breakpoint} { align-content: flex-start; }
392
- &.x-content-end\@#{$breakpoint} { align-content: flex-end; }
393
- &.x-content-center\@#{$breakpoint} { align-content: center; }
394
- &.x-content-between\@#{$breakpoint} { align-content: space-between; }
395
- &.x-content-around\@#{$breakpoint} { align-content: space-around; }
396
- &.x-content-evenly\@#{$breakpoint} { align-content: space-evenly; }
397
- &.x-content-stretch\@#{$breakpoint} { align-content: stretch; }
398
-
399
- // Width (using column count)
400
- & > .w-auto\@#{$breakpoint} { @include f-w-auto; }
401
- & > .w-full\@#{$breakpoint} { @include f-w-full; }
402
- & > .grow\@#{$breakpoint} { @include grow; }
403
- & > .no-grow\@#{$breakpoint} { @include no-grow; }
404
- & > .order-first\@#{$breakpoint} { order: -1; }
405
- & > .order-last\@#{$breakpoint} { order: 9999; }
406
- & > .order-none\@#{$breakpoint} { order: 0; }
407
- & > .shrink\@#{$breakpoint} { @include shrink; }
408
- & > .shrink-0\@#{$breakpoint} { @include shrink-0; }
409
- & > .shrink-2\@#{$breakpoint} { @include shrink-2; }
410
-
411
- @for $i from 1 through VAR.$column-count {
412
- & > .w-#{$i}\@#{$breakpoint} { @include w-col($i); }
413
- & > .col-#{$i}\@#{$breakpoint} { @include w-col($i); }
414
- & > .order-#{$i}\@#{$breakpoint} { order: $i; }
360
+ @each $breakpoint, $width in VAR.$breakpoints {
361
+ // Get breakpoint value using FN function
362
+ $bp-val: FN.get-breakpoint-value($breakpoint);
363
+
364
+ @media (min-width: #{$bp-val}) {
365
+ .flex {
366
+ // Direction
367
+ &.row\@#{$breakpoint} { flex-direction: row; }
368
+ &.row-reverse\@#{$breakpoint} { flex-direction: row-reverse; }
369
+ &.col\@#{$breakpoint} { flex-direction: column; }
370
+ &.col-reverse\@#{$breakpoint} { flex-direction: column-reverse; }
371
+
372
+ // Wrap
373
+ &.wrap\@#{$breakpoint} { flex-wrap: wrap; }
374
+ &.nowrap\@#{$breakpoint} { flex-wrap: nowrap; }
375
+ &.wrap-reverse\@#{$breakpoint} { flex-wrap: wrap-reverse; }
376
+
377
+ // Justify
378
+ &.start\@#{$breakpoint} { justify-content: flex-start; }
379
+ &.end\@#{$breakpoint} { justify-content: flex-end; }
380
+ &.center\@#{$breakpoint} { justify-content: center; }
381
+ &.between\@#{$breakpoint} { justify-content: space-between; }
382
+ &.around\@#{$breakpoint} { justify-content: space-around; }
383
+ &.evenly\@#{$breakpoint} { justify-content: space-evenly; }
384
+
385
+ // Align
386
+ &.x-start\@#{$breakpoint} { align-items: flex-start; }
387
+ &.x-end\@#{$breakpoint} { align-items: flex-end; }
388
+ &.x-center\@#{$breakpoint} { align-items: center; }
389
+ &.x-baseline\@#{$breakpoint} { align-items: baseline; }
390
+ &.x-stretch\@#{$breakpoint} { align-items: stretch; }
391
+
392
+ &.x-content-start\@#{$breakpoint} { align-content: flex-start; }
393
+ &.x-content-end\@#{$breakpoint} { align-content: flex-end; }
394
+ &.x-content-center\@#{$breakpoint} { align-content: center; }
395
+ &.x-content-between\@#{$breakpoint} { align-content: space-between; }
396
+ &.x-content-around\@#{$breakpoint} { align-content: space-around; }
397
+ &.x-content-evenly\@#{$breakpoint} { align-content: space-evenly; }
398
+ &.x-content-stretch\@#{$breakpoint} { align-content: stretch; }
399
+
400
+ // Width (using column count)
401
+ & > .w-auto\@#{$breakpoint} { @include f-w-auto; }
402
+ & > .w-full\@#{$breakpoint} { @include f-w-full; }
403
+ & > .grow\@#{$breakpoint} { @include grow; }
404
+ & > .no-grow\@#{$breakpoint} { @include no-grow; }
405
+ & > .order-first\@#{$breakpoint} { order: -1; }
406
+ & > .order-last\@#{$breakpoint} { order: 9999; }
407
+ & > .order-none\@#{$breakpoint} { order: 0; }
408
+ & > .shrink\@#{$breakpoint} { @include shrink; }
409
+ & > .shrink-0\@#{$breakpoint} { @include shrink-0; }
410
+ & > .shrink-2\@#{$breakpoint} { @include shrink-2; }
411
+
412
+ @for $i from 1 through VAR.$column-count {
413
+ & > .w-#{$i}\@#{$breakpoint} { @include w-col($i); }
414
+ & > .col-#{$i}\@#{$breakpoint} { @include w-col($i); }
415
+ & > .order-#{$i}\@#{$breakpoint} { order: $i; }
416
+ }
415
417
  }
416
418
  }
417
419
  }
@@ -51,6 +51,14 @@
51
51
 
52
52
  // Grid Alignment Mixins
53
53
 
54
+ // Alignment Classes
55
+ $alignments: (
56
+ 'start': start,
57
+ 'end': end,
58
+ 'center': center,
59
+ 'stretch': stretch
60
+ );
61
+
54
62
  /**
55
63
  * @description justify-items container.
56
64
  * @param {string} $value - The value for the justify-items property.
@@ -88,87 +96,81 @@
88
96
  grid-row: $row;
89
97
  }
90
98
 
91
- // Classes
92
- .grid { @include grid; }
93
- .grid.inline { @include grid-inline; }
99
+ @if VAR.$generate-utility-classes {
100
+ // Classes
101
+ .grid { @include grid; }
102
+ .grid.inline { @include grid-inline; }
94
103
 
95
104
 
96
- @for $i from 1 through VAR.$column-count {
97
- .grid.cols-#{$i} { @include cols($i); }
98
- .grid.rows-#{$i} { @include rows($i); }
99
- }
105
+ @for $i from 1 through VAR.$column-count {
106
+ .grid.cols-#{$i} { @include cols($i); }
107
+ .grid.rows-#{$i} { @include rows($i); }
108
+ }
100
109
 
101
- // Grid Template Classes
102
- @each $breakpoint, $width in VAR.$breakpoints {
103
- // Responsive grid columns
104
- @media (min-width: #{$width}) {
105
- @for $i from 1 through VAR.$column-count {
106
- .grid.cols-#{$i}\@#{$breakpoint} { @include cols($i); }
107
- .grid.rows-#{$i}\@#{$breakpoint} { @include rows($i); }
110
+ // Grid Template Classes
111
+ @each $breakpoint, $width in VAR.$breakpoints {
112
+ // Responsive grid columns
113
+ @media (min-width: #{$width}) {
114
+ @for $i from 1 through VAR.$column-count {
115
+ .grid.cols-#{$i}\@#{$breakpoint} { @include cols($i); }
116
+ .grid.rows-#{$i}\@#{$breakpoint} { @include rows($i); }
117
+ }
108
118
  }
109
119
  }
110
- }
111
120
 
112
121
 
113
- // Generate Column Span Classes with Responsive Variants
114
- @for $i from 1 through VAR.$column-count {
115
- .span-col-#{$i} {
116
- @include span-col($i);
117
- }
122
+ // Generate Column Span Classes with Responsive Variants
123
+ @for $i from 1 through VAR.$column-count {
124
+ .span-col-#{$i} {
125
+ @include span-col($i);
126
+ }
118
127
 
119
- .span-row-#{$i} {
120
- @include span-row($i);
121
- }
128
+ .span-row-#{$i} {
129
+ @include span-row($i);
130
+ }
122
131
 
123
- @each $breakpoint, $width in VAR.$breakpoints {
124
- @media (min-width: #{$width}) {
125
- .span-col-#{$i}\@#{$breakpoint} {
126
- @include span-col($i);
127
- }
132
+ @each $breakpoint, $width in VAR.$breakpoints {
133
+ @media (min-width: #{$width}) {
134
+ .span-col-#{$i}\@#{$breakpoint} {
135
+ @include span-col($i);
136
+ }
128
137
 
129
- .span-row-#{$i}\@#{$breakpoint} {
130
- @include span-row($i);
138
+ .span-row-#{$i}\@#{$breakpoint} {
139
+ @include span-row($i);
140
+ }
131
141
  }
132
142
  }
133
143
  }
134
- }
135
-
136
-
137
- // Auto-fit/fill Classes
138
- @each $size, $width in VAR.$grid-item-sizes {
139
- .grid.auto-fit-#{$size} { @include auto-fit($width); }
140
- .grid.auto-fill-#{$size} { @include auto-fill($width); }
141
- }
142
144
 
143
- // Flow Classes
144
- .grid.flow-row { @include flow-in-row; }
145
- .grid.flow-col { @include flow-in-col; }
146
- .grid.flow-dense { @include flow-dense-items; }
147
145
 
148
- // Alignment Classes
149
- $alignments: (
150
- 'start': start,
151
- 'end': end,
152
- 'center': center,
153
- 'stretch': stretch
154
- );
155
-
156
- @each $name, $value in $alignments {
157
- .justify-items-#{$name} { justify-items: $value; }
158
- .align-items-#{$name} { align-items: $value; }
159
- .place-items-#{$name} { place-items: $value; }
146
+ // Auto-fit/fill Classes
147
+ @each $size, $width in VAR.$grid-item-sizes {
148
+ .grid.auto-fit-#{$size} { @include auto-fit($width); }
149
+ .grid.auto-fill-#{$size} { @include auto-fill($width); }
150
+ }
160
151
 
161
- @each $breakpoint, $width in VAR.$breakpoints {
162
- @media (min-width: #{$width}) {
163
- .justify-items-#{$name}\@#{$breakpoint} {
164
- justify-items: $value;
165
- }
166
- .align-items-#{$name}\@#{$breakpoint} {
167
- align-items: $value;
168
- }
169
- .place-items-#{$name}\@#{$breakpoint} {
170
- place-items: $value;
152
+ // Flow Classes
153
+ .grid.flow-row { @include flow-in-row; }
154
+ .grid.flow-col { @include flow-in-col; }
155
+ .grid.flow-dense { @include flow-dense-items; }
156
+
157
+ @each $name, $value in $alignments {
158
+ .justify-items-#{$name} { justify-items: $value; }
159
+ .align-items-#{$name} { align-items: $value; }
160
+ .place-items-#{$name} { place-items: $value; }
161
+
162
+ @each $breakpoint, $width in VAR.$breakpoints {
163
+ @media (min-width: #{$width}) {
164
+ .justify-items-#{$name}\@#{$breakpoint} {
165
+ justify-items: $value;
166
+ }
167
+ .align-items-#{$name}\@#{$breakpoint} {
168
+ align-items: $value;
169
+ }
170
+ .place-items-#{$name}\@#{$breakpoint} {
171
+ place-items: $value;
172
+ }
171
173
  }
172
174
  }
173
175
  }
174
- }
176
+ }