Skip to content

Instantly share code, notes, and snippets.

@geibi
Created July 16, 2014 09:21
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 geibi/355180dd410051b39295 to your computer and use it in GitHub Desktop.
Save geibi/355180dd410051b39295 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="container">
<div class="sidebar-wrapper">
<div class="content">
sidebar
</div>
</div>
<div class="content-wrapper">
<div class="content">
content
</div>
</div>
</div>
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// Breakpoint (v2.4.2)
// Singularity.gs (v1.2.1)
// ----
@import "compass";
@import 'breakpoint';
@import 'singularitygs';
@include add-grid(4);
//@include add-grid(6 at 600px);
@include add-grid(3 3 3 3 at 600px);
@include add-gutter-style('split');
@include add-gutter(20px);
@include sgs-change('debug', true);
@include background-grid($color: blue);
$mediumBreakpoint: 800px;
*{
@include box-sizing('border-box');
}
.container{
width: 800px;
height: 100vh;
margin: 0 auto;
background: rgba(black, .1);
}
.sidebar-wrapper{
height: 50vh;
background: rgba(red, .5);
@include grid-span(2,1);
@include breakpoint($mediumBreakpoint) {
@include grid-span(1, 1);
}
}
.content-wrapper{
height: 50vh;
background: rgba(red, .5);
@include grid-span(2,3);
@include breakpoint($mediumBreakpoint) {
@include grid-span(1, 4);
}
}
.content{
background: green;
height: 100%;
}
Incompatible units: '%' and 'px'.
<div class="container">
<div class="sidebar-wrapper">
<div class="content">
sidebar
</div>
</div>
<div class="content-wrapper">
<div class="content">
content
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment