Skip to content

Instantly share code, notes, and snippets.

@micahgodbolt
Last active August 29, 2015 14:07
Show Gist options
  • Save micahgodbolt/354b9156462e51a40b9c to your computer and use it in GitHub Desktop.
Save micahgodbolt/354b9156462e51a40b9c to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="col1">
Column 1
</div>
<div class="col2">
Column 2
</div>
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// Breakpoint (v2.5.0)
// Susy (v2.1.3)
// ----
@import "susy";
@import "breakpoint";
$susy: (
columns: 12
);
@mixin bp-span($grid, $breakpoint) {
@include breakpoint($breakpoint) {
@include span($grid);
}
}
$breakpoint-var: (min-height 1000px) (orientation portrait);
.col1 {
@include bp-span( 2 of 3, 300px max-width);
@include bp-span(last 6 of 12, 600px 800px);
@include bp-span(last 3 of 12, $breakpoint-var);
}
@media (max-width: 300px) {
.col1 {
width: 64.28571%;
float: left;
margin-right: 7.14286%;
}
}
@media (min-width: 600px) and (max-width: 800px) {
.col1 {
width: 49.15254%;
float: right;
margin-right: 0;
}
}
@media (min-height: 1000px) and (orientation: portrait) {
.col1 {
width: 23.72881%;
float: right;
margin-right: 0;
}
}
<div class="col1">
Column 1
</div>
<div class="col2">
Column 2
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment