blob: 59e148b91660e24283d770b92f934b11f9dccd26 (
plain) (
blame)
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
|
import styled, {css} from 'styled-components'
import {Border, ButtonLike, DropShadow, Rounded} from "./mixins";
const Base = css`
${DropShadow}
${Rounded}
${ButtonLike}
margin-right: 2em;
height: calc(16px + 1.6em);
cursor: pointer;
`
const Primary = css`
${Base};
border: none;
color: ${p => p.theme.colors.background};
background-color: ${p => p.theme.colors.text};
`
const Secondary = css`
${Base};
${Border};
color: ${p => p.theme.colors.text};
background-color: ${p => p.theme.colors.background};
`
export const Button = styled.button`
${p => p.secondary ? css`${Secondary}` : css`${Primary}` }
`
export const SubmitButton = styled.input`
${Primary}
`
|