Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/scripts/components/elements/GreyRowBox.tsx
7461 views
1
import styled from 'styled-components/macro';
2
import tw from 'twin.macro';
3
4
export default styled.div<{ $hoverable?: boolean }>`
5
${tw`flex rounded no-underline text-neutral-200 items-center bg-neutral-700 p-4 border border-transparent transition-colors duration-150 overflow-hidden`};
6
7
${(props) => props.$hoverable !== false && tw`hover:border-neutral-500`};
8
9
& .icon {
10
${tw`rounded-full w-16 flex items-center justify-center bg-neutral-500 p-3`};
11
}
12
`;
13
14