From 605ac9c6b9ee69292080b618a2cb0e39062130de Mon Sep 17 00:00:00 2001 From: codecalm Date: Mon, 2 Mar 2020 16:42:02 +0100 Subject: icons optimize --- _icons/ajdustments.svg | 4 +- _icons/arrow-down-circle.svg | 2 +- _icons/arrow-down-left-circle.svg | 2 +- _icons/arrow-down-right-circle.svg | 2 +- _icons/arrow-left-circle.svg | 2 +- _icons/arrow-narrow-up.svg | 6 +- _icons/arrow-right-circle.svg | 2 +- _icons/arrow-up-circle.svg | 2 +- _icons/arrow-up-left-circle.svg | 2 +- _icons/arrow-up-right-circle.svg | 2 +- _icons/battery-1.svg | 5 +- _icons/battery-2.svg | 7 +- _icons/battery-3.svg | 8 +- _icons/battery-4.svg | 10 +- _icons/battery-charging.svg | 4 +- _icons/battery.svg | 2 +- _icons/bookmark.svg | 2 +- _icons/border-bottom.svg | 10 +- _icons/border-horizontal.svg | 10 +- _icons/border-inner.svg | 8 +- _icons/border-left.svg | 10 +- _icons/border-none.svg | 12 +- _icons/border-outer.svg | 4 +- _icons/border-right.svg | 10 +- _icons/border-top.svg | 10 +- _icons/border-vertical.svg | 10 +- _icons/bulb-off.svg | 4 +- _icons/bulb.svg | 6 +- _icons/calendar.svg | 13 +- _icons/camera.svg | 2 +- _icons/cash.svg | 4 +- _icons/clipboard-check.svg | 2 +- _icons/clipboard-list.svg | 8 +- _icons/clipboard-x.svg | 2 +- _icons/cloud-rain.svg | 4 +- _icons/cloud-snow.svg | 4 +- _icons/cloud-storm.svg | 4 +- _icons/cloud.svg | 2 +- _icons/code.svg | 2 +- _icons/cog.svg | 4 +- _icons/copy.svg | 4 +- _icons/credit-card.svg | 8 +- _icons/device-desktop.svg | 8 +- _icons/device-mobile.svg | 6 +- _icons/device-tablet.svg | 2 +- _icons/download.svg | 6 +- _icons/file-check.svg | 6 +- _icons/file-download.svg | 6 +- _icons/file-minus.svg | 4 +- _icons/file-plus.svg | 4 +- _icons/file-text.svg | 4 +- _icons/file-x.svg | 6 +- _icons/file.svg | 4 +- _icons/flag.svg | 8 +- _icons/grid.svg | 8 +- _icons/heart.svg | 2 +- _icons/ice-cream.svg | 6 +- _icons/key.svg | 8 +- _icons/layout.svg | 6 +- _icons/lock-open.svg | 6 +- _icons/lock.svg | 6 +- _icons/magnet.svg | 6 +- _icons/map-pin.svg | 4 +- _icons/map.svg | 6 +- _icons/mood-sad.svg | 2 +- _icons/mood-smile.svg | 2 +- _icons/moon.svg | 2 +- _icons/photo.svg | 4 +- _icons/printer.svg | 6 +- _icons/qrcode.svg | 24 ++-- _icons/search.svg | 4 +- _icons/sun.svg | 2 +- _icons/swich-horizontal.svg | 8 +- _icons/switch-vertical.svg | 8 +- _icons/trash.svg | 10 +- _icons/upload.svg | 6 +- _icons/user-check.svg | 4 +- _icons/user-minus.svg | 4 +- _icons/user-plus.svg | 6 +- _icons/user-x.svg | 4 +- _icons/user.svg | 2 +- _icons/viewfinder.svg | 10 +- _icons/zoom-in.svg | 8 +- _icons/zoom-out.svg | 6 +- gulpfile.js | 12 +- icons.svg | 266 ++++++++++++++++++------------------- 86 files changed, 373 insertions(+), 370 deletions(-) diff --git a/_icons/ajdustments.svg b/_icons/ajdustments.svg index b704cca..b340ad1 100644 --- a/_icons/ajdustments.svg +++ b/_icons/ajdustments.svg @@ -4,10 +4,10 @@ - + - + diff --git a/_icons/arrow-down-circle.svg b/_icons/arrow-down-circle.svg index dd2629f..cf1f6fb 100644 --- a/_icons/arrow-down-circle.svg +++ b/_icons/arrow-down-circle.svg @@ -2,7 +2,7 @@ --- - + diff --git a/_icons/arrow-down-left-circle.svg b/_icons/arrow-down-left-circle.svg index 951f580..4de1351 100644 --- a/_icons/arrow-down-left-circle.svg +++ b/_icons/arrow-down-left-circle.svg @@ -2,6 +2,6 @@ --- - + diff --git a/_icons/arrow-down-right-circle.svg b/_icons/arrow-down-right-circle.svg index e55a661..afc04ac 100644 --- a/_icons/arrow-down-right-circle.svg +++ b/_icons/arrow-down-right-circle.svg @@ -2,6 +2,6 @@ --- - + diff --git a/_icons/arrow-left-circle.svg b/_icons/arrow-left-circle.svg index aea56cb..0300866 100644 --- a/_icons/arrow-left-circle.svg +++ b/_icons/arrow-left-circle.svg @@ -2,7 +2,7 @@ --- - + diff --git a/_icons/arrow-narrow-up.svg b/_icons/arrow-narrow-up.svg index 41c4997..0ed04ce 100644 --- a/_icons/arrow-narrow-up.svg +++ b/_icons/arrow-narrow-up.svg @@ -1,7 +1,7 @@ --- --- - - - + + + diff --git a/_icons/arrow-right-circle.svg b/_icons/arrow-right-circle.svg index f36f901..4a409d7 100644 --- a/_icons/arrow-right-circle.svg +++ b/_icons/arrow-right-circle.svg @@ -2,7 +2,7 @@ --- - + diff --git a/_icons/arrow-up-circle.svg b/_icons/arrow-up-circle.svg index 9e46b27..c8142e7 100644 --- a/_icons/arrow-up-circle.svg +++ b/_icons/arrow-up-circle.svg @@ -2,7 +2,7 @@ --- - + diff --git a/_icons/arrow-up-left-circle.svg b/_icons/arrow-up-left-circle.svg index 056deb0..7d5f597 100644 --- a/_icons/arrow-up-left-circle.svg +++ b/_icons/arrow-up-left-circle.svg @@ -2,6 +2,6 @@ --- - + diff --git a/_icons/arrow-up-right-circle.svg b/_icons/arrow-up-right-circle.svg index 8dba862..2462703 100644 --- a/_icons/arrow-up-right-circle.svg +++ b/_icons/arrow-up-right-circle.svg @@ -2,6 +2,6 @@ --- - + diff --git a/_icons/battery-1.svg b/_icons/battery-1.svg index fa6663b..68643f9 100644 --- a/_icons/battery-1.svg +++ b/_icons/battery-1.svg @@ -2,7 +2,6 @@ group: battery --- - - + + - diff --git a/_icons/battery-2.svg b/_icons/battery-2.svg index 6856ba3..121344e 100644 --- a/_icons/battery-2.svg +++ b/_icons/battery-2.svg @@ -2,8 +2,7 @@ group: battery --- - - - + + + - diff --git a/_icons/battery-3.svg b/_icons/battery-3.svg index 0489a1b..49d453b 100644 --- a/_icons/battery-3.svg +++ b/_icons/battery-3.svg @@ -2,8 +2,8 @@ group: battery --- - - - - + + + + diff --git a/_icons/battery-4.svg b/_icons/battery-4.svg index c0995de..decb6a0 100644 --- a/_icons/battery-4.svg +++ b/_icons/battery-4.svg @@ -2,9 +2,9 @@ group: battery --- - - - - - + + + + + diff --git a/_icons/battery-charging.svg b/_icons/battery-charging.svg index 33da7be..10d1ef1 100644 --- a/_icons/battery-charging.svg +++ b/_icons/battery-charging.svg @@ -2,7 +2,7 @@ group: battery --- - + - + diff --git a/_icons/battery.svg b/_icons/battery.svg index 38ac7a3..cabaf03 100644 --- a/_icons/battery.svg +++ b/_icons/battery.svg @@ -2,5 +2,5 @@ group: battery --- - + diff --git a/_icons/bookmark.svg b/_icons/bookmark.svg index 7460087..94fff72 100644 --- a/_icons/bookmark.svg +++ b/_icons/bookmark.svg @@ -1,5 +1,5 @@ --- --- - + diff --git a/_icons/border-bottom.svg b/_icons/border-bottom.svg index efa6cd7..c11b0bd 100644 --- a/_icons/border-bottom.svg +++ b/_icons/border-bottom.svg @@ -3,10 +3,10 @@ - - - - - + + + + + diff --git a/_icons/border-horizontal.svg b/_icons/border-horizontal.svg index a558417..a0fbaac 100644 --- a/_icons/border-horizontal.svg +++ b/_icons/border-horizontal.svg @@ -3,10 +3,10 @@ - - - - - + + + + + diff --git a/_icons/border-inner.svg b/_icons/border-inner.svg index 660b51e..bb8b46b 100644 --- a/_icons/border-inner.svg +++ b/_icons/border-inner.svg @@ -4,9 +4,9 @@ - - - - + + + + diff --git a/_icons/border-left.svg b/_icons/border-left.svg index 93bf952..c756815 100644 --- a/_icons/border-left.svg +++ b/_icons/border-left.svg @@ -3,10 +3,10 @@ - - - - - + + + + + diff --git a/_icons/border-none.svg b/_icons/border-none.svg index 846225e..ac8fe8e 100644 --- a/_icons/border-none.svg +++ b/_icons/border-none.svg @@ -2,11 +2,11 @@ --- - - - - - - + + + + + + diff --git a/_icons/border-outer.svg b/_icons/border-outer.svg index bfb1141..85b2ed6 100644 --- a/_icons/border-outer.svg +++ b/_icons/border-outer.svg @@ -3,7 +3,7 @@ - - + + diff --git a/_icons/border-right.svg b/_icons/border-right.svg index 9e8d37d..abcfd48 100644 --- a/_icons/border-right.svg +++ b/_icons/border-right.svg @@ -3,10 +3,10 @@ - - - - - + + + + + diff --git a/_icons/border-top.svg b/_icons/border-top.svg index 8c34639..a2eab10 100644 --- a/_icons/border-top.svg +++ b/_icons/border-top.svg @@ -3,10 +3,10 @@ - - - - - + + + + + diff --git a/_icons/border-vertical.svg b/_icons/border-vertical.svg index a10ec5b..4295a58 100644 --- a/_icons/border-vertical.svg +++ b/_icons/border-vertical.svg @@ -3,10 +3,10 @@ - - - - - + + + + + diff --git a/_icons/bulb-off.svg b/_icons/bulb-off.svg index 938ad77..c023230 100644 --- a/_icons/bulb-off.svg +++ b/_icons/bulb-off.svg @@ -1,6 +1,6 @@ --- --- - - + + diff --git a/_icons/bulb.svg b/_icons/bulb.svg index 186cde2..9d944f6 100644 --- a/_icons/bulb.svg +++ b/_icons/bulb.svg @@ -1,7 +1,7 @@ --- --- - - - + + + diff --git a/_icons/calendar.svg b/_icons/calendar.svg index b0f2c41..e178483 100644 --- a/_icons/calendar.svg +++ b/_icons/calendar.svg @@ -1,11 +1,10 @@ --- --- - - - - - - - + + + + + + diff --git a/_icons/camera.svg b/_icons/camera.svg index 879b939..95133fe 100644 --- a/_icons/camera.svg +++ b/_icons/camera.svg @@ -1,6 +1,6 @@ --- --- - + diff --git a/_icons/cash.svg b/_icons/cash.svg index 5a6b75f..913ac37 100644 --- a/_icons/cash.svg +++ b/_icons/cash.svg @@ -1,7 +1,7 @@ --- --- - + - + diff --git a/_icons/clipboard-check.svg b/_icons/clipboard-check.svg index 74d887d..bec4edc 100644 --- a/_icons/clipboard-check.svg +++ b/_icons/clipboard-check.svg @@ -3,5 +3,5 @@ - + diff --git a/_icons/clipboard-list.svg b/_icons/clipboard-list.svg index bf57104..198a547 100644 --- a/_icons/clipboard-list.svg +++ b/_icons/clipboard-list.svg @@ -3,8 +3,8 @@ - - - - + + + + diff --git a/_icons/clipboard-x.svg b/_icons/clipboard-x.svg index 779a414..77b6b53 100644 --- a/_icons/clipboard-x.svg +++ b/_icons/clipboard-x.svg @@ -3,5 +3,5 @@ - + diff --git a/_icons/cloud-rain.svg b/_icons/cloud-rain.svg index f985a48..5228eb9 100644 --- a/_icons/cloud-rain.svg +++ b/_icons/cloud-rain.svg @@ -2,6 +2,6 @@ group: weather --- - - + + diff --git a/_icons/cloud-snow.svg b/_icons/cloud-snow.svg index afd065d..67e1f8e 100644 --- a/_icons/cloud-snow.svg +++ b/_icons/cloud-snow.svg @@ -2,6 +2,6 @@ group: weather --- - - + + diff --git a/_icons/cloud-storm.svg b/_icons/cloud-storm.svg index f43d73a..56f04a5 100644 --- a/_icons/cloud-storm.svg +++ b/_icons/cloud-storm.svg @@ -2,6 +2,6 @@ group: weather --- - - + + diff --git a/_icons/cloud.svg b/_icons/cloud.svg index 1596f38..7635d47 100644 --- a/_icons/cloud.svg +++ b/_icons/cloud.svg @@ -2,5 +2,5 @@ group: weather --- - + diff --git a/_icons/code.svg b/_icons/code.svg index 22b82a7..0273570 100644 --- a/_icons/code.svg +++ b/_icons/code.svg @@ -3,5 +3,5 @@ - + diff --git a/_icons/cog.svg b/_icons/cog.svg index e5d0039..08f19c5 100644 --- a/_icons/cog.svg +++ b/_icons/cog.svg @@ -1,6 +1,6 @@ --- --- - - + + diff --git a/_icons/copy.svg b/_icons/copy.svg index a1ddd7d..ab78c43 100644 --- a/_icons/copy.svg +++ b/_icons/copy.svg @@ -1,6 +1,6 @@ --- --- - - + + diff --git a/_icons/credit-card.svg b/_icons/credit-card.svg index da87cf6..0d92fbd 100644 --- a/_icons/credit-card.svg +++ b/_icons/credit-card.svg @@ -1,8 +1,8 @@ --- --- - - - - + + + + diff --git a/_icons/device-desktop.svg b/_icons/device-desktop.svg index 25563c4..e93b114 100644 --- a/_icons/device-desktop.svg +++ b/_icons/device-desktop.svg @@ -1,8 +1,8 @@ --- --- - - - - + + + + diff --git a/_icons/device-mobile.svg b/_icons/device-mobile.svg index 3d11be9..563fd2a 100644 --- a/_icons/device-mobile.svg +++ b/_icons/device-mobile.svg @@ -1,7 +1,7 @@ --- --- - - - + + + diff --git a/_icons/device-tablet.svg b/_icons/device-tablet.svg index 66fba6a..fae0f9a 100644 --- a/_icons/device-tablet.svg +++ b/_icons/device-tablet.svg @@ -1,6 +1,6 @@ --- --- - + diff --git a/_icons/download.svg b/_icons/download.svg index 2df5c6b..b74b04e 100644 --- a/_icons/download.svg +++ b/_icons/download.svg @@ -2,7 +2,7 @@ group: download --- - - - + + + diff --git a/_icons/file-check.svg b/_icons/file-check.svg index 03c29b4..b43696b 100644 --- a/_icons/file-check.svg +++ b/_icons/file-check.svg @@ -1,7 +1,7 @@ --- --- - - - + + + diff --git a/_icons/file-download.svg b/_icons/file-download.svg index 73a1f0e..3b2cb66 100644 --- a/_icons/file-download.svg +++ b/_icons/file-download.svg @@ -1,8 +1,8 @@ --- --- - - + + - + diff --git a/_icons/file-minus.svg b/_icons/file-minus.svg index b920bb2..c0e7dfe 100644 --- a/_icons/file-minus.svg +++ b/_icons/file-minus.svg @@ -1,7 +1,7 @@ --- --- - - + + diff --git a/_icons/file-plus.svg b/_icons/file-plus.svg index 7bb1a7d..37b6292 100644 --- a/_icons/file-plus.svg +++ b/_icons/file-plus.svg @@ -1,8 +1,8 @@ --- --- - - + + diff --git a/_icons/file-text.svg b/_icons/file-text.svg index 92efa8f..7ce900b 100644 --- a/_icons/file-text.svg +++ b/_icons/file-text.svg @@ -1,8 +1,8 @@ --- --- - - + + diff --git a/_icons/file-x.svg b/_icons/file-x.svg index a2c8d4d..405660f 100644 --- a/_icons/file-x.svg +++ b/_icons/file-x.svg @@ -1,7 +1,7 @@ --- --- - - - + + + diff --git a/_icons/file.svg b/_icons/file.svg index d74cebd..413b472 100644 --- a/_icons/file.svg +++ b/_icons/file.svg @@ -1,6 +1,6 @@ --- --- - - + + diff --git a/_icons/flag.svg b/_icons/flag.svg index 66fc8e7..54f9735 100644 --- a/_icons/flag.svg +++ b/_icons/flag.svg @@ -1,8 +1,8 @@ --- --- - - - - + + + + diff --git a/_icons/grid.svg b/_icons/grid.svg index e49f7c1..a293b06 100644 --- a/_icons/grid.svg +++ b/_icons/grid.svg @@ -1,8 +1,8 @@ --- --- - - - - + + + + diff --git a/_icons/heart.svg b/_icons/heart.svg index 1b1ea6f..de4162e 100644 --- a/_icons/heart.svg +++ b/_icons/heart.svg @@ -1,5 +1,5 @@ --- --- - + diff --git a/_icons/ice-cream.svg b/_icons/ice-cream.svg index ef77ea7..3f74a99 100644 --- a/_icons/ice-cream.svg +++ b/_icons/ice-cream.svg @@ -1,7 +1,7 @@ --- --- - - - + + + diff --git a/_icons/key.svg b/_icons/key.svg index ac561e3..9d56769 100644 --- a/_icons/key.svg +++ b/_icons/key.svg @@ -1,8 +1,8 @@ --- --- - - - - + + + + diff --git a/_icons/layout.svg b/_icons/layout.svg index 0fe5fea..f67ec91 100644 --- a/_icons/layout.svg +++ b/_icons/layout.svg @@ -1,7 +1,7 @@ --- --- - - - + + + diff --git a/_icons/lock-open.svg b/_icons/lock-open.svg index b2ef879..9838aab 100644 --- a/_icons/lock-open.svg +++ b/_icons/lock-open.svg @@ -1,7 +1,7 @@ --- --- - - - + + + diff --git a/_icons/lock.svg b/_icons/lock.svg index 24ab4f8..8f3147c 100644 --- a/_icons/lock.svg +++ b/_icons/lock.svg @@ -1,7 +1,7 @@ --- --- - - - + + + diff --git a/_icons/magnet.svg b/_icons/magnet.svg index 9adc5ef..43a6a37 100644 --- a/_icons/magnet.svg +++ b/_icons/magnet.svg @@ -1,7 +1,7 @@ --- --- - - - + + + diff --git a/_icons/map-pin.svg b/_icons/map-pin.svg index d026838..ad3d4b3 100644 --- a/_icons/map-pin.svg +++ b/_icons/map-pin.svg @@ -1,6 +1,6 @@ --- --- - - + + diff --git a/_icons/map.svg b/_icons/map.svg index 956f111..32a28a1 100644 --- a/_icons/map.svg +++ b/_icons/map.svg @@ -1,7 +1,7 @@ --- --- - - - + + + diff --git a/_icons/mood-sad.svg b/_icons/mood-sad.svg index 73f1585..76aa8ea 100644 --- a/_icons/mood-sad.svg +++ b/_icons/mood-sad.svg @@ -4,5 +4,5 @@ - + diff --git a/_icons/mood-smile.svg b/_icons/mood-smile.svg index e489a14..d1a0f8e 100644 --- a/_icons/mood-smile.svg +++ b/_icons/mood-smile.svg @@ -4,5 +4,5 @@ - + diff --git a/_icons/moon.svg b/_icons/moon.svg index be33f28..cec6907 100644 --- a/_icons/moon.svg +++ b/_icons/moon.svg @@ -1,5 +1,5 @@ --- --- - + diff --git a/_icons/photo.svg b/_icons/photo.svg index a797f09..be039f6 100644 --- a/_icons/photo.svg +++ b/_icons/photo.svg @@ -3,6 +3,6 @@ - - + + diff --git a/_icons/printer.svg b/_icons/printer.svg index 2c51897..1746682 100644 --- a/_icons/printer.svg +++ b/_icons/printer.svg @@ -1,7 +1,7 @@ --- --- - - - + + + diff --git a/_icons/qrcode.svg b/_icons/qrcode.svg index 90dbe5b..0c9a5be 100644 --- a/_icons/qrcode.svg +++ b/_icons/qrcode.svg @@ -1,16 +1,16 @@ --- --- - - - - - - - - - - - - + + + + + + + + + + + + diff --git a/_icons/search.svg b/_icons/search.svg index 59d8fa4..ac60416 100644 --- a/_icons/search.svg +++ b/_icons/search.svg @@ -1,6 +1,6 @@ --- --- - - + + diff --git a/_icons/sun.svg b/_icons/sun.svg index 8176eeb..7d246ca 100644 --- a/_icons/sun.svg +++ b/_icons/sun.svg @@ -3,5 +3,5 @@ group: weather --- - + diff --git a/_icons/swich-horizontal.svg b/_icons/swich-horizontal.svg index 8527d4b..e82c137 100644 --- a/_icons/swich-horizontal.svg +++ b/_icons/swich-horizontal.svg @@ -1,8 +1,8 @@ --- --- - - - - + + + + diff --git a/_icons/switch-vertical.svg b/_icons/switch-vertical.svg index d648649..b94844e 100644 --- a/_icons/switch-vertical.svg +++ b/_icons/switch-vertical.svg @@ -2,9 +2,9 @@ --- - - - - + + + + diff --git a/_icons/trash.svg b/_icons/trash.svg index 833b87f..6c74ca5 100644 --- a/_icons/trash.svg +++ b/_icons/trash.svg @@ -1,9 +1,9 @@ --- --- - - - - - + + + + + diff --git a/_icons/upload.svg b/_icons/upload.svg index cee55d4..c38c832 100644 --- a/_icons/upload.svg +++ b/_icons/upload.svg @@ -2,7 +2,7 @@ group: download --- - - - + + + diff --git a/_icons/user-check.svg b/_icons/user-check.svg index 80c32b8..0686726 100644 --- a/_icons/user-check.svg +++ b/_icons/user-check.svg @@ -1,7 +1,7 @@ --- --- - + - + diff --git a/_icons/user-minus.svg b/_icons/user-minus.svg index 13a14ed..5325279 100644 --- a/_icons/user-minus.svg +++ b/_icons/user-minus.svg @@ -1,7 +1,7 @@ --- --- - + - + diff --git a/_icons/user-plus.svg b/_icons/user-plus.svg index 085c6ac..6dd356a 100644 --- a/_icons/user-plus.svg +++ b/_icons/user-plus.svg @@ -1,8 +1,8 @@ --- --- - + - - + + diff --git a/_icons/user-x.svg b/_icons/user-x.svg index 4a62aa0..5345b89 100644 --- a/_icons/user-x.svg +++ b/_icons/user-x.svg @@ -1,7 +1,7 @@ --- --- - + - + diff --git a/_icons/user.svg b/_icons/user.svg index 6fe5c17..e08ed68 100644 --- a/_icons/user.svg +++ b/_icons/user.svg @@ -1,6 +1,6 @@ --- --- - + diff --git a/_icons/viewfinder.svg b/_icons/viewfinder.svg index 27f511b..a55090f 100644 --- a/_icons/viewfinder.svg +++ b/_icons/viewfinder.svg @@ -2,9 +2,9 @@ --- - - - - - + + + + + diff --git a/_icons/zoom-in.svg b/_icons/zoom-in.svg index bea038d..55f1282 100644 --- a/_icons/zoom-in.svg +++ b/_icons/zoom-in.svg @@ -1,8 +1,8 @@ --- --- - - - - + + + + diff --git a/_icons/zoom-out.svg b/_icons/zoom-out.svg index c384706..6ebbb57 100644 --- a/_icons/zoom-out.svg +++ b/_icons/zoom-out.svg @@ -1,7 +1,7 @@ --- --- - - - + + + diff --git a/gulpfile.js b/gulpfile.js index beb3969..c5939f7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -51,16 +51,22 @@ gulp.task('icons-sprite', function (cb) { }); }); -gulp.task('optimize', function(){ - glob("_site/icons/*.svg", {}, function (er, files) { +gulp.task('optimize', function(cb){ + glob("_icons/*.svg", {}, function (er, files) { files.forEach(function (file, i) { let svgFile = fs.readFileSync(file), svgFileContent = svgFile.toString(); svgFileContent = svgFileContent - .replace(/><\/(polyline|line|rect|circle)>/, '/>') + .replace(/><\/(polyline|line|rect|circle|path)>/g, '/>') + .replace(/rx="([^"]+)"\s+ry="\1"/g, 'rx="$1"') + .replace(/\s?\/>/g, ' />') + .replace(/\n\s*<(line|circle|path|polyline)/g, "\n <$1") + .replace(/polyline points="([0-9.]+)\s([0-9.]+)\s([0-9.]+)\s([0-9.]+)"/g, 'line x1="$1" y1="$2" x2="$3" y2="$4"') .replace(/\n\n+/g, "\n"); + + console.log('file', file); fs.writeFileSync(file, svgFileContent); }); diff --git a/icons.svg b/icons.svg index 260ce3e..d9c4b0c 100644 --- a/icons.svg +++ b/icons.svg @@ -1,280 +1,280 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -410,4 +410,4 @@ - \ No newline at end of file + -- cgit v1.2.1