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

Increase horizontal whitespace between navbar icon links #1964

Merged
merged 1 commit into from
Aug 28, 2024
Merged
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
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@
ul.navbar-icon-links {
display: flex;
flex-flow: row wrap;
column-gap: 1rem;
column-gap: $nav-icon-column-gap;
justify-content: space-evenly;
align-items: center;
padding-left: 0;
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@

.navbar-header-items__end,
.navbar-header-items__center {
column-gap: 1rem;
column-gap: $nav-icon-column-gap;
}

// A little smaller because this is displayed by default on mobile
5 changes: 5 additions & 0 deletions src/pydata_sphinx_theme/assets/styles/variables/_layout.scss
Original file line number Diff line number Diff line change
@@ -37,3 +37,8 @@ $admonition-border-radius: 0.25rem;
$focus-ring-radius: 0.125rem; // 2px at 100% zoom and 16px base font.

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

// Ensure that there is no overlap of bumper disks (smallest circle that
// 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;