From bdb537e06d499cc8b13285f0f50e5ba0b4a64473 Mon Sep 17 00:00:00 2001 From: codecalm Date: Mon, 2 Mar 2020 00:59:10 +0100 Subject: new icons --- _icons/battery-1.svg | 2 +- _icons/battery-2.svg | 4 +- _icons/battery-3.svg | 6 +- _icons/battery-4.svg | 8 +- _icons/battery-charging.svg | 6 +- _icons/bulb-off.svg | 6 ++ _icons/bulb.svg | 7 ++ _icons/calendar.svg | 11 +++ _icons/clipboard-list.svg | 8 +- _icons/cloud-storm.svg | 7 ++ _icons/credit-card.svg | 6 +- _icons/device-desktop.svg | 6 +- _icons/device-mobile.svg | 4 +- _icons/download.svg | 4 +- _icons/flag.svg | 8 ++ _icons/ice-cream.svg | 7 ++ _icons/key.svg | 8 ++ _icons/lock-open.svg | 2 +- _icons/lock.svg | 2 +- _icons/magnet.svg | 4 +- _icons/map.svg | 6 +- _icons/moon.svg | 2 +- _icons/search.svg | 2 +- _icons/trash.svg | 9 ++ _icons/upload.svg | 4 +- _icons/user-minus.svg | 2 +- _icons/user-plus.svg | 4 +- _icons/viewfinder.svg | 10 +- _icons/zoom-in.svg | 6 +- _icons/zoom-out.svg | 4 +- gulpfile.js | 18 ++++ icons.svg | 230 ++++++++++++++++++++++++-------------------- 32 files changed, 259 insertions(+), 154 deletions(-) create mode 100644 _icons/bulb-off.svg create mode 100644 _icons/bulb.svg create mode 100644 _icons/calendar.svg create mode 100644 _icons/cloud-storm.svg create mode 100644 _icons/flag.svg create mode 100644 _icons/ice-cream.svg create mode 100644 _icons/key.svg create mode 100644 _icons/trash.svg diff --git a/_icons/battery-1.svg b/_icons/battery-1.svg index f1f705c4..fa6663ba 100644 --- a/_icons/battery-1.svg +++ b/_icons/battery-1.svg @@ -3,6 +3,6 @@ group: battery --- - + diff --git a/_icons/battery-2.svg b/_icons/battery-2.svg index 5c95433f..6856ba33 100644 --- a/_icons/battery-2.svg +++ b/_icons/battery-2.svg @@ -3,7 +3,7 @@ group: battery --- - - + + diff --git a/_icons/battery-3.svg b/_icons/battery-3.svg index 652a7ee7..0489a1bc 100644 --- a/_icons/battery-3.svg +++ b/_icons/battery-3.svg @@ -3,7 +3,7 @@ group: battery --- - - - + + + diff --git a/_icons/battery-4.svg b/_icons/battery-4.svg index 9c0ce4b0..c0995de6 100644 --- a/_icons/battery-4.svg +++ b/_icons/battery-4.svg @@ -3,8 +3,8 @@ group: battery --- - - - - + + + + diff --git a/_icons/battery-charging.svg b/_icons/battery-charging.svg index 09126e02..33da7be6 100644 --- a/_icons/battery-charging.svg +++ b/_icons/battery-charging.svg @@ -2,7 +2,7 @@ group: battery --- - - - + + + diff --git a/_icons/bulb-off.svg b/_icons/bulb-off.svg new file mode 100644 index 00000000..938ad770 --- /dev/null +++ b/_icons/bulb-off.svg @@ -0,0 +1,6 @@ +--- +--- + + + + diff --git a/_icons/bulb.svg b/_icons/bulb.svg new file mode 100644 index 00000000..186cde24 --- /dev/null +++ b/_icons/bulb.svg @@ -0,0 +1,7 @@ +--- +--- + + + + + diff --git a/_icons/calendar.svg b/_icons/calendar.svg new file mode 100644 index 00000000..b0f2c41a --- /dev/null +++ b/_icons/calendar.svg @@ -0,0 +1,11 @@ +--- +--- + + + + + + + + + diff --git a/_icons/clipboard-list.svg b/_icons/clipboard-list.svg index d511587a..bf571040 100644 --- a/_icons/clipboard-list.svg +++ b/_icons/clipboard-list.svg @@ -3,8 +3,8 @@ - - - - + + + + diff --git a/_icons/cloud-storm.svg b/_icons/cloud-storm.svg new file mode 100644 index 00000000..f43d73aa --- /dev/null +++ b/_icons/cloud-storm.svg @@ -0,0 +1,7 @@ +--- +group: weather +--- + + + + diff --git a/_icons/credit-card.svg b/_icons/credit-card.svg index 0fac0379..da87cf6c 100644 --- a/_icons/credit-card.svg +++ b/_icons/credit-card.svg @@ -2,7 +2,7 @@ --- - - - + + + diff --git a/_icons/device-desktop.svg b/_icons/device-desktop.svg index 34bc263b..25563c4c 100644 --- a/_icons/device-desktop.svg +++ b/_icons/device-desktop.svg @@ -2,7 +2,7 @@ --- - - - + + + diff --git a/_icons/device-mobile.svg b/_icons/device-mobile.svg index 74aad4ef..3d11be9a 100644 --- a/_icons/device-mobile.svg +++ b/_icons/device-mobile.svg @@ -2,6 +2,6 @@ --- - - + + diff --git a/_icons/download.svg b/_icons/download.svg index 1a6a4fc3..2df5c6bb 100644 --- a/_icons/download.svg +++ b/_icons/download.svg @@ -3,6 +3,6 @@ group: download --- - - + + diff --git a/_icons/flag.svg b/_icons/flag.svg new file mode 100644 index 00000000..66fc8e72 --- /dev/null +++ b/_icons/flag.svg @@ -0,0 +1,8 @@ +--- +--- + + + + + + diff --git a/_icons/ice-cream.svg b/_icons/ice-cream.svg new file mode 100644 index 00000000..ef77ea77 --- /dev/null +++ b/_icons/ice-cream.svg @@ -0,0 +1,7 @@ +--- +--- + + + + + diff --git a/_icons/key.svg b/_icons/key.svg new file mode 100644 index 00000000..ac561e35 --- /dev/null +++ b/_icons/key.svg @@ -0,0 +1,8 @@ +--- +--- + + + + + + diff --git a/_icons/lock-open.svg b/_icons/lock-open.svg index d63702d6..b2ef8791 100644 --- a/_icons/lock-open.svg +++ b/_icons/lock-open.svg @@ -2,6 +2,6 @@ --- - + diff --git a/_icons/lock.svg b/_icons/lock.svg index 834c321e..24ab4f88 100644 --- a/_icons/lock.svg +++ b/_icons/lock.svg @@ -2,6 +2,6 @@ --- - + diff --git a/_icons/magnet.svg b/_icons/magnet.svg index 68080efa..9adc5ef0 100644 --- a/_icons/magnet.svg +++ b/_icons/magnet.svg @@ -2,6 +2,6 @@ --- - - + + diff --git a/_icons/map.svg b/_icons/map.svg index 8d8e8aac..956f1112 100644 --- a/_icons/map.svg +++ b/_icons/map.svg @@ -1,7 +1,7 @@ --- --- - - - + + + diff --git a/_icons/moon.svg b/_icons/moon.svg index a2b2595b..be33f28e 100644 --- a/_icons/moon.svg +++ b/_icons/moon.svg @@ -1,5 +1,5 @@ --- --- - + diff --git a/_icons/search.svg b/_icons/search.svg index 048dd826..59d8fa45 100644 --- a/_icons/search.svg +++ b/_icons/search.svg @@ -2,5 +2,5 @@ --- - + diff --git a/_icons/trash.svg b/_icons/trash.svg new file mode 100644 index 00000000..833b87fa --- /dev/null +++ b/_icons/trash.svg @@ -0,0 +1,9 @@ +--- +--- + + + + + + + diff --git a/_icons/upload.svg b/_icons/upload.svg index 2dd97a4a..cee55d47 100644 --- a/_icons/upload.svg +++ b/_icons/upload.svg @@ -3,6 +3,6 @@ group: download --- - - + + diff --git a/_icons/user-minus.svg b/_icons/user-minus.svg index 30e984d3..13a14edd 100644 --- a/_icons/user-minus.svg +++ b/_icons/user-minus.svg @@ -3,5 +3,5 @@ - + diff --git a/_icons/user-plus.svg b/_icons/user-plus.svg index 3d065db7..085c6ac8 100644 --- a/_icons/user-plus.svg +++ b/_icons/user-plus.svg @@ -3,6 +3,6 @@ - - + + diff --git a/_icons/viewfinder.svg b/_icons/viewfinder.svg index 65106e34..27f511b7 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 70b692b7..bea038db 100644 --- a/_icons/zoom-in.svg +++ b/_icons/zoom-in.svg @@ -2,7 +2,7 @@ --- - - - + + + diff --git a/_icons/zoom-out.svg b/_icons/zoom-out.svg index f1958615..c3847067 100644 --- a/_icons/zoom-out.svg +++ b/_icons/zoom-out.svg @@ -2,6 +2,6 @@ --- - - + + diff --git a/gulpfile.js b/gulpfile.js index a1a8c1e3..beb3969d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -50,3 +50,21 @@ gulp.task('icons-sprite', function (cb) { cb(); }); }); + +gulp.task('optimize', function(){ + glob("_site/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(/\n\n+/g, "\n"); + + fs.writeFileSync(file, svgFileContent); + }); + + cb(); + }); +}); diff --git a/icons.svg b/icons.svg index 99c07acc..260ce3eb 100644 --- a/icons.svg +++ b/icons.svg @@ -1,4 +1,4 @@ - + @@ -66,15 +66,15 @@ - + - + - + - + - + @@ -99,6 +99,12 @@ + + + + + + @@ -126,7 +132,7 @@ - + @@ -137,6 +143,8 @@ + + @@ -146,15 +154,15 @@ - + - + - + - + @@ -169,24 +177,30 @@ + + + + + + - + - + - + - + @@ -206,7 +220,7 @@ - + @@ -224,7 +238,7 @@ - + @@ -235,30 +249,32 @@ + + - + - + - + - + - + - + @@ -305,85 +321,93 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.1