From ecf0035d48436217f29d245db91e1fc2389a3e72 Mon Sep 17 00:00:00 2001 From: Chris Holdgraf Date: Thu, 13 Jan 2022 16:32:21 -0800 Subject: [PATCH] ENH: CSS only sidebar toggling (#454) --- 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 | 97 ++++++++++++++---- src/scss/_topbar.scss | 99 ++++--------------- src/scss/_utilities.scss | 12 +++ src/scss/_variables.scss | 1 + 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 ++-- 14 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 %} -