help! lightbox adjustments
smadar79k
Registered Users Posts: 5 Beginner grinner
hi all!
so i'm customizing my smugmug site for future commercial use, and i got an issue with the light box. one support hero suggested i post it up in this forum, so- here i am!
to put it in short: the light box that opens when clicking on an image is simply way too big for my use. the support hero says that it's designed so that it would fit whole in any browser, but that's a problem for me, both aesthetically, and also because it allows a screen capture and possible copyright infringement.
so- what i'm interested in is a method to control the size of the light box. i would like have it fit somewhere around 25% of the screen, and centered.
i don't know much about messing around with CSS or whatever, but i would really love any suggestions you might have and possibly a step-by-step solution....
thanks so much for helping!
smadar
so i'm customizing my smugmug site for future commercial use, and i got an issue with the light box. one support hero suggested i post it up in this forum, so- here i am!
to put it in short: the light box that opens when clicking on an image is simply way too big for my use. the support hero says that it's designed so that it would fit whole in any browser, but that's a problem for me, both aesthetically, and also because it allows a screen capture and possible copyright infringement.
so- what i'm interested in is a method to control the size of the light box. i would like have it fit somewhere around 25% of the screen, and centered.
i don't know much about messing around with CSS or whatever, but i would really love any suggestions you might have and possibly a step-by-step solution....
thanks so much for helping!
smadar
0
Comments
If you do just want it as an aesthetic option, add this CSS code to your theme:
http://www.sherlockphotography.org/Customisations/Lightbox-margin
You can change the 0.97 to 0.25 in that code if you only want to fill 25% of the window (that's about as big as a postage stamp).
Please check out my gallery of customisations for the New SmugMug, more to come!
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
do you know of any way to make the entire window smaller, so that there is still visibility to the page below? or if not- a way to make the light box background translucent?
thanks again!
I think scaling down the whole lightbox is probably not achievable.
Please check out my gallery of customisations for the New SmugMug, more to come!
You certainly can adjust the size of the mask and position it relative, but that's probably not what you want - because all the controls like the navigation arrows, full screen and close button still remain at the edges of the page.
A visual trick would be drop shadow and a border:
This, when used in conjuction with the opacity setting above makes the lightbox seem smaller (the size of the image). Of course this is all academic on the mobile version. You can probably shorten the border-radius to just 20px if you want.
Torn between cycling and photography!
i even managed to tweak it a bit to my own taste - a white boarder instead of the brown one, for example. and i gotta say i feel like a computer genius for being able to achieve that!!! (-:
one question though:
in the css it has this line concerning the boarder: border: 5px solid #333333;
what word do i use instead of "solid" if i aim to have my boarder a bit transparent (that is- i'm assuming "solid" is the command for that feature)?
thank you once again!
You could try this code:
Where the first three zeros are Red, Green, Blue and the final 0.5 indicates opacity/alpha (from 0 through to 1). 0,0,0 gives you black, and 0.5 means 50% opacity.
I've not tried it myself. However, you might get problems with the square image overflowing outside of the border region which won't look good. The word solid indicates the style of border you want, ie, dashed lines or solid, etc. See the following for an overview of the settings:
http://www.w3schools.com/css/css_border.asp
I did it on mine to look like this:
http://reheatimages.smugmug.com/CivilAviation/Aerial/i-F8jxFcn/A
Repositioning all the controls for the lightbox doesn't seem easy at all especially given any tweaks you do must be appropriate for not just web, but mobile and tablet devices too.
Torn between cycling and photography!
Unfortunately even this transparent code is not working for me. I have no idea why. I can have the border around photo etc, but not the transparent background I need help!
But then again, is there no way to bring all buttons (arrows, close, filename, size, download etc closer to photo or just in general make lightbox smaller??
Apply this customisation:
http://www.sherlockphotography.org/Customisations/Lightbox-captions
But add this CSS to the bottom:
Tune that height to set the Lightbox to whatever height you like!
Please check out my gallery of customisations for the New SmugMug, more to come!
Here's my personal site with your custom code. http://sunnyshots.smugmug.com/PhotoBlog/2013/
This went so well that I now feel capable of trying some of your other tricks!