Created
July 16, 2014 09:32
-
-
Save geibi/c7ede2a6ad87754f1b3b 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
<div class="container"> | |
<div class="sidebar-wrapper"> | |
<div class="content"> | |
sidebar | |
</div> | |
</div> | |
<div class="content-wrapper"> | |
<div class="content"> | |
content | |
</div> | |
</div> | |
</div> |
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.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); | |
$mediumBreakpoint: 800px; | |
*{ | |
@include box-sizing('border-box'); | |
} | |
.container{ | |
@include background-grid($color: blue); | |
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%; | |
} |
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
Incompatible units: '%' and 'px'. |
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
<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