@nuvoui/core 1.3.4 → 1.3.5

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.3.4",
3
+ "version": "1.3.5",
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",
@@ -7,6 +7,7 @@ $feature-flags: (
7
7
  "animations": true,
8
8
  "backdrops": true,
9
9
  "borders": true,
10
+ "container": true,
10
11
  "container-queries": true,
11
12
  "cursors": true,
12
13
  "displays": true,
@@ -28,7 +28,7 @@
28
28
  @include container-padding(1rem);
29
29
  }
30
30
 
31
- @if FN.feature-enabled("container-queries") {
31
+ @if FN.feature-enabled("container") {
32
32
  // Container classes
33
33
  #{VAR.$parent-selector} .container {
34
34
  @include container;
@@ -292,13 +292,9 @@
292
292
  // @description Sets how many columns this would take using percentage of VAR.$column-count.
293
293
  // @param {Number} $size - The number of columns to span.
294
294
  @mixin fill($size) {
295
- $percentage: math.percentage(math.div($size, VAR.$column-count));
295
+ $columns: math.div(VAR.$column-count, $size); // How many items per row
296
296
 
297
- $n: math.div(VAR.$column-count, $size); // How many items fit in a row
298
- $gap-adjustment: calc(var(--flex-gap, 0px) * #{$n - 1} / #{$n});
299
-
300
- // The width calculation accounts for the gap proportionally
301
- flex: 0 0 calc(#{$percentage} - #{$gap-adjustment});
297
+ flex: 0 0 calc((100% - (#{$columns - 1} * var(--flex-gap, 0px))) / #{$columns});
302
298
  }
303
299
 
304
300
  @if FN.feature-enabled("flex") {
@@ -291,7 +291,11 @@
291
291
  // @description Sets vertical gap between grid/flex children
292
292
  // @param {Number|String} $val - Gap value
293
293
  @mixin gap-y($val) {
294
- row-gap: FN.fix-units($val);
294
+ $val: FN.fix-units($val);
295
+
296
+ row-gap: $val;
297
+
298
+ --flex-gap: #{$val};
295
299
  }
296
300
 
297
301
  @if FN.feature-enabled("spacing") {