From 9868b04fae0366cd776b927622e352e62eefed5e Mon Sep 17 00:00:00 2001 From: Geo Date: Mon, 16 May 2022 11:40:29 +0100 Subject: [PATCH] fix: case with book at site root --- .github/workflows/build-test-site.yaml | 2 +- wowchemy/assets/scss/wowchemy/layouts/_book.scss | 5 +++++ wowchemy/layouts/partials/book_sidebar.html | 9 +++++++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-test-site.yaml b/.github/workflows/build-test-site.yaml index 494e120f..f895d88d 100644 --- a/.github/workflows/build-test-site.yaml +++ b/.github/workflows/build-test-site.yaml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node-version: [15.x] + node-version: [16.x] steps: - uses: actions/checkout@v2 diff --git a/wowchemy/assets/scss/wowchemy/layouts/_book.scss b/wowchemy/assets/scss/wowchemy/layouts/_book.scss index 48d039ac..bf811c5d 100644 --- a/wowchemy/assets/scss/wowchemy/layouts/_book.scss +++ b/wowchemy/assets/scss/wowchemy/layouts/_book.scss @@ -90,6 +90,11 @@ } } +.no-navbar .docs-sidebar { + top: 0; + height: 100vh; +} + @media (min-width: 1200px) { .docs-sidebar { flex: 0 1 320px; diff --git a/wowchemy/layouts/partials/book_sidebar.html b/wowchemy/layouts/partials/book_sidebar.html index ad78cb05..a21cf56e 100644 --- a/wowchemy/layouts/partials/book_sidebar.html +++ b/wowchemy/layouts/partials/book_sidebar.html @@ -2,9 +2,10 @@