Last active
August 29, 2015 14:14
-
-
Save melissamcewen/04b7679d4a01f354d633 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Sample</title> | |
</head> | |
<body> | |
<div class="wrap"> | |
<div class="item"> | |
<div class="sub-item1"></div> | |
<div class="sub-item2"></div> | |
</div> | |
</div> | |
</body> | |
</html> |
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.14) | |
// Compass (v1.0.1) | |
// Breakpoint (v2.5.0) | |
// Singularity.gs (v1.4.0) | |
// Toolkit (v2.6.0) | |
// ---- | |
@import "toolkit"; | |
@import "toolkit/kickstart"; | |
@import "breakpoint"; | |
@import "singularitygs"; | |
@include sgs-change('debug', true); | |
// Define the 12 column grid with 1/3 gutters: | |
@include add-grid(12); | |
@include add-gutter(1/3); | |
.wrap { | |
@include clearfix; | |
width: 960px; | |
// Add the background grid simulation: | |
@include background-grid($color: #ccc); | |
// First example of a single item: | |
.item { | |
@include grid-span(3,3); | |
background: red; | |
height: 100px; | |
@include layout(2){ | |
@include background-grid($color: #EBCB79); | |
.sub-item1{ | |
background: green; | |
height: 100px; | |
@include grid-span(1,1); | |
} | |
.sub-item2{ | |
background: red; | |
height: 100px; | |
@include grid-span(1,2); | |
} | |
} | |
} | |
} |
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
*, *:before, *:after { | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
img, video { | |
max-width: 100%; | |
height: auto; | |
} | |
.wrap { | |
width: 960px; | |
background-image: linear-gradient(to right, #cccccc 0%, #cccccc 6.38298%, #d8d8d8 6.38298%, #d8d8d8 8.51064%, #cccccc 8.51064%, #cccccc 14.89362%, #d8d8d8 14.89362%, #d8d8d8 17.02128%, #cccccc 17.02128%, #cccccc 23.40426%, #d8d8d8 23.40426%, #d8d8d8 25.53191%, #cccccc 25.53191%, #cccccc 31.91489%, #d8d8d8 31.91489%, #d8d8d8 34.04255%, #cccccc 34.04255%, #cccccc 40.42553%, #d8d8d8 40.42553%, #d8d8d8 42.55319%, #cccccc 42.55319%, #cccccc 48.93617%, #d8d8d8 48.93617%, #d8d8d8 51.06383%, #cccccc 51.06383%, #cccccc 57.44681%, #d8d8d8 57.44681%, #d8d8d8 59.57447%, #cccccc 59.57447%, #cccccc 65.95745%, #d8d8d8 65.95745%, #d8d8d8 68.08511%, #cccccc 68.08511%, #cccccc 74.46809%, #d8d8d8 74.46809%, #d8d8d8 76.59574%, #cccccc 76.59574%, #cccccc 82.97872%, #d8d8d8 82.97872%, #d8d8d8 85.10638%, #cccccc 85.10638%, #cccccc 91.48936%, #d8d8d8 91.48936%, #d8d8d8 93.61702%, #cccccc 93.61702%, #cccccc); | |
} | |
.wrap:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
.wrap .item { | |
-sgs-span-settings: ("span": 3, "location": 3, "grid": 12, "gutter": 0.33333, "style": "opposite", "start row": false, "end row": false, "fixed gutter": false, "split gutter": false, "gutter property": "margin", "options": ((null: null))); | |
width: 23.40426%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 17.02128%; | |
clear: none; | |
background: red; | |
height: 100px; | |
background-image: linear-gradient(to right, #ebcb79 0%, #ebcb79 42.85714%, #f0d89a 42.85714%, #f0d89a 57.14286%, #ebcb79 57.14286%, #ebcb79); | |
} | |
.wrap .item .sub-item1 { | |
background: green; | |
height: 100px; | |
-sgs-span-settings: ("span": 1, "location": 1, "grid": 2, "gutter": 0.33333, "style": "opposite", "start row": true, "end row": false, "fixed gutter": false, "split gutter": false, "gutter property": "margin", "options": ((null: null))); | |
width: 42.85714%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 0; | |
clear: none; | |
} | |
.wrap .item .sub-item2 { | |
background: red; | |
height: 100px; | |
-sgs-span-settings: ("span": 1, "location": 2, "grid": 2, "gutter": 0.33333, "style": "opposite", "start row": false, "end row": true, "fixed gutter": false, "split gutter": false, "gutter property": "margin", "options": ((null: null))); | |
width: 42.85714%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: none; | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Sample</title> | |
</head> | |
<body> | |
<div class="wrap"> | |
<div class="item"> | |
<div class="sub-item1"></div> | |
<div class="sub-item2"></div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment