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