misc_pterodactyl-panel/resources/scripts/components/elements/SubNavigation.tsx
2021-07-22 11:15:27 -06:00

29 lines
758 B
TypeScript

import tw, { styled, theme } from 'twin.macro';
const SubNavigation = styled.div`
${tw`w-full bg-neutral-700 shadow overflow-x-auto`};
& > div {
${tw`flex items-center text-sm mx-auto px-2`};
max-width: 1200px;
& > a, & > div {
${tw`inline-block py-3 px-4 text-neutral-300 no-underline whitespace-nowrap transition-all duration-150`};
&:not(:first-of-type) {
${tw`ml-2`};
}
&:hover {
${tw`text-neutral-100`};
}
&:active, &.active {
${tw`text-neutral-100`};
box-shadow: inset 0 -2px ${theme`colors.cyan.700`.toString()};
}
}
}
`;
export default SubNavigation;