From ec6cc3c0320a5bc2ab5042017fa72e86e8e813c8 Mon Sep 17 00:00:00 2001 From: Frederic Werner <20406381+wernerfred@users.noreply.github.com> Date: Sun, 17 Oct 2021 12:50:02 +0200 Subject: [PATCH] docs(deps): bump mkdocs-material to 7.3.2 (#2244) * docs(deps): bump mkdocs-material to 7.3.3 Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com> --- .github/workflows/scripts/docs/build-docs.sh | 2 +- docs/content/assets/css/customizations.css | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scripts/docs/build-docs.sh b/.github/workflows/scripts/docs/build-docs.sh index 411d891c..e0fa2c76 100755 --- a/.github/workflows/scripts/docs/build-docs.sh +++ b/.github/workflows/scripts/docs/build-docs.sh @@ -6,7 +6,7 @@ docker run \ --rm \ --user "$(id -u):$(id -g)" \ -v "${PWD}:/docs" \ - squidfunk/mkdocs-material:7.3.0 build --strict + squidfunk/mkdocs-material:7.3.3 build --strict # Remove unnecessary build artifacts: https://github.com/squidfunk/mkdocs-material/issues/2519 cd site || exit diff --git a/docs/content/assets/css/customizations.css b/docs/content/assets/css/customizations.css index 53fee32d..49ede009 100644 --- a/docs/content/assets/css/customizations.css +++ b/docs/content/assets/css/customizations.css @@ -1,4 +1,7 @@ -/* This file adds our styling additions / fixes to maintain. */ +/* + This file adds our styling additions / fixes to maintain. + Some of which are overly specific and may break with future updates by upstream. +*/ /* ============================================================================================================= */ @@ -40,6 +43,19 @@ If you want to append instead, switch `::before` to `::after`. /* ============================================================================================================= */ +/* + UX Bugfix for left navbar visibility on top-level (tabbed) pages with no nested sub-pages. + Upstream will not fix: https://github.com/squidfunk/mkdocs-material/issues/3109 +*/ + +@media screen and (min-width: 76.25em) { + .md-nav--lifted>.md-nav__list>.md-nav__item--active>.md-nav__link { + display: none; + } +} + +/* ============================================================================================================= */ + /* UX Bugfix for permalink affecting typography in headings. Upstream will not fix: https://github.com/squidfunk/mkdocs-material/issues/2369