Skip to content

Commit cbffa27

Browse files
committed
Fix CSS
1 parent 9d07172 commit cbffa27

File tree

7 files changed

+19
-25
lines changed

7 files changed

+19
-25
lines changed

packages/app/src/app/pages/Sandbox/Editor/Workspace/Project/Alias/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { useOvermind } from 'app/overmind';
1010

1111
import { WorkspaceInputContainer } from '../../elements';
1212

13-
import { EditPen } from '../elements';
13+
import { EditPenIcon } from '../elements';
1414

1515
import { SandboxAlias } from './elements';
1616

@@ -63,7 +63,7 @@ export const Alias: FunctionComponent<Props> = ({ editable }) => {
6363
<SandboxAlias>
6464
{alias}
6565

66-
{editable && <EditPen onClick={() => setEditing(true)} />}
66+
{editable && <EditPenIcon onClick={() => setEditing(true)} />}
6767
</SandboxAlias>
6868
);
6969
};

packages/app/src/app/pages/Sandbox/Editor/Workspace/Project/Description/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import React, {
88

99
import { useOvermind } from 'app/overmind';
1010

11-
import { EditPen } from '../elements';
11+
import { EditPenIcon } from '../elements';
1212

1313
import { SandboxDescription, WorkspaceInputContainer } from './elements';
1414

@@ -65,7 +65,7 @@ export const Description: FunctionComponent<Props> = ({ editable }) => {
6565
<SandboxDescription empty={Boolean(description)}>
6666
{description || (editable ? 'No description, create one!' : '')}
6767

68-
{editable && <EditPen onClick={() => setEditing(true)} />}
68+
{editable && <EditPenIcon onClick={() => setEditing(true)} />}
6969
</SandboxDescription>
7070
);
7171
};

packages/app/src/app/pages/Sandbox/Editor/Workspace/Project/Environment/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React, { FunctionComponent } from 'react';
44

55
import { useOvermind } from 'app/overmind';
66

7-
import { Icon, Item, PropertyName, PropertyValue } from '../elements';
7+
import { Item, PropertyName, PropertyValue, QuestionIcon } from '../elements';
88

99
import { BundlerLink } from './elements';
1010

@@ -36,7 +36,7 @@ export const Environment: FunctionComponent = () => {
3636
}
3737
interactive
3838
>
39-
<Icon />
39+
<QuestionIcon />
4040
</Tooltip>
4141
</PropertyName>
4242

packages/app/src/app/pages/Sandbox/Editor/Workspace/Project/Frozen/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React, { FunctionComponent, useEffect } from 'react';
44

55
import { useOvermind } from 'app/overmind';
66

7-
import { Icon, Item, PropertyName, PropertyValue } from '../elements';
7+
import { Item, PropertyName, PropertyValue, QuestionIcon } from '../elements';
88

99
import { FreezeContainer, FrozenWarning } from './elements';
1010

@@ -45,7 +45,7 @@ export const Frozen: FunctionComponent = () => {
4545
boundary="viewport"
4646
content="Whether we should fork the sandbox on edits"
4747
>
48-
<Icon />
48+
<QuestionIcon />
4949
</Tooltip>
5050
</PropertyName>
5151

packages/app/src/app/pages/Sandbox/Editor/Workspace/Project/SandboxConfig/TemplateConfig/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import { useOvermind } from 'app/overmind';
1111
import { WorkspaceItem } from '../../../WorkspaceItem';
1212

1313
import {
14-
Icon as QuestionIcon,
1514
Item,
1615
PropertyName,
1716
PropertyValue,
17+
QuestionIcon,
1818
} from '../../elements';
1919

2020
import {

packages/app/src/app/pages/Sandbox/Editor/Workspace/Project/Title/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import React, {
99

1010
import { useOvermind } from 'app/overmind';
1111

12-
import { EditPen } from '../elements';
12+
import { EditPenIcon } from '../elements';
1313

1414
import { SandboxTitle, WorkspaceInputContainer } from './elements';
1515

@@ -65,7 +65,7 @@ export const Title: FunctionComponent<Props> = ({ editable }) => {
6565
{getSandboxName(currentSandbox)}
6666

6767
{editable && (
68-
<EditPen
68+
<EditPenIcon
6969
onClick={() => {
7070
valueChanged({
7171
field: 'title',

packages/app/src/app/pages/Sandbox/Editor/Workspace/Project/elements.ts

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Question from 'react-icons/lib/go/question';
2-
import EditPenIcon from 'react-icons/lib/md/create';
2+
import EditPen from 'react-icons/lib/md/create';
33
import styled, { css } from 'styled-components';
44

55
export const Container = styled.div`
@@ -30,7 +30,7 @@ export const PropertyName = styled.span`
3030
flex: 0 0 110px;
3131
width: 110px;
3232
margin-right: 0.5rem;
33-
color: ${theme.light ? css`#6c6c6c` : css`rgba(255, 255, 255, 0.4)`};
33+
color: ${theme.light ? '#6c6c6c' : 'rgba(255, 255, 255, 0.4)'};
3434
font-weight: 600;
3535
text-transform: uppercase;
3636
`}
@@ -51,29 +51,25 @@ export const StatsContainer = styled(Item)`
5151
height: 1.5rem;
5252
margin-left: 1rem;
5353
box-sizing: border-box;
54-
color: ${theme.light
55-
? css`rgba(0, 0, 0, 0.8)`
56-
: css`rgba(255, 255, 255, 0.8)`};
54+
color: ${theme.light ? 'rgba(0, 0, 0, 0.8)' : 'rgba(255, 255, 255, 0.8)'};
5755
font-size: 0.875rem;
5856
`}
5957
`;
6058

61-
export const EditPen = styled(EditPenIcon)`
59+
export const EditPenIcon = styled(EditPen)`
6260
${({ theme }) => css`
6361
margin-left: 0.5rem;
64-
color: ${theme.light
65-
? css`rgba(0, 0, 0, 0.5)`
66-
: css`rgba(255, 255, 255, 0.5)`};
62+
color: ${theme.light ? 'rgba(0, 0, 0, 0.5)' : 'rgba(255, 255, 255, 0.5)'};
6763
transition: 0.3s ease color;
6864
cursor: pointer;
6965
7066
&:hover {
71-
color: ${theme.light ? css`#636363` : css`white`};
67+
color: ${theme.light ? '#636363' : '#FFFFFF'};
7268
}
7369
`}
7470
`;
7571

76-
export const Icon = styled(Question)`
72+
export const QuestionIcon = styled(Question)`
7773
display: flex;
7874
font-size: 0.75rem;
7975
opacity: 0.5;
@@ -86,9 +82,7 @@ export const Explanation = styled.span`
8682
display: block;
8783
padding-top: 5px;
8884
margin: -20px 1rem 1rem;
89-
color: ${theme.light
90-
? css`rgba(0, 0, 0, 0.4)`
91-
: css`rgba(255, 255, 255, 0.4)`};
85+
color: ${theme.light ? 'rgba(0, 0, 0, 0.4)' : 'rgba(255, 255, 255, 0.4)'};
9286
font-size: 12px;
9387
`}
9488
`;

0 commit comments

Comments
 (0)