Skip to content

Instantly share code, notes, and snippets.

@fragje
Created June 4, 2014 22:13
Show Gist options
  • Save fragje/b1b1654a93847d552368 to your computer and use it in GitHub Desktop.
Save fragje/b1b1654a93847d552368 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="container">
<main>Main</main>
<aside>Aside</aside>
<footer>Footer</footer>
</div>
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// Breakpoint (v2.4.2)
// Susy (v2.1.2)
// ----
@import "susy";
@import "breakpoint";
.container {
@include container(80%);
}
$susy: (
columns: 12,
gutters: 1/2,
);
@include breakpoint(40em) {
}
main {
background-color: orange;
@include span(9);
}
aside {
background-color: dodgerblue;
@include span(3 last);
}
footer {
background-color: yellow;
clear: left;
@include span(4 at 2);
}
.container {
max-width: 80%;
margin-left: auto;
margin-right: auto;
}
.container:after {
content: " ";
display: block;
clear: both;
}
main {
background-color: orange;
width: 74.28571%;
float: left;
margin-right: 2.85714%;
}
aside {
background-color: dodgerblue;
width: 22.85714%;
float: right;
margin-right: 0;
}
footer {
background-color: yellow;
clear: left;
width: 31.42857%;
float: left;
margin-right: 2.85714%;
}
<div class="container">
<main>Main</main>
<aside>Aside</aside>
<footer>Footer</footer>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment