forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.js
More file actions
43 lines (39 loc) · 800 Bytes
/
elements.js
File metadata and controls
43 lines (39 loc) · 800 Bytes
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
import styled from 'styled-components';
import css from '@styled-system/css';
export const Body = styled.div(
css({
borderBottom: '1px solid',
borderColor: 'sideBar.border',
paddingTop: 4,
paddingBottom: 8,
})
);
export const Header = styled.div(
css({
display: 'flex',
alignItems: 'center',
height: '32px',
paddingX: 3,
borderBottom: '1px solid',
borderColor: 'sideBar.border',
cursor: 'pointer',
':hover': {
backgroundColor: 'sideBar.border',
svg: {
color: 'grays.300',
},
},
})
);
export const Title = styled.div(
css({
fontSize: 3,
})
);
export const Icon = styled.svg(props =>
css({
marginRight: 2,
transform: props.open ? 'rotate(0)' : 'rotate(-90deg)',
color: 'grays.400',
})
);