Skip to content

Commit

Permalink
Increase space between links in right sidebar to match left sidebar (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gabalafou committed Sep 18, 2024
1 parent 901541f commit 7e20e75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ nav.page-toc {

a.nav-link {
display: block;
padding: 0.125rem 0;
padding: $toc-item-padding-y 0;

// Padding w/ negative margin so the top TOC item highlight overlaps w/ the TOC border
padding-left: 1rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ nav.bd-links {

li > a {
display: block;
padding: 0.25rem 0.65rem;
padding: $toc-item-padding-y 0.65rem;

@include link-sidebar;

Expand Down
4 changes: 4 additions & 0 deletions src/pydata_sphinx_theme/assets/styles/variables/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ $navbar-link-padding-y: 0.25rem;
// contains the bounding box of the interactive element).
// - https://github.com/Quansight-Labs/czi-scientific-python-mgmt/issues/81#issuecomment-2251325783
$nav-icon-column-gap: 1.12rem;

// Determines vertical space between entries in both the section (left/primary
// sidebar) and page (right/secondary sidebar) table of contents
$toc-item-padding-y: 0.25rem;

0 comments on commit 7e20e75

Please sign in to comment.