mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Add link text styles
This commit is contained in:
@@ -24,9 +24,12 @@ const BaseText = styled(MantineText)<any>`
|
||||
color: ${(props) =>
|
||||
props.secondary ? 'var(--main-fg-secondary)' : 'var(--main-fg)'};
|
||||
font-family: ${(props) => props.font};
|
||||
/* cursor: ${(props) => (props.link ? 'cursor' : 'default')}; */
|
||||
user-select: ${(props) => (props.noSelect ? 'none' : 'auto')};
|
||||
${(props) => props.overflow === 'hidden' && textEllipsis}
|
||||
|
||||
&:hover {
|
||||
text-decoration: ${(props) => (props.link ? 'underline' : 'none')};
|
||||
}
|
||||
`;
|
||||
|
||||
const StyledText = styled(BaseText)<TextProps>``;
|
||||
|
||||
Reference in New Issue
Block a user