Comment 4 for bug 1416572

Revision history for this message
Bernd Bausch (berndbausch) wrote :

Here is a partial fix, which creates admonitions without the awesome font icons.

To fix the colours, rename

       admonition.docs-warning ---> admonition.warning
       admonition.docs-important ---> admonition.important

Which you already did for the note admonition, it would seem.

To make the text "Note", "Important", "Warning" come out bold, add a class

      .admonition-title { font-weight: 600; }

Essentially this overwrites the CSS classes admonition.warning, admonition.important and admonition-title from Sphinx's basic theme. Now I wonder if there is a reason why separate classes named something-docs exist - were they introduced for testing or do they have a purpose?

How to include the icons, I don't know yet. Perhaps with a "content" property in the admonition classes.