Skip to content

Commit dcfda44

Browse files
authored
Merge pull request conventional-changelog#113 from griffithtp/fix/107_refactor-suggest-styles
Fix/107 refactor suggest styles
2 parents 40a25a2 + d44cc7f commit dcfda44

File tree

12 files changed

+25
-14
lines changed

12 files changed

+25
-14
lines changed

src/components/Author/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import styled from 'react-emotion';
22
import ListItem from '@material-ui/core/ListItem';
33
import Typography from '@material-ui/core/Typography';
4+
import { fontWeight } from '../../utils/styles/sizes';
45

56
export const Heading = styled(Typography)({
67
'&&': {
7-
fontWeight: 700,
8+
fontWeight: fontWeight.bold,
89
textTransform: 'capitalize',
910
},
1011
});

src/components/Dependencies/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import styled from 'react-emotion';
22
import Card from '@material-ui/core/Card';
33
import Typography from '@material-ui/core/Typography';
44
import Chip from '@material-ui/core/Chip';
5+
import { fontWeight } from '../../utils/styles/sizes';
56

67
export const CardWrap = styled(Card)({
78
'&&': {
@@ -11,7 +12,7 @@ export const CardWrap = styled(Card)({
1112

1213
export const Heading = styled(Typography)({
1314
'&&': {
14-
fontWeight: 700,
15+
fontWeight: fontWeight.bold,
1516
textTransform: 'capitalize',
1617
},
1718
});

src/components/Developers/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import styled from 'react-emotion';
22
import Typography from '@material-ui/core/Typography';
33
import { default as MuiFab } from '@material-ui/core/Fab';
44
import colors from '../../utils/styles/colors';
5+
import { fontWeight } from '../../utils/styles/sizes';
56

67
export const Details = styled('span')({
78
display: 'flex',
@@ -20,7 +21,7 @@ export const Content = styled('div')({
2021

2122
export const Heading = styled(Typography)({
2223
'&&': {
23-
fontWeight: 700,
24+
fontWeight: fontWeight.bold,
2425
marginBottom: '10px',
2526
textTransform: 'capitalize',
2627
},

src/components/Dist/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ import ListItem from '@material-ui/core/ListItem';
55
import Typography from '@material-ui/core/Typography';
66

77
import colors from '../../utils/styles/colors';
8+
import { fontWeight } from '../../utils/styles/sizes';
89

910
export const Heading = styled(Typography)({
1011
'&&': {
11-
fontWeight: 700,
12+
fontWeight: fontWeight.bold,
1213
textTransform: 'capitalize',
1314
},
1415
});

src/components/Engines/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import styled from 'react-emotion';
22
import ListItem from '@material-ui/core/ListItem';
33
import Typography from '@material-ui/core/Typography';
4+
import { fontWeight } from '../../utils/styles/sizes';
45

56
export const Heading = styled(Typography)({
67
'&&': {
7-
fontWeight: 700,
8+
fontWeight: fontWeight.bold,
89
textTransform: 'capitalize',
910
},
1011
});

src/components/Header/styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const InnerMobileNavBar = styled('div')({
4949
backgroundColor: colors.greyLight,
5050
color: colors.white,
5151
width: '100%',
52-
padding: '0px 5px',
52+
padding: '0 5px',
5353
margin: '0 10px 0 0',
5454
},
5555
});

src/components/Install/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ import Avatar from '@material-ui/core/Avatar';
22
import ListItem from '@material-ui/core/ListItem';
33
import Typography from '@material-ui/core/Typography';
44
import styled from 'react-emotion';
5+
import { fontWeight } from '../../utils/styles/sizes';
56

67
export const Heading = styled(Typography)({
78
'&&': {
8-
fontWeight: 700,
9+
fontWeight: fontWeight.bold,
910
textTransform: 'capitalize',
1011
},
1112
});

src/components/Layout/Layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import styled, { css } from 'react-emotion';
2+
import colors from '../../utils/styles/colors';
23

34
export const Content = styled('div')({
45
'&&': {
5-
backgroundColor: '#ffffff',
6+
backgroundColor: colors.white,
67
flex: 1,
78
display: 'flex',
89
position: 'relative',

src/components/Package/styles.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { breakpoints } from '../../utils/styles/media';
1313
import Ico from '../Icon';
1414
import Label from '../Label';
1515
import colors from '../../utils/styles/colors';
16+
import { fontWeight } from '../../utils/styles/sizes';
1617

1718
export const OverviewItem = styled('span')`
1819
&& {
@@ -36,23 +37,23 @@ export const OverviewItem = styled('span')`
3637

3738
export const Icon = styled(Ico)({
3839
'&&': {
39-
margin: '2px 10px 0px 0',
40+
margin: '2px 10px 0 0',
4041
fill: colors.greyLight2,
4142
},
4243
});
4344

4445
export const Published = styled('span')({
4546
'&&': {
4647
color: colors.greyLight2,
47-
margin: '0px 5px 0px 0px',
48+
margin: '0 5px 0 0',
4849
},
4950
});
5051

5152
// @ts-ignore
5253
export const Text = styled(Label)({
5354
'&&': {
5455
fontSize: '12px',
55-
fontWeight: 500,
56+
fontWeight: fontWeight.semiBold,
5657
color: colors.greyLight2,
5758
},
5859
});

src/components/Repository/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ import Typography from '@material-ui/core/Typography';
55

66
import Github from '../../icons/GitHub';
77
import colors from '../../utils/styles/colors';
8+
import { fontWeight } from '../../utils/styles/sizes';
89

910
export const Heading = styled(Typography)({
1011
'&&': {
11-
fontWeight: 700,
12+
fontWeight: fontWeight.bold,
1213
textTransform: 'capitalize',
1314
},
1415
});

src/components/UpLinks/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import styled from 'react-emotion';
22
import Typography from '@material-ui/core/Typography';
33
import { default as MuiListItemText } from '@material-ui/core/ListItemText';
4+
import { fontWeight } from '../../utils/styles/sizes';
45

56
export const Heading = styled(Typography)({
67
'&&': {
7-
fontWeight: 700,
8+
fontWeight: fontWeight.bold,
89
},
910
});
1011

src/components/Versions/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import styled from 'react-emotion';
22
import Typography from '@material-ui/core/Typography';
33
import { default as MuiListItemText } from '@material-ui/core/ListItemText';
4+
import { fontWeight } from '../../utils/styles/sizes';
45

56
export const Heading = styled(Typography)({
67
'&&': {
7-
fontWeight: 700,
8+
fontWeight: fontWeight.bold,
89
},
910
});
1011

0 commit comments

Comments
 (0)