Skip to content

Commit

Permalink
styles fix nav items
Browse files Browse the repository at this point in the history
  • Loading branch information
vanessacor committed May 12, 2024
1 parent 103c78c commit 488a1bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/components/navigation/NavigationItem.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ const isBlogRoute = pathname.startsWith("/blog")
const isHome = href === "/"
const isActive = href === pathname || isBlogRoute && isHome
---
<a class:list={[{active: isActive}, "link"]} href={href}>
{label}
</a>
<a class:list={[{active: isActive}, "link"]} href={href}>{label}</a>

<style scoped>
a {
Expand Down
6 changes: 3 additions & 3 deletions src/layouts/PageLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ const { title } = Astro.props;

<style is:global>
.layout {
display: grid;
grid-template-columns: 1fr;
grid-auto-rows: 1fr auto 1fr;
display: flex;
flex-direction: column;
height: 100%;
}
.main {
flex-grow: 1;
margin-bottom: var(--space-xxl);
}

Expand Down

0 comments on commit 488a1bf

Please sign in to comment.