From 972b08e74cb2947b1e1938443a2384b8bd326381 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sat, 30 Sep 2023 23:12:14 +0100 Subject: [PATCH] doc: ensure the footer has the same color than the background. --- docs/assets/stylesheets/extra.css | 12 ++++++++++++ mkdocs.yml | 5 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 docs/assets/stylesheets/extra.css diff --git a/docs/assets/stylesheets/extra.css b/docs/assets/stylesheets/extra.css new file mode 100644 index 00000000..3b0fc1db --- /dev/null +++ b/docs/assets/stylesheets/extra.css @@ -0,0 +1,12 @@ +[data-md-color-scheme=default] { + --md-footer-fg-color: var(--md-text-color); + --md-footer-fg-color--light: #808080; + --md-footer-fg-color--lighter: #b6b6b6; + --md-footer-bg-color: transparent; + --md-footer-bg-color--dark: transparent; +} + +[data-md-color-scheme=slate] { + --md-footer-bg-color: transparent; + --md-footer-bg-color--dark: var(--md-default-bg-color--darkest); +} \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 05efc63f..f0ffb66c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -44,8 +44,6 @@ theme: - content.action.view - content.code.annotate - content.code.copy - - navigation.expand - - navigation.footer - navigation.indexes - navigation.sections - navigation.tabs @@ -54,6 +52,9 @@ theme: - search.share - search.suggest +extra_css: + - assets/stylesheets/extra.css + # Plugins plugins: - search