From 2b2c02d83648ecfcd8d8a92ca716ca8572f206b5 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 30 Nov 2023 19:51:53 +0100 Subject: [PATCH] Add custom CSS for the HTML output Distinguish links to internal glossary items (default text color, dotted bottom border) and those to sections, references or footnotes (blue, dashed bottom border). Use darkgreen (solid bottom border) for external links instead of the default blue. Signed-off-by: David Runge --- book/source/_static/html/css/custom.css | 48 +++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 book/source/_static/html/css/custom.css diff --git a/book/source/_static/html/css/custom.css b/book/source/_static/html/css/custom.css new file mode 100644 index 0000000..a2bd3de --- /dev/null +++ b/book/source/_static/html/css/custom.css @@ -0,0 +1,48 @@ +/* +SPDX-FileCopyrightText: 2023 The "Notes on OpenPGP" project +SPDX-License-Identifier: CC0-1.0 + +NOTE: Colors are adapted to match those of the "alabaster" theme +*/ + +/* +External links +*/ +a.external.reference { + color: darkgreen; + text-decoration: none; + border-bottom: 1px solid darkgreen; +} + +/* +Internal links +*/ +a.internal.reference { + text-decoration: none; + border-bottom-style: none; +} + +/* +Text in section and reference links +*/ +span.std-doc, +span.std-numref, +span.std-ref, +a.footnote-reference { + border-bottom: 1px dashed #3333ff; + color: #3333ff; + text-decoration: none; +} + +a.footnote-reference:hover { + border-bottom: 1px dashed #3333ff; + text-decoration: none; +} + +/* +Text in glossary links +*/ +span.std-term { + color: rgb(62, 67, 73); + border-bottom: 1px dotted rgb(62, 67, 73); +}