13.04 components + maps
This commit is contained in:
19
src/components/link/link.styled.ts
Normal file
19
src/components/link/link.styled.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import styled from "@emotion/styled"
|
||||
import { css } from '@emotion/react'
|
||||
|
||||
export const StyledLink = styled.a`
|
||||
font-weight: 400;
|
||||
text-decoration: underline;
|
||||
text-decoration-skip-ink: none;
|
||||
color: ${(props: any) => props.contrast ? 'var(--text-contrast)' : 'var(--dark-link)'};
|
||||
|
||||
${props => {
|
||||
if (props.contrast) {
|
||||
return css`
|
||||
&:hover {
|
||||
color: var(--dark-link);
|
||||
}
|
||||
`
|
||||
}
|
||||
}}
|
||||
`;
|
||||
Reference in New Issue
Block a user