From 6dd9d1d166d56df73545fe1aeea6d29795608320 Mon Sep 17 00:00:00 2001 From: codecalm Date: Thu, 5 Mar 2020 23:50:49 +0100 Subject: icons readme fixes --- gulpfile.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index a60efe6..3294b79 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -8,7 +8,7 @@ const gulp = require('gulp'), gulp.task('icons-sprite', function (cb) { const columnsCount = 16, padding = 30, - paddingOuter = 24, + paddingOuter = 0, iconSize = 24; glob("_site/icons/*.svg", {}, function (er, files) { @@ -44,7 +44,7 @@ gulp.task('icons-sprite', function (cb) { } }); - const svgContent = `\n${svgContentSymbols}\n${svgContentIcons}\n`; + const svgContent = `\n${svgContentSymbols}\n${svgContentIcons}\n`; fs.writeFileSync('icons.svg', svgContent); cb(); @@ -57,7 +57,7 @@ gulp.task('icons-stroke', function (cb) { strokes = ['.5', '1', '1.5', '2', '2.75'], svgFileContent = fs.readFileSync(`_site/icons/tabler-${icon}.svg`).toString(), padding = 32, - paddingOuter = 32, + paddingOuter = 0, iconSize = 128, width = (strokes.length * (iconSize + padding) - padding) + paddingOuter * 2, height = iconSize + paddingOuter * 2; @@ -84,7 +84,7 @@ gulp.task('icons-stroke', function (cb) { x += padding + iconSize; }); - const svgContent = `\n${svgContentSymbols}\n${svgContentIcons}\n`; + const svgContent = `\n${svgContentSymbols}\n${svgContentIcons}\n`; fs.writeFileSync('icons-stroke.svg', svgContent); -- cgit v1.2.1