Align SVGs to WikimediaUI color palette and optimize

Aligning SVGs to WikimediaUI color palette, optimizing
by help of SVGO and align markup to each other, among changes:
- unifying XML declaration
- removing `standalone=no` as it's default
- adding `viewBox` attribute for cross-browser compatibility
- removing unnecessary groups and ids where applicable
- unifying identation
- bringing attributes in order

Bug: T178867
Change-Id: Ie7803dd904cee14fa401331e082982794dc0a225
This commit is contained in:
Volker E
2017-11-02 00:25:40 -07:00
parent 115c0a28c0
commit c8b391564e
12 changed files with 106 additions and 80 deletions

View File

@@ -1 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="14"><path d="M17 8.3V5.73l-1.575-.264c-.117-.44-.292-.848-.496-1.2l.933-1.285-1.81-1.84-1.31.906c-.38-.205-.79-.38-1.197-.497L11.283 0H8.717l-.263 1.578c-.437.117-.817.293-1.196.497L5.975 1.17 4.138 2.98l.933 1.287c-.203.38-.378.79-.495 1.228L3 5.73V8.3l1.575.264c.117.438.292.818.496 1.198l-.933 1.315 1.81 1.812 1.31-.936c.38.205.79.38 1.226.497L8.746 14h2.566l.263-1.578c.408-.117.817-.293 1.196-.497l1.313.935 1.81-1.812-.935-1.315c.204-.38.38-.76.496-1.2L17 8.302zm-7 1.404c-1.487 0-2.683-1.2-2.683-2.69S8.542 4.327 10 4.327c1.458 0 2.683 1.198 2.683 2.69 0 1.49-1.195 2.688-2.683 2.688z" fill="#434343"/></svg>
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="14" viewBox="0 0 20 14">
<path fill="#54595d" d="M17 8.3V5.73l-1.575-.264c-.117-.44-.292-.848-.496-1.2l.933-1.285-1.81-1.84-1.31.906c-.38-.205-.79-.38-1.197-.497L11.283 0H8.717l-.263 1.578c-.437.117-.817.293-1.196.497L5.975 1.17 4.138 2.98l.933 1.287c-.203.38-.378.79-.495 1.228L3 5.73V8.3l1.575.264c.117.438.292.818.496 1.198l-.933 1.315 1.81 1.812 1.31-.936c.38.205.79.38 1.226.497L8.746 14h2.566l.263-1.578c.408-.117.817-.293 1.196-.497l1.313.935 1.81-1.812-.935-1.315c.204-.38.38-.76.496-1.2L17 8.302zm-7 1.404c-1.487 0-2.683-1.2-2.683-2.69S8.542 4.327 10 4.327c1.458 0 2.683 1.198 2.683 2.69 0 1.49-1.195 2.688-2.683 2.688z"/>
</svg>

Before

Width:  |  Height:  |  Size: 714 B

After

Width:  |  Height:  |  Size: 738 B