Skip to content

Commit 8c8738f

Browse files
committed
Navigation arrows based on line-height
refs ashleydw#88
1 parent 5367ad9 commit 8c8738f

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

dist/ekko-lightbox.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
display: block;
2424
width: 49%;
2525
height: 100%;
26-
padding-top: 45%;
2726
font-size: 30px;
2827
color: #fff;
2928
text-shadow: 2px 2px 4px #000;

dist/ekko-lightbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ License: https://github.com/ashleydw/lightbox/blob/master/LICENSE
342342
var width_total;
343343
width_total = width + this.border.left + this.padding.left + this.padding.right + this.border.right;
344344
this.modal_dialog.css('width', 'auto').css('max-width', width_total);
345-
this.lightbox_container.find('a').css('padding-top', function() {
346-
return $(this).parent().height() / 2;
345+
this.lightbox_container.find('a').css('line-height', function() {
346+
return $(this).parent().height() + 'px';
347347
});
348348
return this;
349349
},

dist/ekko-lightbox.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ekko-lightbox.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ekko-lightbox.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ EkkoLightbox.prototype = {
300300
width_total = width + @border.left + @padding.left + @padding.right + @border.right
301301
@modal_dialog.css('width', 'auto') .css('max-width', width_total);
302302

303-
@lightbox_container.find('a').css 'padding-top', ->
304-
$(@).parent().height() / 2
303+
@lightbox_container.find('a').css 'line-height', ->
304+
$(@).parent().height() + 'px'
305305
@
306306

307307
checkDimensions: (width) ->

ekko-lightbox.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
height: 100%;
3030
width:49%;
3131
display:block;
32-
padding-top:45%;
3332
text-shadow: 2px 2px 4px #000;
3433
filter: dropshadow(color=#000, offx=2, offy=2);
3534
z-index:100;

0 commit comments

Comments
 (0)