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) · 784 Bytes
/
elements.tsx
File metadata and controls
39 lines (36 loc) · 784 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`
position: relative;
display: flex;
height: 100%;
> *:first-child {
flex: 0 0 300px;
}
> *:last-child {
flex: 1;
}
`
export const CenterWrapper = styled.div`
display: flex;
height: 100%;
align-items: center;
justify-content: center;
`
export const ExpandAll = styled<
{
isActive: boolean
},
'div'
>('div')`
display: flex;
position: absolute;
top: 10px;
right: ${({ theme }) => theme.padding.normal};
font-size: ${({ theme }) => theme.fontSize.small};
cursor: pointer;
color: ${({ theme }) => theme.color.black};
opacity: ${({ isActive }) => (isActive ? '1' : '0.5')};
:hover {
opacity: ${({ isActive }) => (isActive ? '1' : '0.75')};
}
`