Skip to content

Commit

Permalink
Merge pull request #193 from ericmasiello/refactor/grid-for-nav
Browse files Browse the repository at this point in the history
refactor: use grid for nav layout
  • Loading branch information
ericmasiello authored Feb 6, 2024
2 parents 4524efb + 6ccfdbd commit 59bd7f9
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ const classes = classNames('header', className, {
}

.nav-list {
display: flex;
display: grid;
grid-template-columns: repeat(4, max-content);
gap: 1rem;
font-size: 0.75rem;
list-style-type: none;
margin: 0;
Expand All @@ -108,16 +110,7 @@ const classes = classNames('header', className, {
}

.nav-item {
padding-inline-end: 1rem;
text-transform: uppercase;
font-weight: var(--font-body-weight-bold);
}

.nav-item:first-child {
padding-inline-start: 0;
}

.nav-item:last-child {
padding-inline-end: 0;
}
</style>

0 comments on commit 59bd7f9

Please sign in to comment.