Skip to content

Instantly share code, notes, and snippets.

@josellausas
Created June 16, 2017 02:49
Show Gist options
  • Save josellausas/469b1c7ee0c5004d04ba36f0609128e7 to your computer and use it in GitHub Desktop.
Save josellausas/469b1c7ee0c5004d04ba36f0609128e7 to your computer and use it in GitHub Desktop.
@import url('https://fonts.googleapis.com/css?family=Lato');
* {
box-sizing: border-box; // Prevent borders from being larger thanks to padding and margins.
}
body {
line-height: 1.6;
color: #3a3a3a;
}
a {
color: whitesmoke;
text-decoration: none;
}
// Reset lists bullets
ol, ul {
margin: 0;
padding: 0;
list-style: none;
}
h1 {
margin-top: 0;
}
.container {
padding-left: 1em;
padding-right: 1em;
font-family: 'Lato', sans-serif;
}
.main-header {
background-color: #3acec2;
padding: 1em 0;
//text-align: center;
}
.main-footer {
padding: 2em 0;
background: #d9e4ea;
text-align: center;
}
.title {
margin: 0;
}
// Targets links in header
.title a,
.main-nav a {
padding: 10px 15px;
display: block;
text-align: center;
}
@media(min-width: 769px) {
// This keeps the footer at the bottom
.wrapper {
min-height: 79vh;
}
// This keeps everything centered
.container {
width: 70%;
margin: 0 auto;
max-width: 1000px;
}
// Makes everything show on the same horizontal line
.hero,
.title,
.menu,
.main-nav,
.main-nav li {
display: inline-block;
}
.title {
margin-right: 42px;
width: 240px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment