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
71 lines (61 loc) · 1.29 KB
/
styles.ts
File metadata and controls
71 lines (61 loc) · 1.29 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
import { css, keyframes } from 'emotion'
export const operator = (borderColor: string) => css`
flex: 1;
display: flex;
flex-direction: column;
padding: 0 var(--padding-4);
cursor: default;
border: 1px solid var(--color-dark-1);
background-color: var(--color-dark-2);
border-radius: var(--border-radius-1);
`
export const operatorClickable = css`
cursor: pointer;
`
export const operatorType = css`
color: var(--color-white-4);
`
export const chevron = css`
color: var(--color-white-4);
`
export const notVisible = css`
visibility: hidden;
`
export const operatorHeader = css`
display: flex;
align-items: center;
> *:first-child {
margin-right: 10px;
}
> *:nth-child(3) {
margin-left: auto;
color: var(--color-white-2);
}
`
export const operatorItem = css`
display: flex;
align-items: center;
margin-bottom: var(--padding-3);
> * {
margin-right: 10px;
}
`
export const effectError = css`
background-color: var(--color-red);
color: var(--color-white-1);
padding: var(--padding-1) var(--padding-3);
font-size: var(--font-size-2);
border-radius: 2px;
`
const pulse = keyframes`
from {
opacity: 0.5;
}
to {
opacity: 1;
}
`
export const pendingOperatorItem = css`
animation: ${pulse} 1s ease-out infinite;
animation-direction: alternate;
`