doc: style admonitions

Only certain type of admonitions were styled (e.g. notes, warnings,
etc.). This change also styles generic admonitions such as:

```rst
... admonition:: Rationale

    ...
```

Fixes #40622

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-12-01 11:48:45 +01:00 committed by Carles Cufí
commit 05284cfe17

View file

@ -527,6 +527,7 @@ a.internal:visited code.literal {
/* Admonition tweaks */
.rst-content .admonition,
.rst-content .admonition.note,
.rst-content .admonition.seealso {
background-color: var(--admonition-note-background-color);
@ -534,6 +535,7 @@ a.internal:visited code.literal {
overflow: auto;
}
.rst-content .admonition .admonition-title,
.rst-content .admonition.note .admonition-title,
.rst-content .admonition.seealso .admonition-title {
background-color: var(--admonition-note-title-background-color);