diff --git a/dist/sprite/symbol/ant.svg b/dist/sprite/symbol/ant.svg index 1ac6cf04..d25f0505 100644 --- a/dist/sprite/symbol/ant.svg +++ b/dist/sprite/symbol/ant.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/awesome.svg b/dist/sprite/symbol/awesome.svg index 227e0307..6058b9bd 100644 --- a/dist/sprite/symbol/awesome.svg +++ b/dist/sprite/symbol/awesome.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/bootstrap.svg b/dist/sprite/symbol/bootstrap.svg index 17f3b7cb..b3b56b4c 100644 --- a/dist/sprite/symbol/bootstrap.svg +++ b/dist/sprite/symbol/bootstrap.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/dev.svg b/dist/sprite/symbol/dev.svg index d6121372..81138c78 100644 --- a/dist/sprite/symbol/dev.svg +++ b/dist/sprite/symbol/dev.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/elusive.svg b/dist/sprite/symbol/elusive.svg index 8a93374e..ea05b9f3 100644 --- a/dist/sprite/symbol/elusive.svg +++ b/dist/sprite/symbol/elusive.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/entypo.svg b/dist/sprite/symbol/entypo.svg index 36863512..d5a80fd4 100644 --- a/dist/sprite/symbol/entypo.svg +++ b/dist/sprite/symbol/entypo.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/evil.svg b/dist/sprite/symbol/evil.svg index 2af28abb..d77e2e6c 100644 --- a/dist/sprite/symbol/evil.svg +++ b/dist/sprite/symbol/evil.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/flag.svg b/dist/sprite/symbol/flag.svg index 63c18c39..b817805d 100644 --- a/dist/sprite/symbol/flag.svg +++ b/dist/sprite/symbol/flag.svg @@ -1 +1 @@ -Flag of the People's Republic of ChinaThe United States of America flag, produced by Daniel McRaeThe United States of America flag, produced by Daniel McRaeLEOTERRRRREOOAAAMPPPITTMGGUAMGUAMLIBERTASFlag of South SudanThe United States of America flag, produced by Daniel McRaeThe United States of America flag, produced by Daniel McRae \ No newline at end of file +Flag of the People's Republic of ChinaThe United States of America flag, produced by Daniel McRaeThe United States of America flag, produced by Daniel McRaeLEOTERRRRREOOAAAMPPPITTMGGUAMGUAMLIBERTASFlag of South SudanThe United States of America flag, produced by Daniel McRaeThe United States of America flag, produced by Daniel McRae \ No newline at end of file diff --git a/dist/sprite/symbol/flat.svg b/dist/sprite/symbol/flat.svg index b00142b5..eef4fb8c 100644 --- a/dist/sprite/symbol/flat.svg +++ b/dist/sprite/symbol/flat.svg @@ -1 +1 @@ -POPULAR \ No newline at end of file +POPULAR \ No newline at end of file diff --git a/dist/sprite/symbol/foundation.svg b/dist/sprite/symbol/foundation.svg index 74d79c3f..cb4f3dcb 100644 --- a/dist/sprite/symbol/foundation.svg +++ b/dist/sprite/symbol/foundation.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/geom.svg b/dist/sprite/symbol/geom.svg index d04b4018..7ff34147 100644 --- a/dist/sprite/symbol/geom.svg +++ b/dist/sprite/symbol/geom.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/icomoon.svg b/dist/sprite/symbol/icomoon.svg index ec7815d8..d28e20da 100644 --- a/dist/sprite/symbol/icomoon.svg +++ b/dist/sprite/symbol/icomoon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/ionic.svg b/dist/sprite/symbol/ionic.svg index af511840..681845be 100644 --- a/dist/sprite/symbol/ionic.svg +++ b/dist/sprite/symbol/ionic.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/logos.svg b/dist/sprite/symbol/logos.svg index 33ba129d..c4ff13c6 100644 --- a/dist/sprite/symbol/logos.svg +++ b/dist/sprite/symbol/logos.svg @@ -1 +1 @@ -Fill 1 \ No newline at end of file +Fill 1 \ No newline at end of file diff --git a/dist/sprite/symbol/maki.svg b/dist/sprite/symbol/maki.svg index 85ff172a..a1cbc830 100644 --- a/dist/sprite/symbol/maki.svg +++ b/dist/sprite/symbol/maki.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/map.svg b/dist/sprite/symbol/map.svg index 3fc47526..c6730716 100644 --- a/dist/sprite/symbol/map.svg +++ b/dist/sprite/symbol/map.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/material.svg b/dist/sprite/symbol/material.svg index e0edd2b8..c7966de3 100644 --- a/dist/sprite/symbol/material.svg +++ b/dist/sprite/symbol/material.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/metro.svg b/dist/sprite/symbol/metro.svg index 30c128ef..0adfd4a3 100644 --- a/dist/sprite/symbol/metro.svg +++ b/dist/sprite/symbol/metro.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/mfglabs.svg b/dist/sprite/symbol/mfglabs.svg index cf0f93dc..5c254165 100644 --- a/dist/sprite/symbol/mfglabs.svg +++ b/dist/sprite/symbol/mfglabs.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/oct.svg b/dist/sprite/symbol/oct.svg index 95daac0b..e2a7ac41 100644 --- a/dist/sprite/symbol/oct.svg +++ b/dist/sprite/symbol/oct.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/open.svg b/dist/sprite/symbol/open.svg index 7cdc9e3f..07fdcb99 100644 --- a/dist/sprite/symbol/open.svg +++ b/dist/sprite/symbol/open.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/payment-web.svg b/dist/sprite/symbol/payment-web.svg index 86acb8bf..4bcf4671 100644 --- a/dist/sprite/symbol/payment-web.svg +++ b/dist/sprite/symbol/payment-web.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/payment.svg b/dist/sprite/symbol/payment.svg index 51c4443d..fb93050f 100644 --- a/dist/sprite/symbol/payment.svg +++ b/dist/sprite/symbol/payment.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/simple.svg b/dist/sprite/symbol/simple.svg index 95c75148..04a42a3d 100644 --- a/dist/sprite/symbol/simple.svg +++ b/dist/sprite/symbol/simple.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/subway.svg b/dist/sprite/symbol/subway.svg index 48758478..6b2513d2 100644 --- a/dist/sprite/symbol/subway.svg +++ b/dist/sprite/symbol/subway.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/typcn.svg b/dist/sprite/symbol/typcn.svg index 4e926cfb..4f6814f5 100644 --- a/dist/sprite/symbol/typcn.svg +++ b/dist/sprite/symbol/typcn.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/weather.svg b/dist/sprite/symbol/weather.svg index 86356c9c..2c2fc91b 100644 --- a/dist/sprite/symbol/weather.svg +++ b/dist/sprite/symbol/weather.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/windows.svg b/dist/sprite/symbol/windows.svg index 953b9884..bd86b488 100644 --- a/dist/sprite/symbol/windows.svg +++ b/dist/sprite/symbol/windows.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/zero.svg b/dist/sprite/symbol/zero.svg index d9b304cf..9478717f 100644 --- a/dist/sprite/symbol/zero.svg +++ b/dist/sprite/symbol/zero.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/sprite/symbol/zocial.svg b/dist/sprite/symbol/zocial.svg index 16caaf33..62522d35 100644 --- a/dist/sprite/symbol/zocial.svg +++ b/dist/sprite/symbol/zocial.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/gulp/svg-sprite.js b/gulp/svg-sprite.js index b2c3ff86..c6e6588f 100644 --- a/gulp/svg-sprite.js +++ b/gulp/svg-sprite.js @@ -25,7 +25,7 @@ function reduceAttrs() { gutil.log(file.path); const doc = domParser.parseFromString(file.contents.toString('utf8')); const svgElement = doc.getElementsByTagName('svg')[0]; - svgElement.setAttribute('style', 'display:none;'); + svgElement.setAttribute('style', 'width:0;height:0;position:absolute;opacity:0;'); file.contents = new Buffer(doc.toString()); } catch (err) { this.emit('error', new gutil.PluginError('svg-sprite', err.toString())); diff --git a/lib/build.js b/lib/build.js index 310d9d99..ef05abae 100644 --- a/lib/build.js +++ b/lib/build.js @@ -38,7 +38,7 @@ module.exports = (options) => { symbols.push(svg2symbol(svgContent, id)); }); - const svgSprite = `${symbols.join('')}`; + const svgSprite = `${symbols.join('')}`; fs.writeFileSync(path.join(targetPath, 'svg-symbols.svg'), svgSprite, 'utf8'); fs.writeFileSync(path.join(targetPath, 'index.html'), template({ diff --git a/src/index.js b/src/index.js index 3c02312f..fa79b3f7 100644 --- a/src/index.js +++ b/src/index.js @@ -104,7 +104,7 @@ $('#download').on('click', () => { } return ''; }); - const svgSprite = `${symbols.join('')}`; + const svgSprite = `${symbols.join('')}`; const blob = new Blob([ svgSprite ], {