Fix css issues with Safari

This commit is contained in:
yflory
2017-07-03 16:11:41 +02:00
parent 81c8949aee
commit fa2d857d70
4 changed files with 38 additions and 31 deletions

View File

@@ -333,6 +333,11 @@ define([
if ($content.is(':visible')) { return void show(); }
hide();
});
$(window).on('resize', function () {
mobile = $('body').width() <= 600;
var h = $ck.is(':visible') ? -$ck.height() : 0;
$content.css('margin-top', h+'px');
});
$closeIcon.click(hide);
$button.click(function () {
var visible = $content.is(':visible');