Compact links: Add png background image for trigger

Converted the css to less file too.

Change-Id: I2f01c170336b0d19f0dbac10ebd9a3eac769d104
This commit is contained in:
Santhosh Thottingal
2016-04-19 16:16:01 +05:30
committed by Niklas Laxström
parent 62d05ed78d
commit cac3e709de
3 changed files with 4 additions and 2 deletions

View File

@@ -231,7 +231,7 @@
}, },
"ext.uls.compactlinks": { "ext.uls.compactlinks": {
"scripts": "js/ext.uls.compactlinks.js", "scripts": "js/ext.uls.compactlinks.js",
"styles": "css/ext.uls.compactlinks.css", "styles": "css/ext.uls.compactlinks.less",
"dependencies": [ "dependencies": [
"ext.uls.mediawiki", "ext.uls.mediawiki",
"ext.uls.init", "ext.uls.init",

View File

@@ -1,3 +1,5 @@
@import "mediawiki.mixins";
#p-lang .body ul .uls-trigger, #p-lang .body ul .uls-trigger,
#p-lang .pBody ul .uls-trigger { #p-lang .pBody ul .uls-trigger {
background-image: none; background-image: none;
@@ -10,7 +12,7 @@
padding: 4px 6px 4px 25px; padding: 4px 6px 4px 25px;
font-size: 13px; font-size: 13px;
font-weight: 400; font-weight: 400;
background-image: url( ../images/compact-links-trigger.svg ); .background-image-svg( '../images/compact-links-trigger.svg', '../images/compact-links-trigger.png' );
background-size: 18px; background-size: 18px;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: left 4px center; background-position: left 4px center;

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B