mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
Remove unused attributes from .svg files to optimize them further
An id="…" can potentially be used to target elements individually, manipulate them, or show them in another context. This is done with the elements in the file pointer-mask.svg. But not with any other image. The file-rule="…" only has an effect on shapes that intersect with itself. This is not the case for this basic "L" shape. If you think this is fine, I might look at the original OOUI icons as well and apply the same optimizations on them. But there are 800+ of them to be looked at, and I want to invest the time only if you think it's worth it. Change-Id: Ifa4bd60a436e58d3a7c1536f8201fe76fbdac57c
This commit is contained in:
parent
d81415a040
commit
bb7ef8f205
|
@ -2,6 +2,6 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="2 2 20 20">
|
||||
<g fill="#c8ccd1">
|
||||
<path d="M11 12h4V7h-4v5zm-5 2h9v-1H6v1zm0 2h9v-1H6v1zm0 2h9v-1H6v1zm4-9H6v1h4V9zm0 2H6v1h4v-1zm0-4H6v1h4V7zM4 5h13v16H7c-1.7 0-3-1.3-3-3V5z"/>
|
||||
<path fill-rule="evenodd" d="M18 4v14h2V2H7v2"/>
|
||||
<path d="M18 4v14h2V2H7v2"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 353 B After Width: | Height: | Size: 333 B |
|
@ -2,6 +2,6 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="2 2 20 20">
|
||||
<g fill="#c8ccd1">
|
||||
<path d="M13 12H9V7h4v5zm5 2H9v-1h9v1zm0 2H9v-1h9v1zm0 2H9v-1h9v1zm-4-9h4v1h-4V9zm0 2h4v1h-4v-1zm0-4h4v1h-4V7zm6-2H7v16h10c1.7 0 3-1.3 3-3V5z"/>
|
||||
<path fill-rule="evenodd" d="M6 4v14H4V2h13v2"/>
|
||||
<path d="M6 4v14H4V2h13v2"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 334 B |
|
@ -3,6 +3,6 @@
|
|||
<title>
|
||||
web
|
||||
</title>
|
||||
<path id="laptop" d="M22.78 18.46L21 16V4H3v12l-1.757 2.463a.974.974 0 0 0-.157 1.043c.157.347.533.494.914.494h20c.382 0 .783-.148.94-.496a.976.976 0 0 0-.16-1.044zM4 18l1-2V6h14v10l1 2H4z"/>
|
||||
<path id="window" d="M7 16h10V8H7v8zm2-2v-3h6v3H9z"/>
|
||||
<path d="M22.78 18.46L21 16V4H3v12l-1.757 2.463a.974.974 0 0 0-.157 1.043c.157.347.533.494.914.494h20c.382 0 .783-.148.94-.496a.976.976 0 0 0-.16-1.044zM4 18l1-2V6h14v10l1 2H4z"/>
|
||||
<path d="M7 16h10V8H7v8zm2-2v-3h6v3H9z"/>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 403 B After Width: | Height: | Size: 379 B |
Loading…
Reference in a new issue