Permalink
Browse files

Hand-tune the flat2 badge

- Adjust vertical centering of the text.
- Use a better font list.
- Embed the icon as SVG instead of base64 image.
- Smaller as a result.
  • Loading branch information...
sindresorhus committed Jan 26, 2019
1 parent 90394ed commit 67242b270b509dd302707aa2b84ec08ebed072f2
Showing with 1 addition and 1 deletion.
  1. +1 −1 media/badge-flat2.svg
@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="86" height="20"><g shape-rendering="crispEdges"><path fill="#fc60a8" d="M0 0h25v20H0z"/><path fill="#494368" d="M25 0h61v20H25z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"><image x="5" y="3" width="14" height="14" xlink:href="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiICAgd2lkdGg9IjE1NC43ODEyNW1tIiAgIGhlaWdodD0iODAuMTE1ODI5bW0iICAgdmlld0JveD0iMCAwIDE1NC43ODEy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IDIzLjI4MzMzLC04LjgzNzA5IDIzLjI4MzMzLC0xOS42ODUgeiIgICAgICAgaWQ9InBhdGg0NDg3IiAvPiAgPC9nPjwvc3ZnPg=="/> <text x="555" y="140" transform="scale(.1)" textLength="510">awesome</text></g> </svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="86" height="20"><g shape-rendering="crispEdges"><path fill="#fc60a8" d="M0 0h25v20H0z"/><path fill="#494368" d="M25 0h61v20H25z"/></g><g fill="#fff" text-anchor="middle" font-family="-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif" font-size="110"><g transform="translate(5)"><svg viewBox="0 0 154.8 80.1" width="14"><path d="M154.8 36.4L115 0l-5.6 6.1 33 30.3H12.3l33-30.3L39.7 0 0 36.4v24c0 10.9 10.5 19.7 23.3 19.7h24.5c12.8 0 23.2-8.8 23.2-19.7V44.7h12.7v15.7c0 10.9 10.5 19.7 23.3 19.7h24.5c12.8 0 23.3-8.8 23.3-19.7z"/></svg></g><text x="555" y="136" transform="scale(.1)" textLength="510">awesome</text></g></svg>

0 comments on commit 67242b2

Please sign in to comment.