kopia lustrzana https://github.com/badgen/badgen
More tweak on text position
rodzic
05d3fabf5b
commit
66acafbb1b
|
@ -21,10 +21,10 @@ module.exports = function ({subject, status, color}) {
|
|||
<path fill="#555" d="M${sbRectWidth} 0v20h-4v-20h4z"/>
|
||||
<rect rx="3" width="${width}" height="20" fill="url(#a)"/>
|
||||
<g fill="#fff" text-anchor="start" font-family="DejaVu Sans,Verdana,sans-serif" font-size="11">
|
||||
<text x="6" y="14.4" fill="#000" opacity="0.2">${subject}</text>
|
||||
<text x="5" y="13.4">${subject}</text>
|
||||
<text x="${stTextStart + 1}" y="14.4" fill="#000" opacity="0.2">${status}</text>
|
||||
<text x="${stTextStart}" y="13.4">${status}</text>
|
||||
<text x="6" y="14.8" fill="#000" opacity="0.2">${subject}</text>
|
||||
<text x="5" y="13.8">${subject}</text>
|
||||
<text x="${stTextStart + 1}" y="14.8" fill="#000" opacity="0.2">${status}</text>
|
||||
<text x="${stTextStart}" y="13.8">${status}</text>
|
||||
</g><script/>
|
||||
</svg>
|
||||
`
|
||||
|
|
Ładowanie…
Reference in New Issue