Hi, will be greate if someone can sumarize this topic to the article, if this will be summarized, I will paste it to the documentation.
Thank you, Jan
JAK Lightbox - Vertical - Change size by CSS and ?
- Jan
- Phoca Hero

- Posts: 49149
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: JAK Lightbox - Vertical - Change size by CSS and ?
If you find Phoca extensions useful, please support the project
-
antec
- Phoca Newbie

- Posts: 1
- Joined: 27 Dec 2012, 16:52
Re: JAK Lightbox - Vertical - Change size by CSS and ?
Hi,
this post is already 1.5 years old, but anyway - here my summary for this topic for vertical JAK Lightbox.
Probably this is the perfect way - but it works for me (till now).
For Lightbox of size: 1100px * 672px. Picture is then about 970*650.
In site\assets\js\jak\lightbox-vertical.css adapt width and hight of the lightbox and the image.
Adapt height for the thumbs
Height of .image-browser-thumbs should be a bit higher than .image-browser-image.
Otherwise the caption appears below the thumbs.
Next step:
components\com_phocagallery\views\category\view.html.php
Change '472' to same height as lightbox.
Now the button for 'close' and 'slideshow' are at a wrong position.
To adjust them, change the value for 'left'
site\assets\js\jak\lightbox-vertical.css
and for the slideshow-buttons change the value for 'top'.
In lightbox-slideshow.css
To change the color of the caption - I added following to lightbox-vertical.css
and to change the alignment of the text:
this post is already 1.5 years old, but anyway - here my summary for this topic for vertical JAK Lightbox.
Probably this is the perfect way - but it works for me (till now).
For Lightbox of size: 1100px * 672px. Picture is then about 970*650.
In site\assets\js\jak\lightbox-vertical.css adapt width and hight of the lightbox and the image.
Code: Select all
.lightBox {background-color: black; width: 1100px; height: 672px; padding-top:10px; padding-left: 10px; padding-bright: 10px;}
.lightBox .image-browser-image {width: 970px; height: 650px; border: 1px solid #333; overflow: hidden; padding: 0px; float: left; position: relative;}
Code: Select all
.lightBox .image-browser-thumbs { width: 127px;height: 672px; overflow-y:scroll; float: right;}
Otherwise the caption appears below the thumbs.
Next step:
components\com_phocagallery\views\category\view.html.php
Code: Select all
$lHeight = 472 + (int)$tmpl['jakdescriptionheight'];
Code: Select all
$lHeight = 672 + (int)$tmpl['jakdescriptionheight'];
To adjust them, change the value for 'left'
site\assets\js\jak\lightbox-vertical.css
Code: Select all
.lightBox .image-browser-close { position: absolute; top: 20px; left: 930px; ...
In lightbox-slideshow.css
Code: Select all
.image-browser-slideshow-pause { position: absolute; top: 600px; left: 20px; ...
.image-browser-slideshow-play { position: absolute; top: 600px; left: 20px; ...
Code: Select all
.lightBox .image-browser-caption-content { color:#aaaaaa}
Code: Select all
.lightBox .image-browser-caption-content { color:#aaaaaa; text-align:left; }
- Jan
- Phoca Hero

- Posts: 49149
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: JAK Lightbox - Vertical - Change size by CSS and ?
Hi, thank you very much for your guide.
Jan
Jan
If you find Phoca extensions useful, please support the project