forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.ts
More file actions
53 lines (47 loc) · 1.3 KB
/
elements.ts
File metadata and controls
53 lines (47 loc) · 1.3 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
import styled from 'styled-components';
import css from '@styled-system/css';
import { Container as NavigatorContainer } from '@codesandbox/common/lib/components/Preview/Navigator/elements';
export const Container = styled.div(
css({
display: 'flex',
position: 'relative',
backgroundColor: 'editor.background',
height: '100%',
// overwrite the height of navigation
[NavigatorContainer]: {
height: 31,
minHeight: 31,
},
})
);
export const Tabs = styled.div(
css({
display: 'flex',
height: 32,
minHeight: 32,
backgroundColor: 'tab.inactiveBackground',
/* shadow instead of border to align with the border of the child tab */
boxShadow: theme => 'inset 0px -1px 0 ' + theme['sideBar.border'],
overflowX: 'auto',
fontSize: 3,
'-ms-overflow-style': 'none', // IE 10+
overflow: '-moz-scrollbars-none', // Firefox
'&::-webkit-scrollbar': {
height: '2px', // Safari and Chrome
},
/* override children, bad but vscode doesnt support
tab.hoverForeground so we explicitly set it :shrug:
*/
'> div:hover > div': {
color: 'tab.hoverForeground',
},
})
);
export const MenuInTabs = styled.span(
css({
display: 'inline-flex',
alignItems: 'center',
height: '100%',
paddingLeft: 2,
})
);