Add .list-style-image-svg
authorpaladox <thomasmulhall410@yahoo.com>
Fri, 6 Feb 2015 21:58:02 +0000 (21:58 +0000)
committerPaladox <thomasmulhall410@yahoo.com>
Thu, 12 Feb 2015 23:00:34 +0000 (23:00 +0000)
Edokter suggested to use this, this way.

Bug: T37338
Change-Id: I09319e9188878cf316dd5a20c76804be9d88999d

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

index c84c884..cffa04c 100644 (file)
        list-style-image: e('/* @embed */') url(@url);
 }
 
+.list-style-image-svg(@svg, @fallback) {
+       list-style-image: e('/* @embed */') url(@svg);
+       /* Fallback to PNG bullet for IE 8 and below using CSS hack */
+       list-style-image: e('/* @embed */') url(@fallback)\9;
+}
+
 .transition(@value) {
        -webkit-transition: @value; // Safari 3.1-6.0, iOS 3.2-6.1, Android 2.1-4.3
        -moz-transition: @value; // Firefox 4-15