Merge pull request #9357 from Chocobo1/svg

Fix icon height/width ratio
This commit is contained in:
sledgehammer999 2018-08-20 18:47:55 +03:00 committed by GitHub
commit c83d89385a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 4 deletions

8
src/icons/.svgo.yml Normal file
View File

@ -0,0 +1,8 @@
# config file for [SVGO](https://github.com/svg/svgo)
# SVGO: Node.js tool for optimizing SVG files
# svgo --config=<this file> <svg file>
multipass: true
js2svg:
pretty: true
indent: ' '

View File

@ -1,3 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23.200001 21.6" width="23.2" height="21.6"> <svg xmlns="http://www.w3.org/2000/svg" width="23.2" height="27.267">
<path d="M22.7 6.4L11.9 17.2l-2 2c-.2.2-.7.4-1 .4-.4 0-.7-.2-1-.4l-2-2-5.4-5.4c-.3-.3-.5-.7-.5-1.1 0-.4.2-.7.4-1l2-2c.2-.2.7-.4 1-.4.4 0 .7.2 1 .4l4.4 4.4 9.8-9.7c.2-.2.7-.4 1-.4.4 0 .7.2 1 .4l2 2c.4.2.6.6.6 1-.1.4-.2.7-.5 1z" fill="#000081"/> <path fill="#000081" d="M22.7 9.234l-10.8 10.8-2 2c-.2.2-.7.4-1 .4-.4 0-.7-.2-1-.4l-2-2-5.4-5.4c-.3-.3-.5-.7-.5-1.1 0-.4.2-.7.4-1l2-2c.2-.2.7-.4 1-.4.4 0 .7.2 1 .4l4.4 4.4 9.8-9.7c.2-.2.7-.4 1-.4.4 0 .7.2 1 .4l2 2c.4.2.6.6.6 1-.1.4-.2.7-.5 1z"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 350 B

After

Width:  |  Height:  |  Size: 325 B

View File

@ -1,3 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6.0392298 23.6" width="6.039" height="23.6"> <svg xmlns="http://www.w3.org/2000/svg" width="21.781" height="25.6" viewBox="0 0 21.782 25.6">
<path d="M5.8 20.7c0 .2-.1.4-.3.6-.2.2-.4.3-.6.3H1.4c-.2 0-.4-.1-.6-.3-.2-.2-.3-.4-.3-.6v-3.1c0-.2.1-.4.3-.6.2-.2.4-.3.6-.3h3.5c.2 0 .4.1.6.3.2.2.3.4.3.6zm0-7.1c0 .2-.1.4-.3.6-.2.2-.4.3-.6.3H1.4c-.2 0-.5-.1-.6-.3-.2-.2-.3-.4-.3-.6L0 2.9c0-.2.1-.4.2-.6.2-.2.4-.3.6-.3h4.4c.2 0 .4.1.6.3.2.2.3.4.2.6z" fill="red"/> <path fill="red" d="M13.671 21.7c0 .2-.1.4-.3.6-.2.2-.4.3-.6.3h-3.5c-.2 0-.4-.1-.6-.3-.2-.2-.3-.4-.3-.6v-3.1c0-.2.1-.4.3-.6.2-.2.4-.3.6-.3h3.5c.2 0 .4.1.6.3.2.2.3.4.3.6zm0-7.1c0 .2-.1.4-.3.6-.2.2-.4.3-.6.3h-3.5c-.2 0-.5-.1-.6-.3-.2-.2-.3-.4-.3-.6l-.5-10.7c0-.2.1-.4.2-.6.2-.2.4-.3.6-.3h4.4c.2 0 .4.1.6.3.2.2.3.4.2.6z"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 419 B

After

Width:  |  Height:  |  Size: 425 B