From e570eebc1fee970edd01146e0b44be6732a1794d Mon Sep 17 00:00:00 2001 From: "James Y. Rauhut" Date: Wed, 28 Feb 2018 20:48:18 -0600 Subject: [PATCH] fix(sketch): fix #13, sketch file generated even if gutters use vw units --- .../css-gridish/bootstrap-grid.sketch | Bin 3161 -> 3161 bytes examples/carbon/css-gridish/bx-grid.sketch | Bin 3234 -> 3234 bytes .../material/css-gridish/material-grid.sketch | Bin 3238 -> 3238 bytes package.json | 2 +- src/index.js | 2 +- 5 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/bootstrap/css-gridish/bootstrap-grid.sketch b/examples/bootstrap/css-gridish/bootstrap-grid.sketch index 796db5c34374c40888af43ff29399837040cdc9f..85febede0c5730f0492c321721432f129369bc88 100644 GIT binary patch delta 115 zcmca9aZ`dPz?+#xgn@yBgW>tojXWKUOwX5Yp2k=Uq9=pZCz`PwKDaoSB p0-_x_Vwga}^SCTQ)J-l^5GBBE1fpEH!Mth+wTU|#B*@R>1ppY*Dog+X delta 115 zcmca9aZ`dPz?+#xgn@yBgJDARMxG8vrU}iPr!m%o=*gnYN+8OTSrtSjFmDG*O0uZ3 pfM^Gf7$%VLJT6NRb(6~!LHz?+#xgn@yBgW<)}jXWKUOfQyhp2k=Uq9=pZCz`PwKDan$@ o0-`%PVwga}&$%o?loGcoh>GMk0#UsX-Vq4(n>!jL7{TKO02P%hfB*mh delta 115 zcmZ1^xk!>Hz?+#xgn@yBgJDARMxG8vrU}iPr!m%o=*gnYN+8OTSrtSjFmDG*O0wj! ofap$+7$%VLb1q8|rNnItq9VDCKvXY;cLYNH=8gslM(}t60JxJR)Bpeg diff --git a/examples/material/css-gridish/material-grid.sketch b/examples/material/css-gridish/material-grid.sketch index 64bd654aad866409bbfa70d053e0d30f50dbb6a8..45fb4f333a71eb0f5ff5f23b03d7c62b0d42da3e 100644 GIT binary patch delta 115 zcmZ1`xlEELz?+#xgn@yBgW=`UjXWKUOfQ#ip2k=Uq9=pZCz`PwKDalgA o0-}34Vwga}uemHilp41wh>GPl0#Oqoyb}=WKX)`pFowqq03c;6x&QzG delta 115 zcmZ1`xlEELz?+#xgn@yBgJELxMxG8vrism)r!m%o=*gnYN+8OTSrtSjFmDG*O0pEO ofaqS17$%VLYc5L=rN(UvqGGv?K-5GC?*xSU&m9dCjN$PD0K;P?4gdfE diff --git a/package.json b/package.json index 4936161..d2da5f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "css-gridish", - "version": "1.0.6", + "version": "1.0.7", "description": "Automatically build your grid design’s CSS Grid code, CSS Flexbox fallback code, Sketch artboards, and Chrome extension.", "engines": { diff --git a/src/index.js b/src/index.js index 6a51766..a70a012 100755 --- a/src/index.js +++ b/src/index.js @@ -211,7 +211,7 @@ gulp.task("sketchPage", ["sketchFiles"], function() { const values = sorted[i]; const width = values.breakpoint * config.rem; const margin = parseUnit(values.margin, width); - const gutter = parseUnit(values.gutter); + const gutter = parseUnit(values.gutter, width); const gridWidth = width - margin * 2; const gutterWidth = gutter;