Skip to content

Commit

Permalink
Merge pull request #1452 from manpenaloza/better-sandbox-stylings
Browse files Browse the repository at this point in the history
refactor sandbox example buttons to especially improve mobile appearance
  • Loading branch information
mxstbr committed Jan 29, 2018
2 parents f01bb08 + 8744a14 commit 0edca9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
5 changes: 5 additions & 0 deletions sandbox/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ const LiveEditor = LiveBlock.withComponent(_LiveEditor).extend`

const LivePreview = LiveBlock.withComponent(_LivePreview).extend`
background-color: white;
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
align-items: center;
`

const LiveError = styled(_LiveError)`
Expand Down
12 changes: 5 additions & 7 deletions sandbox/src/Button.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const Button = styled.button`
font-size: 16px;
border-radius: 5px;
padding: 0.25em 1em;
margin: 0 1em;
margin: 1em 1em;
background: transparent;
color: palevioletred;
border: 2px solid palevioletred;
Expand All @@ -17,11 +17,9 @@ const Button = styled.button`
`};
`

const content = (
<div>
<Button>Normal Button</Button>
<Button primary>Primary Button</Button>
</div>
)
const content = [
<Button>Normal Button</Button>,
<Button primary>Primary Button</Button>,
]

render(content)

0 comments on commit 0edca9d

Please sign in to comment.