|
1 | | -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{{.Badge.Width}}" height="18" |
| 1 | +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{{.Badge.Width}}" height="20" |
2 | 2 | role="img" aria-label="{{.Badge.Label.Text}}: {{.Badge.Message.Text}}"> |
3 | 3 | <title>{{.Badge.Label.Text}}: {{.Badge.Message.Text}}</title> |
4 | 4 | <linearGradient id="s" x2="0" y2="100%"> |
5 | | - <stop offset="0" stop-color="#fff" stop-opacity=".7" /> |
6 | | - <stop offset=".1" stop-color="#aaa" stop-opacity=".1" /> |
7 | | - <stop offset=".9" stop-color="#000" stop-opacity=".3" /> |
8 | | - <stop offset="1" stop-color="#000" stop-opacity=".5" /> |
| 5 | + <stop offset="0" stop-color="#bbb" stop-opacity=".1" /> |
| 6 | + <stop offset="1" stop-opacity=".1" /> |
9 | 7 | </linearGradient> |
10 | 8 | <clipPath id="r"> |
11 | | - <rect width="{{.Badge.Width}}" height="18" rx="4" fill="#fff" /> |
| 9 | + <rect width="{{.Badge.Width}}" height="20" rx="3" fill="#fff" /> |
12 | 10 | </clipPath> |
13 | 11 | <g clip-path="url(#r)"> |
14 | | - <rect width="{{.Badge.Label.Width}}" height="18" fill="#555" /> |
15 | | - <rect x="{{.Badge.Label.Width}}" width="{{.Badge.Message.Width}}" height="18" fill="{{.Badge.Color}}" /> |
16 | | - <rect width="{{.Badge.Width}}" height="18" fill="url(#s)" /> |
| 12 | + <rect width="{{.Badge.Label.Width}}" height="20" fill="#555" /> |
| 13 | + <rect x="{{.Badge.Label.Width}}" width="{{.Badge.Message.Width}}" height="20" fill="{{.Badge.Color}}" /> |
| 14 | + <rect width="{{.Badge.Width}}" height="20" fill="url(#s)" /> |
| 15 | + </g> |
| 16 | + <g fill="#fff" text-anchor="middle" font-family="Geneva,DejaVu Sans,sans-serif" |
| 17 | + text-rendering="geometricPrecision" font-size="{{.Badge.FontSize}}"> |
| 18 | + <text aria-hidden="true" x="{{.Badge.Label.X}}" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" |
| 19 | + textLength="{{.Badge.Label.TextLength}}">{{.Badge.Label.Text}}</text> |
| 20 | + <text x="{{.Badge.Label.X}}" y="140" |
| 21 | + transform="scale(.1)" fill="#fff" textLength="{{.Badge.Label.TextLength}}">{{.Badge.Label.Text}}</text> |
| 22 | + <text aria-hidden="true" x="{{.Badge.Message.X}}" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" |
| 23 | + textLength="{{.Badge.Message.TextLength}}">{{.Badge.Message.Text}}</text> |
| 24 | + <text x="{{.Badge.Message.X}}" y="140" transform="scale(.1)" fill="#fff" |
| 25 | + textLength="{{.Badge.Message.TextLength}}">{{.Badge.Message.Text}}</text> |
17 | 26 | </g> |
18 | | - <g fill="#fff" text-anchor="middle" font-family="Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" |
19 | | - font-size="{{.Badge.FontSize}}"><text aria-hidden="true" x="{{.Badge.Label.X}}" y="140" fill="#010101" fill-opacity=".3" |
20 | | - transform="scale(.1)" textLength="{{.Badge.Label.TextLength}}">{{.Badge.Label.Text}}</text><text x="{{.Badge.Label.X}}" y="130" |
21 | | - transform="scale(.1)" fill="#fff" textLength="{{.Badge.Label.TextLength}}">{{.Badge.Label.Text}}</text><text aria-hidden="true" |
22 | | - x="{{.Badge.Message.X}}" y="140" fill="#010101" fill-opacity=".3" transform="scale(.1)" |
23 | | - textLength="{{.Badge.Message.TextLength}}">{{.Badge.Message.Text}}</text><text x="{{.Badge.Message.X}}" y="130" transform="scale(.1)" |
24 | | - fill="#fff" textLength="{{.Badge.Message.TextLength}}">{{.Badge.Message.Text}}</text></g> |
25 | 27 | </svg> |
0 commit comments