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
39 lines (36 loc) · 933 Bytes
/
elements.tsx
File metadata and controls
39 lines (36 loc) · 933 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
import styled from '../../styled-components'
export const Wrapper = styled.div`
display: flex;
background-color: ${({ theme }) => theme.color.dark};
height: 50px;
`
export const Port = styled<
{
isSelected: boolean
},
'button'
>('button')`
outline: none;
border: 0;
height: 100%;
background-color: ${({ theme, isSelected }) =>
isSelected
? theme.color.lighten(theme.color.dark, 0.4)
: theme.color.lighten(theme.color.dark, 0.2)};
display: flex;
align-items: center;
color: ${({ theme }) => theme.color.white};
padding: ${({ theme }) => `${theme.padding.small} ${theme.padding.normal}`};
`
export const AddPort = styled.div`
display: flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
color: ${({ theme }) => theme.color.primary};
cursor: pointer;
:hover {
color: ${({ theme }) => theme.color.lighten(theme.color.primary, 0.3)};
}
`