From 9a33ad26d511bbea8c5c7770032bbbc6dd2ce85d Mon Sep 17 00:00:00 2001 From: Chris Holdgraf Date: Sat, 8 Jan 2022 15:09:12 -0800 Subject: [PATCH] ENH: CSS only sidebar toggling --- sphinx_book_theme/layout.html | 7 +- ...theme.6d63ca35aa3bd31f582e625a249d926a.js} | 2 - .../static/sphinx-book-theme.css | 2 +- sphinx_book_theme/theme.conf | 2 +- sphinx_book_theme/topbar.html | 18 ++-- src/js/sphinx-book-theme.js | 9 -- src/scss/_leftbar.scss | 98 ++++++++++++++---- src/scss/_topbar.scss | 99 ++++--------------- src/scss/_utilities.scss | 12 +++ src/scss/sphinx-book-theme.scss | 1 + tests/test_build/test_build_book.sphinx3.html | 47 ++++----- tests/test_build/test_build_book.sphinx4.html | 47 ++++----- .../test_topbar_download_button_off.html | 17 ++-- 13 files changed, 182 insertions(+), 179 deletions(-) rename sphinx_book_theme/static/{sphinx-book-theme.d59cb220de22ca1c485ebbdc042f0030.js => sphinx-book-theme.6d63ca35aa3bd31f582e625a249d926a.js} (94%) create mode 100644 src/scss/_utilities.scss diff --git a/sphinx_book_theme/layout.html b/sphinx_book_theme/layout.html index 9d689e63..d8e9a5dd 100644 --- a/sphinx_book_theme/layout.html +++ b/sphinx_book_theme/layout.html @@ -9,7 +9,12 @@ {% block docs_sidebar %} -