diff --git a/install-usercss/external.svg b/install-usercss/external.svg deleted file mode 100644 index ce4fd8f8..00000000 --- a/install-usercss/external.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/install-usercss/install-usercss.css b/install-usercss/install-usercss.css index ad09d080..68507830 100644 --- a/install-usercss/install-usercss.css +++ b/install-usercss/install-usercss.css @@ -8,7 +8,8 @@ body { box-sizing: border-box; } -img.icon { +img.icon, +svg.icon { height: 1.4em; vertical-align: middle; } diff --git a/install-usercss/install-usercss.js b/install-usercss/install-usercss.js index 362b93e1..be492c4e 100644 --- a/install-usercss/install-usercss.js +++ b/install-usercss/install-usercss.js @@ -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' + }) }) )); }