Add quick shorthand for SVG generation
authorjdlrobson <jdlrobson@gmail.com>
Wed, 3 May 2017 00:48:01 +0000 (17:48 -0700)
committerjdlrobson <jdlrobson@gmail.com>
Wed, 3 May 2017 15:20:34 +0000 (08:20 -0700)
Change-Id: Ic2a68d2fa62dc079743de641ada4c7f4dd294f2f

resources/src/mediawiki.less/mediawiki.mixins.less

index 1e952b0..3748007 100644 (file)
        background-image: -o-linear-gradient( transparent, transparent ), url( @fallback );
 }
 
+// Shorthand for background-image-svg. Use if your PNG and SVG have the same name
+// 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 );
 }