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 <dave@sleepmap.de>
This commit is contained in:
David Runge 2023-11-30 19:26:43 +01:00
parent 158ece0f60
commit 8c72b89182
No known key found for this signature in database
GPG key ID: 90D4B9641E092971

View file

@ -14,3 +14,40 @@ 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;
}