Use background-image-svg mixin for SVG/PNG fallbacks
Change-Id: I00266b088b16fa749f3ee59d9ce4890ed025c887
This commit is contained in:
@@ -109,7 +109,7 @@
|
|||||||
},
|
},
|
||||||
"ext.uls.displaysettings": {
|
"ext.uls.displaysettings": {
|
||||||
"scripts": "js/ext.uls.displaysettings.js",
|
"scripts": "js/ext.uls.displaysettings.js",
|
||||||
"styles": "css/ext.uls.displaysettings.css",
|
"styles": "css/ext.uls.displaysettings.less",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"ext.uls.languagesettings",
|
"ext.uls.languagesettings",
|
||||||
"ext.uls.mediawiki",
|
"ext.uls.mediawiki",
|
||||||
@@ -174,7 +174,7 @@
|
|||||||
},
|
},
|
||||||
"ext.uls.inputsettings": {
|
"ext.uls.inputsettings": {
|
||||||
"scripts": "js/ext.uls.inputsettings.js",
|
"scripts": "js/ext.uls.inputsettings.js",
|
||||||
"styles": "css/ext.uls.inputsettings.css",
|
"styles": "css/ext.uls.inputsettings.less",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"ext.uls.ime",
|
"ext.uls.ime",
|
||||||
"ext.uls.languagesettings",
|
"ext.uls.languagesettings",
|
||||||
@@ -350,12 +350,12 @@
|
|||||||
"remoteExtPath": "UniversalLanguageSelector/lib"
|
"remoteExtPath": "UniversalLanguageSelector/lib"
|
||||||
},
|
},
|
||||||
"ext.uls.pt": {
|
"ext.uls.pt": {
|
||||||
"styles": "css/ext.uls.pt.css",
|
"styles": "css/ext.uls.pt.less",
|
||||||
"localBasePath": "resources",
|
"localBasePath": "resources",
|
||||||
"remoteExtPath": "UniversalLanguageSelector/resources"
|
"remoteExtPath": "UniversalLanguageSelector/resources"
|
||||||
},
|
},
|
||||||
"ext.uls.interlanguage": {
|
"ext.uls.interlanguage": {
|
||||||
"styles": "css/ext.uls.interlanguage.css",
|
"styles": "css/ext.uls.interlanguage.less",
|
||||||
"localBasePath": "resources",
|
"localBasePath": "resources",
|
||||||
"remoteExtPath": "UniversalLanguageSelector/resources"
|
"remoteExtPath": "UniversalLanguageSelector/resources"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
|
@import "mediawiki.mixins";
|
||||||
|
|
||||||
div.display-settings-block {
|
div.display-settings-block {
|
||||||
/* @embed */
|
background: transparent no-repeat left top;
|
||||||
background: transparent url('../images/display.png') no-repeat left top;
|
.background-image-svg( '../images/display.svg', '../images/display.png' );
|
||||||
/* @embed */
|
|
||||||
background-image: -webkit-linear-gradient(transparent, transparent), url('../images/display.svg');
|
|
||||||
/* @embed */
|
|
||||||
background-image: linear-gradient(transparent, transparent), url('../images/display.svg');
|
|
||||||
background-size: 20px auto;
|
background-size: 20px auto;
|
||||||
color: #252525;
|
color: #252525;
|
||||||
padding-left: 26px;
|
padding-left: 26px;
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
|
@import "mediawiki.mixins";
|
||||||
|
|
||||||
div.input-settings-block {
|
div.input-settings-block {
|
||||||
/* @embed */
|
background: transparent no-repeat left top;
|
||||||
background: transparent url('../images/input.png') no-repeat left top;
|
.background-image-svg( '../images/input.svg', '../images/input.png' );
|
||||||
/* @embed */
|
|
||||||
background-image: -webkit-linear-gradient(transparent, transparent), url('../images/input.svg');
|
|
||||||
/* @embed */
|
|
||||||
background-image: linear-gradient(transparent, transparent), url('../images/input.svg');
|
|
||||||
background-size: 20px auto;
|
background-size: 20px auto;
|
||||||
color: #252525;
|
color: #252525;
|
||||||
padding-left: 26px;
|
padding-left: 26px;
|
||||||
@@ -37,12 +35,8 @@ div.input-settings-block {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.uls-ime-disable-link {
|
.uls-ime-disable-link {
|
||||||
/* @embed */
|
background: transparent no-repeat left top;
|
||||||
background: transparent url('../images/remove-input.png') no-repeat left top;
|
.background-image-svg( '../images/remove-input.svg', '../images/remove-input.png' );
|
||||||
/* @embed */
|
|
||||||
background-image: -webkit-linear-gradient(transparent, transparent), url('../images/remove-input.svg');
|
|
||||||
/* @embed */
|
|
||||||
background-image: linear-gradient(transparent, transparent), url('../images/remove-input.svg');
|
|
||||||
background-size: auto 16px;
|
background-size: auto 16px;
|
||||||
padding-left: 22px;
|
padding-left: 22px;
|
||||||
padding-right: 26px;
|
padding-right: 26px;
|
||||||
@@ -51,12 +45,8 @@ div.input-settings-block {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.uls-ime-more-settings-link {
|
.uls-ime-more-settings-link {
|
||||||
/* @embed */
|
background: transparent no-repeat center top;
|
||||||
background: transparent url('../images/cog.png') no-repeat center top;
|
.background-image-svg( '../images/cog.svg', '../images/cog.png' );
|
||||||
/* @embed */
|
|
||||||
background-image: -webkit-linear-gradient(transparent, transparent), url('../images/cog.svg');
|
|
||||||
/* @embed */
|
|
||||||
background-image: linear-gradient(transparent, transparent), url('../images/cog.svg');
|
|
||||||
background-size: auto 14px;
|
background-size: auto 14px;
|
||||||
border-left: 1px solid #CCCCCC;
|
border-left: 1px solid #CCCCCC;
|
||||||
width: 22px;
|
width: 22px;
|
||||||
@@ -134,12 +124,8 @@ div.input-settings-block {
|
|||||||
right: 0;
|
right: 0;
|
||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
/* @embed */
|
background: transparent no-repeat left center;
|
||||||
background: transparent url('../images/help.png') left center no-repeat;
|
.background-image-svg( '../images/help.svg', '../images/help.png' );
|
||||||
/* @embed */
|
|
||||||
background-image: -webkit-linear-gradient(transparent, transparent), url('../images/help.svg');
|
|
||||||
/* @embed */
|
|
||||||
background-image: linear-gradient(transparent, transparent), url('../images/help.svg');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.ime-checked .ime-perime-help:hover {
|
.ime-checked .ime-perime-help:hover {
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
#p-lang .uls-settings-trigger {
|
|
||||||
/* @embed */
|
|
||||||
background: transparent url('../images/cog-sprite.png') no-repeat right top;
|
|
||||||
/* @embed */
|
|
||||||
background-image: -webkit-linear-gradient(transparent, transparent), url('../images/cog-sprite.svg');
|
|
||||||
/* @embed */
|
|
||||||
background-image: linear-gradient(transparent, transparent), url('../images/cog-sprite.svg');
|
|
||||||
height: 16px;
|
|
||||||
width: 14px;
|
|
||||||
float: right;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.skin-vector #p-lang .uls-settings-trigger {
|
|
||||||
/* Put it in the middle of the first row of the section title */
|
|
||||||
margin-top: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#p-lang .uls-settings-trigger:hover {
|
|
||||||
background-position: right -16px;
|
|
||||||
}
|
|
||||||
19
resources/css/ext.uls.interlanguage.less
Normal file
19
resources/css/ext.uls.interlanguage.less
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
@import "mediawiki.mixins";
|
||||||
|
|
||||||
|
#p-lang .uls-settings-trigger {
|
||||||
|
background: transparent no-repeat right top;
|
||||||
|
.background-image-svg( '../images/cog-sprite.svg', '../images/cog-sprite.png' );
|
||||||
|
height: 16px;
|
||||||
|
width: 14px;
|
||||||
|
float: right;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skin-vector #p-lang .uls-settings-trigger {
|
||||||
|
/* Put it in the middle of the first row of the section title */
|
||||||
|
margin-top: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#p-lang .uls-settings-trigger:hover {
|
||||||
|
background-position: right -16px;
|
||||||
|
}
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@import "mediawiki.mixins";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The trigger can be placed in the personal toolbar near the username
|
* The trigger can be placed in the personal toolbar near the username
|
||||||
* or near the interlanguage links.
|
* or near the interlanguage links.
|
||||||
@@ -8,12 +10,8 @@
|
|||||||
* Copied from jquery.uls.css with the path changed.
|
* Copied from jquery.uls.css with the path changed.
|
||||||
*/
|
*/
|
||||||
.uls-trigger {
|
.uls-trigger {
|
||||||
/* @embed */
|
background: transparent no-repeat scroll left center;
|
||||||
background: transparent url('../../lib/jquery.uls/images/icon-language.png') no-repeat scroll left center;
|
.background-image-svg( '../../lib/jquery.uls/images/icon-language.svg', '../../lib/jquery.uls/images/icon-language.png' );
|
||||||
/* @embed */
|
|
||||||
background-image: -webkit-linear-gradient(transparent, transparent), url('../../lib/jquery.uls/images/icon-language.svg');
|
|
||||||
/* @embed */
|
|
||||||
background-image: linear-gradient(transparent, transparent), url('../../lib/jquery.uls/images/icon-language.svg');
|
|
||||||
padding-left: 30px;
|
padding-left: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user