diff --git a/src/qiskit_sphinx_theme/assets/styles/qiskit-sphinx-theme.scss b/src/qiskit_sphinx_theme/assets/styles/qiskit-sphinx-theme.scss index d133d47b..866fb8c0 100644 --- a/src/qiskit_sphinx_theme/assets/styles/qiskit-sphinx-theme.scss +++ b/src/qiskit_sphinx_theme/assets/styles/qiskit-sphinx-theme.scss @@ -53,8 +53,6 @@ body { --color-sidebar-item-background--hover: #efeff4; /* This defaults to 15em in Furo, but we want a little bigger. */ --qiskit-left-sidebar-width: 18em; - /* This defaults to 1rem, but we make it bigger since we increase the size of the sidebar. */ - --sidebar-item-spacing-horizontal: 2rem; /* ----------------------------------------------------------------------- * Admonitions @@ -203,14 +201,6 @@ div.header-left svg use { * Left side bar: styling * ------------------------------------------------------------------------------- */ -/* Our override of --sidebar-item-spacing-horizontal to be 2rem rather than 1rem would naively -* result in subpages in the left table of contents having too much indentation. We want to keep -* the same indentation, only increase the overall padding of the left bar. So, we revert back -* this rule to be the original 1rem. */ -.sidebar-tree li > ul { - margin-left: calc(var(--sidebar-item-spacing-horizontal) * 0.5); -} - /* Even though we override --color-sidebar-link--top-level to be a more muted look, we change * the currently selected page to be purple to make it more obvious. */ .sidebar-tree .current-page > .reference { diff --git a/tests/js/snapshots.test.js-snapshots/left-side-bar-previous-releases-are-expandable-1-linux.png b/tests/js/snapshots.test.js-snapshots/left-side-bar-previous-releases-are-expandable-1-linux.png index f9a9ca1b..791e713e 100644 Binary files a/tests/js/snapshots.test.js-snapshots/left-side-bar-previous-releases-are-expandable-1-linux.png and b/tests/js/snapshots.test.js-snapshots/left-side-bar-previous-releases-are-expandable-1-linux.png differ diff --git a/tests/js/snapshots.test.js-snapshots/left-side-bar-renders-correctly-1-linux.png b/tests/js/snapshots.test.js-snapshots/left-side-bar-renders-correctly-1-linux.png index 0afe562e..627d9acf 100644 Binary files a/tests/js/snapshots.test.js-snapshots/left-side-bar-renders-correctly-1-linux.png and b/tests/js/snapshots.test.js-snapshots/left-side-bar-renders-correctly-1-linux.png differ diff --git a/tests/js/snapshots.test.js-snapshots/left-side-bar-translations-are-expandable-1-linux.png b/tests/js/snapshots.test.js-snapshots/left-side-bar-translations-are-expandable-1-linux.png index 69b13026..36c5af28 100644 Binary files a/tests/js/snapshots.test.js-snapshots/left-side-bar-translations-are-expandable-1-linux.png and b/tests/js/snapshots.test.js-snapshots/left-side-bar-translations-are-expandable-1-linux.png differ