mkdocs-glightbox
mkdocs-glightbox copied to clipboard
[Feature Request] Support transparency
Hey, would it feasible to support transparency in in images (e.g on PNGs and SVGs)? Thank you!
Hi @couleurm. Do you mean keeping the PNG or SVG files background transparent instead of a white background?
The effect with the transparency background in the slide looks as follows:
Currently, this plugin will add a white background automatically that looks as follows:
Hi yes, how can glightbox be configured like in your first picture?
that drop shadow makes it really explicit where the picture ends, can that also be configured?
Hi @couleurm,
The latest version v0.3.7 can change the slide image background and disable the slide image's shadow by plugin options. In your case, you can set the config as follows:
plugins:
- glightbox:
background: none
shadow: false
what type of value can be put in background? it'd be cool to have rgba
You can check details on document. Any valid CSS value for background is fine.