Remove padding on mobile
-
Hi there,
is there any way to remove padding on mobile screens?
I disabled buttons on mobile,
/* Smartphones */
@media (max-width: 768px) {
.pswp__button, .pswp__counter {
display: none !important;
}
}so there is no need for the white space beside the image. The image should fill the available space of a mobile display.
I read https://photoswipe.com/styling/, but I don’t know how to implement JS on my site (I suppose the examples of Dmytro are JS, aren’t they?).
I think the padding I made in the plugin (Lightbox with PhotoSwipe > Theme > Image padding > 80px) are stored in this code:
var lbwpsOptions = {"label_facebook":"Share on Facebook","label_twitter":"Tweet","label_pinterest":"Pin it","label_download":"Download image","label_copyurl":"Copy image URL","label_ui_close":"Close [Esc]","label_ui_zoom":"Zoom","label_ui_prev":"Previous [\u2190]","label_ui_next":"Next [\u2192]","label_ui_error":"The image cannot be loaded","label_ui_fullscreen":"Toggle fullscreen [F]","label_ui_download":"Download image","share_facebook":"0","share_twitter":"0","share_pinterest":"0","share_download":"0","share_direct":"0","share_copyurl":"0","close_on_drag":"1","history":"1","show_counter":"1","show_fullscreen":"0","show_download":"0","show_zoom":"0","show_caption":"0","loop":"0","pinchtoclose":"1","taptotoggle":"1","close_on_click":"1","fulldesktop":"0","use_alt":"0","usecaption":"0","desktop_slider":"1","share_custom_label":"","share_custom_link":"","wheelmode":"zoom","spacing":"12","idletime":"3000","hide_scrollbars":"1","caption_type":"below","bg_opacity":"100","padding_left":"80","padding_top":"80","padding_right":"80","padding_bottom":"80"};How can I access this? Can I change the padding for mobile with CSS?
Regards,
RolandThe page I need help with: [log in to see the link]
You must be logged in to reply to this topic.