Browse Source

Fix select & input styles

master
meriadec 7 years ago
parent
commit
11bb72e458
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 7
      src/components/base/Input/index.js
  2. 7
      src/components/base/Select/index.js
  3. 7
      src/styles/reset.js

7
src/components/base/Input/index.js

@ -1,14 +1,17 @@
// @flow // @flow
import React, { PureComponent } from 'react' import React, { PureComponent } from 'react'
import styled from 'styled-components' import styled from 'styled-components'
import { space } from 'styled-system' import { space } from 'styled-system'
import fontFamily from 'styles/styled/fontFamily'
const Base = styled.input.attrs({ const Base = styled.input.attrs({
p: 2, p: 4,
ff: 'Open Sans|SemiBold',
})` })`
${space}; ${space};
${fontFamily};
border: 1px solid ${p => p.theme.colors.mouse}; border: 1px solid ${p => p.theme.colors.mouse};
border-radius: 3px; border-radius: 3px;
display: flex; display: flex;

7
src/components/base/Select/index.js

@ -35,7 +35,8 @@ type Props = {
const Container = styled(Box).attrs({ relative: true, color: 'graphite' })`` const Container = styled(Box).attrs({ relative: true, color: 'graphite' })``
const TriggerBtn = styled(Box).attrs({ const TriggerBtn = styled(Box).attrs({
p: 2, ff: 'Open Sans|SemiBold',
p: 4,
})` })`
min-height: 58px; min-height: 58px;
${space}; ${space};
@ -247,7 +248,9 @@ class Select extends PureComponent<Props> {
<Text color="mouse">{placeholder}</Text> <Text color="mouse">{placeholder}</Text>
)} )}
</Box> </Box>
<Triangles /> <FloatingTriangles>
<Triangles />
</FloatingTriangles>
</TriggerBtn> </TriggerBtn>
)} )}
{isOpen && {isOpen &&

7
src/styles/reset.js

@ -20,13 +20,6 @@ body {
line-height: 1.5; line-height: 1.5;
} }
input,
textarea {
font-family: 'Open Sans', Arial, Helvetica, sans-serif;
font-weight: 600;
line-height: normal;
}
#app { #app {
display: none; display: none;
flex-direction: column; flex-direction: column;

Loading…
Cancel
Save