-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
support #only-dark
and #only-light
feature of mkdocs material
#26
Comments
I am afraid that I can't implement this. Since only-light and only-dark feature is implemented by CSS selector, and glightbox doesn't support dynamically add or remove images from slide. If this lightbox effect affects your dynamic image based on the theme, you can add the class |
I have also found this problem and I'm surprised that I found a solution for that, right in the document https://blueswen.github.io/mkdocs-glightbox/gallery/gallery/ So instead of
Add the
or any name to separate them into different galleries (in here I use This works perfectly! |
This is a very cool plugin!
There is only one problem I am facing, when a page uses the
#only-light
or#only-dark
feature of Mkdocs, the gallery has blank images (for the images which are hidden based on the theme).For example, if you include the following markdown on a page:
If you are currently in light-mode, the gallery will contain 2 images, with the dark-mode one showing as blank.
The text was updated successfully, but these errors were encountered: