Created
March 26, 2015 20:55
-
-
Save tsmith512/e4d18bba6339694aba6c to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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>Document</title> | |
</head> | |
<body> | |
<div id="container"> | |
<div class="item1"> </div> | |
<div class="item2"> </div> | |
<div class="item3"> </div> | |
</div> | |
</body> | |
</html> |
This file contains hidden or 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.4.12) | |
// Compass (v1.0.3) | |
// Breakpoint (v2.5.0) | |
// Singularity Extras (v1.0.0) | |
// Singularity.gs (v1.5.1) | |
// ---- | |
@import "compass"; | |
@import "breakpoint"; | |
@import "singularitygs"; | |
@import "singularity-extras"; | |
@import "singularity-extras/outputs"; | |
@include add-grid(200px 200px 200px); | |
@include add-gutter(20px); | |
@include sgs-change('output', 'calc'); | |
#container { | |
@include clearfix; | |
@include box-sizing(border-box); | |
width: ((200px*3) + (20px*2)); | |
margin: 0 auto; | |
border: 1px solid black; | |
} | |
.item1 { | |
@include grid-span(1,1); | |
height: 20px; | |
background: red; | |
} | |
.item2 { | |
@include grid-span(1,2); | |
height: 20px; | |
background: green; | |
} | |
.item3 { | |
@include grid-span(1,3); | |
height: 20px; | |
background: blue; | |
} |
This file contains hidden or 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
#container { | |
overflow: hidden; | |
*zoom: 1; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
width: 640px; | |
margin: 0 auto; | |
border: 1px solid black; | |
} | |
.item1 { | |
width: 200px; | |
float: left; | |
margin-right: -100%; | |
margin-left: 0; | |
height: 20px; | |
background: red; | |
} | |
.item2 { | |
width: 200px; | |
float: left; | |
margin-right: -100%; | |
margin-left: -webkit-calc((200px + 20px)); | |
margin-left: calc((200px + 20px)); | |
height: 20px; | |
background: green; | |
} | |
.item3 { | |
width: 200px; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
height: 20px; | |
background: blue; | |
} |
This file contains hidden or 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>Document</title> | |
</head> | |
<body> | |
<div id="container"> | |
<div class="item1"> </div> | |
<div class="item2"> </div> | |
<div class="item3"> </div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment