diff --git a/modules/ad_banner/_ad_banner_widget0.html.erb b/modules/ad_banner/_ad_banner_widget0.html.erb index 9ba89ce..f9446b5 100644 --- a/modules/ad_banner/_ad_banner_widget0.html.erb +++ b/modules/ad_banner/_ad_banner_widget0.html.erb @@ -76,14 +76,29 @@ $caption.after($controlplay); }, 500); - - $('.ba-banner-widget-0 .w-ad-banner__slide a') - .on('focus', function() { - $('.ba-banner-widget-0 img').css('position', 'relative'); - }) - .on('blur', function() { - $('.ba-banner-widget-0 img').css('position', ''); - }); +$('.ba-banner-widget-0 .w-ad-banner__slide a') + .on('focus', function() { + $('.ba-banner-widget-0 img').css({ + 'height' : 'auto', + 'width' : '80%', + 'margin' : 'auto', + 'position' : 'relative', + 'display' : 'flex', + 'justify-content' : 'center', + 'margin-top' : '1em' + }); + }) + .on('blur', function() { + $('.ba-banner-widget-0 img').css({ + 'height' : '', + 'width' : '', + 'margin' : '', + 'position' : '', + 'display' : '', + 'justify-content' : '', + 'margin-top' : '' + }); + }); });