Skip to content

Commit

Permalink
Move styles to Header.astro
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypa committed Aug 20, 2022
1 parent 5a2b07f commit bd90eaf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/assets/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,4 @@
.btn {
@apply inline-flex items-center justify-center rounded border border-transparent font-medium text-center text-base leading-snug transition py-3 px-6 shadow-lg ease-in duration-200 focus:ring-blue-500 focus:ring-offset-blue-200 focus:ring-2 focus:ring-offset-2;
}
}

[data-aw-toggle-menu].expanded .line1 {
transform: rotate(-45deg) translate(-12px, 8px);
}

[data-aw-toggle-menu].expanded .line2 {
transform: rotate(45deg) translate(4px, -16px);
}
10 changes: 10 additions & 0 deletions src/components/widgets/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,13 @@ const {} = Astro.props;
</nav>
</div>
</header>

<style is:global>
[data-aw-toggle-menu].expanded .line1 {
transform: rotate(-45deg) translate(-12px, 8px);
}

[data-aw-toggle-menu].expanded .line2 {
transform: rotate(45deg) translate(4px, -16px);
}
</style>

0 comments on commit bd90eaf

Please sign in to comment.