Skip to content

Instantly share code, notes, and snippets.

@faruk61
Last active August 29, 2015 14:15
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 faruk61/deacd65f362edc394495 to your computer and use it in GitHub Desktop.
Save faruk61/deacd65f362edc394495 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="main">
<section id="one">
<h1>Some Headline</h1>
<div class="image">
image
</div>
<div class="copy">
c
</div>
</section>
</div>
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// Singularity.gs (v1.5.1)
// ----
@import compass
@import singularitygs
+add-grid(1 5 5 2 3)
//+add-grid(snap(1 5 5 2 3))
+sgs-change("debug", true)
body
+background-grid
#one
+background-grid($color: grey)
//+grid-span(3,2)
+layout(1 5 5 2 3 )
+grid-span(5, 1)
.copy
//+grid-span(2, 3)
+grid-span(2, 3)
background-color: orange
.image
height: 100px
+grid-span(1, 2)
//+grid-span(1,1)
background-color: purple
body {
background-image: linear-gradient(to right, chocolate 0%, chocolate 5.88235%, #dd8e56 5.88235%, #dd8e56 7.35294%, chocolate 7.35294%, chocolate 36.76471%, #dd8e56 36.76471%, #dd8e56 38.23529%, chocolate 38.23529%, chocolate 67.64706%, #dd8e56 67.64706%, #dd8e56 69.11765%, chocolate 69.11765%, chocolate 80.88235%, #dd8e56 80.88235%, #dd8e56 82.35294%, chocolate 82.35294%, chocolate);
}
#one {
background-image: linear-gradient(to right, grey 0%, grey 5.88235%, #9f9f9f 5.88235%, #9f9f9f 7.35294%, grey 7.35294%, grey 36.76471%, #9f9f9f 36.76471%, #9f9f9f 38.23529%, grey 38.23529%, grey 67.64706%, #9f9f9f 67.64706%, #9f9f9f 69.11765%, grey 69.11765%, grey 80.88235%, #9f9f9f 80.88235%, #9f9f9f 82.35294%, grey 82.35294%, grey);
-sgs-span-settings: ("span": 5, "location": 1, "grid": 1 5 5 2 3, "gutter": 0.25, "style": "opposite", "start row": true, "end row": true, "fixed gutter": false, "split gutter": null, "gutter property": "margin", "options": (null: null));
width: 100%;
float: right;
margin-left: 0;
margin-right: 0;
clear: none;
}
#one .copy {
-sgs-span-settings: ("span": 2, "location": 3, "grid": 1 5 5 2 3, "gutter": 0.25, "style": "opposite", "start row": false, "end row": false, "fixed gutter": false, "split gutter": null, "gutter property": "margin", "options": (null: null));
width: 42.64706%;
float: left;
margin-right: -100%;
margin-left: 38.23529%;
clear: none;
background-color: orange;
}
#one .image {
height: 100px;
-sgs-span-settings: ("span": 1, "location": 2, "grid": 1 5 5 2 3, "gutter": 0.25, "style": "opposite", "start row": false, "end row": false, "fixed gutter": false, "split gutter": null, "gutter property": "margin", "options": (null: null));
width: 29.41176%;
float: left;
margin-right: -100%;
margin-left: 7.35294%;
clear: none;
background-color: purple;
}
<div class="main">
<section id="one">
<h1>Some Headline</h1>
<div class="image">
image
</div>
<div class="copy">
c
</div>
</section>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment