From d38a122cb4fc4008c7f23e62c9d01033905c6f8f Mon Sep 17 00:00:00 2001 From: ukkopahis <95980324+ukkopahis@users.noreply.github.com> Date: Wed, 26 Jan 2022 00:31:34 +0200 Subject: [PATCH] docs: keep top tabs always visible and hide footer * per default, navigation tabs disappear when you scroll down the page, which may confuse some users * hide "Made with Material" footer which is visible when scrolling to the bottom, which takes up space and may make the left menu scrollbar to appear, and thus reduce usability. --- docs/style.css | 4 ++++ mkdocs.yml | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 docs/style.css diff --git a/docs/style.css b/docs/style.css new file mode 100644 index 00000000..4ba1f2c7 --- /dev/null +++ b/docs/style.css @@ -0,0 +1,4 @@ +/* hide "Made with Material" footer */ +.md-footer-meta { + display: none; +} diff --git a/mkdocs.yml b/mkdocs.yml index ac813ca0..63513a1b 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -21,6 +21,7 @@ theme: features: - tabs - navigation.tabs + - navigation.tabs.sticky - navigation.sections plugins: @@ -49,6 +50,9 @@ plugins: Menu-System.md: Developers/Menu-System.md Contributing-Services.md: Developers/index.md +extra_css: + - style.css + markdown_extensions: - admonition - pymdownx.superfences