refactor: ♻️ make less use of @apply to reduce resulting css bundle size
This commit is contained in:
parent
7b2e1b14b3
commit
9f7387c54b
12 changed files with 25 additions and 98 deletions
|
@ -34,9 +34,9 @@
|
|||
collections.all |
|
||||
eleventyNavigation |
|
||||
eleventyNavigationToHtml({
|
||||
listClass: "nav-list",
|
||||
anchorClass: "nav-link",
|
||||
activeAnchorClass: "active",
|
||||
listClass: "mx-3 flex gap-2 md:mx-6 md:gap-3",
|
||||
anchorClass: "rounded-xl px-4 py-2 text-base sm:text-lg md:text-xl capitalize text-white transition-all duration-300 hover:bg-sky-900 hover:shadow-lg md:m-0 md:max-h-12 hover:dark:bg-sky-800",
|
||||
activeAnchorClass: "bg-sky-900 shadow-lg dark:bg-sky-800",
|
||||
activeKey: eleventyNavigation.key or page.url.split('/')[1]
|
||||
}) |
|
||||
safe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue