Skip to content
Discussion options

You must be logged in to vote

Hi @Thiti517,
admonitions and details, are generated by separate Markdown Extensions:

Which generate output separately. Also looking at other SSGs like Docosaurus, there is also a clear separation between admonitions and details, as details is an HTML tag.

MkDocs and with it Material for MkDocs uses these dependencies, and has to work with the given output. Hence, the theme defines two selectors for the CSS:

.md-typeset .note > .admonition-title, .md-typeset .note > summary {
  background-color: #448aff1a;
}

and the same should be done with JavaScript. though fo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Thiti517
Comment options

Answer selected by Thiti517
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
upstream Issue must be taken upstream
2 participants