Skip to content

Instantly share code, notes, and snippets.

@JenyaIII-sudo
Created May 15, 2020 12:35
Show Gist options
  • Save JenyaIII-sudo/3dc041f978869d8ddc521858d9b59914 to your computer and use it in GitHub Desktop.
Save JenyaIII-sudo/3dc041f978869d8ddc521858d9b59914 to your computer and use it in GitHub Desktop.
Material UI styles
import { makeStyles } from "@material-ui/core/styles";
import backgroundHeader from "../../images/hivan-arvizu-soyhivan-MAnhvw0nDDY-unsplash.jpg";
const useStyles = makeStyles(theme => ({
nav: {
display: "flex",
justifyContent: "space-between",
alignItems: "center"
},
main: {
height: "100vh"
},
headerSearch: {
height: "100%",
display: "flex",
alignItems: "center"
},
firstLink: {
fontSize: "23px",
padding: "8px 20px"
},
filterBar: {
height: "10%",
borderBottom: "1px solid",
display: "flex",
alignItems: "center"
},
logo: {
alignSelf: "flex-start",
fontSize: "59px",
margin: "0px",
backgroundSize: "cover",
backgroundPosition: "center",
height: "7vh"
},
filterLoginIn: {
paddingRight: "59px",
display: "flex"
},
bgForHeaderAndStoriesBlock: {
background: `url(${backgroundHeader})`,
backgroundPosition: "center",
backgroundRepeat: "no-repeat",
backgroundSize: "cover"
}
}));
export default useStyles;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment