Skip to content

Commit

Permalink
fix(script): update default image styles reset
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Mar 10, 2016
1 parent 088995a commit b5adce4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions _app/assets/themes/curtana/_js/lightense.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ var Lightense = (function() {
}

function track (element) {
// Apply zoom-in cursor for target images
element.style.cursor = 'zoom-in';

// Element needs a src at minumun
if (element.getAttribute('data-image') || element.src) {
element.style.cursor = 'zoom-in';
element.addEventListener('click', function () {
init(this);
}, false);
Expand Down Expand Up @@ -91,8 +89,12 @@ var Lightense = (function() {

var imageProperties = {
'display': 'block',
'width': 'auto',
'height': 'auto',
'maxWidth': '100%',
'maxHeight': '100%',
'minWidth': '0',
'minHeight': '0',
'padding': '0',
'margin': '0 auto'
};
Expand Down

0 comments on commit b5adce4

Please sign in to comment.