mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-12-16 01:10:30 +02:00
Update SVG linting. Only single path SVGs allowed. (#1335)
* Update SVG linting. Only single path SVGs allowed. * Update docs.
This commit is contained in:
parent
e050634479
commit
1c0b2b1dbf
@ -3,7 +3,8 @@ module.exports = {
|
||||
elm: {
|
||||
"svg": 1,
|
||||
"svg > title": 1,
|
||||
"g": false,
|
||||
"svg > path": 1,
|
||||
"*": false,
|
||||
},
|
||||
attr: [
|
||||
{ // ensure that the SVG elm has the appropriate attrs
|
||||
|
@ -116,6 +116,9 @@ The final icon should:
|
||||
* This means the icon should be touching at least two sides of the viewbox.
|
||||
* Be vertically and horizontally centered.
|
||||
* Be minified to a single line with no formatting.
|
||||
* Contain only a single `path` element.
|
||||
* Not contain extraneous elements.
|
||||
* This includes: `circ`, `ellipse`, `rect`, `polygon`, `line`, `g`, etc.
|
||||
* Not contain extraneous attributes.
|
||||
* This includes: `width`, `height`, `fill`, `stroke`, `clip`, `font`, etc.
|
||||
|
||||
|
@ -1 +1 @@
|
||||
<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>Ionic Icon</title><path d="M12 6.53A5.476 5.476 0 0 0 6.53 12c0 3.014 2.452 5.47 5.47 5.47s5.47-2.456 5.47-5.47S15.014 6.53 12 6.53zM22.345 4.523a2.494 2.494 0 1 1-4.988 0 2.494 2.494 0 0 1 4.988 0z"/><path d="M22.922 7.027l-.103-.23-.169.188c-.408.464-.928.82-1.505 1.036l-.159.061.066.155a9.745 9.745 0 0 1 .75 3.759c0 5.405-4.397 9.806-9.806 9.806S2.194 17.405 2.194 12 6.596 2.194 12 2.194c1.467 0 2.883.319 4.2.947l.155.075.066-.155a3.767 3.767 0 0 1 1.106-1.453l.197-.159-.225-.117A11.905 11.905 0 0 0 12.001.001c-6.619 0-12 5.381-12 12s5.381 12 12 12 12-5.381 12-12c0-1.73-.361-3.403-1.078-4.973z"/></svg>
|
||||
<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>Ionic Icon</title><path d="M22.922 7.027l-.103-.23-.169.188c-.408.464-.928.82-1.505 1.036l-.159.061.066.155a9.745 9.745 0 0 1 .75 3.759c0 5.405-4.397 9.806-9.806 9.806-5.409 0-9.802-4.397-9.802-9.802 0-5.405 4.402-9.806 9.806-9.806 1.467 0 2.883.319 4.2.947l.155.075.066-.155a3.767 3.767 0 0 1 1.106-1.453l.197-.159-.225-.117A11.905 11.905 0 0 0 12.001.001c-6.619 0-12 5.381-12 12s5.381 12 12 12 12-5.381 12-12c0-1.73-.361-3.403-1.078-4.973zM12 6.53A5.476 5.476 0 0 0 6.53 12 5.476 5.476 0 0 0 12 17.47 5.476 5.476 0 0 0 17.47 12 5.479 5.479 0 0 0 12 6.53zm10.345-2.007a2.494 2.494 0 1 1-4.988 0 2.494 2.494 0 0 1 4.988 0z"/></svg>
|
Before Width: | Height: | Size: 690 B After Width: | Height: | Size: 709 B |
Loading…
Reference in New Issue
Block a user