diff options
author | raghunayyar <me@iraghu.com> | 2013-01-30 19:12:51 +0530 |
---|---|---|
committer | raghunayyar <me@iraghu.com> | 2013-01-30 19:12:51 +0530 |
commit | 0dfbd53a6efdc1cb37c36c6bf64fd4eb8f8206d7 (patch) | |
tree | 8b360c7ec6ce0d8cb77affaba08fe6976328facf | |
parent | d620495e9250a2c12aa96fd3a2b8291848df73f1 (diff) | |
download | nextcloud-server-0dfbd53a6efdc1cb37c36c6bf64fd4eb8f8206d7.tar.gz nextcloud-server-0dfbd53a6efdc1cb37c36c6bf64fd4eb8f8206d7.zip |
Reduced Styling and Image loads as from src and not backgorund.
-rw-r--r-- | core/css/styles.css | 5 | ||||
-rw-r--r-- | settings/js/apps.js | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/core/css/styles.css b/core/css/styles.css index dc9bd0b5c03..3b107a87224 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -192,8 +192,8 @@ fieldset.warning legend { color:#b94a48 !important; } #navigation a:hover, #navigation a:focus { opacity:.8; } #navigation a.active { opacity:1; } #navigation .icon { display:block; width:32px; height:32px; margin:0 16px 0; } - #navigation .enabled-app:hover, #navigation .enabled-app:focus {opacity:1; } - #navigation .enabled-app img {display:block; width:32px; height:32px; margin:0 16px 0; opacity:0.3; background-repeat:no-repeat; cursor:pointer;} + #navigation .enabled-app:hover, #navigation .enabled-app:focus { opacity:1; } + #navigation .enabled-app img { opacity:0.3; cursor:pointer;} #navigation .enabled-app a {padding:4px 0 4px; } #navigation .enabled-app:hover a, #navigation .enabled-app:focus a {opacity:0.8; } #navigation .enabled-app:hover img, #navigation .enabled-app:focus img {opacity:0.8; } @@ -208,6 +208,7 @@ fieldset.warning legend { color:#b94a48 !important; } #expanddiv a img { margin-bottom:-3px; } #expanddiv a:hover, #expanddiv a:focus, #expanddiv a:active { opacity:1; } + /* VARIOUS REUSABLE SELECTORS */ .hidden { display:none; } .bold { font-weight:bold; } diff --git a/settings/js/apps.js b/settings/js/apps.js index d4d25c499ca..ec0de8e4da5 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -113,7 +113,8 @@ OC.Settings.Apps = OC.Settings.Apps || { var img =$('<img></img>'); li.attr('data-id', entry.id); li.attr('class', 'enabled-app'); - img.attr('style', 'background-image: url('+entry.icon+');'); + img.attr('src', entry.icon); + img.attr('class', 'icon'); li.append(img); var a=$('<a></a>'); a.text(entry.name); |