jenkins-bot has submitted this change and it was merged.

Change subject: Hi-res external link icons
......................................................................


Hi-res external link icons

Use SVGs where available.

Change-Id: Ia950be58371947b83beda547658ec9088595cabe
---
M less/common/common.less
A less/common/images/external-link-ltr-icon.svg
A less/common/images/external-link-rtl-icon.png
A less/common/images/external-link-rtl-icon.svg
4 files changed, 181 insertions(+), 1 deletion(-)

Approvals:
  Jdlrobson: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/less/common/common.less b/less/common/common.less
index 3c9c287..3aa8760 100644
--- a/less/common/common.less
+++ b/less/common/common.less
@@ -1,4 +1,5 @@
 @import "../mixins.less";
+@import "mediawiki.mixins.less";
 
 // Deprecated rules
 .stable {
@@ -85,7 +86,9 @@
 }
 
 a.external {
-       background: url(images/external-link-ltr-icon.png) center right 
no-repeat;
+       .background-image-svg( 'images/external-link-ltr-icon.svg', 
'images/external-link-ltr-icon.png' );
+       background-repeat: no-repeat;
+       background-position: center right;
        padding-right: 13px;
 }
 
diff --git a/less/common/images/external-link-ltr-icon.svg 
b/less/common/images/external-link-ltr-icon.svg
new file mode 100644
index 0000000..f5ee68b
--- /dev/null
+++ b/less/common/images/external-link-ltr-icon.svg
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   version="1.1"
+   width="10"
+   height="10"
+   id="svg2">
+  <defs
+     id="defs4">
+    <marker
+       refX="0"
+       refY="0"
+       orient="auto"
+       id="Club"
+       style="overflow:visible">
+      <path
+         d="m -1.5971367,-7.0977635 c -1.8892507,0 -3.426382,1.5371314 
-3.426382,3.4263822 0,0.6566798 0.2383531,1.2269257 0.5594092,1.7481542 
-0.038751,0.032111 -0.079672,0.058463 -0.1165436,0.093235 -0.6224234,-0.8549928 
-1.5893983,-1.4451409 -2.7271199,-1.4451409 -1.8892515,-1e-7 
-3.426382,1.5371314 -3.426382,3.42638214 0,1.88925076 1.5371305,3.42638216 
3.426382,3.42638216 0.9934462,0 1.868619,-0.4420611 2.4940326,-1.1188187 
-0.124687,0.3548915 -0.2097783,0.7214874 -0.2097783,1.1188187 0,1.8892506 
1.5371313,3.4263822 3.426382,3.4263822 1.88925064,0 3.4263821,-1.5371316 
3.4263821,-3.4263822 0,-0.7933959 -0.3155586,-1.4938285 -0.7691878,-2.0744763 C 
2.4152718,1.7663868 3.7718375,2.2973711 4.7661444,3.8340272 4.0279463,3.0958289 
3.5540908,1.7534117 3.5540908,-0.05852936 l -0.6293354,-0.04661745 
0.5827179,-0.0233087 c 0,-1.81194107 0.4505466,-3.15435827 1.188745,-3.89255657 
-0.9590906,1.4822308 -2.2571634,2.0263625 -3.5662345,2.3075635 
0.4041964,-0.5619092 0.6992616,-1.213407 0.6992616,-1.9579327 0,-1.8892506 
-1.53713146,-3.4263822 -3.4263821,-3.4263822 z"
+         transform="scale(0.6,0.6)"
+         id="path3996"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:0.74587913pt" />
+    </marker>
+    <marker
+       refX="0"
+       refY="0"
+       orient="auto"
+       id="DiamondM"
+       style="overflow:visible">
+      <path
+         d="M 0,-7.0710768 -7.0710894,0 0,7.0710589 7.0710462,0 0,-7.0710768 z"
+         transform="scale(0.4,0.4)"
+         id="path3849"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt" />
+    </marker>
+    <marker
+       refX="0"
+       refY="0"
+       orient="auto"
+       id="Arrow1Lstart"
+       style="overflow:visible">
+      <path
+         d="M 0,0 5,-5 -12.5,0 5,5 0,0 z"
+         transform="matrix(0.8,0,0,0.8,10,0)"
+         id="path3767"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt" />
+    </marker>
+  </defs>
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     transform="translate(-826.42859,-698.79077)"
+     id="layer1">
+    <rect
+       width="5.9821429"
+       height="5.9821429"
+       x="826.92859"
+       y="702.30865"
+       id="rect2996"
+       
style="fill:#ffffff;fill-opacity:1;stroke:#0066cc;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
 />
