Skip to content

Commit

Permalink
Fix some safari style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
schiehll committed May 31, 2019
1 parent 72d44dd commit 7aacc31
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/components/link-list-item/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ export const Link = styled.a`
color: currentColor;
cursor: pointer;
${ExternalLinkIcon} {
transition: all 0.3s ease;
}
&:hover {
${ExternalLinkIcon} {
transform: scale(1.2);
Expand Down
2 changes: 1 addition & 1 deletion src/components/link/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Link = ({ children, to, ...props }) => {
return (
<S.Link href={SVGData?.url || '#'} target="_blank" {...props}>
{SVGData?.src && <S.Logo src={SVGData.src} alt={SVGData.name} />}
{children}
<span>{children}</span>
<S.ExternalLinkIcon />
</S.Link>
)
Expand Down
10 changes: 9 additions & 1 deletion src/components/link/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { FiExternalLink } from 'react-icons/fi'
export const ExternalLinkIcon = styled(FiExternalLink)`
${({ theme: { spacing } }) => css`
margin-left: ${spacing.base}px;
transition: all 0.3 ease;
`}
`

Expand All @@ -27,10 +26,19 @@ export const Link = styled.a`
display: inline-flex;
align-items: center;
${ExternalLinkIcon} {
transition: all 0.3s ease;
}
&:hover {
${ExternalLinkIcon} {
transform: scale(1.2);
}
}
> span {
flex: 1;
min-width: fit-content;
}
`}
`
1 change: 1 addition & 0 deletions src/components/shell/code/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ export const Pre = styled.pre`
padding: ${spacing.base}px;
background-color: ${colors.gray[10]};
overflow-x: auto;
overflow-y: visible;
`}
`
3 changes: 3 additions & 0 deletions src/components/shell/search/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export const StyledInput = styled.input`
border: none;
border-radius: ${radius}px;
font-size: ${font.sizes.default}px;
appearance: textfield;
display: flex;
align-items: center;
&::placeholder {
font-size: ${font.sizes.default}px;
Expand Down

0 comments on commit 7aacc31

Please sign in to comment.