Merge pull request #1151 from arknu/icon-transparency

Fix transparency for image icons in the tray
This commit is contained in:
Claus
2016-03-15 09:54:36 +01:00
2 changed files with 5 additions and 3 deletions

View File

@@ -17,7 +17,7 @@
if(convert){
element.html("<i class='icon-section " + convert + "'></i>");
}else{
element.html("<img src='images/tray/" + icon + "'>");
element.html("<img class='icon-section' src='images/tray/" + icon + "'>");
}
//it's a file, normally legacy so look in the icon tray images
}

View File

@@ -19,7 +19,8 @@ ul.sections li {
}
ul.sections li [class^="icon-"]:before,
ul.sections li [class*=" icon-"]:before{
ul.sections li [class*=" icon-"]:before,
ul.sections li img.icon-section {
font-size: 30px;
margin: 1px 0 0 0;
opacity: 0.4;
@@ -29,7 +30,8 @@ ul.sections li [class*=" icon-"]:before{
}
ul.sections:hover li [class^="icon-"]:before,
ul.sections:hover li [class*=" icon-"]:before {
ul.sections:hover li [class*=" icon-"]:before,
ul.sections:hover li img.icon-section {
opacity: 1
}