commerce/site/components/common/Navbar/Navbar.module.css
Chloe 8d19c79054 Custom Navigation
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2022-05-15 19:33:54 +07:00

40 lines
848 B
CSS

.root {
@apply sticky top-0 bg-primary z-40 transition-all duration-150;
min-height: 74px;
}
.nav {
@apply relative flex flex-row justify-between py-4 md:py-4;
}
.navMenu {
@apply hidden ml-6 space-x-4 lg:block;
}
.link {
@apply inline-flex items-center leading-6
transition ease-in-out duration-75 cursor-pointer
text-accent-5;
}
.link:hover {
@apply text-accent-9;
}
.link:focus {
@apply outline-none text-accent-8;
}
.logo {
@apply cursor-pointer rounded-full border transform duration-100 ease-in-out;
&:hover {
@apply shadow-md;
transform: scale(1.05);
}
}
.customLink {
@apply relative py-2 after:absolute after:right-1 after:top-1/2 after:mt-[-2px] after:h-2 after:w-2 after:-translate-y-1/2 after:rotate-45 after:border-b-2 after:border-r-2 after:border-current lg:pl-0 lg:pr-4 lg:after:right-0;
}