From bdb537e06d499cc8b13285f0f50e5ba0b4a64473 Mon Sep 17 00:00:00 2001 From: codecalm Date: Mon, 2 Mar 2020 00:59:10 +0100 Subject: [PATCH] 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 f1f705c4c..fa6663bab 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 5c95433fc..6856ba338 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 652a7ee79..0489a1bce 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 9c0ce4b03..c0995de6b 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 09126e020..33da7be65 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 000000000..938ad7702 --- /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 000000000..186cde24f --- /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 000000000..b0f2c41ac --- /dev/null +++ b/_icons/calendar.svg @@ -0,0 +1,11 @@ +--- +--- + + + + + + + + + diff --git a/_icons/clipboard-list.svg b/_icons/clipboard-list.svg index d511587a5..bf571040d 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 000000000..f43d73aa9 --- /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 0fac0379d..da87cf6c2 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 34bc263bd..25563c4c8 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 74aad4ef4..3d11be9aa 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 1a6a4fc32..2df5c6bb4 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 000000000..66fc8e72f --- /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 000000000..ef77ea776 --- /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 000000000..ac561e353 --- /dev/null +++ b/_icons/key.svg @@ -0,0 +1,8 @@ +--- +--- + + + + + + diff --git a/_icons/lock-open.svg b/_icons/lock-open.svg index d63702d69..b2ef8791b 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 834c321ee..24ab4f88c 100644 --- a/_icons/lock.svg +++ b/_icons/lock.svg @@ -2,6 +2,6 @@ --- - + diff --git a/_icons/magnet.svg b/_icons/magnet.svg index 68080efa9..9adc5ef00 100644 --- a/_icons/magnet.svg +++ b/_icons/magnet.svg @@ -2,6 +2,6 @@ --- - - + + diff --git a/_icons/map.svg b/_icons/map.svg index 8d8e8aace..956f11127 100644 --- a/_icons/map.svg +++ b/_icons/map.svg @@ -1,7 +1,7 @@ --- --- - - - + + + diff --git a/_icons/moon.svg b/_icons/moon.svg index a2b2595b8..be33f28e5 100644 --- a/_icons/moon.svg +++ b/_icons/moon.svg @@ -1,5 +1,5 @@ --- --- - + diff --git a/_icons/search.svg b/_icons/search.svg index 048dd8260..59d8fa457 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 000000000..833b87fae --- /dev/null +++ b/_icons/trash.svg @@ -0,0 +1,9 @@ +--- +--- + + + + + + + diff --git a/_icons/upload.svg b/_icons/upload.svg index 2dd97a4ae..cee55d47f 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 30e984d3c..13a14edd2 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 3d065db7f..085c6ac85 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 65106e343..27f511b78 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 70b692b72..bea038db5 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 f19586153..c38470677 100644 --- a/_icons/zoom-out.svg +++ b/_icons/zoom-out.svg @@ -2,6 +2,6 @@ --- - - + + diff --git a/gulpfile.js b/gulpfile.js index a1a8c1e3c..beb3969de 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 99c07accb..260ce3ebf 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