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
64 lines (59 loc) · 1.43 KB
/
elements.tsx
File metadata and controls
64 lines (59 loc) · 1.43 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import styled from '../../styled-components'
export const Wrapper = styled.div`
position: relative;
display: flex;
background-color: ${({ theme }) => theme.color.white};
height: 50px;
justify-content: center;
align-items: center;
`
export const App = styled<
{
isSelected: boolean
},
'button'
>('button')`
outline: none;
border: 0;
width: 100%;
cursor: pointer;
background-color: ${({ theme, isSelected }) =>
isSelected
? theme.color.lighten(theme.color.white, -0.03)
: theme.color.lighten(theme.color.white, -0.01)};
display: flex;
align-items: center;
color: ${({ theme }) => theme.color.black};
padding: ${({ theme }) => `${theme.padding.small} ${theme.padding.normal}`};
white-space: nowrap;
`
export const CurrentApp = styled.div<{
color: string
}>`
border: 2px solid ${({ color }) => color};
border-radius: 50%;
background-color: #fff;
width: 30px;
height: 30px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
font-size: ${({ theme }) => theme.fontSize.small};
font-weight: bold;
`
export const Overlay = styled.div`
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
`
export const AppsList = styled.div`
position: absolute;
left: calc(100% + 1px);
top: 0;
background-color: #fff;
border-right: 1px solid ${({ theme }) => theme.color.gray};
border-bottom: 1px solid ${({ theme }) => theme.color.gray};
`