All files / apps/huella-legal/layers/design/app/theme navigationMenu.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46                                                                                           
export default {
    compoundVariants: [
        {
            variant: "link",
            orientation: "horizontal",
            class: {
                list: "gap-1",
                // The underline's offset puts it on the header's bottom edge, so it follows `header.container`'s height
                link: "min-h-11 px-3 font-sans text-sm font-semibold text-toned aria-[current]:text-highlighted focus-visible:rounded-xs focus-visible:outline-2 focus-visible:outline-primary after:inset-x-3 after:-bottom-[1.1875rem] after:h-0.5",
                linkTrailingIcon: "size-4 text-dimmed",
                // `top-full` is the nav's own bottom edge, which sits 11px above the header's
                viewport: "mt-3 shrink-0 rounded-xs bg-default shadow-lg ring-default",
                childList: "w-80 gap-0 p-2",
                childLink:
                    "rounded-xs px-3 py-2.5 before:rounded-xs focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary",
                childLinkLabel: "font-serif text-base text-highlighted",
                childLinkDescription: "font-sans text-meta text-pretty text-muted",
            },
        },
        {
            orientation: "horizontal",
            contentOrientation: "vertical",
            class: {
                content: "w-auto",
            },
        },
        {
            variant: "link",
            orientation: "vertical",
            class: {
                list: "divide-y divide-muted border-b border-default",
                link: "min-h-14 px-4 font-serif text-xl text-highlighted aria-[current]:text-primary focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary",
                childList: "ms-4 mb-3 border-s border-default",
            },
        },
        {
            variant: "link",
            orientation: "vertical",
            level: true,
            class: {
                link: "min-h-11 text-lg",
            },
        },
    ],
};