diff --git a/resources/extensions/WikiLove.icon.less b/resources/extensions/WikiLove.icon.less new file mode 100644 index 0000000..a48fa27 --- /dev/null +++ b/resources/extensions/WikiLove.icon.less @@ -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' ); + } + } +} diff --git a/resources/images/heart-grey.png b/resources/images/heart-grey.png new file mode 100644 index 0000000..a202b23 Binary files /dev/null and b/resources/images/heart-grey.png differ diff --git a/resources/images/heart-grey.svg b/resources/images/heart-grey.svg new file mode 100644 index 0000000..b42f7da --- /dev/null +++ b/resources/images/heart-grey.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/skin.json b/skin.json index a8e2454..b2fa2f5 100644 --- a/skin.json +++ b/skin.json @@ -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": {