Skip to content

Instantly share code, notes, and snippets.

@melissamcewen
Created October 16, 2015 20:56
Show Gist options
  • Save melissamcewen/ea985c05d5e9527fa485 to your computer and use it in GitHub Desktop.
Save melissamcewen/ea985c05d5e9527fa485 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<!DOCTYPE html>
<html lang="de">
<head>
</head>
<body>
<div class="left">
<div id="div-1">1</div>
<div id="div-2">2</div>
<div id="div-3">3</div>
</div>
<div class="right">
<div id="div-4">4</div>
</div>
</body>
</html>
// ----
// libsass (v3.2.5)
// ----
// ----
// libsass (v3.2.5)
// ----
@import "breakpoint";
@import "singularitygs";
$singularity: (
'debug': 'true'
);
@include add-grid(4);
body{
@include background-grid($color: grey);
}
.left{
background-color: mistyrose;
@include float-span(2);
}
.right{
background-color: lavender;
@include float-span(2, 'last');
}
#div-1 {
@include float-span(4);
background-color: red;
}
#div-2 {
@include float-span(4);
background-color: blue;
}
#div-3 {
@include float-span(4);
background-color: yellow;
}
#div-4 {
@include float-span(4);
background-color: green;
}
body {
background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww%2Ew3%2Eorg%2F2000%2Fsvg%22%3E%3Crect%20x%3D%220%25%22%20fill%3D%22grey%22%20width%3D%2221%2E05263%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2221%2E05263%25%22%20fill%3D%22%23a0a0a0%22%20width%3D%225%2E26316%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2226%2E31579%25%22%20fill%3D%22grey%22%20width%3D%2221%2E05263%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2247%2E36842%25%22%20fill%3D%22%23a0a0a0%22%20width%3D%225%2E26316%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2252%2E63158%25%22%20fill%3D%22grey%22%20width%3D%2221%2E05263%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2273%2E68421%25%22%20fill%3D%22%23a0a0a0%22%20width%3D%225%2E26316%25%22%20height%3D%22100%25%22%2F%3E%3Crect%20x%3D%2278%2E94737%25%22%20fill%3D%22grey%22%20width%3D%2221%2E05263%25%22%20height%3D%22100%25%22%2F%3E%3C%2Fsvg%3E");
}
.left {
background-color: mistyrose;
-sgs-span-settings: ("span": 2, "location": 1, "grid": 4, "gutter": 0.25, "style": "opposite", "start row": true, "end row": false, "fixed gutter": false, "gutter property": "margin", "options": ());
width: 47.36842%;
clear: right;
float: left;
margin-left: 0;
margin-right: 5.26316%;
}
.right {
background-color: lavender;
-sgs-span-settings: ("span": 2, "location": 3, "grid": 4, "gutter": 0.25, "style": "opposite", "start row": false, "end row": true, "fixed gutter": false, "gutter property": "margin", "options": ());
width: 47.36842%;
clear: right;
float: right;
margin-right: 0;
}
#div-1 {
-sgs-span-settings: ("span": 4, "location": 1, "grid": 4, "gutter": 0.25, "style": "opposite", "start row": true, "end row": true, "fixed gutter": false, "gutter property": "margin", "options": ());
width: 100%;
clear: right;
float: right;
margin-right: 0;
background-color: red;
}
#div-2 {
-sgs-span-settings: ("span": 4, "location": 1, "grid": 4, "gutter": 0.25, "style": "opposite", "start row": true, "end row": true, "fixed gutter": false, "gutter property": "margin", "options": ());
width: 100%;
clear: right;
float: right;
margin-right: 0;
background-color: blue;
}
#div-3 {
-sgs-span-settings: ("span": 4, "location": 1, "grid": 4, "gutter": 0.25, "style": "opposite", "start row": true, "end row": true, "fixed gutter": false, "gutter property": "margin", "options": ());
width: 100%;
clear: right;
float: right;
margin-right: 0;
background-color: yellow;
}
#div-4 {
-sgs-span-settings: ("span": 4, "location": 1, "grid": 4, "gutter": 0.25, "style": "opposite", "start row": true, "end row": true, "fixed gutter": false, "gutter property": "margin", "options": ());
width: 100%;
clear: right;
float: right;
margin-right: 0;
background-color: green;
}
<!DOCTYPE html>
<html lang="de">
<head>
</head>
<body>
<div class="left">
<div id="div-1">1</div>
<div id="div-2">2</div>
<div id="div-3">3</div>
</div>
<div class="right">
<div id="div-4">4</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment