Skip to content

Instantly share code, notes, and snippets.

@Snugug
Created May 29, 2015 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Snugug/d9c3b9db3146830786c0 to your computer and use it in GitHub Desktop.
Save Snugug/d9c3b9db3146830786c0 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class='a'>A</div>
<div class='b'>B</div>
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// Breakpoint (v2.5.0)
// Singularity.gs (v1.6.2)
// ----
@import 'singularitygs';
@import 'breakpoint';
$break: 900px;
@include add-grid(2 1);
.a {
background: green;
height: 40vh;
@include breakpoint($break) {
@include grid-span(1, 2);
}
}
.b {
background: blue;
height: 55vh;
@include breakpoint($break) {
@include grid-span(1, 1);
}
}
.a {
background: green;
height: 40vh;
}
@media (min-width: 900px) {
.a {
width: 30.76923%;
float: right;
margin-left: 0;
margin-right: 0;
clear: none;
}
}
.b {
background: blue;
height: 55vh;
}
@media (min-width: 900px) {
.b {
width: 61.53846%;
float: left;
margin-right: -100%;
margin-left: 0;
clear: none;
}
}
<div class='a'>A</div>
<div class='b'>B</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment