Skip to content

Instantly share code, notes, and snippets.

@jwchristiansen
Last active September 8, 2020 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwchristiansen/84d2c9bca9bd7c5e1d5d61857a5d54a9 to your computer and use it in GitHub Desktop.
Save jwchristiansen/84d2c9bca9bd7c5e1d5d61857a5d54a9 to your computer and use it in GitHub Desktop.
$red: #ffd3d3;
$blue: #caecff;
$grey: #f0f0f0;
html, body {
padding: 0;
margin: 0;
}
body {
font-family: Arial, sans-serif;
}
#header h1 {
margin: 0;
}
.container {
max-width: map-get($breakpoints, screen);
margin: auto;
}
.page-grid {
display: grid;
grid-auto-rows: minmax(75px, auto);
}
#header {
background: $red;
padding: 1rem;
grid-row: 1 / span 1;
}
#content {
grid-row: 2 / span 1;
}
@include respond-above(screen){
#content {
display: grid;
grid-template-columns: 30% 70%;
grid-auto-rows: minmax(600px, auto);
.sidebar {
background: $grey;
grid-column: 1 / span 1;
}
.main {
padding: 1rem;
grid-column: 2 / span 1;
}
}
}
@include respond-below(screen){
#content {
padding: 1rem;
}
}
#footer {
background: $blue;
padding: 1rem;
grid-row: 3 / span 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment