Closed mhostetter closed 3 months ago
Is this the desired effect?
Yes. The :collapsible:
directive option does not have anything to do with CSS classes. If you define a custom CSS classes
in the config, then you should also define the style rule(s) in CSS that should be applied. Note: the classes
config option is a convenience to augment the default value used by the :class:
directive option.
FWIW, I'm not excited by the suggestion that the collapsible
should/could be defined at the config level. Implementing such a "feature" might be too brittle to maintain, given the multitude of supported/overridden admonition and version directives.
Ok, thanks. I confused directive options and CSS classes. I'll add the directive option to the places I want to use it. Thanks.
Hello, again. Thanks for all the hard work on this great theme!
I made a custom admonition like so. I assumed that
"classes": ["collapsible"],
would automatically make it collapsible (and collapsed).However, when I instantiate the admonition like so, I get the following result.
If I explicitly add
:collapsible:
, then it works.Is this the desired effect? Thanks, as always.