forked from cerebral/overmind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.ts
More file actions
113 lines (96 loc) · 1.98 KB
/
styles.ts
File metadata and controls
113 lines (96 loc) · 1.98 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import { css } from 'emotion'
import { colors } from '../../theme'
export const wrapper = css({
fontFamily: "'Source Code Pro', monospace",
fontSize: 16,
lineHeight: '24px',
color: colors.highlight,
})
export const smallWrapper = css({
fontFamily: "'Source Code Pro', monospace",
fontSize: 12,
lineHeight: '16px',
})
export const key = css({
marginRight: 5,
color: colors.text,
cursor: 'pointer',
':hover': {
opacity: 0.75,
},
})
export const toolIcon = css({
margin: '0 0.75rem',
})
export const inlineNested = css({
display: 'flex',
alignItems: 'center',
cursor: 'pointer',
})
export const bracket = (pointer: boolean) =>
css({
display: 'flex',
alignItems: 'center',
cursor: pointer ? 'pointer' : 'default',
})
export const stringValue = css({
display: 'flex',
alignItems: 'center',
color: colors.yellow,
})
export const otherValue = css({
display: 'flex',
alignItems: 'center',
color: colors.purple,
})
export const inlineClass = css({
color: colors.purple,
marginRight: '0.5rem',
})
export const genericValue = css({
display: 'flex',
alignItems: 'center',
color: colors.blue,
})
export const nestedChildren = css({
paddingLeft: '1rem',
})
export const keyCount = css({
fontsize: 14,
color: colors.highlight,
})
export const editValueWrapper = css({
position: 'relative',
})
export const editValuePopup = css({
position: 'absolute',
width: 400,
height: 100,
top: 0,
left: 0,
boxShadow: '0px 10px 13px 0px rgba(0,0,0,0.1)',
})
export const newState = css({
fontFamily: 'inherit',
fontSize: 16,
border: '2px solid transparent',
backgroundColor: colors.text,
color: colors.foreground,
outline: 'none',
borderRadius: 3,
width: '100%',
height: '100%',
boxSizing: 'border-box',
})
export const ok = css({
position: 'absolute',
cursor: 'pointer',
top: 0,
right: 0,
fontSize: 10,
border: 0,
outline: 'none',
padding: '0.25rem 0.5rem',
opacity: 0.5,
color: colors.background,
})