From 691f2e48ef78e26079638b5e84058573923261f4 Mon Sep 17 00:00:00 2001 From: douden <49307154+douden@users.noreply.github.com> Date: Fri, 27 Dec 2024 17:48:51 +0100 Subject: [PATCH] issue #6 & link colors --- README.md | 17 ++++++++++++++++- .../static/tudelft_style.css | 5 +++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 80bd6d1..ea18f4b 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@ This extension applies styling changes, being - buttons, - badges, - custom components, - - $\LaTeX$ + - $\LaTeX$, + - the primary and secondary color of the book (mainly used for typesetting links). - particular icons for: - proofs (e.g. theorem, axiom, lemma, corollary, etc.), - exercises, @@ -54,9 +55,23 @@ In your `_config.yml` file, add the extension to the list of Sphinx extra extens ``` sphinx: extra_extensions: + . + . + . - sphinx_tudelft_theme + . + . + . ``` +The following Sphinx extra extensions (if used) must be added _before_ this extension: + +- `sphinx_proof` +- `sphinx_exercise` +- `teachbooks_sphinx_grasple` + +If this is forgotten, the CSS of this extension cannot be applied correctly. + ## Usage By following the steps above, the theme will be applied automatically. To see the examples of usage visit the [TeachBooks manual](https://teachbooks.io/manual/intro.html). diff --git a/src/sphinx_tudelft_theme/static/tudelft_style.css b/src/sphinx_tudelft_theme/static/tudelft_style.css index dedf469..c98125e 100644 --- a/src/sphinx_tudelft_theme/static/tudelft_style.css +++ b/src/sphinx_tudelft_theme/static/tudelft_style.css @@ -78,6 +78,11 @@ --darkBlue-min: #c1e3ff10; --darkBlue-mid: #c1e3ff25; } + + html { + --pst-color-primary: var(--cyan) !important; + --pst-color-secondary: var(--green) !important; +} /* BLOCK COMPONENTS (admonitions, proofs, exercises) */