Modify CSS for admonition environments when building EPUB

Add a lightgray `background-color` for all admonition environments.
Add a palevioletred `background-color` for all admonition-warning and
warning environments.

Signed-off-by: David Runge <dave@sleepmap.de>
This commit is contained in:
David Runge 2023-11-22 22:32:53 +01:00
parent 4e9f1c0ffd
commit ec761273df
No known key found for this signature in database
GPG key ID: 90D4B9641E092971
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,13 @@
/*
SPDX-FileCopyrightText: 2023 The "Notes on OpenPGP" project
SPDX-License-Identifier: CC0-1.0
*/
div.admonition {
background-color: lightgray;
}
div.warning,
div.admonition-warning {
background-color: palevioletred;
}

View file

@ -24,7 +24,12 @@ source_suffix = ['.md', '.rst']
templates_path = ['_templates']
exclude_patterns = []
# -- Options for EPUB output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-epub-output
epub_css_files = [
'epub/css/custom.css'
]
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output