Last active
August 29, 2015 14:07
-
-
Save micahgodbolt/354b9156462e51a40b9c to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
<div class="col1"> | |
Column 1 | |
</div> | |
<div class="col2"> | |
Column 2 | |
</div> |
This file contains hidden or 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.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); | |
} |
This file contains hidden or 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
@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; | |
} | |
} |
This file contains hidden or 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
<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