Skip to content

Commit

Permalink
Adjust spacing of nav items
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarvz committed Jan 22, 2025
1 parent 16e380d commit bbb2d4f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion www/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default defineConfig({
}
],
components: {
Header: "@/components/NewHeader.astro",
Header: "@/components/Header.astro",
Pagination: "@/components/Pagination.astro",
Sidebar: "@/components/Sidebar.astro",
Hero: "@/components/Hero.astro"
Expand Down
17 changes: 13 additions & 4 deletions www/src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const navEntries = nav?.entries || [];
<Search {...Astro.props} />
</div>
<div class="sl-hidden md:sl-flex right-group">
<nav class="sl-flex social-icons">
<nav class="sl-flex nav-links">
{
navEntries.length > 0 &&
navEntries.map((entry) => (
Expand All @@ -39,8 +39,10 @@ const navEntries = nav?.entries || [];
</LinkButton>
))
}
<SocialIcons {...Astro.props} />
</nav>
<div class="sl-hidden md:sl-flex social-icons">
<SocialIcons {...Astro.props} />
</div>
<ThemeSelect {...Astro.props} />
</div>
</div>
Expand All @@ -63,11 +65,18 @@ const navEntries = nav?.entries || [];
}

.right-group,
.social-icons {
.social-icons,
.nav-links {
gap: 1rem;
align-items: center;
}
.social-icons::after {

.nav-links {
gap: 1.5rem;
}

.social-icons::after,
.nav-links::after {
content: "";
height: 2rem;
border-inline-end: 1px solid var(--sl-color-gray-5);
Expand Down

0 comments on commit bbb2d4f

Please sign in to comment.