+    <g
+       
transform="matrix(0.70710678,0.70710678,-0.70710678,0.70710678,762.87,-359.88339)"
+       id="g4815">
+      <path
+         d="m 796.90819,700.28317 3.70127,-3.70126 3.81174,3.81175 
-0.0189,2.20336 -1.85234,0 0,3.8543 -3.80233,0 0,-3.97108 -1.8536,0 z"
+         id="path4777"
+         style="fill:#0066ff;fill-opacity:1;stroke:none" />
+      <path
+         d="m 800.60946,698.00244 3.46986,3.43865 -2.5702,0 0,4.07436 
-1.7362,0 0,-4.07436 -2.61754,-3.6e-4 z"
+         id="path4779"
+         style="fill:#ffffff;fill-opacity:1;stroke:none" />
+    </g>
+  </g>
+</svg>
diff --git a/less/common/images/external-link-rtl-icon.png 
b/less/common/images/external-link-rtl-icon.png
new file mode 100644
index 0000000..5313234
--- /dev/null
+++ b/less/common/images/external-link-rtl-icon.png
Binary files differ
diff --git a/less/common/images/external-link-rtl-icon.svg 
b/less/common/images/external-link-rtl-icon.svg
new file mode 100644
index 0000000..59c451e
--- /dev/null
+++ b/less/common/images/external-link-rtl-icon.svg
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   version="1.1"
+   width="10"
+   height="10"
+   id="svg2">
+  <defs
+     id="defs4">
+    <marker
+       refX="0"
+       refY="0"
+       orient="auto"
+       id="Club"
+       style="overflow:visible">
+      <path
+         d="m -1.5971367,-7.0977635 c -1.8892507,0 -3.426382,1.5371314 
-3.426382,3.4263822 0,0.6566798 0.2383531,1.2269257 0.5594092,1.7481542 
-0.038751,0.032111 -0.079672,0.058463 -0.1165436,0.093235 -0.6224234,-0.8549928 
-1.5893983,-1.4451409 -2.7271199,-1.4451409 -1.8892515,-1e-7 
-3.426382,1.5371314 -3.426382,3.42638214 0,1.88925076 1.5371305,3.42638216 
3.426382,3.42638216 0.9934462,0 1.868619,-0.4420611 2.4940326,-1.1188187 
-0.124687,0.3548915 -0.2097783,0.7214874 -0.2097783,1.1188187 0,1.8892506 
1.5371313,3.4263822 3.426382,3.4263822 1.88925064,0 3.4263821,-1.5371316 
3.4263821,-3.4263822 0,-0.7933959 -0.3155586,-1.4938285 -0.7691878,-2.0744763 C 
2.4152718,1.7663868 3.7718375,2.2973711 4.7661444,3.8340272 4.0279463,3.0958289 
3.5540908,1.7534117 3.5540908,-0.05852936 l -0.6293354,-0.04661745 
0.5827179,-0.0233087 c 0,-1.81194107 0.4505466,-3.15435827 1.188745,-3.89255657 
-0.9590906,1.4822308 -2.2571634,2.0263625 -3.5662345,2.3075635 
0.4041964,-0.5619092 0.6992616,-1.213407 0.6992616,-1.9579327 0,-1.8892506 
-1.53713146,-3.4263822 -3.4263821,-3.4263822 z"
+         transform="scale(0.6,0.6)"
+         id="path3996"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:0.74587913pt" />
+    </marker>
+    <marker
+       refX="0"
+       refY="0"
+       orient="auto"
+       id="DiamondM"
+       style="overflow:visible">
+      <path
+         d="M 0,-7.0710768 -7.0710894,0 0,7.0710589 7.0710462,0 0,-7.0710768 z"
+         transform="scale(0.4,0.4)"
+         id="path3849"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt" />
+    </marker>
+    <marker
+       refX="0"
+       refY="0"
+       orient="auto"
+       id="Arrow1Lstart"
+       style="overflow:visible">
+      <path
+         d="M 0,0 5,-5 -12.5,0 5,5 0,0 z"
+         transform="matrix(0.8,0,0,0.8,10,0)"
+         id="path3767"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt" />
+    </marker>
+  </defs>
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     transform="translate(-826.42859,-698.79077)"
+     id="layer1">
+    <rect
+       width="5.9821429"
+       height="5.9821429"
+       x="-835.92859"
+       y="702.30865"
+       transform="scale(-1,1)"
+       id="rect2996"
+       
style="fill:#ffffff;fill-opacity:1;stroke:#0066cc;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
 />
+    <g
+       
transform="matrix(-0.70710678,0.70710678,0.70710678,0.70710678,899.98717,-359.88339)"
+       id="g4815">
+      <path
+         d="m 796.90819,700.28317 3.70127,-3.70126 3.81174,3.81175 
-0.0189,2.20336 -1.85234,0 0,3.8543 -3.80233,0 0,-3.97108 -1.8536,0 z"
+         id="path4777"
+         style="fill:#0066ff;fill-opacity:1;stroke:none" />
+      <path
+         d="m 800.60946,698.00244 3.46986,3.43865 -2.5702,0 0,4.07436 
-1.7362,0 0,-4.07436 -2.61754,-3.6e-4 z"
+         id="path4779"
+         style="fill:#ffffff;fill-opacity:1;stroke:none" />
+    </g>
+  </g>
+</svg>

-- 
To view, visit https://gerrit.wikimedia.org/r/106765
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia950be58371947b83beda547658ec9088595cabe
Gerrit-PatchSet: 7
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>
Gerrit-Reviewer: Awjrichards <[email protected]>
Gerrit-Reviewer: Brion VIBBER <[email protected]>
Gerrit-Reviewer: JGonera <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: Kaldari <[email protected]>
Gerrit-Reviewer: Mattflaschen <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to