diff options
author | codecalm <codecalm@gmail.com> | 2020-03-01 18:16:09 +0100 |
---|---|---|
committer | codecalm <codecalm@gmail.com> | 2020-03-01 18:16:09 +0100 |
commit | e59e730062077460fddf214b6e69b3afa315c152 (patch) | |
tree | 9ab9bbaf515d4f397150e340bbb47d06ce6acddb /gulpfile.js | |
parent | switch icons (diff) | |
download | tabler-icons-e59e730062077460fddf214b6e69b3afa315c152.tar.xz |
home icon
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gulpfile.js b/gulpfile.js index 07a95de3..7e858bc0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -6,10 +6,10 @@ const gulp = require('gulp'), gulp.task('icons-sprite', function (cb) { - const columnsCount = 10, - padding = 24, + const columnsCount = 20, + padding = 16, paddingOuter = 49, - iconSize = 48; + iconSize = 24; glob("_site/icons/*.svg", {}, function (er, files) { const iconsCount = files.length, @@ -44,7 +44,7 @@ gulp.task('icons-sprite', function (cb) { } }); - const svgContent = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 ${width} ${height}" width="${width}" height="${height}"><rect x="0" y="0" width="${width}" height="${height}" fill="#fafafa"></rect>\n${svgContentSymbols}\n${svgContentIcons}\n</svg>`; + const svgContent = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 ${width} ${height}" width="${width}" height="${height}" style="color: #354052"><rect x="0" y="0" width="${width}" height="${height}" fill="#f5f7fb"></rect>\n${svgContentSymbols}\n${svgContentIcons}\n</svg>`; fs.writeFileSync('icons.svg', svgContent); cb(); |