dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf35ff7
)
Add quick shorthand for SVG generation
author
jdlrobson
<jdlrobson@gmail.com>
Wed, 3 May 2017 00:48:01 +0000
(17:48 -0700)
committer
jdlrobson
<jdlrobson@gmail.com>
Wed, 3 May 2017 15:20:34 +0000
(08:20 -0700)
Change-Id: Ic2a68d2fa62dc079743de641ada4c7f4dd294f2f
resources/src/mediawiki.less/mediawiki.mixins.less
patch
|
blob
|
history
diff --git
a/resources/src/mediawiki.less/mediawiki.mixins.less
b/resources/src/mediawiki.less/mediawiki.mixins.less
index
1e952b0
..
3748007
100644
(file)
--- 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. 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 );
}