forked from cerebral/overmind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.jsx
More file actions
49 lines (45 loc) · 1.22 KB
/
elements.jsx
File metadata and controls
49 lines (45 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import styled from '../../styled-components'
export const Wrapper = styled.div`
width: 100%;
background-color: ${({ theme }) =>
theme.color.lighten(theme.color.dark, 0.2)};
padding: ${({ theme }) => theme.padding.small};
border-radius: ${({ theme }) => theme.borderRadius.large};
`
export const Form = styled.form`
display: flex;
`
export const Input = styled.input`
flex: 1;
display: block;
border: 0;
margin: 0;
outline: none;
background-color: transparent;
font-size: ${({ theme }) => theme.fontSize.larger};
color: ${({ theme }) => theme.color.white};
height: 40px;
::placeholder {
color: ${({ theme }) => theme.color.fade(theme.color.white, 0.5)};
}
`
export const Button = styled.button`
flex: 0 0 50px;
outline: none;
border-radius: ${({ theme }) => theme.borderRadius.normal};
background-color: ${({ theme }) => theme.color.primary};
padding: ${({ theme }) => theme.padding.smaller};
text-transform: uppercase;
border: 0;
color: ${({ theme }) => theme.color.white};
font-weight: bold;
cursor: pointer;
:hover:enabled {
background-color: ${({ theme }) =>
theme.color.lighten(theme.color.primary, 0.1)};
}
:disabled {
cursor: default;
opacity: 0.5;
}
`