@foris/avocado-core 1.3.1 → 1.3.2

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.
@@ -1,4 +1,5 @@
1
1
  // This grid use CSS Flexbox. To transform this grid in css use https://www.sassmeister.com/ <3
2
+ @use 'sass:math';
2
3
  @import './variables';
3
4
 
4
5
  // Quantity columns
@@ -39,7 +40,7 @@ $gridSpacing: (
39
40
 
40
41
  // Calculates width column
41
42
  @function calculateWidth($columnNumber) {
42
- @return unquote((100 / $gridColumns) * $columnNumber + '%');
43
+ @return unquote(math.div(100, $gridColumns) * $columnNumber + '%');
43
44
  }
44
45
 
45
46
  // Generate responsive spacing
@@ -69,7 +70,7 @@ $gridSpacing: (
69
70
  @if $columnNumber == $gridColumns {
70
71
  margin-left: 100%;
71
72
  } @else if $columnNumber != $gridColumns and $columnNumber != 0 {
72
- margin-left: (100 / ($gridColumns / $columnNumber)) * 1%;
73
+ margin-left: math.div(100, math.div($gridColumns, $columnNumber)) * 1%;
73
74
  } @else if $columnNumber == 0 {
74
75
  margin-left: 0;
75
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foris/avocado-core",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },