Created
June 11, 2014 13:53
-
-
Save eheiser/09f8182351b9cba3af21 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 class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<ul class="foo"> | |
<li>content 1</li> | |
<li>content 2</li> | |
<li>content 3</li> | |
<li>content 4</li> | |
<li>content 5</li> | |
<li>content 6</li> | |
<li>content 7</li> | |
<li>content 8</li> | |
</ul> | |
</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.3.8) | |
// Compass (v1.0.0.alpha.19) | |
// Breakpoint (v2.4.2) | |
// Susy (v2.1.2) | |
// ---- | |
@import "compass"; | |
@import "breakpoint"; | |
@import "susy"; | |
$big : 1200px; | |
$susy: ( | |
// // columns: 16, | |
// // gutters: 1/4, | |
// // math: fluid, | |
// // output: float, | |
// // gutter-position: outside, | |
debug: ( | |
image: show, | |
color: rgba(#66B3DC, .25), | |
output: background, | |
toggle: bottom right, | |
) | |
); | |
$mobile :( | |
columns: 8, | |
gutters: 1/4, | |
gutter-position: split, | |
math: fluid, | |
output: float, | |
global-box-sizing: border-box, | |
last-flow: from | |
); | |
$desktop : ( | |
columns: 9, | |
gutters: 1/3, | |
gutter-position: split, | |
math: fluid, | |
output: float, | |
global-box-sizing: border-box, | |
last-flow: from | |
); | |
html { | |
background-color: #fff; | |
} | |
body { | |
@include layout($mobile); | |
@include container; | |
background-color: rgba(#eeeeee, 0.5); | |
min-height: 600px; | |
@include breakpoint($big) { | |
@include layout($desktop); | |
@include container; | |
max-width: 1200px; | |
} | |
} | |
.foo { | |
@include clearfix; | |
li { | |
@include span(4 of 8); | |
box-sizing: border-box; | |
padding: 1em; | |
font-size: 24px; | |
display: block; | |
height: 200px; | |
background-color: #6CA101; | |
margin-bottom: 1em; | |
@include breakpoint($big) { | |
@include span(3 of 9); | |
} | |
} | |
} |
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
html { | |
background-color: #fff; | |
} | |
body { | |
max-width: 100%; | |
margin-left: auto; | |
margin-right: auto; | |
background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0) 10%, rgba(102, 179, 220, 0.25) 10%, rgba(164, 210, 234, 0.25) 90%, rgba(0, 0, 0, 0) 90%), -moz-linear-gradient(top, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%); | |
background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 10%, rgba(102, 179, 220, 0.25) 10%, rgba(164, 210, 234, 0.25) 90%, rgba(0, 0, 0, 0) 90%), -webkit-linear-gradient(top, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%); | |
background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 10%, rgba(102, 179, 220, 0.25) 10%, rgba(164, 210, 234, 0.25) 90%, rgba(0, 0, 0, 0) 90%), linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%); | |
background-size: 12.5%, 100% 24px; | |
background-origin: content-box, border-box; | |
background-clip: content-box, border-box; | |
background-position: left top; | |
background-color: rgba(238, 238, 238, 0.5); | |
min-height: 600px; | |
} | |
body:after { | |
content: " "; | |
display: block; | |
clear: both; | |
} | |
@media (min-width: 1200px) { | |
body { | |
max-width: 100%; | |
margin-left: auto; | |
margin-right: auto; | |
background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0) 12.5%, rgba(102, 179, 220, 0.25) 12.5%, rgba(164, 210, 234, 0.25) 87.5%, rgba(0, 0, 0, 0) 87.5%), -moz-linear-gradient(top, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%); | |
background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 12.5%, rgba(102, 179, 220, 0.25) 12.5%, rgba(164, 210, 234, 0.25) 87.5%, rgba(0, 0, 0, 0) 87.5%), -webkit-linear-gradient(top, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%); | |
background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 12.5%, rgba(102, 179, 220, 0.25) 12.5%, rgba(164, 210, 234, 0.25) 87.5%, rgba(0, 0, 0, 0) 87.5%), linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%); | |
background-size: 11.11111%, 100% 24px; | |
background-origin: content-box, border-box; | |
background-clip: content-box, border-box; | |
background-position: left top; | |
max-width: 1200px; | |
} | |
body:after { | |
content: " "; | |
display: block; | |
clear: both; | |
} | |
} | |
.foo { | |
overflow: hidden; | |
*zoom: 1; | |
} | |
.foo li { | |
width: 46.875%; | |
float: left; | |
margin-left: 1.5625%; | |
margin-right: 1.5625%; | |
box-sizing: border-box; | |
padding: 1em; | |
font-size: 24px; | |
display: block; | |
height: 200px; | |
background-color: #6CA101; | |
margin-bottom: 1em; | |
} | |
@media (min-width: 1200px) { | |
.foo li { | |
width: 30.55556%; | |
float: left; | |
margin-left: 1.38889%; | |
margin-right: 1.38889%; | |
} | |
} |
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 class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<ul class="foo"> | |
<li>content 1</li> | |
<li>content 2</li> | |
<li>content 3</li> | |
<li>content 4</li> | |
<li>content 5</li> | |
<li>content 6</li> | |
<li>content 7</li> | |
<li>content 8</li> | |
</ul> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment