Created
September 22, 2014 22:10
-
-
Save donaldallen/34d76708569aea2ab448 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body>http://sassmeister.com/authorize | |
<main> | |
<article>10 columns</article> | |
<aside>2 columns</aside> | |
</main> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// 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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
-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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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