Overview (and source) need CSS for RST admonition directives (BB-8038)

Issue #6862 resolved
created an issue

In a readme.rst, I expect

.. IMPORTANT:: title

to render as

<div class="important">
<p class="first admonition-title">Important</p>
<p class="last">text</p>

It does, however the elements are unstyled. The p.first.admonition-title runs in to the previous paragraph, and the title and text start their own paragraphs. I expect the styling to be something like:

div.attention, div.caution, div.danger, div.error, div.hint, div.important, div.note, div.tip, div.warning, div.admonition {
    border: 1px solid black;
    margin: 10px 0 0 20px;
    padding: 5px;

p.admonition-title {
    font-size: 20px;

Comments (6)

  1. FinalDoom reporter

    This should also affect the other directives as in the docs. Revised above to reflect, I think. There should also be special styles for danger, error, caution, and possibly warning. Docutils rst2html.py does this, and is what I base my expectations on.

  2. Log in to comment