diff --git a/assets/css/content/functions.css b/assets/css/content/functions.css index ca50e6e12..0ee71f7b9 100644 --- a/assets/css/content/functions.css +++ b/assets/css/content/functions.css @@ -85,23 +85,21 @@ in both HTML and ePub. */ } } -/* Docstring headings */ .content-inner .docstring { - & :is(h1, h2, h3, h4, h5, h6) { - font-weight: 700; - font-size: 1em; - margin-top: 2em; - } - /* h1 not expected */ - & :is(h1, h2) { - font-size: 1.1em; - } - /* h4 the last level expected: smallcaps */ - & :is(h4) { - font-size: .8em; - text-transform: uppercase; - letter-spacing: .1em; - color: var(--textBody); + /* Docstring headings: h2-h4 expected; should not apply to admonition blocks within docstring. */ + & :not(.admonition-title) { + &:is(h1, h2, h3, h4, h5, h6) { + font-weight: 700; + font-size: 1em; + margin-top: 2em; + } + /* h1 not expected */ + &:is(h1, h2) { + font-size: 1.25em; + } + &:is(h3) { + font-size: 1.1em; + } } }