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
46 lines (41 loc) · 1.02 KB
/
elements.tsx
File metadata and controls
46 lines (41 loc) · 1.02 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
import styled from '../../styled-components'
export const Wrapper = styled.div`
display: flex;
flex-direction: column;
padding: ${({ theme }) => theme.padding.normal};
height: 100%;
box-sizing: border-box;
overflow-y: scroll;
`
export const Panels = styled.div`
display: flex;
justify-content: space-around;
`
export const Panel = styled.div`
padding: ${({ theme }) => theme.padding.smaller};
`
export const ComponentContainer = styled<
{
canExpand: boolean
},
'div'
>('div')`
position: relative;
display: flex;
align-items: center;
cursor: pointer;
padding: ${({ theme }) => `0 ${theme.padding.small}`};
background-color: ${({ canExpand, theme }) =>
canExpand ? theme.color.lighten(theme.color.white, -0.01) : 'transparent'};
> div {
flex: 1;
}
> p {
position: absolute;
top: ${({ theme }) => theme.padding.smaller};
right: ${({ theme }) => theme.padding.small};
}
`
export const StatsContainer = styled.div`
margin-bottom: ${({ theme }) => theme.padding.large};
`