Skip to content

Commit 4a526c9

Browse files
committed
refactor: add reusable styles properties
1 parent 40a25a2 commit 4a526c9

File tree

7 files changed

+13
-8
lines changed

7 files changed

+13
-8
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/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/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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ export const OverviewItem = styled('span')`
3636

3737
export const Icon = styled(Ico)({
3838
'&&': {
39-
margin: '2px 10px 0px 0',
39+
margin: '2px 10px 0 0',
4040
fill: colors.greyLight2,
4141
},
4242
});
4343

4444
export const Published = styled('span')({
4545
'&&': {
4646
color: colors.greyLight2,
47-
margin: '0px 5px 0px 0px',
47+
margin: '0 5px 0 0',
4848
},
4949
});
5050

0 commit comments

Comments
 (0)