Created
November 28, 2020 16:30
-
-
Save adrianhajdin/9867aefce5318f27c95990553f428c6e to your computer and use it in GitHub Desktop.
Styles for an E-Commerce Web Tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { makeStyles } from '@material-ui/core/styles'; | |
export default makeStyles(() => ({ | |
media: { | |
height: 260, | |
}, | |
cardContent: { | |
display: 'flex', | |
justifyContent: 'space-between', | |
}, | |
cartActions: { | |
justifyContent: 'space-between', | |
}, | |
buttons: { | |
display: 'flex', | |
alignItems: 'center', | |
}, | |
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { makeStyles } from '@material-ui/core/styles'; | |
export default makeStyles((theme) => ({ | |
toolbar: theme.mixins.toolbar, | |
title: { | |
marginTop: '5%', | |
}, | |
emptyButton: { | |
minWidth: '150px', | |
[theme.breakpoints.down('xs')]: { | |
marginBottom: '5px', | |
}, | |
[theme.breakpoints.up('xs')]: { | |
marginRight: '20px', | |
}, | |
}, | |
checkoutButton: { | |
minWidth: '150px', | |
}, | |
link: { | |
textDecoration: 'none', | |
}, | |
cardDetails: { | |
display: 'flex', | |
marginTop: '10%', | |
width: '100%', | |
justifyContent: 'space-between', | |
}, | |
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { makeStyles } from '@material-ui/core/styles'; | |
export default makeStyles((theme) => ({ | |
appBar: { | |
position: 'relative', | |
}, | |
toolbar: theme.mixins.toolbar, | |
layout: { | |
marginTop: '5%', | |
width: 'auto', | |
marginLeft: theme.spacing(2), | |
marginRight: theme.spacing(2), | |
[theme.breakpoints.up(600 + theme.spacing(2) * 2)]: { | |
width: 600, | |
marginLeft: 'auto', | |
marginRight: 'auto', | |
}, | |
}, | |
paper: { | |
marginTop: theme.spacing(3), | |
marginBottom: theme.spacing(3), | |
padding: theme.spacing(2), | |
[theme.breakpoints.down('xs')]: { | |
width: '100%', | |
marginTop: 60, | |
}, | |
[theme.breakpoints.up(600 + theme.spacing(3) * 2)]: { | |
marginTop: theme.spacing(6), | |
marginBottom: theme.spacing(6), | |
padding: theme.spacing(3), | |
}, | |
}, | |
stepper: { | |
padding: theme.spacing(3, 0, 5), | |
}, | |
buttons: { | |
display: 'flex', | |
justifyContent: 'flex-end', | |
}, | |
button: { | |
marginTop: theme.spacing(3), | |
marginLeft: theme.spacing(1), | |
}, | |
divider: { | |
margin: '20px 0', | |
}, | |
spinner: { | |
display: 'flex', | |
justifyContent: 'center', | |
alignItems: 'center', | |
}, | |
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { makeStyles } from '@material-ui/core/styles'; | |
export default makeStyles((theme) => ({ | |
toolbar: theme.mixins.toolbar, | |
content: { | |
flexGrow: 1, | |
backgroundColor: theme.palette.background.default, | |
padding: theme.spacing(3), | |
}, | |
root: { | |
flexGrow: 1, | |
}, | |
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { makeStyles } from '@material-ui/core/styles'; | |
export default makeStyles(() => ({ | |
root: { | |
maxWidth: '100%', | |
}, | |
media: { | |
height: 0, | |
paddingTop: '56.25%', // 16:9 | |
}, | |
cardActions: { | |
display: 'flex', | |
justifyContent: 'flex-end', | |
}, | |
cardContent: { | |
display: 'flex', | |
justifyContent: 'space-between', | |
}, | |
})); |
Great work
hello i am not able to install these two please help :
npm install @material-ui/core and @material-ui/icons
go to MaterialUi homepage from your browser and get the updated installation syntax
@TobiShina : thanks i will try
Thank you very much
this is so helpful thing
go to he material ui website and get the updated version of npm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello i am not able to install these two please help :
npm install @material-ui/core and @material-ui/icons