Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert adding more padding to Furo table of contents #421

Merged
merged 3 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/qiskit_sphinx_theme/assets/styles/qiskit-sphinx-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading