Skip to content

Commit

Permalink
💄 [Navigation] Replace float with grid layout
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Jul 29, 2024
1 parent e937fa4 commit c205d8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Navigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ const {id, items = []} = Astro.props;
z-index: calc(var(--index-thermosphere) + 1);
bottom: var(--nav-list-bottom);
right: 0;
display: grid;
justify-items: end;

&[aria-hidden='false'] {
width: auto;
Expand All @@ -101,8 +103,6 @@ const {id, items = []} = Astro.props;
}

.Item {
float: right;
clear: both;
transition: translate var(--speed) var(--ease);
/* Stagger animation offset */
transition-delay: calc(var(--speed-fastest) * var(--nav-item-index));
Expand Down

0 comments on commit c205d8a

Please sign in to comment.