Skip to content

Commit

Permalink
Fix homepage buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown committed May 22, 2018
1 parent 132dee4 commit b98c40f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/homepage-buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const Link = styled.a`
min-width: 12rem;
margin: 0 auto 20px;
padding: 16px;
padding: ${props => props.primary ? 18 : 16}px;
border-radius: 5px;
text-decoration: none;
border: ${props =>
Expand All @@ -23,11 +23,12 @@ const Link = styled.a`
}
`
```

```jsx live
const Link = styled.a(props => ({
minWidth: '12rem',
margin: '0 auto 20px',
padding: 16,
padding: props.primary ? 18 : 16,
borderRadius: 5,
textDecoration: 'none',
border: props.primary
Expand All @@ -47,4 +48,4 @@ const Link = styled.a(props => ({
}
}
}))
```
```

0 comments on commit b98c40f

Please sign in to comment.