From 63b75fe5fc6b57668d305290e41eb326186a8e7d Mon Sep 17 00:00:00 2001 From: azett Date: Wed, 29 Jun 2022 20:54:29 +0200 Subject: [PATCH] fixes #122 --- .../res/photoswipe-4.1.1/photoswipe.css | 39 ++++++++----------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/fp-plugins/photoswipe/res/photoswipe-4.1.1/photoswipe.css b/fp-plugins/photoswipe/res/photoswipe-4.1.1/photoswipe.css index b1f7109..26d9e3f 100644 --- a/fp-plugins/photoswipe/res/photoswipe-4.1.1/photoswipe.css +++ b/fp-plugins/photoswipe/res/photoswipe-4.1.1/photoswipe.css @@ -186,37 +186,41 @@ background: transparent url(../img/play.png) no-repeat scroll 16px 14px !importa background-image: url(../img/stop.png) !important; } +div.photoswipe { +} div.photoswipe figure { + display:inline-block; + margin:.5em 1em 0 0; +} +div.photoswipe figure img { + margin: 0 !important; +} +div.photoswipe figcaption { text-align:center; } + div.photoswipe figure.floatleft { float:left; margin:0 1em 1em 0; } +div.photoswipe figure.floatleft img.floatleft { + float:none; +} div.photoswipe figure.floatright { float:right; margin:0 0 1em 1em; } - +div.photoswipe figure.floatright img.floatright { + float:none; +} .img-gallery div.photoswipe figure { display:inline-block; width:140px; vertical-align: top; + text-align:center; margin:.5em 1em 0 0; } -div.photoswipe figure figcaption { - width:200px; -} -.img-gallery div.photoswipe figure figcaption { - width:140px; -} -div.photoswipe figure.nofloat figcaption { - width:inherit; -} -div.photoswipe figure img { - margin: 0 0 .5em 0; -} button.pswp__button--share { display:none; @@ -229,14 +233,5 @@ div.img-gallery div.photoswipe display: inline; } -/* -Fixes FP standard behaviour: If no float attribute is given, the image will get float attribute "center" -*/ -figure.nofloat, -figure.nofloat figcaption, -figure.nofloat img.center { - display:inline-block; - text-align:left !important; -} .pswp__img { margin: 0px !important; } \ No newline at end of file