Add custom WikiLove heart icon

Requires I7188a3ee318db80484037733ab058a5a0b42d732 for support for the
replacement with the icon on desktop, as otherwise we can't tell if we're
correctly heeding the configuration setting there.

Removing as a depends-on because we still need this for mobile regardless.

Bug: T173219
Change-Id: I6ee0b6d94d96ee359321b203f235b2d25f06cea6
isekai
Isarra 5 years ago
parent 9cf7eb04ef
commit ed055b9487

@ -0,0 +1,18 @@
@import '../variables.less';
@media screen {
// Only apply icon if setting enabled
@media ( min-width: @desktop-small-floor ) {
#ca-wikilove.icon a {
.ca-icon();
.background-image-svg( '../images/heart-grey.svg', '../images/heart-grey.png' );
}
}
@media ( max-width: @mobile-width ) {
#ca-wikilove a {
.ca-icon();
.background-image-svg( '../images/heart-grey.svg', '../images/heart-grey.png' );
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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"
id="svg12"
version="1.1"
viewBox="0 0 20 20"
height="20"
width="20">
<metadata
id="metadata18">
<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>
<defs
id="defs16">
<linearGradient
gradientTransform="matrix(1,0,0,-1,-88,-92)"
y2="-105.4655"
x2="102.5057"
y1="-94.708504"
x1="93.4795"
gradientUnits="userSpaceOnUse"
id="SVGID_1_">
<stop
id="stop2"
style="stop-color:#F39C9C"
offset="0" />
<stop
id="stop4"
style="stop-color:#E97F7F"
offset="0.5757" />
<stop
id="stop6"
style="stop-color:#E36666"
offset="0.8252" />
</linearGradient>
</defs>
<path
id="path22"
d="m 9.46,15.201246 c -4.747,-3.767 -5.05,-4.051 -5.105,-4.109 -1.351,-1.449 -1.351,-3.801 0,-5.245 0.636,-0.681 1.545,-1.07 2.493,-1.07 0.948,0 1.855,0.389 2.493,1.069 l 0.659,0.596 0.702,-0.637 c 0.629,-0.676 1.509,-1.06 2.452,-1.06 0.941,0 1.825,0.392 2.491,1.101 1.351,1.445 1.351,3.798 0,5.244 -0.06,0.062 -0.356,0.341 -5.106,4.11 l -0.539,0.43 z"
stroke-miterlimit="10"
style="fill:none;stroke:#aaaaaa;stroke-width:2.25;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

@ -91,7 +91,8 @@
"+ext.visualEditor.desktopArticleTarget.noscript": "resources/extensions/VisualEditor.article.less",
"+ext.CodeMirror.visualEditor.init": "resources/extensions/VisualEditor.CodeMirror.less",
"+ext.dismissableSiteNotice.styles": "resources/extensions/DismissableSiteNotice.less",
"+ext.MWOAuth.AuthorizeForm": "resources/extensions/MWOAuth.AuthorizeForm.less"
"+ext.MWOAuth.AuthorizeForm": "resources/extensions/MWOAuth.AuthorizeForm.less",
"+ext.wikiLove.icon": "resources/extensions/WikiLove.icon.less"
}
},
"AutoloadClasses": {

Loading…
Cancel
Save