Don't keep shrinking font when nesting admonitions

In some places we nest admonitions, e.g. a note within a
release-version-specific part of docs. Each admonition has a font-size
of 85% of its parent element. Even for the first nested admonition
this results in a barely readable text.

Fix it so that only the first admonition shrinks font to 85% of
parent, and it doesn't shrink further when nesting.

Change-Id: I91992a29375eea1ca9971d05827a20153b1721a7
This commit is contained in:
Jiri Stransky 2018-10-18 13:51:36 +02:00
parent 15b7d449b4
commit 876ea57533
1 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,11 @@
margin-bottom: 24px;
}
.admonition .admonition {
/* Don't keep shrinking the font for nested admonitions. */
font-size: 100%;
}
.admonition p {
font-size: inherit;
}