@foris/avocado-core 0.0.2 → 0.0.4

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,6 +1,5 @@
1
1
  // This grid use CSS Flexbox. To transform this grid in css use https://www.sassmeister.com/ <3
2
- @use './variables' as variables;
3
- @use 'sass:math';
2
+ @import './variables';
4
3
 
5
4
  // Quantity columns
6
5
  $gridColumns: 12;
@@ -40,7 +39,7 @@ $gridSpacing: (
40
39
 
41
40
  // Calculates width column
42
41
  @function calculateWidth($columnNumber) {
43
- @return unquote(math.div(100, $gridColumns) * $columnNumber + '%');
42
+ @return unquote((100 / $gridColumns) * $columnNumber + '%');
44
43
  }
45
44
 
46
45
  // Generate responsive spacing
@@ -70,9 +69,7 @@ $gridSpacing: (
70
69
  @if $columnNumber == $gridColumns {
71
70
  margin-left: 100%;
72
71
  } @else if $columnNumber != $gridColumns and $columnNumber != 0 {
73
- // For sassmeister.com you can use this line:
74
- // margin-left: (100 / ($gridColumns / $columnNumber)) * 1%;
75
- margin-left: math.div(100, math.div($gridColumns, $columnNumber)) * 1%;
72
+ margin-left: (100 / ($gridColumns / $columnNumber)) * 1%;
76
73
  } @else if $columnNumber == 0 {
77
74
  margin-left: 0;
78
75
  }
@@ -166,7 +163,7 @@ $gridSpacing: (
166
163
  @if $media == full {
167
164
  @include contentFlexboxGrid(map-get($breakpointsPrefix, full));
168
165
  } @else if $media == md {
169
- @media (max-width: map-get(variables.$breakpoints, md )) {
166
+ @media (max-width: map-get($breakpoints, md )) {
170
167
  @include contentFlexboxGrid(map-get($breakpointsPrefix, md));
171
168
  }
172
169
  }
@@ -1,5 +1,6 @@
1
+ @forward './variables';
2
+ @forward './mixin';
3
+
1
4
  @import './normalize';
2
5
  @import './fonts';
3
6
  @import './grid';
4
- @import './mixin';
5
- @import './variables';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foris/avocado-core",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },