Fix: inline svg
This commit is contained in:
parent
fa1c55bc2a
commit
7266c38d56
|
@ -1,3 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
|
||||
<path d="M4,4h5v2H6v8h8v-3h2v5H4V4z M11,3h6v6l-2-2l-4,4L9,9l4-4L11,3z"></path>
|
||||
</svg>
|
Before Width: | Height: | Size: 148 B |
|
@ -8,7 +8,8 @@ body {
|
|||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
img.icon {
|
||||
img.icon,
|
||||
svg.icon {
|
||||
height: 1.4em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
|
|
@ -111,9 +111,13 @@
|
|||
frag.appendChild(makeLink(
|
||||
url,
|
||||
$element({
|
||||
tag: 'img',
|
||||
className: 'icon',
|
||||
src: '/install-usercss/external.svg'
|
||||
tag: 'svg#svg',
|
||||
viewBox: '0 0 20 20',
|
||||
class: 'icon',
|
||||
appendChild: $element({
|
||||
tag: 'svg#path',
|
||||
d: 'M4,4h5v2H6v8h8v-3h2v5H4V4z M11,3h6v6l-2-2l-4,4L9,9l4-4L11,3z'
|
||||
})
|
||||
})
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user