mirror of
https://codeberg.org/openpgp/notes.git
synced 2024-11-22 23:52:05 +01:00
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:
parent
4e9f1c0ffd
commit
ec761273df
2 changed files with 18 additions and 0 deletions
13
book/source/_static/epub/css/custom.css
Normal file
13
book/source/_static/epub/css/custom.css
Normal 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;
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue