only_light/only_dark classes break alignment of images within figures #423
-
When I use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi there! Could you provide a reproducer for the issue you're seeing? |
Beta Was this translation helpful? Give feedback.
-
@pradyunsg hi again! Actually, I think I found the right solution.
So there's no issue with the Furo theme, sorry. However, the usage of |
Beta Was this translation helpful? Give feedback.
@pradyunsg hi again!
Actually, I think I found the right solution.
When using figures, one must use
:figclass: only_light/dark
instead of:class: only_light/dark
.This way, the class applies to the
<figure>
HTML tag instead of the<img>
and the image is aligned correctly.More than that, it allows to use different captions depending on the light/dark mode:
So there's no issue with the Furo theme, sorry. However, the usage of
:figclass: only_light/dark
for …