Skip to content

Commit a05a70f

Browse files
committed
Clean sandbox editor header
1 parent f1b7dfb commit a05a70f

File tree

4 files changed

+23
-38
lines changed

4 files changed

+23
-38
lines changed

packages/app/src/app/pages/Sandbox/Editor/Header/Action/elements.js

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,26 @@ const blink = keyframes`
1111
`;
1212

1313
const styles = props =>
14-
`
15-
${props.blink &&
16-
css`
17-
animation: ${blink} 1s infinite;
18-
font-weight: 600;
19-
`}
20-
21-
display: flex !important;
22-
transition: 0.3s ease all;
23-
flex-direction: row;
24-
align-items: center;
25-
vertical-align: middle;
26-
font-size: .875rem;
27-
line-height: 1;
28-
height: 100%;
29-
color: ${props.theme.light ? '#636363' : 'rgba(255, 255, 255, 0.7)'};
30-
cursor: pointer;
31-
box-sizing: inherit;
32-
border-bottom: 2px solid transparent;
33-
z-index: 1;
34-
${
35-
props.highlight
14+
css`
15+
${props.blink &&
16+
css`
17+
animation: ${blink} 1s infinite;
18+
font-weight: 600;
19+
`};
20+
display: flex !important;
21+
transition: 0.3s ease all;
22+
flex-direction: row;
23+
align-items: center;
24+
vertical-align: middle;
25+
font-size: 0.875rem;
26+
line-height: 1;
27+
height: 100%;
28+
color: ${props.theme.light ? '#636363' : 'rgba(255, 255, 255, 0.7)'};
29+
cursor: pointer;
30+
box-sizing: inherit;
31+
border-bottom: 2px solid transparent;
32+
z-index: 1;
33+
${props.highlight
3634
? css`
3735
background-color: ${props.theme.secondary.darken(0.1)()};
3836
color: rgba(255, 255, 255, 0.7);
@@ -50,9 +48,8 @@ const styles = props =>
5048
? 'transparent'
5149
: props.theme.secondary()};
5250
}
53-
`
54-
}
55-
`;
51+
`};
52+
`;
5653

5754
export const Title = styled.span`
5855
padding-left: 0.5rem;

packages/app/src/app/pages/Sandbox/Editor/Header/Logo/elements.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,6 @@ export const Container = styled.a`
1717
text-decoration: none;
1818
`;
1919

20-
export const Title = styled.span`
21-
font-size: 1rem;
22-
font-weight: 400;
23-
margin: 0;
24-
margin-left: calc(1rem + 1px);
25-
padding-left: 1rem;
26-
border-left: 1px solid
27-
${props => props.theme['panel.border'] || 'rgba(255, 255, 255, 0.3)'};
28-
color: ${props => props.theme['editor.foreground'] || 'white'};
29-
`;
30-
3120
export const GithubContainer = styled.a`
3221
position: absolute;
3322
right: 1rem;

packages/app/src/app/pages/Sandbox/Editor/Header/Logo/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import * as React from 'react';
22

33
import LogoIcon from 'common/components/Logo';
44

5-
import { Container, Title } from './elements';
5+
import { Container } from './elements';
66

77
export default () => (
88
<Container id="logo" href="/">
99
<div style={{ position: 'relative', display: 'flex' }}>
1010
<LogoIcon title="CodeSandbox" width={30} height={30} />
1111
</div>
12-
<Title>Sandbox Editor</Title>
1312
</Container>
1413
);

0 commit comments

Comments
 (0)