Replies: 2 comments 1 reply
-
You can make a js-injection on admonitions for better customization |
Beta Was this translation helpful? Give feedback.
1 reply
-
Add this to you custom CSS: .md-typeset img-comparison-slider figure {
margin: initial;
} the material theme adds margin to figures. Admonitions work too. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to use this image comparison slider with mkdocs-material. While the default integration works well enough, I am having trouble running their example with labels.
The code is as follows:
First off, without the surrounding
<div>
tag, Python-Markdown somehow messes up the layout and the comparison slider doesn't work. If I use a<img>
directly inside the<img-comparison-slider>
, rather than a<figure>
block, I do not need the surrounding<div>
tag.But there is a problem that is specific to mkdocs-material: somehow the left/right images are not aligned anymore when I use labels/figcaption. See the following screenshots:
mkdocs (no theme)
mkdocs-material
Any help/suggestion as to how to make this work with mkdocs-material would be appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions