Jdlrobson has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/351562 )
Change subject: Add quick shorthand for SVG generation ...................................................................... Add quick shorthand for SVG generation Change-Id: Ic2a68d2fa62dc079743de641ada4c7f4dd294f2f --- M resources/src/mediawiki.less/mediawiki.mixins.less 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/62/351562/1 diff --git a/resources/src/mediawiki.less/mediawiki.mixins.less b/resources/src/mediawiki.less/mediawiki.mixins.less index 63ec947..6c00969 100644 --- a/resources/src/mediawiki.less/mediawiki.mixins.less +++ b/resources/src/mediawiki.less/mediawiki.mixins.less @@ -42,6 +42,12 @@ background-image: -o-linear-gradient( transparent, transparent ), url( @fallback ); } +// Shorthand for background-image-svg in core. Use if your PNG and SVG live in the same directory\ +// and only if you cannot use ResourceLoaderImage module for some particular reason. +.background-image-svg-quick( @url ) { + .background-image-svg( ~'@{url}.svg', ~'@{url}.png' ); +} + .list-style-image( @url ) { list-style-image: e( '/* @embed */' ) url( @url ); } -- To view, visit https://gerrit.wikimedia.org/r/351562 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic2a68d2fa62dc079743de641ada4c7f4dd294f2f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits