From: Jan-Christoph Borchardt Date: Thu, 18 Jul 2013 16:40:09 +0000 (+0200) Subject: use background image instead of img for Files delete icon X-Git-Tag: v6.0.0alpha2~317^2~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=197c979d264f15d82e991f45c7155b2172aae3c6;p=nextcloud-server.git use background image instead of img for Files delete icon --- diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index aa66a57a7b5..bb0a27638e4 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -125,12 +125,9 @@ var FileActions = { if (typeof trashBinApp !== 'undefined' && trashBinApp) { var html = ''; } else { - var html = ''; + var html = ''; } var element = $(html); - if (img) { - element.append($('')); - } element.data('action', actions['Delete']); element.on('click', {a: null, elem: parent, actionFunc: actions['Delete']}, actionHandler); parent.parent().children().last().append(element); diff --git a/core/css/styles.css b/core/css/styles.css index 94520a4e0cb..46972331df9 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -659,6 +659,10 @@ div.crumb:active { } /* icons */ +.folder-icon, .delete-icon, .edit-icon { + background-repeat: no-repeat; + background-position: center; +} .folder-icon { background-image: url('../img/places/folder.svg'); } .delete-icon { background-image: url('../img/actions/delete.svg'); } .delete-icon:hover, .delete-icon:focus {