From 8c72b891825eeb20978782943565ec381cd8a676 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 30 Nov 2023 19:26:43 +0100 Subject: [PATCH] Add CSS for internal and external links in the EPUB output Distinguish internal links to glossary items (black, dotted bottom border) and sections, references and footnote (blue, dashed bottom border). Use darkgreen (solid bottom border) instead of blue for external links. Signed-off-by: David Runge --- book/source/_static/epub/css/custom.css | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/book/source/_static/epub/css/custom.css b/book/source/_static/epub/css/custom.css index bd7da7c..e1791ca 100644 --- a/book/source/_static/epub/css/custom.css +++ b/book/source/_static/epub/css/custom.css @@ -13,4 +13,41 @@ div.admonition { div.warning, div.admonition-warning { background-color: palevioletred; +} + +/* +External links +*/ +a.external.reference { + border-bottom: 1px solid darkgreen; + color: darkgreen; + text-decoration: none; +} + +/* +Internal links +*/ +a.internal { + text-decoration: none; + border-bottom-style: none; +} + +/* +Text in section and reference links and footnote links +*/ +span.std-doc, +span.std-numref, +span.std-ref, +a.footnote-reference { + border-bottom: 1px dashed #3333ff; + color: #3333ff; + text-decoration: none; +} + +/* +Text in glossary links +*/ +span.std-term { + color: black; + border-bottom: 1px dotted black; } \ No newline at end of file