Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Aug 20, 2020
2 parents 87ccbb8 + 34f0a77 commit 721b7e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const theme = {
foreground: 'white',
gray: '#3f4e60',
grayAlt: '#222e3e',
inputBackgroundColor: '#fff',
inputTextColor: '#000',
success: '#00ab52',
danger: '#ff0085',
active: '#006bff',
Expand Down
14 changes: 9 additions & 5 deletions src/styledComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,19 @@ export const Code = styled('code', {
fontSize: '.9em',
})

export const Input = styled('input', {
export const Input = styled('input', (props, theme) => ({
backgroundColor: theme.inputBackgroundColor,
border: 0,
borderRadius: '.2em',
color: theme.inputTextColor,
fontSize: '.9em',
lineHeight: `1.3`,
padding: '.3em .4em',
})
}))

export const Select = styled(
'select',
{
(props, theme) => ({
display: `inline-block`,
fontSize: `.9em`,
fontFamily: `sans-serif`,
Expand All @@ -88,12 +91,13 @@ export const Select = styled(
borderRadius: `.2em`,
appearance: `none`,
WebkitAppearance: 'none',
backgroundColor: `#fff`,
backgroundColor: theme.inputBackgroundColor,
backgroundImage: `url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>")`,
backgroundRepeat: `no-repeat`,
backgroundPosition: `right .55em center`,
backgroundSize: `.65em auto, 100%`,
},
color: theme.inputTextColor,
}),
{
'(max-width: 500px)': {
display: 'none',
Expand Down

0 comments on commit 721b7e6

Please sign in to comment.