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 12, 2024
1 parent 7c9cb67 commit 9a84931
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 @@ -265,7 +265,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 @@ -37,3 +37,7 @@ $admonition-border-radius: 0.25rem;
$focus-ring-radius: 0.125rem; // 2px at 100% zoom and 16px base font.

$navbar-link-padding-y: 0.25rem;

// 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 9a84931

Please sign in to comment.