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
98 lines (88 loc) · 1.77 KB
/
styles.ts
File metadata and controls
98 lines (88 loc) · 1.77 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
import { css } from 'emotion'
import { colors } from '../../theme'
export const wrapper = css({
flex: '0 0 250px',
position: 'relative',
borderTopLeftRadius: 3,
borderBottomLeftRadius: 3,
backgroundColor: colors.foreground,
display: 'flex',
padding: '0 1rem',
alignItems: 'center',
cursor: 'pointer',
color: colors.text,
})
export const inputWrapper = css({
position: 'relative',
flex: 1,
height: '100%',
margin: 0,
padding: 0,
})
export const input = css({
position: 'absolute',
border: 0,
left: '-1rem',
fontFamily: 'inherit',
outline: 'none',
backgroundColor: 'transparent',
color: colors.text,
height: '100%',
boxSizing: 'border-box',
fontSize: 16,
width: '100%',
padding: '0.5rem',
'::placeholder': {
color: 'rgba(255,255,255,0.25)',
},
})
export const inputActive = css({
paddingLeft: '1.5rem',
})
export const suggestion = css({
position: 'absolute',
display: 'flex',
alignItems: 'center',
height: '100%',
boxSizing: 'border-box',
left: '-1rem',
fontSize: 16,
padding: '0.5rem',
opacity: 0.5,
})
export const indicator = css({
display: 'inline-block',
width: 10,
height: 10,
borderRadius: 2,
})
export const selectedAction = css({
padding: '0 0.5rem',
})
export const noSelectedAction = css({
opacity: 0.5,
})
export const resultWrapper = css({
position: 'absolute',
top: '100%',
minWidth: '100%',
maxHeight: '75vh',
overflowY: 'scroll',
left: 0,
backgroundColor: colors.border,
borderBottomLeftRadius: 3,
borderBottomRightRadius: 3,
zIndex: 2,
})
export const result = css({
position: 'relative',
display: 'flex',
alignItems: 'center',
padding: '0.25rem 1rem',
'> :first-child': {
marginRight: '0.5rem',
},
':hover': {
backgroundColor: colors.foreground,
},
})