Move styles to Header.astro
This commit is contained in:
@ -6,12 +6,4 @@
|
|||||||
.btn {
|
.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;
|
@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);
|
|
||||||
}
|
}
|
@ -101,3 +101,13 @@ const {} = Astro.props;
|
|||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</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>
|
||||||
|
Reference in New Issue
Block a user