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
66 lines (61 loc) · 1.22 KB
/
styles.ts
File metadata and controls
66 lines (61 loc) · 1.22 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
import { css } from 'emotion'
import { colors } from '../../theme'
export const flush = css({
cursor: 'pointer',
backgroundColor: colors.yellow,
borderTopRightRadius: 3,
borderBottomRightRadius: 3,
position: 'relative',
marginLeft: '0.5rem',
':hover div:nth-child(2)': {
display: 'block',
zIndex: 2,
},
':hover': {
borderBottomRightRadius: 0,
},
})
export const flushHeader = css({
display: 'flex',
alignItems: 'center',
color: colors.foreground,
padding: '0 0.5rem',
fontSize: 12,
fontWeight: 'bold',
'> span': {
display: 'flex',
alignItems: 'center',
},
'> span svg': {
marginLeft: 3,
},
'> span:last-child': {
marginLeft: '0.5rem',
},
})
export const flushBody = css({
position: 'absolute',
top: '100%',
right: 0,
padding: '0.5rem 1rem',
backgroundColor: colors.foreground,
borderBottomRightRadius: 3,
display: 'none',
flexWrap: 'wrap',
boxShadow: '0px 10px 13px 0px rgba(0,0,0,0.1)',
'> *:not(:last-child)': {
marginRight: 15,
},
})
export const flushItem = css({
display: 'flex',
alignItems: 'center',
'> :first-child': {
marginRight: 3,
},
})
export const icon = css({
opacity: 0.75,
display: 'flex',
alignItems: 'center',
})