forked from cerebral/overmind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.tsx
More file actions
40 lines (37 loc) · 964 Bytes
/
elements.tsx
File metadata and controls
40 lines (37 loc) · 964 Bytes
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
import styled from '../../styled-components'
import { Colors } from '../../theme'
export const Operator = styled<
{
borderColor: keyof Colors
onClick: any
},
'div'
>('div')`
flex: 1;
display: flex;
flex-direction: column;
padding: ${({ theme }) => `0 ${theme.padding.smaller}`};
cursor: ${({ onClick }) => (onClick ? 'pointer' : 'default')};
border: 1px solid ${({ theme, borderColor }) => theme.color[borderColor]};
background-color: #fff;
border-radius: ${({ theme }) => theme.borderRadius.normal};
`
export const OperatorHeader = styled.div`
display: flex;
align-items: center;
> *:first-child {
margin-right: 10px;
}
> *:nth-child(3) {
margin-left: auto;
color: ${({ theme }) => theme.color.fade(theme.color.black, 0.75)};
}
`
export const OperatorItem = styled.div`
display: flex;
align-items: center;
margin-bottom: ${({ theme }) => theme.padding.smaller};
> * {
margin-right: 10px;
}
`