Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Being able to set the background color in Lightbox mode to something other than black (feature wish) #178

Open
lchabin opened this issue Sep 14, 2023 · 1 comment

Comments

@lchabin
Copy link

lchabin commented Sep 14, 2023

This is in order to deal with sets of png pictures that are drawings in black with a transparency layer.
That can happen when you export some excel files into pictures.
Offering white color would be enough for me.
(just a low prio wish)

@johngnl
Copy link

johngnl commented Feb 13, 2024

Maybe this helps as a quick solution. If you need a white somewhat opaque background for all your pictures, just add these rules to lib/plugins/gallery/screen.less

.sl-overlay {
background-color: white;
opacity: 0.9 !important;
}
/* To be able to see the buttons change the color to a non white one. */
.sl-wrapper .sl-counter, .sl-wrapper .sl-close, .sl-wrapper .sl-navigation button,
.sl-wrapper .sl-counter:hover, .sl-wrapper .sl-close:hover, .sl-wrapper .sl-navigation button:hover {
color: black;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants