dokuwiki-plugin-gallery icon indicating copy to clipboard operation
dokuwiki-plugin-gallery copied to clipboard

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

Open lchabin opened this issue 2 years ago • 1 comments

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)

lchabin avatar Sep 14 '23 06:09 lchabin

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; }

johngnl avatar Feb 13 '24 09:02 johngnl