FIX: AJAX styling

This commit is contained in:
Tony Air 2020-08-30 01:35:17 +07:00
parent 93d377cf47
commit ceb625d269
4 changed files with 10 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@a2nt/meta-lightbox", "name": "@a2nt/meta-lightbox",
"version": "2.2.4", "version": "2.2.5",
"description": "Universal Lightbox window", "description": "Universal Lightbox window",
"main": "meta-lightbox.js", "main": "meta-lightbox.js",
"author": "Tony Air <tony@twma.pro>", "author": "Tony Air <tony@twma.pro>",

View File

@ -474,7 +474,7 @@ const MetaLightboxUI = (($) => {
} }
// Vertically center html // Vertically center html
if (wrap.outerHeight() < ui.$content.height()) { /*if (wrap.outerHeight() < ui.$content.height()) {
wrap.css({ wrap.css({
position: 'relative', position: 'relative',
top: '50%', top: '50%',
@ -489,9 +489,9 @@ const MetaLightboxUI = (($) => {
'margin-top': `${-(wrap.outerHeight() / 2)}px`, 'margin-top': `${-(wrap.outerHeight() / 2)}px`,
}); });
} }
}); });*/
setTimeout(() => { /*setTimeout(() => {
$(window).resize(); $(window).resize();
if (typeof window.imagesLoaded === 'function') { if (typeof window.imagesLoaded === 'function') {
@ -499,7 +499,7 @@ const MetaLightboxUI = (($) => {
$(window).resize(); $(window).resize();
}); });
} }
}, 500); }, 500);*/
ui.contentLoaded(); ui.contentLoaded();
}, },

View File

@ -2,6 +2,7 @@ $white: #fff !default;
$black: #000 !default; $black: #000 !default;
$lightbox-link-hover-color: #007bff !default; $lightbox-link-hover-color: #007bff !default;
$lightbox-breakpoint: 576px !default; $lightbox-breakpoint: 576px !default;
$body-color: #212529 !default;
$grid-breakpoints: ( $grid-breakpoints: (
xs: 0, xs: 0,

View File

@ -36,6 +36,10 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
.meta-lightbox-ajax {
color: $body-color;
}
.meta-lightbox-zoom-wrapper { .meta-lightbox-zoom-wrapper {
display: block; display: block;
height: 100%; height: 100%;