Use child combinator (>) instead of descendant selector for blockquote-tag-title color rules. Without this, a nested admonition inherits the title color of its parent admonition instead of using its own type's color. Added nested admonition test case (important > note) to the existing admonition test suite. Fixes #3032
34 lines
No EOL
660 B
HTML
34 lines
No EOL
660 B
HTML
<h1 id="admonitions"><a class="header" href="#admonitions">Admonitions</a></h1>
|
|
<blockquote>
|
|
<p>[!NOTE]
|
|
This is a note.</p>
|
|
<p>There are multiple paragraphs.</p>
|
|
</blockquote>
|
|
<blockquote>
|
|
<p>[!TIP]
|
|
This is a tip.</p>
|
|
</blockquote>
|
|
<blockquote>
|
|
<p>[!IMPORTANT]
|
|
This is important.</p>
|
|
</blockquote>
|
|
<blockquote>
|
|
<p>[!WARNING]
|
|
This is a warning.</p>
|
|
</blockquote>
|
|
<blockquote>
|
|
<p>[!CAUTION]
|
|
This is a caution.</p>
|
|
</blockquote>
|
|
<blockquote>
|
|
<p>[!UNKNOWN]
|
|
This is an unknown tag.</p>
|
|
</blockquote>
|
|
<blockquote>
|
|
<p>[!IMPORTANT]
|
|
This is an important admonition.</p>
|
|
<blockquote>
|
|
<p>[!NOTE]
|
|
This nested note should have its own color.</p>
|
|
</blockquote>
|
|
</blockquote> |