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
37 lines (30 loc) · 722 Bytes
/
elements.tsx
File metadata and controls
37 lines (30 loc) · 722 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
import styled from '../../styled-components'
export const Wrapper = styled<
{
small: boolean
},
'div'
>('div')`
font-family: monospace;
font-size: ${({ small }) => (small ? '12px' : '16px')};
line-height: ${({ small }) => (small ? '16px' : '20px')};
`
export const Key = styled.span`
margin-right: 5px;
color: #333;
`
export const InlineNested = styled.div`
cursor: pointer;
`
export const Bracket = styled.div`
cursor: ${({ onClick }) => (onClick ? 'pointer' : 'default')};
`
export const StringValue = styled.div`
color: orange;
`
export const GenericValue = styled.div`
color: ${({ theme }) => theme.color.primary};
`
export const NestedChildren = styled.div`
padding-left: 1rem;
`