385 delte
We can use SVG in CSS via data URI, but without encoding it works only in Webkit based browsers. If encode SVG using encodeURIComponent() it will work everywhere.
This URL-encoder is used with the How to add icons in Gutenberg without any plugin solution.
Der kan således indsættes eget logo:
<svg height="110" width="170" viewBox="0 0 16 16" title="Kirkestien 7">
<rect x="-4" y="0" width="116" height="116" style="fill:none;"/>
<path id="kirkestien" d="M2 1 L1 4 L1 8 L6 8 q-4 4 -4 7 L4 15 q0 -4 3 -7 L7 6 L6 5 L3 5 L3 4 z" >
<animate attributeType="CSS" attributeName="opacity" from="0" to="1" dur="7s" />
</path>
</svg>
Logo for Kirkestien 7
Men læs: How to add icons in Gutenberg without a plugin for mere anvisning af brug af URL-encoderen.