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
83 lines (71 loc) · 1.43 KB
/
styles.ts
File metadata and controls
83 lines (71 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import { css, keyframes } from 'emotion'
import { colors } from '../../theme'
export const operator = css({
flex: 1,
display: 'flex',
flexDirection: 'column',
cursor: 'default',
})
export const effectArgs = css({
display: 'flex',
alignItems: 'center',
'> span': {
marginRight: '0.5rem',
},
})
export const value = css({
marginLeft: 'auto',
marginRight: '0.5rem',
display: 'flex',
alignItems: 'center',
})
export const operatorType = css({
color: colors.background,
backgroundColor: colors.highlight,
padding: '0 0.5rem',
borderTopLeftRadius: 3,
borderBottomLeftRadius: 3,
fontSize: 14,
})
export const operatorName = css({
marginLeft: '0.5rem',
})
export const notVisible = css({
visibility: 'hidden',
})
export const operatorHeader = css({
display: 'flex',
backgroundColor: colors.border,
borderRadius: 3,
alignItems: 'stretch',
})
export const operatorBody = css({
padding: '0.5rem',
})
export const operatorItem = css({
display: 'flex',
alignItems: 'center',
marginBottom: '0.5rem',
'> *': {
marginRight: 10,
},
})
export const effectError = css({
backgroundColor: colors.red,
color: colors.text,
padding: '0.1rem 0.5rem',
fontsize: 14,
borderRadius: 2,
})
const pulse = keyframes({
from: {
opacity: 0.5,
},
to: {
opacity: 1,
},
})
export const pendingOperatorItem = css({
animation: `${pulse} 1s ease-out infinite`,
animationDirection: 'alternate',
})