@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/dist/nuvoui.css +102 -84
- 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 +1 -0
- package/src/styles/layouts/_container.scss +1 -1
- package/src/styles/layouts/_flex.scss +2 -6
- package/src/styles/utilities/_spacing.scss +5 -1
package/package.json
CHANGED
|
@@ -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
|
-
$
|
|
295
|
+
$columns: math.div(VAR.$column-count, $size); // How many items per row
|
|
296
296
|
|
|
297
|
-
|
|
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
|
-
|
|
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") {
|