Refactor title to nav
This commit is contained in:
parent
60a36f0eb8
commit
9cd4298764
14 changed files with 98 additions and 61 deletions
30
style/nav.css
Normal file
30
style/nav.css
Normal file
|
@ -0,0 +1,30 @@
|
|||
@layer components {
|
||||
nav {
|
||||
@apply flex flex-wrap flex-row justify-between items-center py-5;
|
||||
@apply mx-auto max-w-3xl;
|
||||
@apply font-semibold;
|
||||
|
||||
& > .nav-mobile {
|
||||
@apply md:hidden scale-125;
|
||||
}
|
||||
|
||||
& > .nav-home {
|
||||
@apply uppercase font-semibold text-lg;
|
||||
}
|
||||
|
||||
& > .nav-links {
|
||||
@apply hidden flex-row gap-5 md:h-auto md:flex;
|
||||
|
||||
&.open {
|
||||
@apply max-md:flex max-md:flex-col max-md:w-full max-md:my-5 max-md:py-5 max-md:border-y-2;
|
||||
}
|
||||
}
|
||||
|
||||
& a {
|
||||
@apply transition-colors duration-500;
|
||||
&:hover {
|
||||
@apply text-primary underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue