Skip to content

Instantly share code, notes, and snippets.

@donaldallen
Created September 22, 2014 22:10
Show Gist options
  • Save donaldallen/34d76708569aea2ab448 to your computer and use it in GitHub Desktop.
Save donaldallen/34d76708569aea2ab448 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<html>
<body>http://sassmeister.com/authorize
<main>
<article>10 columns</article>
<aside>2 columns</aside>
</main>
</body>
</html>
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// Bourbon (v4.0.2)
// Neat (v1.6.0)
// ----
@import "bourbon/bourbon";
@import "neat/neat";
$mobile: new-breakpoint(max-width 900px 4);
main {
@include outer-container;
}
article {
@include span-columns(10);
background-color:red;
@include media($mobile) {
float:right;
}
}
aside {
@include span-columns(2);
background-color:blue;
@include media($mobile) {
float:left;
}
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
main {
max-width: 68em;
margin-left: auto;
margin-right: auto;
}
main:after {
content: "";
display: table;
clear: both;
}
article {
float: left;
display: block;
margin-right: 2.35765%;
width: 82.94039%;
background-color: red;
}
article:last-child {
margin-right: 0;
}
@media screen and (max-width: 900px) {
article {
float: right;
}
}
aside {
float: left;
display: block;
margin-right: 2.35765%;
width: 14.70196%;
background-color: blue;
}
aside:last-child {
margin-right: 0;
}
@media screen and (max-width: 900px) {
aside {
float: left;
}
}
<html>
<body>http://sassmeister.com/authorize
<main>
<article>10 columns</article>
<aside>2 columns</aside>
</main>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment