Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/scripts/components/elements/SubNavigation.tsx
7461 views
1
import styled from 'styled-components/macro';
2
import tw, { theme } from 'twin.macro';
3
4
const SubNavigation = styled.div`
5
${tw`w-full bg-neutral-700 shadow overflow-x-auto`};
6
7
& > div {
8
${tw`flex items-center text-sm mx-auto px-2`};
9
max-width: 1200px;
10
11
& > a,
12
& > div {
13
${tw`inline-block py-3 px-4 text-neutral-300 no-underline whitespace-nowrap transition-all duration-150`};
14
15
&:not(:first-of-type) {
16
${tw`ml-2`};
17
}
18
19
&:hover {
20
${tw`text-neutral-100`};
21
}
22
23
&:active,
24
&.active {
25
${tw`text-neutral-100`};
26
box-shadow: inset 0 -2px ${theme`colors.cyan.600`.toString()};
27
}
28
}
29
}
30
`;
31
32
export default SubNavigation;
33
34